configure 698 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for expat 2.0.1.
  4. #
  5. # Report bugs to <expat-bugs@libexpat.org>.
  6. #
  7. # Copyright (C) 2003 Free Software Foundation, Inc.
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10. ## --------------------- ##
  11. ## M4sh Initialization. ##
  12. ## --------------------- ##
  13. # Be Bourne compatible
  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. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  21. set -o posix
  22. fi
  23. DUALCASE=1; export DUALCASE # for MKS sh
  24. # Support unset when possible.
  25. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  26. as_unset=unset
  27. else
  28. as_unset=false
  29. fi
  30. # Work around bugs in pre-3.0 UWIN ksh.
  31. $as_unset ENV MAIL MAILPATH
  32. PS1='$ '
  33. PS2='> '
  34. PS4='+ '
  35. # NLS nuisances.
  36. for as_var in \
  37. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  38. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  39. LC_TELEPHONE LC_TIME
  40. do
  41. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  42. eval $as_var=C; export $as_var
  43. else
  44. $as_unset $as_var
  45. fi
  46. done
  47. # Required to use basename.
  48. if expr a : '\(a\)' >/dev/null 2>&1; then
  49. as_expr=expr
  50. else
  51. as_expr=false
  52. fi
  53. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  54. as_basename=basename
  55. else
  56. as_basename=false
  57. fi
  58. # Name of the executable.
  59. as_me=`$as_basename "$0" ||
  60. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  61. X"$0" : 'X\(//\)$' \| \
  62. X"$0" : 'X\(/\)$' \| \
  63. . : '\(.\)' 2>/dev/null ||
  64. echo X/"$0" |
  65. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  66. /^X\/\(\/\/\)$/{ s//\1/; q; }
  67. /^X\/\(\/\).*/{ s//\1/; q; }
  68. s/.*/./; q'`
  69. # PATH needs CR, and LINENO needs CR and PATH.
  70. # Avoid depending upon Character Ranges.
  71. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  72. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  73. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  74. as_cr_digits='0123456789'
  75. as_cr_alnum=$as_cr_Letters$as_cr_digits
  76. # The user is always right.
  77. if test "${PATH_SEPARATOR+set}" != set; then
  78. echo "#! /bin/sh" >conf$$.sh
  79. echo "exit 0" >>conf$$.sh
  80. chmod +x conf$$.sh
  81. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  82. PATH_SEPARATOR=';'
  83. else
  84. PATH_SEPARATOR=:
  85. fi
  86. rm -f conf$$.sh
  87. fi
  88. as_lineno_1=$LINENO
  89. as_lineno_2=$LINENO
  90. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  91. test "x$as_lineno_1" != "x$as_lineno_2" &&
  92. test "x$as_lineno_3" = "x$as_lineno_2" || {
  93. # Find who we are. Look in the path if we contain no path at all
  94. # relative or not.
  95. case $0 in
  96. *[\\/]* ) as_myself=$0 ;;
  97. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  98. for as_dir in $PATH
  99. do
  100. IFS=$as_save_IFS
  101. test -z "$as_dir" && as_dir=.
  102. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  103. done
  104. ;;
  105. esac
  106. # We did not find ourselves, most probably we were run as `sh COMMAND'
  107. # in which case we are not to be found in the path.
  108. if test "x$as_myself" = x; then
  109. as_myself=$0
  110. fi
  111. if test ! -f "$as_myself"; then
  112. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  113. { (exit 1); exit 1; }; }
  114. fi
  115. case $CONFIG_SHELL in
  116. '')
  117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  118. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  119. do
  120. IFS=$as_save_IFS
  121. test -z "$as_dir" && as_dir=.
  122. for as_base in sh bash ksh sh5; do
  123. case $as_dir in
  124. /*)
  125. if ("$as_dir/$as_base" -c '
  126. as_lineno_1=$LINENO
  127. as_lineno_2=$LINENO
  128. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  129. test "x$as_lineno_1" != "x$as_lineno_2" &&
  130. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  131. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  132. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  133. CONFIG_SHELL=$as_dir/$as_base
  134. export CONFIG_SHELL
  135. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  136. fi;;
  137. esac
  138. done
  139. done
  140. ;;
  141. esac
  142. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  143. # uniformly replaced by the line number. The first 'sed' inserts a
  144. # line-number line before each line; the second 'sed' does the real
  145. # work. The second script uses 'N' to pair each line-number line
  146. # with the numbered line, and appends trailing '-' during
  147. # substitution so that $LINENO is not a special case at line end.
  148. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  149. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  150. sed '=' <$as_myself |
  151. sed '
  152. N
  153. s,$,-,
  154. : loop
  155. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  156. t loop
  157. s,-$,,
  158. s,^['$as_cr_digits']*\n,,
  159. ' >$as_me.lineno &&
  160. chmod +x $as_me.lineno ||
  161. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  162. { (exit 1); exit 1; }; }
  163. # Don't try to exec as it changes $[0], causing all sort of problems
  164. # (the dirname of $[0] is not the place where we might find the
  165. # original and so on. Autoconf is especially sensible to this).
  166. . ./$as_me.lineno
  167. # Exit status is that of the last command.
  168. exit
  169. }
  170. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  171. *c*,-n*) ECHO_N= ECHO_C='
  172. ' ECHO_T=' ' ;;
  173. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  174. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  175. esac
  176. if expr a : '\(a\)' >/dev/null 2>&1; then
  177. as_expr=expr
  178. else
  179. as_expr=false
  180. fi
  181. rm -f conf$$ conf$$.exe conf$$.file
  182. echo >conf$$.file
  183. if ln -s conf$$.file conf$$ 2>/dev/null; then
  184. # We could just check for DJGPP; but this test a) works b) is more generic
  185. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  186. if test -f conf$$.exe; then
  187. # Don't use ln at all; we don't have any links
  188. as_ln_s='cp -p'
  189. else
  190. as_ln_s='ln -s'
  191. fi
  192. elif ln conf$$.file conf$$ 2>/dev/null; then
  193. as_ln_s=ln
  194. else
  195. as_ln_s='cp -p'
  196. fi
  197. rm -f conf$$ conf$$.exe conf$$.file
  198. if mkdir -p . 2>/dev/null; then
  199. as_mkdir_p=:
  200. else
  201. test -d ./-p && rmdir ./-p
  202. as_mkdir_p=false
  203. fi
  204. as_executable_p="test -f"
  205. # Sed expression to map a string onto a valid CPP name.
  206. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  207. # Sed expression to map a string onto a valid variable name.
  208. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  209. # IFS
  210. # We need space, tab and new line, in precisely that order.
  211. as_nl='
  212. '
  213. IFS=" $as_nl"
  214. # CDPATH.
  215. $as_unset CDPATH
  216. # Check that we are running under the correct shell.
  217. SHELL=${CONFIG_SHELL-/bin/sh}
  218. case X$ECHO in
  219. X*--fallback-echo)
  220. # Remove one level of quotation (which was required for Make).
  221. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  222. ;;
  223. esac
  224. echo=${ECHO-echo}
  225. if test "X$1" = X--no-reexec; then
  226. # Discard the --no-reexec flag, and continue.
  227. shift
  228. elif test "X$1" = X--fallback-echo; then
  229. # Avoid inline document here, it may be left over
  230. :
  231. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  232. # Yippee, $echo works!
  233. :
  234. else
  235. # Restart under the correct shell.
  236. exec $SHELL "$0" --no-reexec ${1+"$@"}
  237. fi
  238. if test "X$1" = X--fallback-echo; then
  239. # used as fallback echo
  240. shift
  241. cat <<EOF
  242. $*
  243. EOF
  244. exit 0
  245. fi
  246. # The HP-UX ksh and POSIX shell print the target directory to stdout
  247. # if CDPATH is set.
  248. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  249. if test -z "$ECHO"; then
  250. if test "X${echo_test_string+set}" != Xset; then
  251. # find a string as large as possible, as long as the shell can cope with it
  252. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  253. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  254. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  255. echo_test_string=`eval $cmd` &&
  256. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  257. then
  258. break
  259. fi
  260. done
  261. fi
  262. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  263. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  264. test "X$echo_testing_string" = "X$echo_test_string"; then
  265. :
  266. else
  267. # The Solaris, AIX, and Digital Unix default echo programs unquote
  268. # backslashes. This makes it impossible to quote backslashes using
  269. # echo "$something" | sed 's/\\/\\\\/g'
  270. #
  271. # So, first we look for a working echo in the user's PATH.
  272. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  273. for dir in $PATH /usr/ucb; do
  274. IFS="$lt_save_ifs"
  275. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  276. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  277. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  278. test "X$echo_testing_string" = "X$echo_test_string"; then
  279. echo="$dir/echo"
  280. break
  281. fi
  282. done
  283. IFS="$lt_save_ifs"
  284. if test "X$echo" = Xecho; then
  285. # We didn't find a better echo, so look for alternatives.
  286. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  287. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  288. test "X$echo_testing_string" = "X$echo_test_string"; then
  289. # This shell has a builtin print -r that does the trick.
  290. echo='print -r'
  291. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  292. test "X$CONFIG_SHELL" != X/bin/ksh; then
  293. # If we have ksh, try running configure again with it.
  294. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  295. export ORIGINAL_CONFIG_SHELL
  296. CONFIG_SHELL=/bin/ksh
  297. export CONFIG_SHELL
  298. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  299. else
  300. # Try using printf.
  301. echo='printf %s\n'
  302. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  303. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  304. test "X$echo_testing_string" = "X$echo_test_string"; then
  305. # Cool, printf works
  306. :
  307. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  308. test "X$echo_testing_string" = 'X\t' &&
  309. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  310. test "X$echo_testing_string" = "X$echo_test_string"; then
  311. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  312. export CONFIG_SHELL
  313. SHELL="$CONFIG_SHELL"
  314. export SHELL
  315. echo="$CONFIG_SHELL $0 --fallback-echo"
  316. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  317. test "X$echo_testing_string" = 'X\t' &&
  318. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  319. test "X$echo_testing_string" = "X$echo_test_string"; then
  320. echo="$CONFIG_SHELL $0 --fallback-echo"
  321. else
  322. # maybe with a smaller string...
  323. prev=:
  324. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  325. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  326. then
  327. break
  328. fi
  329. prev="$cmd"
  330. done
  331. if test "$prev" != 'sed 50q "$0"'; then
  332. echo_test_string=`eval $prev`
  333. export echo_test_string
  334. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  335. else
  336. # Oops. We lost completely, so just stick with echo.
  337. echo=echo
  338. fi
  339. fi
  340. fi
  341. fi
  342. fi
  343. fi
  344. # Copy echo and quote the copy suitably for passing to libtool from
  345. # the Makefile, instead of quoting the original, which is used later.
  346. ECHO=$echo
  347. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  348. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  349. fi
  350. tagnames=${tagnames+${tagnames},}CXX
  351. tagnames=${tagnames+${tagnames},}F77
  352. # Name of the host.
  353. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  354. # so uname gets run too.
  355. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  356. exec 6>&1
  357. #
  358. # Initializations.
  359. #
  360. ac_default_prefix=/usr/local
  361. ac_config_libobj_dir=.
  362. cross_compiling=no
  363. subdirs=
  364. MFLAGS=
  365. MAKEFLAGS=
  366. SHELL=${CONFIG_SHELL-/bin/sh}
  367. # Maximum number of lines to put in a shell here document.
  368. # This variable seems obsolete. It should probably be removed, and
  369. # only ac_max_sed_lines should be used.
  370. : ${ac_max_here_lines=38}
  371. # Identity of this package.
  372. PACKAGE_NAME='expat'
  373. PACKAGE_TARNAME='expat'
  374. PACKAGE_VERSION='2.0.1'
  375. PACKAGE_STRING='expat 2.0.1'
  376. PACKAGE_BUGREPORT='expat-bugs@libexpat.org'
  377. ac_unique_file="Makefile.in"
  378. # Factoring default headers for most tests.
  379. ac_includes_default="\
  380. #include <stdio.h>
  381. #if HAVE_SYS_TYPES_H
  382. # include <sys/types.h>
  383. #endif
  384. #if HAVE_SYS_STAT_H
  385. # include <sys/stat.h>
  386. #endif
  387. #if STDC_HEADERS
  388. # include <stdlib.h>
  389. # include <stddef.h>
  390. #else
  391. # if HAVE_STDLIB_H
  392. # include <stdlib.h>
  393. # endif
  394. #endif
  395. #if HAVE_STRING_H
  396. # if !STDC_HEADERS && HAVE_MEMORY_H
  397. # include <memory.h>
  398. # endif
  399. # include <string.h>
  400. #endif
  401. #if HAVE_STRINGS_H
  402. # include <strings.h>
  403. #endif
  404. #if HAVE_INTTYPES_H
  405. # include <inttypes.h>
  406. #else
  407. # if HAVE_STDINT_H
  408. # include <stdint.h>
  409. # endif
  410. #endif
  411. #if HAVE_UNISTD_H
  412. # include <unistd.h>
  413. #endif"
  414. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBCURRENT LIBREVISION LIBAGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA FILEMAP LIBOBJS LTLIBOBJS'
  415. ac_subst_files=''
  416. # Initialize some variables set by options.
  417. ac_init_help=
  418. ac_init_version=false
  419. # The variables have the same names as the options, with
  420. # dashes changed to underlines.
  421. cache_file=/dev/null
  422. exec_prefix=NONE
  423. no_create=
  424. no_recursion=
  425. prefix=NONE
  426. program_prefix=NONE
  427. program_suffix=NONE
  428. program_transform_name=s,x,x,
  429. silent=
  430. site=
  431. srcdir=
  432. verbose=
  433. x_includes=NONE
  434. x_libraries=NONE
  435. # Installation directory options.
  436. # These are left unexpanded so users can "make install exec_prefix=/foo"
  437. # and all the variables that are supposed to be based on exec_prefix
  438. # by default will actually change.
  439. # Use braces instead of parens because sh, perl, etc. also accept them.
  440. bindir='${exec_prefix}/bin'
  441. sbindir='${exec_prefix}/sbin'
  442. libexecdir='${exec_prefix}/libexec'
  443. datadir='${prefix}/share'
  444. sysconfdir='${prefix}/etc'
  445. sharedstatedir='${prefix}/com'
  446. localstatedir='${prefix}/var'
  447. libdir='${exec_prefix}/lib'
  448. includedir='${prefix}/include'
  449. oldincludedir='/usr/include'
  450. infodir='${prefix}/info'
  451. mandir='${prefix}/man'
  452. ac_prev=
  453. for ac_option
  454. do
  455. # If the previous option needs an argument, assign it.
  456. if test -n "$ac_prev"; then
  457. eval "$ac_prev=\$ac_option"
  458. ac_prev=
  459. continue
  460. fi
  461. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  462. # Accept the important Cygnus configure options, so we can diagnose typos.
  463. case $ac_option in
  464. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  465. ac_prev=bindir ;;
  466. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  467. bindir=$ac_optarg ;;
  468. -build | --build | --buil | --bui | --bu)
  469. ac_prev=build_alias ;;
  470. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  471. build_alias=$ac_optarg ;;
  472. -cache-file | --cache-file | --cache-fil | --cache-fi \
  473. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  474. ac_prev=cache_file ;;
  475. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  476. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  477. cache_file=$ac_optarg ;;
  478. --config-cache | -C)
  479. cache_file=config.cache ;;
  480. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  481. ac_prev=datadir ;;
  482. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  483. | --da=*)
  484. datadir=$ac_optarg ;;
  485. -disable-* | --disable-*)
  486. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  487. # Reject names that are not valid shell variable names.
  488. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  489. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  490. { (exit 1); exit 1; }; }
  491. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  492. eval "enable_$ac_feature=no" ;;
  493. -enable-* | --enable-*)
  494. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  495. # Reject names that are not valid shell variable names.
  496. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  497. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  498. { (exit 1); exit 1; }; }
  499. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  500. case $ac_option in
  501. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  502. *) ac_optarg=yes ;;
  503. esac
  504. eval "enable_$ac_feature='$ac_optarg'" ;;
  505. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  506. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  507. | --exec | --exe | --ex)
  508. ac_prev=exec_prefix ;;
  509. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  510. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  511. | --exec=* | --exe=* | --ex=*)
  512. exec_prefix=$ac_optarg ;;
  513. -gas | --gas | --ga | --g)
  514. # Obsolete; use --with-gas.
  515. with_gas=yes ;;
  516. -help | --help | --hel | --he | -h)
  517. ac_init_help=long ;;
  518. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  519. ac_init_help=recursive ;;
  520. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  521. ac_init_help=short ;;
  522. -host | --host | --hos | --ho)
  523. ac_prev=host_alias ;;
  524. -host=* | --host=* | --hos=* | --ho=*)
  525. host_alias=$ac_optarg ;;
  526. -includedir | --includedir | --includedi | --included | --include \
  527. | --includ | --inclu | --incl | --inc)
  528. ac_prev=includedir ;;
  529. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  530. | --includ=* | --inclu=* | --incl=* | --inc=*)
  531. includedir=$ac_optarg ;;
  532. -infodir | --infodir | --infodi | --infod | --info | --inf)
  533. ac_prev=infodir ;;
  534. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  535. infodir=$ac_optarg ;;
  536. -libdir | --libdir | --libdi | --libd)
  537. ac_prev=libdir ;;
  538. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  539. libdir=$ac_optarg ;;
  540. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  541. | --libexe | --libex | --libe)
  542. ac_prev=libexecdir ;;
  543. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  544. | --libexe=* | --libex=* | --libe=*)
  545. libexecdir=$ac_optarg ;;
  546. -localstatedir | --localstatedir | --localstatedi | --localstated \
  547. | --localstate | --localstat | --localsta | --localst \
  548. | --locals | --local | --loca | --loc | --lo)
  549. ac_prev=localstatedir ;;
  550. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  551. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  552. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  553. localstatedir=$ac_optarg ;;
  554. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  555. ac_prev=mandir ;;
  556. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  557. mandir=$ac_optarg ;;
  558. -nfp | --nfp | --nf)
  559. # Obsolete; use --without-fp.
  560. with_fp=no ;;
  561. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  562. | --no-cr | --no-c | -n)
  563. no_create=yes ;;
  564. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  565. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  566. no_recursion=yes ;;
  567. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  568. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  569. | --oldin | --oldi | --old | --ol | --o)
  570. ac_prev=oldincludedir ;;
  571. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  572. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  573. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  574. oldincludedir=$ac_optarg ;;
  575. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  576. ac_prev=prefix ;;
  577. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  578. prefix=$ac_optarg ;;
  579. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  580. | --program-pre | --program-pr | --program-p)
  581. ac_prev=program_prefix ;;
  582. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  583. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  584. program_prefix=$ac_optarg ;;
  585. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  586. | --program-suf | --program-su | --program-s)
  587. ac_prev=program_suffix ;;
  588. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  589. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  590. program_suffix=$ac_optarg ;;
  591. -program-transform-name | --program-transform-name \
  592. | --program-transform-nam | --program-transform-na \
  593. | --program-transform-n | --program-transform- \
  594. | --program-transform | --program-transfor \
  595. | --program-transfo | --program-transf \
  596. | --program-trans | --program-tran \
  597. | --progr-tra | --program-tr | --program-t)
  598. ac_prev=program_transform_name ;;
  599. -program-transform-name=* | --program-transform-name=* \
  600. | --program-transform-nam=* | --program-transform-na=* \
  601. | --program-transform-n=* | --program-transform-=* \
  602. | --program-transform=* | --program-transfor=* \
  603. | --program-transfo=* | --program-transf=* \
  604. | --program-trans=* | --program-tran=* \
  605. | --progr-tra=* | --program-tr=* | --program-t=*)
  606. program_transform_name=$ac_optarg ;;
  607. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  608. | -silent | --silent | --silen | --sile | --sil)
  609. silent=yes ;;
  610. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  611. ac_prev=sbindir ;;
  612. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  613. | --sbi=* | --sb=*)
  614. sbindir=$ac_optarg ;;
  615. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  616. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  617. | --sharedst | --shareds | --shared | --share | --shar \
  618. | --sha | --sh)
  619. ac_prev=sharedstatedir ;;
  620. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  621. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  622. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  623. | --sha=* | --sh=*)
  624. sharedstatedir=$ac_optarg ;;
  625. -site | --site | --sit)
  626. ac_prev=site ;;
  627. -site=* | --site=* | --sit=*)
  628. site=$ac_optarg ;;
  629. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  630. ac_prev=srcdir ;;
  631. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  632. srcdir=$ac_optarg ;;
  633. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  634. | --syscon | --sysco | --sysc | --sys | --sy)
  635. ac_prev=sysconfdir ;;
  636. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  637. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  638. sysconfdir=$ac_optarg ;;
  639. -target | --target | --targe | --targ | --tar | --ta | --t)
  640. ac_prev=target_alias ;;
  641. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  642. target_alias=$ac_optarg ;;
  643. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  644. verbose=yes ;;
  645. -version | --version | --versio | --versi | --vers | -V)
  646. ac_init_version=: ;;
  647. -with-* | --with-*)
  648. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  649. # Reject names that are not valid shell variable names.
  650. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  651. { echo "$as_me: error: invalid package name: $ac_package" >&2
  652. { (exit 1); exit 1; }; }
  653. ac_package=`echo $ac_package| sed 's/-/_/g'`
  654. case $ac_option in
  655. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  656. *) ac_optarg=yes ;;
  657. esac
  658. eval "with_$ac_package='$ac_optarg'" ;;
  659. -without-* | --without-*)
  660. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  661. # Reject names that are not valid shell variable names.
  662. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  663. { echo "$as_me: error: invalid package name: $ac_package" >&2
  664. { (exit 1); exit 1; }; }
  665. ac_package=`echo $ac_package | sed 's/-/_/g'`
  666. eval "with_$ac_package=no" ;;
  667. --x)
  668. # Obsolete; use --with-x.
  669. with_x=yes ;;
  670. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  671. | --x-incl | --x-inc | --x-in | --x-i)
  672. ac_prev=x_includes ;;
  673. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  674. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  675. x_includes=$ac_optarg ;;
  676. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  677. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  678. ac_prev=x_libraries ;;
  679. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  680. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  681. x_libraries=$ac_optarg ;;
  682. -*) { echo "$as_me: error: unrecognized option: $ac_option
  683. Try \`$0 --help' for more information." >&2
  684. { (exit 1); exit 1; }; }
  685. ;;
  686. *=*)
  687. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  688. # Reject names that are not valid shell variable names.
  689. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  690. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  691. { (exit 1); exit 1; }; }
  692. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  693. eval "$ac_envvar='$ac_optarg'"
  694. export $ac_envvar ;;
  695. *)
  696. # FIXME: should be removed in autoconf 3.0.
  697. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  698. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  699. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  700. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  701. ;;
  702. esac
  703. done
  704. if test -n "$ac_prev"; then
  705. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  706. { echo "$as_me: error: missing argument to $ac_option" >&2
  707. { (exit 1); exit 1; }; }
  708. fi
  709. # Be sure to have absolute paths.
  710. for ac_var in exec_prefix prefix
  711. do
  712. eval ac_val=$`echo $ac_var`
  713. case $ac_val in
  714. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  715. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  716. { (exit 1); exit 1; }; };;
  717. esac
  718. done
  719. # Be sure to have absolute paths.
  720. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  721. localstatedir libdir includedir oldincludedir infodir mandir
  722. do
  723. eval ac_val=$`echo $ac_var`
  724. case $ac_val in
  725. [\\/$]* | ?:[\\/]* ) ;;
  726. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  727. { (exit 1); exit 1; }; };;
  728. esac
  729. done
  730. # There might be people who depend on the old broken behavior: `$host'
  731. # used to hold the argument of --host etc.
  732. # FIXME: To remove some day.
  733. build=$build_alias
  734. host=$host_alias
  735. target=$target_alias
  736. # FIXME: To remove some day.
  737. if test "x$host_alias" != x; then
  738. if test "x$build_alias" = x; then
  739. cross_compiling=maybe
  740. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  741. If a cross compiler is detected then cross compile mode will be used." >&2
  742. elif test "x$build_alias" != "x$host_alias"; then
  743. cross_compiling=yes
  744. fi
  745. fi
  746. ac_tool_prefix=
  747. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  748. test "$silent" = yes && exec 6>/dev/null
  749. # Find the source files, if location was not specified.
  750. if test -z "$srcdir"; then
  751. ac_srcdir_defaulted=yes
  752. # Try the directory containing this script, then its parent.
  753. ac_confdir=`(dirname "$0") 2>/dev/null ||
  754. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  755. X"$0" : 'X\(//\)[^/]' \| \
  756. X"$0" : 'X\(//\)$' \| \
  757. X"$0" : 'X\(/\)' \| \
  758. . : '\(.\)' 2>/dev/null ||
  759. echo X"$0" |
  760. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  761. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  762. /^X\(\/\/\)$/{ s//\1/; q; }
  763. /^X\(\/\).*/{ s//\1/; q; }
  764. s/.*/./; q'`
  765. srcdir=$ac_confdir
  766. if test ! -r $srcdir/$ac_unique_file; then
  767. srcdir=..
  768. fi
  769. else
  770. ac_srcdir_defaulted=no
  771. fi
  772. if test ! -r $srcdir/$ac_unique_file; then
  773. if test "$ac_srcdir_defaulted" = yes; then
  774. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  775. { (exit 1); exit 1; }; }
  776. else
  777. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  778. { (exit 1); exit 1; }; }
  779. fi
  780. fi
  781. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  782. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  783. { (exit 1); exit 1; }; }
  784. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  785. ac_env_build_alias_set=${build_alias+set}
  786. ac_env_build_alias_value=$build_alias
  787. ac_cv_env_build_alias_set=${build_alias+set}
  788. ac_cv_env_build_alias_value=$build_alias
  789. ac_env_host_alias_set=${host_alias+set}
  790. ac_env_host_alias_value=$host_alias
  791. ac_cv_env_host_alias_set=${host_alias+set}
  792. ac_cv_env_host_alias_value=$host_alias
  793. ac_env_target_alias_set=${target_alias+set}
  794. ac_env_target_alias_value=$target_alias
  795. ac_cv_env_target_alias_set=${target_alias+set}
  796. ac_cv_env_target_alias_value=$target_alias
  797. ac_env_CC_set=${CC+set}
  798. ac_env_CC_value=$CC
  799. ac_cv_env_CC_set=${CC+set}
  800. ac_cv_env_CC_value=$CC
  801. ac_env_CFLAGS_set=${CFLAGS+set}
  802. ac_env_CFLAGS_value=$CFLAGS
  803. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  804. ac_cv_env_CFLAGS_value=$CFLAGS
  805. ac_env_LDFLAGS_set=${LDFLAGS+set}
  806. ac_env_LDFLAGS_value=$LDFLAGS
  807. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  808. ac_cv_env_LDFLAGS_value=$LDFLAGS
  809. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  810. ac_env_CPPFLAGS_value=$CPPFLAGS
  811. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  812. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  813. ac_env_CPP_set=${CPP+set}
  814. ac_env_CPP_value=$CPP
  815. ac_cv_env_CPP_set=${CPP+set}
  816. ac_cv_env_CPP_value=$CPP
  817. ac_env_CXX_set=${CXX+set}
  818. ac_env_CXX_value=$CXX
  819. ac_cv_env_CXX_set=${CXX+set}
  820. ac_cv_env_CXX_value=$CXX
  821. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  822. ac_env_CXXFLAGS_value=$CXXFLAGS
  823. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  824. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  825. ac_env_CXXCPP_set=${CXXCPP+set}
  826. ac_env_CXXCPP_value=$CXXCPP
  827. ac_cv_env_CXXCPP_set=${CXXCPP+set}
  828. ac_cv_env_CXXCPP_value=$CXXCPP
  829. ac_env_F77_set=${F77+set}
  830. ac_env_F77_value=$F77
  831. ac_cv_env_F77_set=${F77+set}
  832. ac_cv_env_F77_value=$F77
  833. ac_env_FFLAGS_set=${FFLAGS+set}
  834. ac_env_FFLAGS_value=$FFLAGS
  835. ac_cv_env_FFLAGS_set=${FFLAGS+set}
  836. ac_cv_env_FFLAGS_value=$FFLAGS
  837. #
  838. # Report the --help message.
  839. #
  840. if test "$ac_init_help" = "long"; then
  841. # Omit some internal or obsolete options to make the list less imposing.
  842. # This message is too long to be a string in the A/UX 3.1 sh.
  843. cat <<_ACEOF
  844. \`configure' configures expat 2.0.1 to adapt to many kinds of systems.
  845. Usage: $0 [OPTION]... [VAR=VALUE]...
  846. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  847. VAR=VALUE. See below for descriptions of some of the useful variables.
  848. Defaults for the options are specified in brackets.
  849. Configuration:
  850. -h, --help display this help and exit
  851. --help=short display options specific to this package
  852. --help=recursive display the short help of all the included packages
  853. -V, --version display version information and exit
  854. -q, --quiet, --silent do not print \`checking...' messages
  855. --cache-file=FILE cache test results in FILE [disabled]
  856. -C, --config-cache alias for \`--cache-file=config.cache'
  857. -n, --no-create do not create output files
  858. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  859. _ACEOF
  860. cat <<_ACEOF
  861. Installation directories:
  862. --prefix=PREFIX install architecture-independent files in PREFIX
  863. [$ac_default_prefix]
  864. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  865. [PREFIX]
  866. By default, \`make install' will install all the files in
  867. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  868. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  869. for instance \`--prefix=\$HOME'.
  870. For better control, use the options below.
  871. Fine tuning of the installation directories:
  872. --bindir=DIR user executables [EPREFIX/bin]
  873. --sbindir=DIR system admin executables [EPREFIX/sbin]
  874. --libexecdir=DIR program executables [EPREFIX/libexec]
  875. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  876. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  877. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  878. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  879. --libdir=DIR object code libraries [EPREFIX/lib]
  880. --includedir=DIR C header files [PREFIX/include]
  881. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  882. --infodir=DIR info documentation [PREFIX/info]
  883. --mandir=DIR man documentation [PREFIX/man]
  884. _ACEOF
  885. cat <<\_ACEOF
  886. System types:
  887. --build=BUILD configure for building on BUILD [guessed]
  888. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  889. _ACEOF
  890. fi
  891. if test -n "$ac_init_help"; then
  892. case $ac_init_help in
  893. short | recursive ) echo "Configuration of expat 2.0.1:";;
  894. esac
  895. cat <<\_ACEOF
  896. Optional Features:
  897. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  898. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  899. --enable-shared[=PKGS]
  900. build shared libraries [default=yes]
  901. --enable-static[=PKGS]
  902. build static libraries [default=yes]
  903. --enable-fast-install[=PKGS]
  904. optimize for fast installation [default=yes]
  905. --disable-libtool-lock avoid locking (might break parallel builds)
  906. Optional Packages:
  907. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  908. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  909. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  910. --with-pic try to use only PIC/non-PIC objects [default=use
  911. both]
  912. --with-tags[=TAGS]
  913. include additional configurations [automatic]
  914. Some influential environment variables:
  915. CC C compiler command
  916. CFLAGS C compiler flags
  917. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  918. nonstandard directory <lib dir>
  919. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  920. headers in a nonstandard directory <include dir>
  921. CPP C preprocessor
  922. CXX C++ compiler command
  923. CXXFLAGS C++ compiler flags
  924. CXXCPP C++ preprocessor
  925. F77 Fortran 77 compiler command
  926. FFLAGS Fortran 77 compiler flags
  927. Use these variables to override the choices made by `configure' or to help
  928. it to find libraries and programs with nonstandard names/locations.
  929. Report bugs to <expat-bugs@libexpat.org>.
  930. _ACEOF
  931. fi
  932. if test "$ac_init_help" = "recursive"; then
  933. # If there are subdirs, report their specific --help.
  934. ac_popdir=`pwd`
  935. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  936. test -d $ac_dir || continue
  937. ac_builddir=.
  938. if test "$ac_dir" != .; then
  939. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  940. # A "../" for each directory in $ac_dir_suffix.
  941. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  942. else
  943. ac_dir_suffix= ac_top_builddir=
  944. fi
  945. case $srcdir in
  946. .) # No --srcdir option. We are building in place.
  947. ac_srcdir=.
  948. if test -z "$ac_top_builddir"; then
  949. ac_top_srcdir=.
  950. else
  951. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  952. fi ;;
  953. [\\/]* | ?:[\\/]* ) # Absolute path.
  954. ac_srcdir=$srcdir$ac_dir_suffix;
  955. ac_top_srcdir=$srcdir ;;
  956. *) # Relative path.
  957. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  958. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  959. esac
  960. # Do not use `cd foo && pwd` to compute absolute paths, because
  961. # the directories may not exist.
  962. case `pwd` in
  963. .) ac_abs_builddir="$ac_dir";;
  964. *)
  965. case "$ac_dir" in
  966. .) ac_abs_builddir=`pwd`;;
  967. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  968. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  969. esac;;
  970. esac
  971. case $ac_abs_builddir in
  972. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  973. *)
  974. case ${ac_top_builddir}. in
  975. .) ac_abs_top_builddir=$ac_abs_builddir;;
  976. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  977. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  978. esac;;
  979. esac
  980. case $ac_abs_builddir in
  981. .) ac_abs_srcdir=$ac_srcdir;;
  982. *)
  983. case $ac_srcdir in
  984. .) ac_abs_srcdir=$ac_abs_builddir;;
  985. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  986. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  987. esac;;
  988. esac
  989. case $ac_abs_builddir in
  990. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  991. *)
  992. case $ac_top_srcdir in
  993. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  994. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  995. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  996. esac;;
  997. esac
  998. cd $ac_dir
  999. # Check for guested configure; otherwise get Cygnus style configure.
  1000. if test -f $ac_srcdir/configure.gnu; then
  1001. echo
  1002. $SHELL $ac_srcdir/configure.gnu --help=recursive
  1003. elif test -f $ac_srcdir/configure; then
  1004. echo
  1005. $SHELL $ac_srcdir/configure --help=recursive
  1006. elif test -f $ac_srcdir/configure.ac ||
  1007. test -f $ac_srcdir/configure.in; then
  1008. echo
  1009. $ac_configure --help
  1010. else
  1011. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1012. fi
  1013. cd $ac_popdir
  1014. done
  1015. fi
  1016. test -n "$ac_init_help" && exit 0
  1017. if $ac_init_version; then
  1018. cat <<\_ACEOF
  1019. expat configure 2.0.1
  1020. generated by GNU Autoconf 2.59
  1021. Copyright (C) 2003 Free Software Foundation, Inc.
  1022. This configure script is free software; the Free Software Foundation
  1023. gives unlimited permission to copy, distribute and modify it.
  1024. _ACEOF
  1025. exit 0
  1026. fi
  1027. exec 5>config.log
  1028. cat >&5 <<_ACEOF
  1029. This file contains any messages produced by compilers while
  1030. running configure, to aid debugging if configure makes a mistake.
  1031. It was created by expat $as_me 2.0.1, which was
  1032. generated by GNU Autoconf 2.59. Invocation command line was
  1033. $ $0 $@
  1034. _ACEOF
  1035. {
  1036. cat <<_ASUNAME
  1037. ## --------- ##
  1038. ## Platform. ##
  1039. ## --------- ##
  1040. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1041. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1042. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1043. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1044. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1045. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1046. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1047. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1048. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1049. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1050. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1051. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1052. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1053. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1054. _ASUNAME
  1055. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1056. for as_dir in $PATH
  1057. do
  1058. IFS=$as_save_IFS
  1059. test -z "$as_dir" && as_dir=.
  1060. echo "PATH: $as_dir"
  1061. done
  1062. } >&5
  1063. cat >&5 <<_ACEOF
  1064. ## ----------- ##
  1065. ## Core tests. ##
  1066. ## ----------- ##
  1067. _ACEOF
  1068. # Keep a trace of the command line.
  1069. # Strip out --no-create and --no-recursion so they do not pile up.
  1070. # Strip out --silent because we don't want to record it for future runs.
  1071. # Also quote any args containing shell meta-characters.
  1072. # Make two passes to allow for proper duplicate-argument suppression.
  1073. ac_configure_args=
  1074. ac_configure_args0=
  1075. ac_configure_args1=
  1076. ac_sep=
  1077. ac_must_keep_next=false
  1078. for ac_pass in 1 2
  1079. do
  1080. for ac_arg
  1081. do
  1082. case $ac_arg in
  1083. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1084. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1085. | -silent | --silent | --silen | --sile | --sil)
  1086. continue ;;
  1087. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1088. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1089. esac
  1090. case $ac_pass in
  1091. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1092. 2)
  1093. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1094. if test $ac_must_keep_next = true; then
  1095. ac_must_keep_next=false # Got value, back to normal.
  1096. else
  1097. case $ac_arg in
  1098. *=* | --config-cache | -C | -disable-* | --disable-* \
  1099. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1100. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1101. | -with-* | --with-* | -without-* | --without-* | --x)
  1102. case "$ac_configure_args0 " in
  1103. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1104. esac
  1105. ;;
  1106. -* ) ac_must_keep_next=true ;;
  1107. esac
  1108. fi
  1109. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1110. # Get rid of the leading space.
  1111. ac_sep=" "
  1112. ;;
  1113. esac
  1114. done
  1115. done
  1116. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1117. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1118. # When interrupted or exit'd, cleanup temporary files, and complete
  1119. # config.log. We remove comments because anyway the quotes in there
  1120. # would cause problems or look ugly.
  1121. # WARNING: Be sure not to use single quotes in there, as some shells,
  1122. # such as our DU 5.0 friend, will then `close' the trap.
  1123. trap 'exit_status=$?
  1124. # Save into config.log some information that might help in debugging.
  1125. {
  1126. echo
  1127. cat <<\_ASBOX
  1128. ## ---------------- ##
  1129. ## Cache variables. ##
  1130. ## ---------------- ##
  1131. _ASBOX
  1132. echo
  1133. # The following way of writing the cache mishandles newlines in values,
  1134. {
  1135. (set) 2>&1 |
  1136. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1137. *ac_space=\ *)
  1138. sed -n \
  1139. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1140. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1141. ;;
  1142. *)
  1143. sed -n \
  1144. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1145. ;;
  1146. esac;
  1147. }
  1148. echo
  1149. cat <<\_ASBOX
  1150. ## ----------------- ##
  1151. ## Output variables. ##
  1152. ## ----------------- ##
  1153. _ASBOX
  1154. echo
  1155. for ac_var in $ac_subst_vars
  1156. do
  1157. eval ac_val=$`echo $ac_var`
  1158. echo "$ac_var='"'"'$ac_val'"'"'"
  1159. done | sort
  1160. echo
  1161. if test -n "$ac_subst_files"; then
  1162. cat <<\_ASBOX
  1163. ## ------------- ##
  1164. ## Output files. ##
  1165. ## ------------- ##
  1166. _ASBOX
  1167. echo
  1168. for ac_var in $ac_subst_files
  1169. do
  1170. eval ac_val=$`echo $ac_var`
  1171. echo "$ac_var='"'"'$ac_val'"'"'"
  1172. done | sort
  1173. echo
  1174. fi
  1175. if test -s confdefs.h; then
  1176. cat <<\_ASBOX
  1177. ## ----------- ##
  1178. ## confdefs.h. ##
  1179. ## ----------- ##
  1180. _ASBOX
  1181. echo
  1182. sed "/^$/d" confdefs.h | sort
  1183. echo
  1184. fi
  1185. test "$ac_signal" != 0 &&
  1186. echo "$as_me: caught signal $ac_signal"
  1187. echo "$as_me: exit $exit_status"
  1188. } >&5
  1189. rm -f core *.core &&
  1190. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1191. exit $exit_status
  1192. ' 0
  1193. for ac_signal in 1 2 13 15; do
  1194. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1195. done
  1196. ac_signal=0
  1197. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1198. rm -rf conftest* confdefs.h
  1199. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1200. echo >confdefs.h
  1201. # Predefined preprocessor variables.
  1202. cat >>confdefs.h <<_ACEOF
  1203. #define PACKAGE_NAME "$PACKAGE_NAME"
  1204. _ACEOF
  1205. cat >>confdefs.h <<_ACEOF
  1206. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1207. _ACEOF
  1208. cat >>confdefs.h <<_ACEOF
  1209. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1210. _ACEOF
  1211. cat >>confdefs.h <<_ACEOF
  1212. #define PACKAGE_STRING "$PACKAGE_STRING"
  1213. _ACEOF
  1214. cat >>confdefs.h <<_ACEOF
  1215. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1216. _ACEOF
  1217. # Let the site file select an alternate cache file if it wants to.
  1218. # Prefer explicitly selected file to automatically selected ones.
  1219. if test -z "$CONFIG_SITE"; then
  1220. if test "x$prefix" != xNONE; then
  1221. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1222. else
  1223. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1224. fi
  1225. fi
  1226. for ac_site_file in $CONFIG_SITE; do
  1227. if test -r "$ac_site_file"; then
  1228. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1229. echo "$as_me: loading site script $ac_site_file" >&6;}
  1230. sed 's/^/| /' "$ac_site_file" >&5
  1231. . "$ac_site_file"
  1232. fi
  1233. done
  1234. if test -r "$cache_file"; then
  1235. # Some versions of bash will fail to source /dev/null (special
  1236. # files actually), so we avoid doing that.
  1237. if test -f "$cache_file"; then
  1238. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1239. echo "$as_me: loading cache $cache_file" >&6;}
  1240. case $cache_file in
  1241. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1242. *) . ./$cache_file;;
  1243. esac
  1244. fi
  1245. else
  1246. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1247. echo "$as_me: creating cache $cache_file" >&6;}
  1248. >$cache_file
  1249. fi
  1250. # Check that the precious variables saved in the cache have kept the same
  1251. # value.
  1252. ac_cache_corrupted=false
  1253. for ac_var in `(set) 2>&1 |
  1254. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1255. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1256. eval ac_new_set=\$ac_env_${ac_var}_set
  1257. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1258. eval ac_new_val="\$ac_env_${ac_var}_value"
  1259. case $ac_old_set,$ac_new_set in
  1260. set,)
  1261. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1262. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1263. ac_cache_corrupted=: ;;
  1264. ,set)
  1265. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1266. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1267. ac_cache_corrupted=: ;;
  1268. ,);;
  1269. *)
  1270. if test "x$ac_old_val" != "x$ac_new_val"; then
  1271. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1272. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1273. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1274. echo "$as_me: former value: $ac_old_val" >&2;}
  1275. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1276. echo "$as_me: current value: $ac_new_val" >&2;}
  1277. ac_cache_corrupted=:
  1278. fi;;
  1279. esac
  1280. # Pass precious variables to config.status.
  1281. if test "$ac_new_set" = set; then
  1282. case $ac_new_val in
  1283. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1284. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1285. *) ac_arg=$ac_var=$ac_new_val ;;
  1286. esac
  1287. case " $ac_configure_args " in
  1288. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1289. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1290. esac
  1291. fi
  1292. done
  1293. if $ac_cache_corrupted; then
  1294. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1295. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1296. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1297. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1298. { (exit 1); exit 1; }; }
  1299. fi
  1300. ac_ext=c
  1301. ac_cpp='$CPP $CPPFLAGS'
  1302. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1303. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1304. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1305. ac_aux_dir=
  1306. for ac_dir in conftools $srcdir/conftools; do
  1307. if test -f $ac_dir/install-sh; then
  1308. ac_aux_dir=$ac_dir
  1309. ac_install_sh="$ac_aux_dir/install-sh -c"
  1310. break
  1311. elif test -f $ac_dir/install.sh; then
  1312. ac_aux_dir=$ac_dir
  1313. ac_install_sh="$ac_aux_dir/install.sh -c"
  1314. break
  1315. elif test -f $ac_dir/shtool; then
  1316. ac_aux_dir=$ac_dir
  1317. ac_install_sh="$ac_aux_dir/shtool install -c"
  1318. break
  1319. fi
  1320. done
  1321. if test -z "$ac_aux_dir"; then
  1322. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in conftools $srcdir/conftools" >&5
  1323. echo "$as_me: error: cannot find install-sh or install.sh in conftools $srcdir/conftools" >&2;}
  1324. { (exit 1); exit 1; }; }
  1325. fi
  1326. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1327. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1328. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1329. LIBCURRENT=6
  1330. LIBREVISION=2
  1331. LIBAGE=5
  1332. ac_config_headers="$ac_config_headers expat_config.h"
  1333. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  1334. ## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
  1335. ## Free Software Foundation, Inc.
  1336. ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  1337. ##
  1338. ## This file is free software; the Free Software Foundation gives
  1339. ## unlimited permission to copy and/or distribute it, with or without
  1340. ## modifications, as long as this notice is preserved.
  1341. # serial 48 AC_PROG_LIBTOOL
  1342. # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  1343. # -----------------------------------------------------------
  1344. # If this macro is not defined by Autoconf, define it here.
  1345. # AC_PROG_LIBTOOL
  1346. # ---------------
  1347. # AC_PROG_LIBTOOL
  1348. # _AC_PROG_LIBTOOL
  1349. # ----------------
  1350. # _AC_PROG_LIBTOOL
  1351. # AC_LIBTOOL_SETUP
  1352. # ----------------
  1353. # AC_LIBTOOL_SETUP
  1354. # _LT_AC_SYS_COMPILER
  1355. # -------------------
  1356. # _LT_AC_SYS_COMPILER
  1357. # _LT_CC_BASENAME(CC)
  1358. # -------------------
  1359. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  1360. # _LT_COMPILER_BOILERPLATE
  1361. # ------------------------
  1362. # Check for compiler boilerplate output or warnings with
  1363. # the simple compiler test code.
  1364. # _LT_COMPILER_BOILERPLATE
  1365. # _LT_LINKER_BOILERPLATE
  1366. # ----------------------
  1367. # Check for linker boilerplate output or warnings with
  1368. # the simple link test code.
  1369. # _LT_LINKER_BOILERPLATE
  1370. # _LT_AC_SYS_LIBPATH_AIX
  1371. # ----------------------
  1372. # Links a minimal program and checks the executable
  1373. # for the system default hardcoded library path. In most cases,
  1374. # this is /usr/lib:/lib, but when the MPI compilers are used
  1375. # the location of the communication and MPI libs are included too.
  1376. # If we don't find anything, use the default library path according
  1377. # to the aix ld manual.
  1378. # _LT_AC_SYS_LIBPATH_AIX
  1379. # _LT_AC_SHELL_INIT(ARG)
  1380. # ----------------------
  1381. # _LT_AC_SHELL_INIT
  1382. # _LT_AC_PROG_ECHO_BACKSLASH
  1383. # --------------------------
  1384. # Add some code to the start of the generated configure script which
  1385. # will find an echo command which doesn't interpret backslashes.
  1386. # _LT_AC_PROG_ECHO_BACKSLASH
  1387. # _LT_AC_LOCK
  1388. # -----------
  1389. # _LT_AC_LOCK
  1390. # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1391. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1392. # ----------------------------------------------------------------
  1393. # Check whether the given compiler option works
  1394. # AC_LIBTOOL_COMPILER_OPTION
  1395. # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1396. # [ACTION-SUCCESS], [ACTION-FAILURE])
  1397. # ------------------------------------------------------------
  1398. # Check whether the given compiler option works
  1399. # AC_LIBTOOL_LINKER_OPTION
  1400. # AC_LIBTOOL_SYS_MAX_CMD_LEN
  1401. # --------------------------
  1402. # AC_LIBTOOL_SYS_MAX_CMD_LEN
  1403. # _LT_AC_CHECK_DLFCN
  1404. # ------------------
  1405. # _LT_AC_CHECK_DLFCN
  1406. # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1407. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1408. # ---------------------------------------------------------------------
  1409. # _LT_AC_TRY_DLOPEN_SELF
  1410. # AC_LIBTOOL_DLOPEN_SELF
  1411. # ----------------------
  1412. # AC_LIBTOOL_DLOPEN_SELF
  1413. # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  1414. # ---------------------------------
  1415. # Check to see if options -c and -o are simultaneously supported by compiler
  1416. # AC_LIBTOOL_PROG_CC_C_O
  1417. # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  1418. # -----------------------------------------
  1419. # Check to see if we can do hard links to lock some files if needed
  1420. # AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  1421. # AC_LIBTOOL_OBJDIR
  1422. # -----------------
  1423. # AC_LIBTOOL_OBJDIR
  1424. # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  1425. # ----------------------------------------------
  1426. # Check hardcoding attributes.
  1427. # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  1428. # AC_LIBTOOL_SYS_LIB_STRIP
  1429. # ------------------------
  1430. # AC_LIBTOOL_SYS_LIB_STRIP
  1431. # AC_LIBTOOL_SYS_DYNAMIC_LINKER
  1432. # -----------------------------
  1433. # PORTME Fill in your ld.so characteristics
  1434. # AC_LIBTOOL_SYS_DYNAMIC_LINKER
  1435. # _LT_AC_TAGCONFIG
  1436. # ----------------
  1437. # _LT_AC_TAGCONFIG
  1438. # AC_LIBTOOL_DLOPEN
  1439. # -----------------
  1440. # enable checks for dlopen support
  1441. # AC_LIBTOOL_DLOPEN
  1442. # AC_LIBTOOL_WIN32_DLL
  1443. # --------------------
  1444. # declare package support for building win32 DLLs
  1445. # AC_LIBTOOL_WIN32_DLL
  1446. # AC_ENABLE_SHARED([DEFAULT])
  1447. # ---------------------------
  1448. # implement the --enable-shared flag
  1449. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  1450. # AC_ENABLE_SHARED
  1451. # AC_DISABLE_SHARED
  1452. # -----------------
  1453. # set the default shared flag to --disable-shared
  1454. # AC_DISABLE_SHARED
  1455. # AC_ENABLE_STATIC([DEFAULT])
  1456. # ---------------------------
  1457. # implement the --enable-static flag
  1458. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  1459. # AC_ENABLE_STATIC
  1460. # AC_DISABLE_STATIC
  1461. # -----------------
  1462. # set the default static flag to --disable-static
  1463. # AC_DISABLE_STATIC
  1464. # AC_ENABLE_FAST_INSTALL([DEFAULT])
  1465. # ---------------------------------
  1466. # implement the --enable-fast-install flag
  1467. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  1468. # AC_ENABLE_FAST_INSTALL
  1469. # AC_DISABLE_FAST_INSTALL
  1470. # -----------------------
  1471. # set the default to --disable-fast-install
  1472. # AC_DISABLE_FAST_INSTALL
  1473. # AC_LIBTOOL_PICMODE([MODE])
  1474. # --------------------------
  1475. # implement the --with-pic flag
  1476. # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  1477. # AC_LIBTOOL_PICMODE
  1478. # AC_PROG_EGREP
  1479. # -------------
  1480. # This is predefined starting with Autoconf 2.54, so this conditional
  1481. # definition can be removed once we require Autoconf 2.54 or later.
  1482. # AC_PATH_TOOL_PREFIX
  1483. # -------------------
  1484. # find a file program which can recognise shared library
  1485. # AC_PATH_TOOL_PREFIX
  1486. # AC_PATH_MAGIC
  1487. # -------------
  1488. # find a file program which can recognise a shared library
  1489. # AC_PATH_MAGIC
  1490. # AC_PROG_LD
  1491. # ----------
  1492. # find the pathname to the GNU or non-GNU linker
  1493. # AC_PROG_LD
  1494. # AC_PROG_LD_GNU
  1495. # --------------
  1496. # AC_PROG_LD_GNU
  1497. # AC_PROG_LD_RELOAD_FLAG
  1498. # ----------------------
  1499. # find reload flag for linker
  1500. # -- PORTME Some linkers may need a different reload flag.
  1501. # AC_PROG_LD_RELOAD_FLAG
  1502. # AC_DEPLIBS_CHECK_METHOD
  1503. # -----------------------
  1504. # how to check for library dependencies
  1505. # -- PORTME fill in with the dynamic library characteristics
  1506. # AC_DEPLIBS_CHECK_METHOD
  1507. # AC_PROG_NM
  1508. # ----------
  1509. # find the pathname to a BSD-compatible name lister
  1510. # AC_PROG_NM
  1511. # AC_CHECK_LIBM
  1512. # -------------
  1513. # check for math library
  1514. # AC_CHECK_LIBM
  1515. # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  1516. # -----------------------------------
  1517. # sets LIBLTDL to the link flags for the libltdl convenience library and
  1518. # LTDLINCL to the include flags for the libltdl header and adds
  1519. # --enable-ltdl-convenience to the configure arguments. Note that
  1520. # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  1521. # it is assumed to be `libltdl'. LIBLTDL will be prefixed with
  1522. # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
  1523. # (note the single quotes!). If your package is not flat and you're not
  1524. # using automake, define top_builddir and top_srcdir appropriately in
  1525. # the Makefiles.
  1526. # AC_LIBLTDL_CONVENIENCE
  1527. # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  1528. # -----------------------------------
  1529. # sets LIBLTDL to the link flags for the libltdl installable library and
  1530. # LTDLINCL to the include flags for the libltdl header and adds
  1531. # --enable-ltdl-install to the configure arguments. Note that
  1532. # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  1533. # and an installed libltdl is not found, it is assumed to be `libltdl'.
  1534. # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
  1535. # '${top_srcdir}/' (note the single quotes!). If your package is not
  1536. # flat and you're not using automake, define top_builddir and top_srcdir
  1537. # appropriately in the Makefiles.
  1538. # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  1539. # AC_LIBLTDL_INSTALLABLE
  1540. # AC_LIBTOOL_CXX
  1541. # --------------
  1542. # enable support for C++ libraries
  1543. # AC_LIBTOOL_CXX
  1544. # _LT_AC_LANG_CXX
  1545. # ---------------
  1546. # _LT_AC_LANG_CXX
  1547. # _LT_AC_PROG_CXXCPP
  1548. # ------------------
  1549. # _LT_AC_PROG_CXXCPP
  1550. # AC_LIBTOOL_F77
  1551. # --------------
  1552. # enable support for Fortran 77 libraries
  1553. # AC_LIBTOOL_F77
  1554. # _LT_AC_LANG_F77
  1555. # ---------------
  1556. # _LT_AC_LANG_F77
  1557. # AC_LIBTOOL_GCJ
  1558. # --------------
  1559. # enable support for GCJ libraries
  1560. # AC_LIBTOOL_GCJ
  1561. # _LT_AC_LANG_GCJ
  1562. # ---------------
  1563. # _LT_AC_LANG_GCJ
  1564. # AC_LIBTOOL_RC
  1565. # -------------
  1566. # enable support for Windows resource files
  1567. # AC_LIBTOOL_RC
  1568. # AC_LIBTOOL_LANG_C_CONFIG
  1569. # ------------------------
  1570. # Ensure that the configuration vars for the C compiler are
  1571. # suitably defined. Those variables are subsequently used by
  1572. # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  1573. # AC_LIBTOOL_LANG_C_CONFIG
  1574. # AC_LIBTOOL_LANG_CXX_CONFIG
  1575. # --------------------------
  1576. # Ensure that the configuration vars for the C compiler are
  1577. # suitably defined. Those variables are subsequently used by
  1578. # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  1579. # AC_LIBTOOL_LANG_CXX_CONFIG
  1580. # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  1581. # ------------------------------------
  1582. # Figure out "hidden" library dependencies from verbose
  1583. # compiler output when linking a shared library.
  1584. # Parse the compiler output and extract the necessary
  1585. # objects, libraries and library flags.
  1586. # AC_LIBTOOL_POSTDEP_PREDEP
  1587. # AC_LIBTOOL_LANG_F77_CONFIG
  1588. # --------------------------
  1589. # Ensure that the configuration vars for the C compiler are
  1590. # suitably defined. Those variables are subsequently used by
  1591. # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  1592. # AC_LIBTOOL_LANG_F77_CONFIG
  1593. # AC_LIBTOOL_LANG_GCJ_CONFIG
  1594. # --------------------------
  1595. # Ensure that the configuration vars for the C compiler are
  1596. # suitably defined. Those variables are subsequently used by
  1597. # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  1598. # AC_LIBTOOL_LANG_GCJ_CONFIG
  1599. # AC_LIBTOOL_LANG_RC_CONFIG
  1600. # -------------------------
  1601. # Ensure that the configuration vars for the Windows resource compiler are
  1602. # suitably defined. Those variables are subsequently used by
  1603. # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  1604. # AC_LIBTOOL_LANG_RC_CONFIG
  1605. # AC_LIBTOOL_CONFIG([TAGNAME])
  1606. # ----------------------------
  1607. # If TAGNAME is not passed, then create an initial libtool script
  1608. # with a default configuration from the untagged config vars. Otherwise
  1609. # add code to config.status for appending the configuration named by
  1610. # TAGNAME from the matching tagged config vars.
  1611. # AC_LIBTOOL_CONFIG
  1612. # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  1613. # -------------------------------------------
  1614. # AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  1615. # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  1616. # ---------------------------------
  1617. # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  1618. # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  1619. # ---------------------------------------
  1620. # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  1621. # ------------------------------------
  1622. # See if the linker supports building shared libraries.
  1623. # AC_LIBTOOL_PROG_LD_SHLIBS
  1624. # _LT_AC_FILE_LTDLL_C
  1625. # -------------------
  1626. # Be careful that the start marker always follows a newline.
  1627. # _LT_AC_FILE_LTDLL_C
  1628. # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  1629. # ---------------------------------
  1630. # old names
  1631. # This is just to silence aclocal about the macro not being used
  1632. ############################################################
  1633. # NOTE: This macro has been submitted for inclusion into #
  1634. # GNU Autoconf as AC_PROG_SED. When it is available in #
  1635. # a released version of Autoconf we should remove this #
  1636. # macro and use it instead. #
  1637. ############################################################
  1638. # LT_AC_PROG_SED
  1639. # --------------
  1640. # Check for a fully-functional sed program, that truncates
  1641. # as few characters as possible. Prefer GNU sed if found.
  1642. # Check whether --enable-shared or --disable-shared was given.
  1643. if test "${enable_shared+set}" = set; then
  1644. enableval="$enable_shared"
  1645. p=${PACKAGE-default}
  1646. case $enableval in
  1647. yes) enable_shared=yes ;;
  1648. no) enable_shared=no ;;
  1649. *)
  1650. enable_shared=no
  1651. # Look at the argument we got. We use all the common list separators.
  1652. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1653. for pkg in $enableval; do
  1654. IFS="$lt_save_ifs"
  1655. if test "X$pkg" = "X$p"; then
  1656. enable_shared=yes
  1657. fi
  1658. done
  1659. IFS="$lt_save_ifs"
  1660. ;;
  1661. esac
  1662. else
  1663. enable_shared=yes
  1664. fi;
  1665. # Check whether --enable-static or --disable-static was given.
  1666. if test "${enable_static+set}" = set; then
  1667. enableval="$enable_static"
  1668. p=${PACKAGE-default}
  1669. case $enableval in
  1670. yes) enable_static=yes ;;
  1671. no) enable_static=no ;;
  1672. *)
  1673. enable_static=no
  1674. # Look at the argument we got. We use all the common list separators.
  1675. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1676. for pkg in $enableval; do
  1677. IFS="$lt_save_ifs"
  1678. if test "X$pkg" = "X$p"; then
  1679. enable_static=yes
  1680. fi
  1681. done
  1682. IFS="$lt_save_ifs"
  1683. ;;
  1684. esac
  1685. else
  1686. enable_static=yes
  1687. fi;
  1688. # Check whether --enable-fast-install or --disable-fast-install was given.
  1689. if test "${enable_fast_install+set}" = set; then
  1690. enableval="$enable_fast_install"
  1691. p=${PACKAGE-default}
  1692. case $enableval in
  1693. yes) enable_fast_install=yes ;;
  1694. no) enable_fast_install=no ;;
  1695. *)
  1696. enable_fast_install=no
  1697. # Look at the argument we got. We use all the common list separators.
  1698. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1699. for pkg in $enableval; do
  1700. IFS="$lt_save_ifs"
  1701. if test "X$pkg" = "X$p"; then
  1702. enable_fast_install=yes
  1703. fi
  1704. done
  1705. IFS="$lt_save_ifs"
  1706. ;;
  1707. esac
  1708. else
  1709. enable_fast_install=yes
  1710. fi;
  1711. # Make sure we can run config.sub.
  1712. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1713. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1714. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1715. { (exit 1); exit 1; }; }
  1716. echo "$as_me:$LINENO: checking build system type" >&5
  1717. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1718. if test "${ac_cv_build+set}" = set; then
  1719. echo $ECHO_N "(cached) $ECHO_C" >&6
  1720. else
  1721. ac_cv_build_alias=$build_alias
  1722. test -z "$ac_cv_build_alias" &&
  1723. ac_cv_build_alias=`$ac_config_guess`
  1724. test -z "$ac_cv_build_alias" &&
  1725. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1726. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1727. { (exit 1); exit 1; }; }
  1728. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1729. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1730. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1731. { (exit 1); exit 1; }; }
  1732. fi
  1733. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1734. echo "${ECHO_T}$ac_cv_build" >&6
  1735. build=$ac_cv_build
  1736. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1737. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1738. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1739. echo "$as_me:$LINENO: checking host system type" >&5
  1740. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1741. if test "${ac_cv_host+set}" = set; then
  1742. echo $ECHO_N "(cached) $ECHO_C" >&6
  1743. else
  1744. ac_cv_host_alias=$host_alias
  1745. test -z "$ac_cv_host_alias" &&
  1746. ac_cv_host_alias=$ac_cv_build_alias
  1747. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1748. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1749. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1750. { (exit 1); exit 1; }; }
  1751. fi
  1752. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1753. echo "${ECHO_T}$ac_cv_host" >&6
  1754. host=$ac_cv_host
  1755. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1756. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1757. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1758. ac_ext=c
  1759. ac_cpp='$CPP $CPPFLAGS'
  1760. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1761. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1762. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1763. if test -n "$ac_tool_prefix"; then
  1764. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1765. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1766. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1767. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1768. if test "${ac_cv_prog_CC+set}" = set; then
  1769. echo $ECHO_N "(cached) $ECHO_C" >&6
  1770. else
  1771. if test -n "$CC"; then
  1772. ac_cv_prog_CC="$CC" # Let the user override the test.
  1773. else
  1774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1775. for as_dir in $PATH
  1776. do
  1777. IFS=$as_save_IFS
  1778. test -z "$as_dir" && as_dir=.
  1779. for ac_exec_ext in '' $ac_executable_extensions; do
  1780. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1781. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1782. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1783. break 2
  1784. fi
  1785. done
  1786. done
  1787. fi
  1788. fi
  1789. CC=$ac_cv_prog_CC
  1790. if test -n "$CC"; then
  1791. echo "$as_me:$LINENO: result: $CC" >&5
  1792. echo "${ECHO_T}$CC" >&6
  1793. else
  1794. echo "$as_me:$LINENO: result: no" >&5
  1795. echo "${ECHO_T}no" >&6
  1796. fi
  1797. fi
  1798. if test -z "$ac_cv_prog_CC"; then
  1799. ac_ct_CC=$CC
  1800. # Extract the first word of "gcc", so it can be a program name with args.
  1801. set dummy gcc; ac_word=$2
  1802. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1803. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1804. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1805. echo $ECHO_N "(cached) $ECHO_C" >&6
  1806. else
  1807. if test -n "$ac_ct_CC"; then
  1808. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1809. else
  1810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1811. for as_dir in $PATH
  1812. do
  1813. IFS=$as_save_IFS
  1814. test -z "$as_dir" && as_dir=.
  1815. for ac_exec_ext in '' $ac_executable_extensions; do
  1816. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1817. ac_cv_prog_ac_ct_CC="gcc"
  1818. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1819. break 2
  1820. fi
  1821. done
  1822. done
  1823. fi
  1824. fi
  1825. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1826. if test -n "$ac_ct_CC"; then
  1827. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1828. echo "${ECHO_T}$ac_ct_CC" >&6
  1829. else
  1830. echo "$as_me:$LINENO: result: no" >&5
  1831. echo "${ECHO_T}no" >&6
  1832. fi
  1833. CC=$ac_ct_CC
  1834. else
  1835. CC="$ac_cv_prog_CC"
  1836. fi
  1837. if test -z "$CC"; then
  1838. if test -n "$ac_tool_prefix"; then
  1839. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1840. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1841. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1842. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1843. if test "${ac_cv_prog_CC+set}" = set; then
  1844. echo $ECHO_N "(cached) $ECHO_C" >&6
  1845. else
  1846. if test -n "$CC"; then
  1847. ac_cv_prog_CC="$CC" # Let the user override the test.
  1848. else
  1849. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1850. for as_dir in $PATH
  1851. do
  1852. IFS=$as_save_IFS
  1853. test -z "$as_dir" && as_dir=.
  1854. for ac_exec_ext in '' $ac_executable_extensions; do
  1855. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1856. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1857. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1858. break 2
  1859. fi
  1860. done
  1861. done
  1862. fi
  1863. fi
  1864. CC=$ac_cv_prog_CC
  1865. if test -n "$CC"; then
  1866. echo "$as_me:$LINENO: result: $CC" >&5
  1867. echo "${ECHO_T}$CC" >&6
  1868. else
  1869. echo "$as_me:$LINENO: result: no" >&5
  1870. echo "${ECHO_T}no" >&6
  1871. fi
  1872. fi
  1873. if test -z "$ac_cv_prog_CC"; then
  1874. ac_ct_CC=$CC
  1875. # Extract the first word of "cc", so it can be a program name with args.
  1876. set dummy cc; ac_word=$2
  1877. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1878. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1879. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1880. echo $ECHO_N "(cached) $ECHO_C" >&6
  1881. else
  1882. if test -n "$ac_ct_CC"; then
  1883. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1884. else
  1885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1886. for as_dir in $PATH
  1887. do
  1888. IFS=$as_save_IFS
  1889. test -z "$as_dir" && as_dir=.
  1890. for ac_exec_ext in '' $ac_executable_extensions; do
  1891. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1892. ac_cv_prog_ac_ct_CC="cc"
  1893. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1894. break 2
  1895. fi
  1896. done
  1897. done
  1898. fi
  1899. fi
  1900. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1901. if test -n "$ac_ct_CC"; then
  1902. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1903. echo "${ECHO_T}$ac_ct_CC" >&6
  1904. else
  1905. echo "$as_me:$LINENO: result: no" >&5
  1906. echo "${ECHO_T}no" >&6
  1907. fi
  1908. CC=$ac_ct_CC
  1909. else
  1910. CC="$ac_cv_prog_CC"
  1911. fi
  1912. fi
  1913. if test -z "$CC"; then
  1914. # Extract the first word of "cc", so it can be a program name with args.
  1915. set dummy cc; ac_word=$2
  1916. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1917. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1918. if test "${ac_cv_prog_CC+set}" = set; then
  1919. echo $ECHO_N "(cached) $ECHO_C" >&6
  1920. else
  1921. if test -n "$CC"; then
  1922. ac_cv_prog_CC="$CC" # Let the user override the test.
  1923. else
  1924. ac_prog_rejected=no
  1925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1926. for as_dir in $PATH
  1927. do
  1928. IFS=$as_save_IFS
  1929. test -z "$as_dir" && as_dir=.
  1930. for ac_exec_ext in '' $ac_executable_extensions; do
  1931. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1932. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1933. ac_prog_rejected=yes
  1934. continue
  1935. fi
  1936. ac_cv_prog_CC="cc"
  1937. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1938. break 2
  1939. fi
  1940. done
  1941. done
  1942. if test $ac_prog_rejected = yes; then
  1943. # We found a bogon in the path, so make sure we never use it.
  1944. set dummy $ac_cv_prog_CC
  1945. shift
  1946. if test $# != 0; then
  1947. # We chose a different compiler from the bogus one.
  1948. # However, it has the same basename, so the bogon will be chosen
  1949. # first if we set CC to just the basename; use the full file name.
  1950. shift
  1951. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1952. fi
  1953. fi
  1954. fi
  1955. fi
  1956. CC=$ac_cv_prog_CC
  1957. if test -n "$CC"; then
  1958. echo "$as_me:$LINENO: result: $CC" >&5
  1959. echo "${ECHO_T}$CC" >&6
  1960. else
  1961. echo "$as_me:$LINENO: result: no" >&5
  1962. echo "${ECHO_T}no" >&6
  1963. fi
  1964. fi
  1965. if test -z "$CC"; then
  1966. if test -n "$ac_tool_prefix"; then
  1967. for ac_prog in cl
  1968. do
  1969. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1970. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1971. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1972. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1973. if test "${ac_cv_prog_CC+set}" = set; then
  1974. echo $ECHO_N "(cached) $ECHO_C" >&6
  1975. else
  1976. if test -n "$CC"; then
  1977. ac_cv_prog_CC="$CC" # Let the user override the test.
  1978. else
  1979. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1980. for as_dir in $PATH
  1981. do
  1982. IFS=$as_save_IFS
  1983. test -z "$as_dir" && as_dir=.
  1984. for ac_exec_ext in '' $ac_executable_extensions; do
  1985. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1986. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1987. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1988. break 2
  1989. fi
  1990. done
  1991. done
  1992. fi
  1993. fi
  1994. CC=$ac_cv_prog_CC
  1995. if test -n "$CC"; then
  1996. echo "$as_me:$LINENO: result: $CC" >&5
  1997. echo "${ECHO_T}$CC" >&6
  1998. else
  1999. echo "$as_me:$LINENO: result: no" >&5
  2000. echo "${ECHO_T}no" >&6
  2001. fi
  2002. test -n "$CC" && break
  2003. done
  2004. fi
  2005. if test -z "$CC"; then
  2006. ac_ct_CC=$CC
  2007. for ac_prog in cl
  2008. do
  2009. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2010. set dummy $ac_prog; ac_word=$2
  2011. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2012. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2013. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2014. echo $ECHO_N "(cached) $ECHO_C" >&6
  2015. else
  2016. if test -n "$ac_ct_CC"; then
  2017. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2018. else
  2019. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2020. for as_dir in $PATH
  2021. do
  2022. IFS=$as_save_IFS
  2023. test -z "$as_dir" && as_dir=.
  2024. for ac_exec_ext in '' $ac_executable_extensions; do
  2025. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2026. ac_cv_prog_ac_ct_CC="$ac_prog"
  2027. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2028. break 2
  2029. fi
  2030. done
  2031. done
  2032. fi
  2033. fi
  2034. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2035. if test -n "$ac_ct_CC"; then
  2036. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2037. echo "${ECHO_T}$ac_ct_CC" >&6
  2038. else
  2039. echo "$as_me:$LINENO: result: no" >&5
  2040. echo "${ECHO_T}no" >&6
  2041. fi
  2042. test -n "$ac_ct_CC" && break
  2043. done
  2044. CC=$ac_ct_CC
  2045. fi
  2046. fi
  2047. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2048. See \`config.log' for more details." >&5
  2049. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2050. See \`config.log' for more details." >&2;}
  2051. { (exit 1); exit 1; }; }
  2052. # Provide some information about the compiler.
  2053. echo "$as_me:$LINENO:" \
  2054. "checking for C compiler version" >&5
  2055. ac_compiler=`set X $ac_compile; echo $2`
  2056. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2057. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2058. ac_status=$?
  2059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2060. (exit $ac_status); }
  2061. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2062. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2063. ac_status=$?
  2064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2065. (exit $ac_status); }
  2066. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2067. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2068. ac_status=$?
  2069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2070. (exit $ac_status); }
  2071. cat >conftest.$ac_ext <<_ACEOF
  2072. /* confdefs.h. */
  2073. _ACEOF
  2074. cat confdefs.h >>conftest.$ac_ext
  2075. cat >>conftest.$ac_ext <<_ACEOF
  2076. /* end confdefs.h. */
  2077. int
  2078. main ()
  2079. {
  2080. ;
  2081. return 0;
  2082. }
  2083. _ACEOF
  2084. ac_clean_files_save=$ac_clean_files
  2085. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2086. # Try to create an executable without -o first, disregard a.out.
  2087. # It will help us diagnose broken compilers, and finding out an intuition
  2088. # of exeext.
  2089. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2090. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  2091. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2092. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  2093. (eval $ac_link_default) 2>&5
  2094. ac_status=$?
  2095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2096. (exit $ac_status); }; then
  2097. # Find the output, starting from the most likely. This scheme is
  2098. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  2099. # resort.
  2100. # Be careful to initialize this variable, since it used to be cached.
  2101. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  2102. ac_cv_exeext=
  2103. # b.out is created by i960 compilers.
  2104. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  2105. do
  2106. test -f "$ac_file" || continue
  2107. case $ac_file in
  2108. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  2109. ;;
  2110. conftest.$ac_ext )
  2111. # This is the source file.
  2112. ;;
  2113. [ab].out )
  2114. # We found the default executable, but exeext='' is most
  2115. # certainly right.
  2116. break;;
  2117. *.* )
  2118. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2119. # FIXME: I believe we export ac_cv_exeext for Libtool,
  2120. # but it would be cool to find out if it's true. Does anybody
  2121. # maintain Libtool? --akim.
  2122. export ac_cv_exeext
  2123. break;;
  2124. * )
  2125. break;;
  2126. esac
  2127. done
  2128. else
  2129. echo "$as_me: failed program was:" >&5
  2130. sed 's/^/| /' conftest.$ac_ext >&5
  2131. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2132. See \`config.log' for more details." >&5
  2133. echo "$as_me: error: C compiler cannot create executables
  2134. See \`config.log' for more details." >&2;}
  2135. { (exit 77); exit 77; }; }
  2136. fi
  2137. ac_exeext=$ac_cv_exeext
  2138. echo "$as_me:$LINENO: result: $ac_file" >&5
  2139. echo "${ECHO_T}$ac_file" >&6
  2140. # Check the compiler produces executables we can run. If not, either
  2141. # the compiler is broken, or we cross compile.
  2142. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2143. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  2144. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2145. # If not cross compiling, check that we can run a simple program.
  2146. if test "$cross_compiling" != yes; then
  2147. if { ac_try='./$ac_file'
  2148. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2149. (eval $ac_try) 2>&5
  2150. ac_status=$?
  2151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2152. (exit $ac_status); }; }; then
  2153. cross_compiling=no
  2154. else
  2155. if test "$cross_compiling" = maybe; then
  2156. cross_compiling=yes
  2157. else
  2158. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2159. If you meant to cross compile, use \`--host'.
  2160. See \`config.log' for more details." >&5
  2161. echo "$as_me: error: cannot run C compiled programs.
  2162. If you meant to cross compile, use \`--host'.
  2163. See \`config.log' for more details." >&2;}
  2164. { (exit 1); exit 1; }; }
  2165. fi
  2166. fi
  2167. fi
  2168. echo "$as_me:$LINENO: result: yes" >&5
  2169. echo "${ECHO_T}yes" >&6
  2170. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2171. ac_clean_files=$ac_clean_files_save
  2172. # Check the compiler produces executables we can run. If not, either
  2173. # the compiler is broken, or we cross compile.
  2174. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2175. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2176. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2177. echo "${ECHO_T}$cross_compiling" >&6
  2178. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2179. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2180. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2181. (eval $ac_link) 2>&5
  2182. ac_status=$?
  2183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2184. (exit $ac_status); }; then
  2185. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2186. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2187. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2188. # `rm'.
  2189. for ac_file in conftest.exe conftest conftest.*; do
  2190. test -f "$ac_file" || continue
  2191. case $ac_file in
  2192. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2193. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2194. export ac_cv_exeext
  2195. break;;
  2196. * ) break;;
  2197. esac
  2198. done
  2199. else
  2200. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2201. See \`config.log' for more details." >&5
  2202. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2203. See \`config.log' for more details." >&2;}
  2204. { (exit 1); exit 1; }; }
  2205. fi
  2206. rm -f conftest$ac_cv_exeext
  2207. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2208. echo "${ECHO_T}$ac_cv_exeext" >&6
  2209. rm -f conftest.$ac_ext
  2210. EXEEXT=$ac_cv_exeext
  2211. ac_exeext=$EXEEXT
  2212. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2213. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2214. if test "${ac_cv_objext+set}" = set; then
  2215. echo $ECHO_N "(cached) $ECHO_C" >&6
  2216. else
  2217. cat >conftest.$ac_ext <<_ACEOF
  2218. /* confdefs.h. */
  2219. _ACEOF
  2220. cat confdefs.h >>conftest.$ac_ext
  2221. cat >>conftest.$ac_ext <<_ACEOF
  2222. /* end confdefs.h. */
  2223. int
  2224. main ()
  2225. {
  2226. ;
  2227. return 0;
  2228. }
  2229. _ACEOF
  2230. rm -f conftest.o conftest.obj
  2231. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2232. (eval $ac_compile) 2>&5
  2233. ac_status=$?
  2234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2235. (exit $ac_status); }; then
  2236. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2237. case $ac_file in
  2238. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2239. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2240. break;;
  2241. esac
  2242. done
  2243. else
  2244. echo "$as_me: failed program was:" >&5
  2245. sed 's/^/| /' conftest.$ac_ext >&5
  2246. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2247. See \`config.log' for more details." >&5
  2248. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2249. See \`config.log' for more details." >&2;}
  2250. { (exit 1); exit 1; }; }
  2251. fi
  2252. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2253. fi
  2254. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2255. echo "${ECHO_T}$ac_cv_objext" >&6
  2256. OBJEXT=$ac_cv_objext
  2257. ac_objext=$OBJEXT
  2258. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2259. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2260. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2261. echo $ECHO_N "(cached) $ECHO_C" >&6
  2262. else
  2263. cat >conftest.$ac_ext <<_ACEOF
  2264. /* confdefs.h. */
  2265. _ACEOF
  2266. cat confdefs.h >>conftest.$ac_ext
  2267. cat >>conftest.$ac_ext <<_ACEOF
  2268. /* end confdefs.h. */
  2269. int
  2270. main ()
  2271. {
  2272. #ifndef __GNUC__
  2273. choke me
  2274. #endif
  2275. ;
  2276. return 0;
  2277. }
  2278. _ACEOF
  2279. rm -f conftest.$ac_objext
  2280. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2281. (eval $ac_compile) 2>conftest.er1
  2282. ac_status=$?
  2283. grep -v '^ *+' conftest.er1 >conftest.err
  2284. rm -f conftest.er1
  2285. cat conftest.err >&5
  2286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2287. (exit $ac_status); } &&
  2288. { ac_try='test -z "$ac_c_werror_flag"
  2289. || test ! -s conftest.err'
  2290. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2291. (eval $ac_try) 2>&5
  2292. ac_status=$?
  2293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2294. (exit $ac_status); }; } &&
  2295. { ac_try='test -s conftest.$ac_objext'
  2296. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2297. (eval $ac_try) 2>&5
  2298. ac_status=$?
  2299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2300. (exit $ac_status); }; }; then
  2301. ac_compiler_gnu=yes
  2302. else
  2303. echo "$as_me: failed program was:" >&5
  2304. sed 's/^/| /' conftest.$ac_ext >&5
  2305. ac_compiler_gnu=no
  2306. fi
  2307. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2308. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2309. fi
  2310. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2311. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2312. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2313. ac_test_CFLAGS=${CFLAGS+set}
  2314. ac_save_CFLAGS=$CFLAGS
  2315. CFLAGS="-g"
  2316. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2317. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2318. if test "${ac_cv_prog_cc_g+set}" = set; then
  2319. echo $ECHO_N "(cached) $ECHO_C" >&6
  2320. else
  2321. cat >conftest.$ac_ext <<_ACEOF
  2322. /* confdefs.h. */
  2323. _ACEOF
  2324. cat confdefs.h >>conftest.$ac_ext
  2325. cat >>conftest.$ac_ext <<_ACEOF
  2326. /* end confdefs.h. */
  2327. int
  2328. main ()
  2329. {
  2330. ;
  2331. return 0;
  2332. }
  2333. _ACEOF
  2334. rm -f conftest.$ac_objext
  2335. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2336. (eval $ac_compile) 2>conftest.er1
  2337. ac_status=$?
  2338. grep -v '^ *+' conftest.er1 >conftest.err
  2339. rm -f conftest.er1
  2340. cat conftest.err >&5
  2341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2342. (exit $ac_status); } &&
  2343. { ac_try='test -z "$ac_c_werror_flag"
  2344. || test ! -s conftest.err'
  2345. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2346. (eval $ac_try) 2>&5
  2347. ac_status=$?
  2348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2349. (exit $ac_status); }; } &&
  2350. { ac_try='test -s conftest.$ac_objext'
  2351. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2352. (eval $ac_try) 2>&5
  2353. ac_status=$?
  2354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2355. (exit $ac_status); }; }; then
  2356. ac_cv_prog_cc_g=yes
  2357. else
  2358. echo "$as_me: failed program was:" >&5
  2359. sed 's/^/| /' conftest.$ac_ext >&5
  2360. ac_cv_prog_cc_g=no
  2361. fi
  2362. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2363. fi
  2364. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2365. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2366. if test "$ac_test_CFLAGS" = set; then
  2367. CFLAGS=$ac_save_CFLAGS
  2368. elif test $ac_cv_prog_cc_g = yes; then
  2369. if test "$GCC" = yes; then
  2370. CFLAGS="-g -O2"
  2371. else
  2372. CFLAGS="-g"
  2373. fi
  2374. else
  2375. if test "$GCC" = yes; then
  2376. CFLAGS="-O2"
  2377. else
  2378. CFLAGS=
  2379. fi
  2380. fi
  2381. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2382. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2383. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2384. echo $ECHO_N "(cached) $ECHO_C" >&6
  2385. else
  2386. ac_cv_prog_cc_stdc=no
  2387. ac_save_CC=$CC
  2388. cat >conftest.$ac_ext <<_ACEOF
  2389. /* confdefs.h. */
  2390. _ACEOF
  2391. cat confdefs.h >>conftest.$ac_ext
  2392. cat >>conftest.$ac_ext <<_ACEOF
  2393. /* end confdefs.h. */
  2394. #include <stdarg.h>
  2395. #include <stdio.h>
  2396. #include <sys/types.h>
  2397. #include <sys/stat.h>
  2398. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2399. struct buf { int x; };
  2400. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2401. static char *e (p, i)
  2402. char **p;
  2403. int i;
  2404. {
  2405. return p[i];
  2406. }
  2407. static char *f (char * (*g) (char **, int), char **p, ...)
  2408. {
  2409. char *s;
  2410. va_list v;
  2411. va_start (v,p);
  2412. s = g (p, va_arg (v,int));
  2413. va_end (v);
  2414. return s;
  2415. }
  2416. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2417. function prototypes and stuff, but not '\xHH' hex character constants.
  2418. These don't provoke an error unfortunately, instead are silently treated
  2419. as 'x'. The following induces an error, until -std1 is added to get
  2420. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2421. array size at least. It's necessary to write '\x00'==0 to get something
  2422. that's true only with -std1. */
  2423. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2424. int test (int i, double x);
  2425. struct s1 {int (*f) (int a);};
  2426. struct s2 {int (*f) (double a);};
  2427. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2428. int argc;
  2429. char **argv;
  2430. int
  2431. main ()
  2432. {
  2433. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2434. ;
  2435. return 0;
  2436. }
  2437. _ACEOF
  2438. # Don't try gcc -ansi; that turns off useful extensions and
  2439. # breaks some systems' header files.
  2440. # AIX -qlanglvl=ansi
  2441. # Ultrix and OSF/1 -std1
  2442. # HP-UX 10.20 and later -Ae
  2443. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2444. # SVR4 -Xc -D__EXTENSIONS__
  2445. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2446. do
  2447. CC="$ac_save_CC $ac_arg"
  2448. rm -f conftest.$ac_objext
  2449. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2450. (eval $ac_compile) 2>conftest.er1
  2451. ac_status=$?
  2452. grep -v '^ *+' conftest.er1 >conftest.err
  2453. rm -f conftest.er1
  2454. cat conftest.err >&5
  2455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2456. (exit $ac_status); } &&
  2457. { ac_try='test -z "$ac_c_werror_flag"
  2458. || test ! -s conftest.err'
  2459. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2460. (eval $ac_try) 2>&5
  2461. ac_status=$?
  2462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2463. (exit $ac_status); }; } &&
  2464. { ac_try='test -s conftest.$ac_objext'
  2465. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2466. (eval $ac_try) 2>&5
  2467. ac_status=$?
  2468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2469. (exit $ac_status); }; }; then
  2470. ac_cv_prog_cc_stdc=$ac_arg
  2471. break
  2472. else
  2473. echo "$as_me: failed program was:" >&5
  2474. sed 's/^/| /' conftest.$ac_ext >&5
  2475. fi
  2476. rm -f conftest.err conftest.$ac_objext
  2477. done
  2478. rm -f conftest.$ac_ext conftest.$ac_objext
  2479. CC=$ac_save_CC
  2480. fi
  2481. case "x$ac_cv_prog_cc_stdc" in
  2482. x|xno)
  2483. echo "$as_me:$LINENO: result: none needed" >&5
  2484. echo "${ECHO_T}none needed" >&6 ;;
  2485. *)
  2486. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2487. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2488. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2489. esac
  2490. # Some people use a C++ compiler to compile C. Since we use `exit',
  2491. # in C++ we need to declare it. In case someone uses the same compiler
  2492. # for both compiling C and C++ we need to have the C++ compiler decide
  2493. # the declaration of exit, since it's the most demanding environment.
  2494. cat >conftest.$ac_ext <<_ACEOF
  2495. #ifndef __cplusplus
  2496. choke me
  2497. #endif
  2498. _ACEOF
  2499. rm -f conftest.$ac_objext
  2500. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2501. (eval $ac_compile) 2>conftest.er1
  2502. ac_status=$?
  2503. grep -v '^ *+' conftest.er1 >conftest.err
  2504. rm -f conftest.er1
  2505. cat conftest.err >&5
  2506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2507. (exit $ac_status); } &&
  2508. { ac_try='test -z "$ac_c_werror_flag"
  2509. || test ! -s conftest.err'
  2510. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2511. (eval $ac_try) 2>&5
  2512. ac_status=$?
  2513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2514. (exit $ac_status); }; } &&
  2515. { ac_try='test -s conftest.$ac_objext'
  2516. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2517. (eval $ac_try) 2>&5
  2518. ac_status=$?
  2519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2520. (exit $ac_status); }; }; then
  2521. for ac_declaration in \
  2522. '' \
  2523. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2524. 'extern "C" void std::exit (int); using std::exit;' \
  2525. 'extern "C" void exit (int) throw ();' \
  2526. 'extern "C" void exit (int);' \
  2527. 'void exit (int);'
  2528. do
  2529. cat >conftest.$ac_ext <<_ACEOF
  2530. /* confdefs.h. */
  2531. _ACEOF
  2532. cat confdefs.h >>conftest.$ac_ext
  2533. cat >>conftest.$ac_ext <<_ACEOF
  2534. /* end confdefs.h. */
  2535. $ac_declaration
  2536. #include <stdlib.h>
  2537. int
  2538. main ()
  2539. {
  2540. exit (42);
  2541. ;
  2542. return 0;
  2543. }
  2544. _ACEOF
  2545. rm -f conftest.$ac_objext
  2546. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2547. (eval $ac_compile) 2>conftest.er1
  2548. ac_status=$?
  2549. grep -v '^ *+' conftest.er1 >conftest.err
  2550. rm -f conftest.er1
  2551. cat conftest.err >&5
  2552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2553. (exit $ac_status); } &&
  2554. { ac_try='test -z "$ac_c_werror_flag"
  2555. || test ! -s conftest.err'
  2556. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2557. (eval $ac_try) 2>&5
  2558. ac_status=$?
  2559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2560. (exit $ac_status); }; } &&
  2561. { ac_try='test -s conftest.$ac_objext'
  2562. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2563. (eval $ac_try) 2>&5
  2564. ac_status=$?
  2565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2566. (exit $ac_status); }; }; then
  2567. :
  2568. else
  2569. echo "$as_me: failed program was:" >&5
  2570. sed 's/^/| /' conftest.$ac_ext >&5
  2571. continue
  2572. fi
  2573. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2574. cat >conftest.$ac_ext <<_ACEOF
  2575. /* confdefs.h. */
  2576. _ACEOF
  2577. cat confdefs.h >>conftest.$ac_ext
  2578. cat >>conftest.$ac_ext <<_ACEOF
  2579. /* end confdefs.h. */
  2580. $ac_declaration
  2581. int
  2582. main ()
  2583. {
  2584. exit (42);
  2585. ;
  2586. return 0;
  2587. }
  2588. _ACEOF
  2589. rm -f conftest.$ac_objext
  2590. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2591. (eval $ac_compile) 2>conftest.er1
  2592. ac_status=$?
  2593. grep -v '^ *+' conftest.er1 >conftest.err
  2594. rm -f conftest.er1
  2595. cat conftest.err >&5
  2596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2597. (exit $ac_status); } &&
  2598. { ac_try='test -z "$ac_c_werror_flag"
  2599. || test ! -s conftest.err'
  2600. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2601. (eval $ac_try) 2>&5
  2602. ac_status=$?
  2603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2604. (exit $ac_status); }; } &&
  2605. { ac_try='test -s conftest.$ac_objext'
  2606. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2607. (eval $ac_try) 2>&5
  2608. ac_status=$?
  2609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2610. (exit $ac_status); }; }; then
  2611. break
  2612. else
  2613. echo "$as_me: failed program was:" >&5
  2614. sed 's/^/| /' conftest.$ac_ext >&5
  2615. fi
  2616. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2617. done
  2618. rm -f conftest*
  2619. if test -n "$ac_declaration"; then
  2620. echo '#ifdef __cplusplus' >>confdefs.h
  2621. echo $ac_declaration >>confdefs.h
  2622. echo '#endif' >>confdefs.h
  2623. fi
  2624. else
  2625. echo "$as_me: failed program was:" >&5
  2626. sed 's/^/| /' conftest.$ac_ext >&5
  2627. fi
  2628. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2629. ac_ext=c
  2630. ac_cpp='$CPP $CPPFLAGS'
  2631. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2632. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2633. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2634. echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  2635. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  2636. if test "${lt_cv_path_SED+set}" = set; then
  2637. echo $ECHO_N "(cached) $ECHO_C" >&6
  2638. else
  2639. # Loop through the user's path and test for sed and gsed.
  2640. # Then use that list of sed's as ones to test for truncation.
  2641. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2642. for as_dir in $PATH
  2643. do
  2644. IFS=$as_save_IFS
  2645. test -z "$as_dir" && as_dir=.
  2646. for lt_ac_prog in sed gsed; do
  2647. for ac_exec_ext in '' $ac_executable_extensions; do
  2648. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  2649. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  2650. fi
  2651. done
  2652. done
  2653. done
  2654. lt_ac_max=0
  2655. lt_ac_count=0
  2656. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  2657. # along with /bin/sed that truncates output.
  2658. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  2659. test ! -f $lt_ac_sed && continue
  2660. cat /dev/null > conftest.in
  2661. lt_ac_count=0
  2662. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  2663. # Check for GNU sed and select it if it is found.
  2664. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  2665. lt_cv_path_SED=$lt_ac_sed
  2666. break
  2667. fi
  2668. while true; do
  2669. cat conftest.in conftest.in >conftest.tmp
  2670. mv conftest.tmp conftest.in
  2671. cp conftest.in conftest.nl
  2672. echo >>conftest.nl
  2673. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  2674. cmp -s conftest.out conftest.nl || break
  2675. # 10000 chars as input seems more than enough
  2676. test $lt_ac_count -gt 10 && break
  2677. lt_ac_count=`expr $lt_ac_count + 1`
  2678. if test $lt_ac_count -gt $lt_ac_max; then
  2679. lt_ac_max=$lt_ac_count
  2680. lt_cv_path_SED=$lt_ac_sed
  2681. fi
  2682. done
  2683. done
  2684. fi
  2685. SED=$lt_cv_path_SED
  2686. echo "$as_me:$LINENO: result: $SED" >&5
  2687. echo "${ECHO_T}$SED" >&6
  2688. echo "$as_me:$LINENO: checking for egrep" >&5
  2689. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2690. if test "${ac_cv_prog_egrep+set}" = set; then
  2691. echo $ECHO_N "(cached) $ECHO_C" >&6
  2692. else
  2693. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2694. then ac_cv_prog_egrep='grep -E'
  2695. else ac_cv_prog_egrep='egrep'
  2696. fi
  2697. fi
  2698. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2699. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2700. EGREP=$ac_cv_prog_egrep
  2701. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  2702. if test "${with_gnu_ld+set}" = set; then
  2703. withval="$with_gnu_ld"
  2704. test "$withval" = no || with_gnu_ld=yes
  2705. else
  2706. with_gnu_ld=no
  2707. fi;
  2708. ac_prog=ld
  2709. if test "$GCC" = yes; then
  2710. # Check if gcc -print-prog-name=ld gives a path.
  2711. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  2712. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  2713. case $host in
  2714. *-*-mingw*)
  2715. # gcc leaves a trailing carriage return which upsets mingw
  2716. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2717. *)
  2718. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2719. esac
  2720. case $ac_prog in
  2721. # Accept absolute paths.
  2722. [\\/]* | ?:[\\/]*)
  2723. re_direlt='/[^/][^/]*/\.\./'
  2724. # Canonicalize the pathname of ld
  2725. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  2726. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  2727. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  2728. done
  2729. test -z "$LD" && LD="$ac_prog"
  2730. ;;
  2731. "")
  2732. # If it fails, then pretend we aren't using GCC.
  2733. ac_prog=ld
  2734. ;;
  2735. *)
  2736. # If it is relative, then search for the first ld in PATH.
  2737. with_gnu_ld=unknown
  2738. ;;
  2739. esac
  2740. elif test "$with_gnu_ld" = yes; then
  2741. echo "$as_me:$LINENO: checking for GNU ld" >&5
  2742. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  2743. else
  2744. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  2745. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  2746. fi
  2747. if test "${lt_cv_path_LD+set}" = set; then
  2748. echo $ECHO_N "(cached) $ECHO_C" >&6
  2749. else
  2750. if test -z "$LD"; then
  2751. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2752. for ac_dir in $PATH; do
  2753. IFS="$lt_save_ifs"
  2754. test -z "$ac_dir" && ac_dir=.
  2755. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2756. lt_cv_path_LD="$ac_dir/$ac_prog"
  2757. # Check to see if the program is GNU ld. I'd rather use --version,
  2758. # but apparently some variants of GNU ld only accept -v.
  2759. # Break only if it was the GNU/non-GNU ld that we prefer.
  2760. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2761. *GNU* | *'with BFD'*)
  2762. test "$with_gnu_ld" != no && break
  2763. ;;
  2764. *)
  2765. test "$with_gnu_ld" != yes && break
  2766. ;;
  2767. esac
  2768. fi
  2769. done
  2770. IFS="$lt_save_ifs"
  2771. else
  2772. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2773. fi
  2774. fi
  2775. LD="$lt_cv_path_LD"
  2776. if test -n "$LD"; then
  2777. echo "$as_me:$LINENO: result: $LD" >&5
  2778. echo "${ECHO_T}$LD" >&6
  2779. else
  2780. echo "$as_me:$LINENO: result: no" >&5
  2781. echo "${ECHO_T}no" >&6
  2782. fi
  2783. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  2784. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  2785. { (exit 1); exit 1; }; }
  2786. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  2787. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  2788. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  2789. echo $ECHO_N "(cached) $ECHO_C" >&6
  2790. else
  2791. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  2792. case `$LD -v 2>&1 </dev/null` in
  2793. *GNU* | *'with BFD'*)
  2794. lt_cv_prog_gnu_ld=yes
  2795. ;;
  2796. *)
  2797. lt_cv_prog_gnu_ld=no
  2798. ;;
  2799. esac
  2800. fi
  2801. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  2802. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  2803. with_gnu_ld=$lt_cv_prog_gnu_ld
  2804. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  2805. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  2806. if test "${lt_cv_ld_reload_flag+set}" = set; then
  2807. echo $ECHO_N "(cached) $ECHO_C" >&6
  2808. else
  2809. lt_cv_ld_reload_flag='-r'
  2810. fi
  2811. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  2812. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  2813. reload_flag=$lt_cv_ld_reload_flag
  2814. case $reload_flag in
  2815. "" | " "*) ;;
  2816. *) reload_flag=" $reload_flag" ;;
  2817. esac
  2818. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2819. case $host_os in
  2820. darwin*)
  2821. if test "$GCC" = yes; then
  2822. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  2823. else
  2824. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2825. fi
  2826. ;;
  2827. esac
  2828. echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  2829. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  2830. if test "${lt_cv_path_NM+set}" = set; then
  2831. echo $ECHO_N "(cached) $ECHO_C" >&6
  2832. else
  2833. if test -n "$NM"; then
  2834. # Let the user override the test.
  2835. lt_cv_path_NM="$NM"
  2836. else
  2837. lt_nm_to_check="${ac_tool_prefix}nm"
  2838. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  2839. lt_nm_to_check="$lt_nm_to_check nm"
  2840. fi
  2841. for lt_tmp_nm in $lt_nm_to_check; do
  2842. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2843. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  2844. IFS="$lt_save_ifs"
  2845. test -z "$ac_dir" && ac_dir=.
  2846. tmp_nm="$ac_dir/$lt_tmp_nm"
  2847. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  2848. # Check to see if the nm accepts a BSD-compat flag.
  2849. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  2850. # nm: unknown option "B" ignored
  2851. # Tru64's nm complains that /dev/null is an invalid object file
  2852. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  2853. */dev/null* | *'Invalid file or object type'*)
  2854. lt_cv_path_NM="$tmp_nm -B"
  2855. break
  2856. ;;
  2857. *)
  2858. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  2859. */dev/null*)
  2860. lt_cv_path_NM="$tmp_nm -p"
  2861. break
  2862. ;;
  2863. *)
  2864. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  2865. continue # so that we can try to find one that supports BSD flags
  2866. ;;
  2867. esac
  2868. ;;
  2869. esac
  2870. fi
  2871. done
  2872. IFS="$lt_save_ifs"
  2873. done
  2874. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  2875. fi
  2876. fi
  2877. echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  2878. echo "${ECHO_T}$lt_cv_path_NM" >&6
  2879. NM="$lt_cv_path_NM"
  2880. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  2881. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  2882. LN_S=$as_ln_s
  2883. if test "$LN_S" = "ln -s"; then
  2884. echo "$as_me:$LINENO: result: yes" >&5
  2885. echo "${ECHO_T}yes" >&6
  2886. else
  2887. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  2888. echo "${ECHO_T}no, using $LN_S" >&6
  2889. fi
  2890. echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  2891. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  2892. if test "${lt_cv_deplibs_check_method+set}" = set; then
  2893. echo $ECHO_N "(cached) $ECHO_C" >&6
  2894. else
  2895. lt_cv_file_magic_cmd='$MAGIC_CMD'
  2896. lt_cv_file_magic_test_file=
  2897. lt_cv_deplibs_check_method='unknown'
  2898. # Need to set the preceding variable on all platforms that support
  2899. # interlibrary dependencies.
  2900. # 'none' -- dependencies not supported.
  2901. # `unknown' -- same as none, but documents that we really don't know.
  2902. # 'pass_all' -- all dependencies passed with no checks.
  2903. # 'test_compile' -- check by making test program.
  2904. # 'file_magic [[regex]]' -- check by looking for files in library path
  2905. # which responds to the $file_magic_cmd with a given extended regex.
  2906. # If you have `file' or equivalent on your system and you're not sure
  2907. # whether `pass_all' will *always* work, you probably want this one.
  2908. case $host_os in
  2909. aix4* | aix5*)
  2910. lt_cv_deplibs_check_method=pass_all
  2911. ;;
  2912. beos*)
  2913. lt_cv_deplibs_check_method=pass_all
  2914. ;;
  2915. bsdi[45]*)
  2916. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  2917. lt_cv_file_magic_cmd='/usr/bin/file -L'
  2918. lt_cv_file_magic_test_file=/shlib/libc.so
  2919. ;;
  2920. cygwin*)
  2921. # func_win32_libid is a shell function defined in ltmain.sh
  2922. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2923. lt_cv_file_magic_cmd='func_win32_libid'
  2924. ;;
  2925. mingw* | pw32*)
  2926. # Base MSYS/MinGW do not provide the 'file' command needed by
  2927. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  2928. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  2929. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2930. ;;
  2931. darwin* | rhapsody*)
  2932. lt_cv_deplibs_check_method=pass_all
  2933. ;;
  2934. freebsd* | kfreebsd*-gnu | dragonfly*)
  2935. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2936. case $host_cpu in
  2937. i*86 )
  2938. # Not sure whether the presence of OpenBSD here was a mistake.
  2939. # Let's accept both of them until this is cleared up.
  2940. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  2941. lt_cv_file_magic_cmd=/usr/bin/file
  2942. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2943. ;;
  2944. esac
  2945. else
  2946. lt_cv_deplibs_check_method=pass_all
  2947. fi
  2948. ;;
  2949. gnu*)
  2950. lt_cv_deplibs_check_method=pass_all
  2951. ;;
  2952. hpux10.20* | hpux11*)
  2953. lt_cv_file_magic_cmd=/usr/bin/file
  2954. case $host_cpu in
  2955. ia64*)
  2956. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  2957. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  2958. ;;
  2959. hppa*64*)
  2960. 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]'
  2961. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  2962. ;;
  2963. *)
  2964. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  2965. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  2966. ;;
  2967. esac
  2968. ;;
  2969. interix3*)
  2970. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  2971. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  2972. ;;
  2973. irix5* | irix6* | nonstopux*)
  2974. case $LD in
  2975. *-32|*"-32 ") libmagic=32-bit;;
  2976. *-n32|*"-n32 ") libmagic=N32;;
  2977. *-64|*"-64 ") libmagic=64-bit;;
  2978. *) libmagic=never-match;;
  2979. esac
  2980. lt_cv_deplibs_check_method=pass_all
  2981. ;;
  2982. # This must be Linux ELF.
  2983. linux*)
  2984. lt_cv_deplibs_check_method=pass_all
  2985. ;;
  2986. netbsd*)
  2987. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2988. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  2989. else
  2990. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  2991. fi
  2992. ;;
  2993. newos6*)
  2994. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  2995. lt_cv_file_magic_cmd=/usr/bin/file
  2996. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  2997. ;;
  2998. nto-qnx*)
  2999. lt_cv_deplibs_check_method=unknown
  3000. ;;
  3001. openbsd*)
  3002. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3003. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  3004. else
  3005. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3006. fi
  3007. ;;
  3008. osf3* | osf4* | osf5*)
  3009. lt_cv_deplibs_check_method=pass_all
  3010. ;;
  3011. solaris*)
  3012. lt_cv_deplibs_check_method=pass_all
  3013. ;;
  3014. sysv4 | sysv4.3*)
  3015. case $host_vendor in
  3016. motorola)
  3017. 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]'
  3018. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3019. ;;
  3020. ncr)
  3021. lt_cv_deplibs_check_method=pass_all
  3022. ;;
  3023. sequent)
  3024. lt_cv_file_magic_cmd='/bin/file'
  3025. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  3026. ;;
  3027. sni)
  3028. lt_cv_file_magic_cmd='/bin/file'
  3029. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  3030. lt_cv_file_magic_test_file=/lib/libc.so
  3031. ;;
  3032. siemens)
  3033. lt_cv_deplibs_check_method=pass_all
  3034. ;;
  3035. pc)
  3036. lt_cv_deplibs_check_method=pass_all
  3037. ;;
  3038. esac
  3039. ;;
  3040. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3041. lt_cv_deplibs_check_method=pass_all
  3042. ;;
  3043. esac
  3044. fi
  3045. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  3046. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  3047. file_magic_cmd=$lt_cv_file_magic_cmd
  3048. deplibs_check_method=$lt_cv_deplibs_check_method
  3049. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3050. # If no C compiler was specified, use CC.
  3051. LTCC=${LTCC-"$CC"}
  3052. # If no C compiler flags were specified, use CFLAGS.
  3053. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  3054. # Allow CC to be a program name with arguments.
  3055. compiler=$CC
  3056. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  3057. if test "${enable_libtool_lock+set}" = set; then
  3058. enableval="$enable_libtool_lock"
  3059. fi;
  3060. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  3061. # Some flags need to be propagated to the compiler or linker for good
  3062. # libtool support.
  3063. case $host in
  3064. ia64-*-hpux*)
  3065. # Find out which ABI we are using.
  3066. echo 'int i;' > conftest.$ac_ext
  3067. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3068. (eval $ac_compile) 2>&5
  3069. ac_status=$?
  3070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3071. (exit $ac_status); }; then
  3072. case `/usr/bin/file conftest.$ac_objext` in
  3073. *ELF-32*)
  3074. HPUX_IA64_MODE="32"
  3075. ;;
  3076. *ELF-64*)
  3077. HPUX_IA64_MODE="64"
  3078. ;;
  3079. esac
  3080. fi
  3081. rm -rf conftest*
  3082. ;;
  3083. *-*-irix6*)
  3084. # Find out which ABI we are using.
  3085. echo '#line 3564 "configure"' > conftest.$ac_ext
  3086. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3087. (eval $ac_compile) 2>&5
  3088. ac_status=$?
  3089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3090. (exit $ac_status); }; then
  3091. if test "$lt_cv_prog_gnu_ld" = yes; then
  3092. case `/usr/bin/file conftest.$ac_objext` in
  3093. *32-bit*)
  3094. LD="${LD-ld} -melf32bsmip"
  3095. ;;
  3096. *N32*)
  3097. LD="${LD-ld} -melf32bmipn32"
  3098. ;;
  3099. *64-bit*)
  3100. LD="${LD-ld} -melf64bmip"
  3101. ;;
  3102. esac
  3103. else
  3104. case `/usr/bin/file conftest.$ac_objext` in
  3105. *32-bit*)
  3106. LD="${LD-ld} -32"
  3107. ;;
  3108. *N32*)
  3109. LD="${LD-ld} -n32"
  3110. ;;
  3111. *64-bit*)
  3112. LD="${LD-ld} -64"
  3113. ;;
  3114. esac
  3115. fi
  3116. fi
  3117. rm -rf conftest*
  3118. ;;
  3119. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  3120. # Find out which ABI we are using.
  3121. echo 'int i;' > conftest.$ac_ext
  3122. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3123. (eval $ac_compile) 2>&5
  3124. ac_status=$?
  3125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3126. (exit $ac_status); }; then
  3127. case `/usr/bin/file conftest.o` in
  3128. *32-bit*)
  3129. case $host in
  3130. x86_64-*linux*)
  3131. LD="${LD-ld} -m elf_i386"
  3132. ;;
  3133. ppc64-*linux*|powerpc64-*linux*)
  3134. LD="${LD-ld} -m elf32ppclinux"
  3135. ;;
  3136. s390x-*linux*)
  3137. LD="${LD-ld} -m elf_s390"
  3138. ;;
  3139. sparc64-*linux*)
  3140. LD="${LD-ld} -m elf32_sparc"
  3141. ;;
  3142. esac
  3143. ;;
  3144. *64-bit*)
  3145. case $host in
  3146. x86_64-*linux*)
  3147. LD="${LD-ld} -m elf_x86_64"
  3148. ;;
  3149. ppc*-*linux*|powerpc*-*linux*)
  3150. LD="${LD-ld} -m elf64ppc"
  3151. ;;
  3152. s390*-*linux*)
  3153. LD="${LD-ld} -m elf64_s390"
  3154. ;;
  3155. sparc*-*linux*)
  3156. LD="${LD-ld} -m elf64_sparc"
  3157. ;;
  3158. esac
  3159. ;;
  3160. esac
  3161. fi
  3162. rm -rf conftest*
  3163. ;;
  3164. *-*-sco3.2v5*)
  3165. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  3166. SAVE_CFLAGS="$CFLAGS"
  3167. CFLAGS="$CFLAGS -belf"
  3168. echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  3169. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  3170. if test "${lt_cv_cc_needs_belf+set}" = set; then
  3171. echo $ECHO_N "(cached) $ECHO_C" >&6
  3172. else
  3173. ac_ext=c
  3174. ac_cpp='$CPP $CPPFLAGS'
  3175. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3176. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3177. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3178. cat >conftest.$ac_ext <<_ACEOF
  3179. /* confdefs.h. */
  3180. _ACEOF
  3181. cat confdefs.h >>conftest.$ac_ext
  3182. cat >>conftest.$ac_ext <<_ACEOF
  3183. /* end confdefs.h. */
  3184. int
  3185. main ()
  3186. {
  3187. ;
  3188. return 0;
  3189. }
  3190. _ACEOF
  3191. rm -f conftest.$ac_objext conftest$ac_exeext
  3192. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3193. (eval $ac_link) 2>conftest.er1
  3194. ac_status=$?
  3195. grep -v '^ *+' conftest.er1 >conftest.err
  3196. rm -f conftest.er1
  3197. cat conftest.err >&5
  3198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3199. (exit $ac_status); } &&
  3200. { ac_try='test -z "$ac_c_werror_flag"
  3201. || test ! -s conftest.err'
  3202. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3203. (eval $ac_try) 2>&5
  3204. ac_status=$?
  3205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3206. (exit $ac_status); }; } &&
  3207. { ac_try='test -s conftest$ac_exeext'
  3208. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3209. (eval $ac_try) 2>&5
  3210. ac_status=$?
  3211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3212. (exit $ac_status); }; }; then
  3213. lt_cv_cc_needs_belf=yes
  3214. else
  3215. echo "$as_me: failed program was:" >&5
  3216. sed 's/^/| /' conftest.$ac_ext >&5
  3217. lt_cv_cc_needs_belf=no
  3218. fi
  3219. rm -f conftest.err conftest.$ac_objext \
  3220. conftest$ac_exeext conftest.$ac_ext
  3221. ac_ext=c
  3222. ac_cpp='$CPP $CPPFLAGS'
  3223. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3224. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3225. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3226. fi
  3227. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  3228. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  3229. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  3230. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  3231. CFLAGS="$SAVE_CFLAGS"
  3232. fi
  3233. ;;
  3234. sparc*-*solaris*)
  3235. # Find out which ABI we are using.
  3236. echo 'int i;' > conftest.$ac_ext
  3237. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3238. (eval $ac_compile) 2>&5
  3239. ac_status=$?
  3240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3241. (exit $ac_status); }; then
  3242. case `/usr/bin/file conftest.o` in
  3243. *64-bit*)
  3244. case $lt_cv_prog_gnu_ld in
  3245. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  3246. *) LD="${LD-ld} -64" ;;
  3247. esac
  3248. ;;
  3249. esac
  3250. fi
  3251. rm -rf conftest*
  3252. ;;
  3253. *-*-cygwin* | *-*-mingw* | *-*-pw32*)
  3254. if test -n "$ac_tool_prefix"; then
  3255. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  3256. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  3257. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3258. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3259. if test "${ac_cv_prog_DLLTOOL+set}" = set; then
  3260. echo $ECHO_N "(cached) $ECHO_C" >&6
  3261. else
  3262. if test -n "$DLLTOOL"; then
  3263. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  3264. else
  3265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3266. for as_dir in $PATH
  3267. do
  3268. IFS=$as_save_IFS
  3269. test -z "$as_dir" && as_dir=.
  3270. for ac_exec_ext in '' $ac_executable_extensions; do
  3271. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3272. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  3273. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3274. break 2
  3275. fi
  3276. done
  3277. done
  3278. fi
  3279. fi
  3280. DLLTOOL=$ac_cv_prog_DLLTOOL
  3281. if test -n "$DLLTOOL"; then
  3282. echo "$as_me:$LINENO: result: $DLLTOOL" >&5
  3283. echo "${ECHO_T}$DLLTOOL" >&6
  3284. else
  3285. echo "$as_me:$LINENO: result: no" >&5
  3286. echo "${ECHO_T}no" >&6
  3287. fi
  3288. fi
  3289. if test -z "$ac_cv_prog_DLLTOOL"; then
  3290. ac_ct_DLLTOOL=$DLLTOOL
  3291. # Extract the first word of "dlltool", so it can be a program name with args.
  3292. set dummy dlltool; ac_word=$2
  3293. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3294. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3295. if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
  3296. echo $ECHO_N "(cached) $ECHO_C" >&6
  3297. else
  3298. if test -n "$ac_ct_DLLTOOL"; then
  3299. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  3300. else
  3301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3302. for as_dir in $PATH
  3303. do
  3304. IFS=$as_save_IFS
  3305. test -z "$as_dir" && as_dir=.
  3306. for ac_exec_ext in '' $ac_executable_extensions; do
  3307. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3308. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  3309. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3310. break 2
  3311. fi
  3312. done
  3313. done
  3314. test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
  3315. fi
  3316. fi
  3317. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  3318. if test -n "$ac_ct_DLLTOOL"; then
  3319. echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
  3320. echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
  3321. else
  3322. echo "$as_me:$LINENO: result: no" >&5
  3323. echo "${ECHO_T}no" >&6
  3324. fi
  3325. DLLTOOL=$ac_ct_DLLTOOL
  3326. else
  3327. DLLTOOL="$ac_cv_prog_DLLTOOL"
  3328. fi
  3329. if test -n "$ac_tool_prefix"; then
  3330. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  3331. set dummy ${ac_tool_prefix}as; ac_word=$2
  3332. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3333. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3334. if test "${ac_cv_prog_AS+set}" = set; then
  3335. echo $ECHO_N "(cached) $ECHO_C" >&6
  3336. else
  3337. if test -n "$AS"; then
  3338. ac_cv_prog_AS="$AS" # Let the user override the test.
  3339. else
  3340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3341. for as_dir in $PATH
  3342. do
  3343. IFS=$as_save_IFS
  3344. test -z "$as_dir" && as_dir=.
  3345. for ac_exec_ext in '' $ac_executable_extensions; do
  3346. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3347. ac_cv_prog_AS="${ac_tool_prefix}as"
  3348. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3349. break 2
  3350. fi
  3351. done
  3352. done
  3353. fi
  3354. fi
  3355. AS=$ac_cv_prog_AS
  3356. if test -n "$AS"; then
  3357. echo "$as_me:$LINENO: result: $AS" >&5
  3358. echo "${ECHO_T}$AS" >&6
  3359. else
  3360. echo "$as_me:$LINENO: result: no" >&5
  3361. echo "${ECHO_T}no" >&6
  3362. fi
  3363. fi
  3364. if test -z "$ac_cv_prog_AS"; then
  3365. ac_ct_AS=$AS
  3366. # Extract the first word of "as", so it can be a program name with args.
  3367. set dummy as; ac_word=$2
  3368. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3369. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3370. if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
  3371. echo $ECHO_N "(cached) $ECHO_C" >&6
  3372. else
  3373. if test -n "$ac_ct_AS"; then
  3374. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  3375. else
  3376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3377. for as_dir in $PATH
  3378. do
  3379. IFS=$as_save_IFS
  3380. test -z "$as_dir" && as_dir=.
  3381. for ac_exec_ext in '' $ac_executable_extensions; do
  3382. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3383. ac_cv_prog_ac_ct_AS="as"
  3384. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3385. break 2
  3386. fi
  3387. done
  3388. done
  3389. test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
  3390. fi
  3391. fi
  3392. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  3393. if test -n "$ac_ct_AS"; then
  3394. echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
  3395. echo "${ECHO_T}$ac_ct_AS" >&6
  3396. else
  3397. echo "$as_me:$LINENO: result: no" >&5
  3398. echo "${ECHO_T}no" >&6
  3399. fi
  3400. AS=$ac_ct_AS
  3401. else
  3402. AS="$ac_cv_prog_AS"
  3403. fi
  3404. if test -n "$ac_tool_prefix"; then
  3405. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  3406. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  3407. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3408. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3409. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  3410. echo $ECHO_N "(cached) $ECHO_C" >&6
  3411. else
  3412. if test -n "$OBJDUMP"; then
  3413. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  3414. else
  3415. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3416. for as_dir in $PATH
  3417. do
  3418. IFS=$as_save_IFS
  3419. test -z "$as_dir" && as_dir=.
  3420. for ac_exec_ext in '' $ac_executable_extensions; do
  3421. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3422. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  3423. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3424. break 2
  3425. fi
  3426. done
  3427. done
  3428. fi
  3429. fi
  3430. OBJDUMP=$ac_cv_prog_OBJDUMP
  3431. if test -n "$OBJDUMP"; then
  3432. echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  3433. echo "${ECHO_T}$OBJDUMP" >&6
  3434. else
  3435. echo "$as_me:$LINENO: result: no" >&5
  3436. echo "${ECHO_T}no" >&6
  3437. fi
  3438. fi
  3439. if test -z "$ac_cv_prog_OBJDUMP"; then
  3440. ac_ct_OBJDUMP=$OBJDUMP
  3441. # Extract the first word of "objdump", so it can be a program name with args.
  3442. set dummy objdump; ac_word=$2
  3443. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3444. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3445. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  3446. echo $ECHO_N "(cached) $ECHO_C" >&6
  3447. else
  3448. if test -n "$ac_ct_OBJDUMP"; then
  3449. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  3450. else
  3451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3452. for as_dir in $PATH
  3453. do
  3454. IFS=$as_save_IFS
  3455. test -z "$as_dir" && as_dir=.
  3456. for ac_exec_ext in '' $ac_executable_extensions; do
  3457. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3458. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  3459. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3460. break 2
  3461. fi
  3462. done
  3463. done
  3464. test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
  3465. fi
  3466. fi
  3467. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  3468. if test -n "$ac_ct_OBJDUMP"; then
  3469. echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  3470. echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
  3471. else
  3472. echo "$as_me:$LINENO: result: no" >&5
  3473. echo "${ECHO_T}no" >&6
  3474. fi
  3475. OBJDUMP=$ac_ct_OBJDUMP
  3476. else
  3477. OBJDUMP="$ac_cv_prog_OBJDUMP"
  3478. fi
  3479. ;;
  3480. esac
  3481. need_locks="$enable_libtool_lock"
  3482. ac_ext=c
  3483. ac_cpp='$CPP $CPPFLAGS'
  3484. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3485. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3486. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3487. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3488. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  3489. # On Suns, sometimes $CPP names a directory.
  3490. if test -n "$CPP" && test -d "$CPP"; then
  3491. CPP=
  3492. fi
  3493. if test -z "$CPP"; then
  3494. if test "${ac_cv_prog_CPP+set}" = set; then
  3495. echo $ECHO_N "(cached) $ECHO_C" >&6
  3496. else
  3497. # Double quotes because CPP needs to be expanded
  3498. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3499. do
  3500. ac_preproc_ok=false
  3501. for ac_c_preproc_warn_flag in '' yes
  3502. do
  3503. # Use a header file that comes with gcc, so configuring glibc
  3504. # with a fresh cross-compiler works.
  3505. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3506. # <limits.h> exists even on freestanding compilers.
  3507. # On the NeXT, cc -E runs the code through the compiler's parser,
  3508. # not just through cpp. "Syntax error" is here to catch this case.
  3509. cat >conftest.$ac_ext <<_ACEOF
  3510. /* confdefs.h. */
  3511. _ACEOF
  3512. cat confdefs.h >>conftest.$ac_ext
  3513. cat >>conftest.$ac_ext <<_ACEOF
  3514. /* end confdefs.h. */
  3515. #ifdef __STDC__
  3516. # include <limits.h>
  3517. #else
  3518. # include <assert.h>
  3519. #endif
  3520. Syntax error
  3521. _ACEOF
  3522. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3523. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3524. ac_status=$?
  3525. grep -v '^ *+' conftest.er1 >conftest.err
  3526. rm -f conftest.er1
  3527. cat conftest.err >&5
  3528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3529. (exit $ac_status); } >/dev/null; then
  3530. if test -s conftest.err; then
  3531. ac_cpp_err=$ac_c_preproc_warn_flag
  3532. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3533. else
  3534. ac_cpp_err=
  3535. fi
  3536. else
  3537. ac_cpp_err=yes
  3538. fi
  3539. if test -z "$ac_cpp_err"; then
  3540. :
  3541. else
  3542. echo "$as_me: failed program was:" >&5
  3543. sed 's/^/| /' conftest.$ac_ext >&5
  3544. # Broken: fails on valid input.
  3545. continue
  3546. fi
  3547. rm -f conftest.err conftest.$ac_ext
  3548. # OK, works on sane cases. Now check whether non-existent headers
  3549. # can be detected and how.
  3550. cat >conftest.$ac_ext <<_ACEOF
  3551. /* confdefs.h. */
  3552. _ACEOF
  3553. cat confdefs.h >>conftest.$ac_ext
  3554. cat >>conftest.$ac_ext <<_ACEOF
  3555. /* end confdefs.h. */
  3556. #include <ac_nonexistent.h>
  3557. _ACEOF
  3558. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3559. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3560. ac_status=$?
  3561. grep -v '^ *+' conftest.er1 >conftest.err
  3562. rm -f conftest.er1
  3563. cat conftest.err >&5
  3564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3565. (exit $ac_status); } >/dev/null; then
  3566. if test -s conftest.err; then
  3567. ac_cpp_err=$ac_c_preproc_warn_flag
  3568. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3569. else
  3570. ac_cpp_err=
  3571. fi
  3572. else
  3573. ac_cpp_err=yes
  3574. fi
  3575. if test -z "$ac_cpp_err"; then
  3576. # Broken: success on invalid input.
  3577. continue
  3578. else
  3579. echo "$as_me: failed program was:" >&5
  3580. sed 's/^/| /' conftest.$ac_ext >&5
  3581. # Passes both tests.
  3582. ac_preproc_ok=:
  3583. break
  3584. fi
  3585. rm -f conftest.err conftest.$ac_ext
  3586. done
  3587. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3588. rm -f conftest.err conftest.$ac_ext
  3589. if $ac_preproc_ok; then
  3590. break
  3591. fi
  3592. done
  3593. ac_cv_prog_CPP=$CPP
  3594. fi
  3595. CPP=$ac_cv_prog_CPP
  3596. else
  3597. ac_cv_prog_CPP=$CPP
  3598. fi
  3599. echo "$as_me:$LINENO: result: $CPP" >&5
  3600. echo "${ECHO_T}$CPP" >&6
  3601. ac_preproc_ok=false
  3602. for ac_c_preproc_warn_flag in '' yes
  3603. do
  3604. # Use a header file that comes with gcc, so configuring glibc
  3605. # with a fresh cross-compiler works.
  3606. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3607. # <limits.h> exists even on freestanding compilers.
  3608. # On the NeXT, cc -E runs the code through the compiler's parser,
  3609. # not just through cpp. "Syntax error" is here to catch this case.
  3610. cat >conftest.$ac_ext <<_ACEOF
  3611. /* confdefs.h. */
  3612. _ACEOF
  3613. cat confdefs.h >>conftest.$ac_ext
  3614. cat >>conftest.$ac_ext <<_ACEOF
  3615. /* end confdefs.h. */
  3616. #ifdef __STDC__
  3617. # include <limits.h>
  3618. #else
  3619. # include <assert.h>
  3620. #endif
  3621. Syntax error
  3622. _ACEOF
  3623. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3624. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3625. ac_status=$?
  3626. grep -v '^ *+' conftest.er1 >conftest.err
  3627. rm -f conftest.er1
  3628. cat conftest.err >&5
  3629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3630. (exit $ac_status); } >/dev/null; then
  3631. if test -s conftest.err; then
  3632. ac_cpp_err=$ac_c_preproc_warn_flag
  3633. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3634. else
  3635. ac_cpp_err=
  3636. fi
  3637. else
  3638. ac_cpp_err=yes
  3639. fi
  3640. if test -z "$ac_cpp_err"; then
  3641. :
  3642. else
  3643. echo "$as_me: failed program was:" >&5
  3644. sed 's/^/| /' conftest.$ac_ext >&5
  3645. # Broken: fails on valid input.
  3646. continue
  3647. fi
  3648. rm -f conftest.err conftest.$ac_ext
  3649. # OK, works on sane cases. Now check whether non-existent headers
  3650. # can be detected and how.
  3651. cat >conftest.$ac_ext <<_ACEOF
  3652. /* confdefs.h. */
  3653. _ACEOF
  3654. cat confdefs.h >>conftest.$ac_ext
  3655. cat >>conftest.$ac_ext <<_ACEOF
  3656. /* end confdefs.h. */
  3657. #include <ac_nonexistent.h>
  3658. _ACEOF
  3659. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3660. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3661. ac_status=$?
  3662. grep -v '^ *+' conftest.er1 >conftest.err
  3663. rm -f conftest.er1
  3664. cat conftest.err >&5
  3665. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3666. (exit $ac_status); } >/dev/null; then
  3667. if test -s conftest.err; then
  3668. ac_cpp_err=$ac_c_preproc_warn_flag
  3669. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3670. else
  3671. ac_cpp_err=
  3672. fi
  3673. else
  3674. ac_cpp_err=yes
  3675. fi
  3676. if test -z "$ac_cpp_err"; then
  3677. # Broken: success on invalid input.
  3678. continue
  3679. else
  3680. echo "$as_me: failed program was:" >&5
  3681. sed 's/^/| /' conftest.$ac_ext >&5
  3682. # Passes both tests.
  3683. ac_preproc_ok=:
  3684. break
  3685. fi
  3686. rm -f conftest.err conftest.$ac_ext
  3687. done
  3688. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3689. rm -f conftest.err conftest.$ac_ext
  3690. if $ac_preproc_ok; then
  3691. :
  3692. else
  3693. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3694. See \`config.log' for more details." >&5
  3695. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3696. See \`config.log' for more details." >&2;}
  3697. { (exit 1); exit 1; }; }
  3698. fi
  3699. ac_ext=c
  3700. ac_cpp='$CPP $CPPFLAGS'
  3701. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3702. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3703. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3704. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3705. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3706. if test "${ac_cv_header_stdc+set}" = set; then
  3707. echo $ECHO_N "(cached) $ECHO_C" >&6
  3708. else
  3709. cat >conftest.$ac_ext <<_ACEOF
  3710. /* confdefs.h. */
  3711. _ACEOF
  3712. cat confdefs.h >>conftest.$ac_ext
  3713. cat >>conftest.$ac_ext <<_ACEOF
  3714. /* end confdefs.h. */
  3715. #include <stdlib.h>
  3716. #include <stdarg.h>
  3717. #include <string.h>
  3718. #include <float.h>
  3719. int
  3720. main ()
  3721. {
  3722. ;
  3723. return 0;
  3724. }
  3725. _ACEOF
  3726. rm -f conftest.$ac_objext
  3727. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3728. (eval $ac_compile) 2>conftest.er1
  3729. ac_status=$?
  3730. grep -v '^ *+' conftest.er1 >conftest.err
  3731. rm -f conftest.er1
  3732. cat conftest.err >&5
  3733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3734. (exit $ac_status); } &&
  3735. { ac_try='test -z "$ac_c_werror_flag"
  3736. || test ! -s conftest.err'
  3737. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3738. (eval $ac_try) 2>&5
  3739. ac_status=$?
  3740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3741. (exit $ac_status); }; } &&
  3742. { ac_try='test -s conftest.$ac_objext'
  3743. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3744. (eval $ac_try) 2>&5
  3745. ac_status=$?
  3746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3747. (exit $ac_status); }; }; then
  3748. ac_cv_header_stdc=yes
  3749. else
  3750. echo "$as_me: failed program was:" >&5
  3751. sed 's/^/| /' conftest.$ac_ext >&5
  3752. ac_cv_header_stdc=no
  3753. fi
  3754. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3755. if test $ac_cv_header_stdc = yes; then
  3756. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3757. cat >conftest.$ac_ext <<_ACEOF
  3758. /* confdefs.h. */
  3759. _ACEOF
  3760. cat confdefs.h >>conftest.$ac_ext
  3761. cat >>conftest.$ac_ext <<_ACEOF
  3762. /* end confdefs.h. */
  3763. #include <string.h>
  3764. _ACEOF
  3765. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3766. $EGREP "memchr" >/dev/null 2>&1; then
  3767. :
  3768. else
  3769. ac_cv_header_stdc=no
  3770. fi
  3771. rm -f conftest*
  3772. fi
  3773. if test $ac_cv_header_stdc = yes; then
  3774. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3775. cat >conftest.$ac_ext <<_ACEOF
  3776. /* confdefs.h. */
  3777. _ACEOF
  3778. cat confdefs.h >>conftest.$ac_ext
  3779. cat >>conftest.$ac_ext <<_ACEOF
  3780. /* end confdefs.h. */
  3781. #include <stdlib.h>
  3782. _ACEOF
  3783. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3784. $EGREP "free" >/dev/null 2>&1; then
  3785. :
  3786. else
  3787. ac_cv_header_stdc=no
  3788. fi
  3789. rm -f conftest*
  3790. fi
  3791. if test $ac_cv_header_stdc = yes; then
  3792. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3793. if test "$cross_compiling" = yes; then
  3794. :
  3795. else
  3796. cat >conftest.$ac_ext <<_ACEOF
  3797. /* confdefs.h. */
  3798. _ACEOF
  3799. cat confdefs.h >>conftest.$ac_ext
  3800. cat >>conftest.$ac_ext <<_ACEOF
  3801. /* end confdefs.h. */
  3802. #include <ctype.h>
  3803. #if ((' ' & 0x0FF) == 0x020)
  3804. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3805. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3806. #else
  3807. # define ISLOWER(c) \
  3808. (('a' <= (c) && (c) <= 'i') \
  3809. || ('j' <= (c) && (c) <= 'r') \
  3810. || ('s' <= (c) && (c) <= 'z'))
  3811. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3812. #endif
  3813. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3814. int
  3815. main ()
  3816. {
  3817. int i;
  3818. for (i = 0; i < 256; i++)
  3819. if (XOR (islower (i), ISLOWER (i))
  3820. || toupper (i) != TOUPPER (i))
  3821. exit(2);
  3822. exit (0);
  3823. }
  3824. _ACEOF
  3825. rm -f conftest$ac_exeext
  3826. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3827. (eval $ac_link) 2>&5
  3828. ac_status=$?
  3829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3830. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3831. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3832. (eval $ac_try) 2>&5
  3833. ac_status=$?
  3834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3835. (exit $ac_status); }; }; then
  3836. :
  3837. else
  3838. echo "$as_me: program exited with status $ac_status" >&5
  3839. echo "$as_me: failed program was:" >&5
  3840. sed 's/^/| /' conftest.$ac_ext >&5
  3841. ( exit $ac_status )
  3842. ac_cv_header_stdc=no
  3843. fi
  3844. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3845. fi
  3846. fi
  3847. fi
  3848. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3849. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3850. if test $ac_cv_header_stdc = yes; then
  3851. cat >>confdefs.h <<\_ACEOF
  3852. #define STDC_HEADERS 1
  3853. _ACEOF
  3854. fi
  3855. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3856. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3857. inttypes.h stdint.h unistd.h
  3858. do
  3859. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3860. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3861. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3862. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3863. echo $ECHO_N "(cached) $ECHO_C" >&6
  3864. else
  3865. cat >conftest.$ac_ext <<_ACEOF
  3866. /* confdefs.h. */
  3867. _ACEOF
  3868. cat confdefs.h >>conftest.$ac_ext
  3869. cat >>conftest.$ac_ext <<_ACEOF
  3870. /* end confdefs.h. */
  3871. $ac_includes_default
  3872. #include <$ac_header>
  3873. _ACEOF
  3874. rm -f conftest.$ac_objext
  3875. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3876. (eval $ac_compile) 2>conftest.er1
  3877. ac_status=$?
  3878. grep -v '^ *+' conftest.er1 >conftest.err
  3879. rm -f conftest.er1
  3880. cat conftest.err >&5
  3881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3882. (exit $ac_status); } &&
  3883. { ac_try='test -z "$ac_c_werror_flag"
  3884. || test ! -s conftest.err'
  3885. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3886. (eval $ac_try) 2>&5
  3887. ac_status=$?
  3888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3889. (exit $ac_status); }; } &&
  3890. { ac_try='test -s conftest.$ac_objext'
  3891. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3892. (eval $ac_try) 2>&5
  3893. ac_status=$?
  3894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3895. (exit $ac_status); }; }; then
  3896. eval "$as_ac_Header=yes"
  3897. else
  3898. echo "$as_me: failed program was:" >&5
  3899. sed 's/^/| /' conftest.$ac_ext >&5
  3900. eval "$as_ac_Header=no"
  3901. fi
  3902. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3903. fi
  3904. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3905. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3906. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3907. cat >>confdefs.h <<_ACEOF
  3908. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3909. _ACEOF
  3910. fi
  3911. done
  3912. for ac_header in dlfcn.h
  3913. do
  3914. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3915. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3916. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3917. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3918. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3919. echo $ECHO_N "(cached) $ECHO_C" >&6
  3920. fi
  3921. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3922. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3923. else
  3924. # Is the header compilable?
  3925. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3926. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  3927. cat >conftest.$ac_ext <<_ACEOF
  3928. /* confdefs.h. */
  3929. _ACEOF
  3930. cat confdefs.h >>conftest.$ac_ext
  3931. cat >>conftest.$ac_ext <<_ACEOF
  3932. /* end confdefs.h. */
  3933. $ac_includes_default
  3934. #include <$ac_header>
  3935. _ACEOF
  3936. rm -f conftest.$ac_objext
  3937. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3938. (eval $ac_compile) 2>conftest.er1
  3939. ac_status=$?
  3940. grep -v '^ *+' conftest.er1 >conftest.err
  3941. rm -f conftest.er1
  3942. cat conftest.err >&5
  3943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3944. (exit $ac_status); } &&
  3945. { ac_try='test -z "$ac_c_werror_flag"
  3946. || test ! -s conftest.err'
  3947. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3948. (eval $ac_try) 2>&5
  3949. ac_status=$?
  3950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3951. (exit $ac_status); }; } &&
  3952. { ac_try='test -s conftest.$ac_objext'
  3953. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3954. (eval $ac_try) 2>&5
  3955. ac_status=$?
  3956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3957. (exit $ac_status); }; }; then
  3958. ac_header_compiler=yes
  3959. else
  3960. echo "$as_me: failed program was:" >&5
  3961. sed 's/^/| /' conftest.$ac_ext >&5
  3962. ac_header_compiler=no
  3963. fi
  3964. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3965. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3966. echo "${ECHO_T}$ac_header_compiler" >&6
  3967. # Is the header present?
  3968. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3969. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  3970. cat >conftest.$ac_ext <<_ACEOF
  3971. /* confdefs.h. */
  3972. _ACEOF
  3973. cat confdefs.h >>conftest.$ac_ext
  3974. cat >>conftest.$ac_ext <<_ACEOF
  3975. /* end confdefs.h. */
  3976. #include <$ac_header>
  3977. _ACEOF
  3978. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3979. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3980. ac_status=$?
  3981. grep -v '^ *+' conftest.er1 >conftest.err
  3982. rm -f conftest.er1
  3983. cat conftest.err >&5
  3984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3985. (exit $ac_status); } >/dev/null; then
  3986. if test -s conftest.err; then
  3987. ac_cpp_err=$ac_c_preproc_warn_flag
  3988. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3989. else
  3990. ac_cpp_err=
  3991. fi
  3992. else
  3993. ac_cpp_err=yes
  3994. fi
  3995. if test -z "$ac_cpp_err"; then
  3996. ac_header_preproc=yes
  3997. else
  3998. echo "$as_me: failed program was:" >&5
  3999. sed 's/^/| /' conftest.$ac_ext >&5
  4000. ac_header_preproc=no
  4001. fi
  4002. rm -f conftest.err conftest.$ac_ext
  4003. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4004. echo "${ECHO_T}$ac_header_preproc" >&6
  4005. # So? What about this header?
  4006. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4007. yes:no: )
  4008. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4009. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4010. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4011. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4012. ac_header_preproc=yes
  4013. ;;
  4014. no:yes:* )
  4015. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4016. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4017. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4018. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4019. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4020. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4021. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4022. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4023. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4024. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4025. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4026. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4027. (
  4028. cat <<\_ASBOX
  4029. ## -------------------------------------- ##
  4030. ## Report this to expat-bugs@libexpat.org ##
  4031. ## -------------------------------------- ##
  4032. _ASBOX
  4033. ) |
  4034. sed "s/^/$as_me: WARNING: /" >&2
  4035. ;;
  4036. esac
  4037. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4038. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4039. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4040. echo $ECHO_N "(cached) $ECHO_C" >&6
  4041. else
  4042. eval "$as_ac_Header=\$ac_header_preproc"
  4043. fi
  4044. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4045. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4046. fi
  4047. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4048. cat >>confdefs.h <<_ACEOF
  4049. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4050. _ACEOF
  4051. fi
  4052. done
  4053. ac_ext=cc
  4054. ac_cpp='$CXXCPP $CPPFLAGS'
  4055. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4056. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4057. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4058. if test -n "$ac_tool_prefix"; then
  4059. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  4060. do
  4061. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4062. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4063. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4064. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4065. if test "${ac_cv_prog_CXX+set}" = set; then
  4066. echo $ECHO_N "(cached) $ECHO_C" >&6
  4067. else
  4068. if test -n "$CXX"; then
  4069. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4070. else
  4071. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4072. for as_dir in $PATH
  4073. do
  4074. IFS=$as_save_IFS
  4075. test -z "$as_dir" && as_dir=.
  4076. for ac_exec_ext in '' $ac_executable_extensions; do
  4077. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4078. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4079. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4080. break 2
  4081. fi
  4082. done
  4083. done
  4084. fi
  4085. fi
  4086. CXX=$ac_cv_prog_CXX
  4087. if test -n "$CXX"; then
  4088. echo "$as_me:$LINENO: result: $CXX" >&5
  4089. echo "${ECHO_T}$CXX" >&6
  4090. else
  4091. echo "$as_me:$LINENO: result: no" >&5
  4092. echo "${ECHO_T}no" >&6
  4093. fi
  4094. test -n "$CXX" && break
  4095. done
  4096. fi
  4097. if test -z "$CXX"; then
  4098. ac_ct_CXX=$CXX
  4099. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  4100. do
  4101. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4102. set dummy $ac_prog; ac_word=$2
  4103. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4104. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4105. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  4106. echo $ECHO_N "(cached) $ECHO_C" >&6
  4107. else
  4108. if test -n "$ac_ct_CXX"; then
  4109. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4110. else
  4111. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4112. for as_dir in $PATH
  4113. do
  4114. IFS=$as_save_IFS
  4115. test -z "$as_dir" && as_dir=.
  4116. for ac_exec_ext in '' $ac_executable_extensions; do
  4117. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4118. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4119. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4120. break 2
  4121. fi
  4122. done
  4123. done
  4124. fi
  4125. fi
  4126. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4127. if test -n "$ac_ct_CXX"; then
  4128. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  4129. echo "${ECHO_T}$ac_ct_CXX" >&6
  4130. else
  4131. echo "$as_me:$LINENO: result: no" >&5
  4132. echo "${ECHO_T}no" >&6
  4133. fi
  4134. test -n "$ac_ct_CXX" && break
  4135. done
  4136. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  4137. CXX=$ac_ct_CXX
  4138. fi
  4139. # Provide some information about the compiler.
  4140. echo "$as_me:$LINENO:" \
  4141. "checking for C++ compiler version" >&5
  4142. ac_compiler=`set X $ac_compile; echo $2`
  4143. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  4144. (eval $ac_compiler --version </dev/null >&5) 2>&5
  4145. ac_status=$?
  4146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4147. (exit $ac_status); }
  4148. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  4149. (eval $ac_compiler -v </dev/null >&5) 2>&5
  4150. ac_status=$?
  4151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4152. (exit $ac_status); }
  4153. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  4154. (eval $ac_compiler -V </dev/null >&5) 2>&5
  4155. ac_status=$?
  4156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4157. (exit $ac_status); }
  4158. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  4159. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  4160. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  4161. echo $ECHO_N "(cached) $ECHO_C" >&6
  4162. else
  4163. cat >conftest.$ac_ext <<_ACEOF
  4164. /* confdefs.h. */
  4165. _ACEOF
  4166. cat confdefs.h >>conftest.$ac_ext
  4167. cat >>conftest.$ac_ext <<_ACEOF
  4168. /* end confdefs.h. */
  4169. int
  4170. main ()
  4171. {
  4172. #ifndef __GNUC__
  4173. choke me
  4174. #endif
  4175. ;
  4176. return 0;
  4177. }
  4178. _ACEOF
  4179. rm -f conftest.$ac_objext
  4180. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4181. (eval $ac_compile) 2>conftest.er1
  4182. ac_status=$?
  4183. grep -v '^ *+' conftest.er1 >conftest.err
  4184. rm -f conftest.er1
  4185. cat conftest.err >&5
  4186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4187. (exit $ac_status); } &&
  4188. { ac_try='test -z "$ac_cxx_werror_flag"
  4189. || test ! -s conftest.err'
  4190. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4191. (eval $ac_try) 2>&5
  4192. ac_status=$?
  4193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4194. (exit $ac_status); }; } &&
  4195. { ac_try='test -s conftest.$ac_objext'
  4196. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4197. (eval $ac_try) 2>&5
  4198. ac_status=$?
  4199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4200. (exit $ac_status); }; }; then
  4201. ac_compiler_gnu=yes
  4202. else
  4203. echo "$as_me: failed program was:" >&5
  4204. sed 's/^/| /' conftest.$ac_ext >&5
  4205. ac_compiler_gnu=no
  4206. fi
  4207. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4208. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4209. fi
  4210. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  4211. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  4212. GXX=`test $ac_compiler_gnu = yes && echo yes`
  4213. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4214. ac_save_CXXFLAGS=$CXXFLAGS
  4215. CXXFLAGS="-g"
  4216. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  4217. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  4218. if test "${ac_cv_prog_cxx_g+set}" = set; then
  4219. echo $ECHO_N "(cached) $ECHO_C" >&6
  4220. else
  4221. cat >conftest.$ac_ext <<_ACEOF
  4222. /* confdefs.h. */
  4223. _ACEOF
  4224. cat confdefs.h >>conftest.$ac_ext
  4225. cat >>conftest.$ac_ext <<_ACEOF
  4226. /* end confdefs.h. */
  4227. int
  4228. main ()
  4229. {
  4230. ;
  4231. return 0;
  4232. }
  4233. _ACEOF
  4234. rm -f conftest.$ac_objext
  4235. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4236. (eval $ac_compile) 2>conftest.er1
  4237. ac_status=$?
  4238. grep -v '^ *+' conftest.er1 >conftest.err
  4239. rm -f conftest.er1
  4240. cat conftest.err >&5
  4241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4242. (exit $ac_status); } &&
  4243. { ac_try='test -z "$ac_cxx_werror_flag"
  4244. || test ! -s conftest.err'
  4245. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4246. (eval $ac_try) 2>&5
  4247. ac_status=$?
  4248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4249. (exit $ac_status); }; } &&
  4250. { ac_try='test -s conftest.$ac_objext'
  4251. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4252. (eval $ac_try) 2>&5
  4253. ac_status=$?
  4254. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4255. (exit $ac_status); }; }; then
  4256. ac_cv_prog_cxx_g=yes
  4257. else
  4258. echo "$as_me: failed program was:" >&5
  4259. sed 's/^/| /' conftest.$ac_ext >&5
  4260. ac_cv_prog_cxx_g=no
  4261. fi
  4262. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4263. fi
  4264. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  4265. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  4266. if test "$ac_test_CXXFLAGS" = set; then
  4267. CXXFLAGS=$ac_save_CXXFLAGS
  4268. elif test $ac_cv_prog_cxx_g = yes; then
  4269. if test "$GXX" = yes; then
  4270. CXXFLAGS="-g -O2"
  4271. else
  4272. CXXFLAGS="-g"
  4273. fi
  4274. else
  4275. if test "$GXX" = yes; then
  4276. CXXFLAGS="-O2"
  4277. else
  4278. CXXFLAGS=
  4279. fi
  4280. fi
  4281. for ac_declaration in \
  4282. '' \
  4283. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  4284. 'extern "C" void std::exit (int); using std::exit;' \
  4285. 'extern "C" void exit (int) throw ();' \
  4286. 'extern "C" void exit (int);' \
  4287. 'void exit (int);'
  4288. do
  4289. cat >conftest.$ac_ext <<_ACEOF
  4290. /* confdefs.h. */
  4291. _ACEOF
  4292. cat confdefs.h >>conftest.$ac_ext
  4293. cat >>conftest.$ac_ext <<_ACEOF
  4294. /* end confdefs.h. */
  4295. $ac_declaration
  4296. #include <stdlib.h>
  4297. int
  4298. main ()
  4299. {
  4300. exit (42);
  4301. ;
  4302. return 0;
  4303. }
  4304. _ACEOF
  4305. rm -f conftest.$ac_objext
  4306. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4307. (eval $ac_compile) 2>conftest.er1
  4308. ac_status=$?
  4309. grep -v '^ *+' conftest.er1 >conftest.err
  4310. rm -f conftest.er1
  4311. cat conftest.err >&5
  4312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4313. (exit $ac_status); } &&
  4314. { ac_try='test -z "$ac_cxx_werror_flag"
  4315. || test ! -s conftest.err'
  4316. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4317. (eval $ac_try) 2>&5
  4318. ac_status=$?
  4319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4320. (exit $ac_status); }; } &&
  4321. { ac_try='test -s conftest.$ac_objext'
  4322. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4323. (eval $ac_try) 2>&5
  4324. ac_status=$?
  4325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4326. (exit $ac_status); }; }; then
  4327. :
  4328. else
  4329. echo "$as_me: failed program was:" >&5
  4330. sed 's/^/| /' conftest.$ac_ext >&5
  4331. continue
  4332. fi
  4333. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4334. cat >conftest.$ac_ext <<_ACEOF
  4335. /* confdefs.h. */
  4336. _ACEOF
  4337. cat confdefs.h >>conftest.$ac_ext
  4338. cat >>conftest.$ac_ext <<_ACEOF
  4339. /* end confdefs.h. */
  4340. $ac_declaration
  4341. int
  4342. main ()
  4343. {
  4344. exit (42);
  4345. ;
  4346. return 0;
  4347. }
  4348. _ACEOF
  4349. rm -f conftest.$ac_objext
  4350. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4351. (eval $ac_compile) 2>conftest.er1
  4352. ac_status=$?
  4353. grep -v '^ *+' conftest.er1 >conftest.err
  4354. rm -f conftest.er1
  4355. cat conftest.err >&5
  4356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4357. (exit $ac_status); } &&
  4358. { ac_try='test -z "$ac_cxx_werror_flag"
  4359. || test ! -s conftest.err'
  4360. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4361. (eval $ac_try) 2>&5
  4362. ac_status=$?
  4363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4364. (exit $ac_status); }; } &&
  4365. { ac_try='test -s conftest.$ac_objext'
  4366. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4367. (eval $ac_try) 2>&5
  4368. ac_status=$?
  4369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4370. (exit $ac_status); }; }; then
  4371. break
  4372. else
  4373. echo "$as_me: failed program was:" >&5
  4374. sed 's/^/| /' conftest.$ac_ext >&5
  4375. fi
  4376. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4377. done
  4378. rm -f conftest*
  4379. if test -n "$ac_declaration"; then
  4380. echo '#ifdef __cplusplus' >>confdefs.h
  4381. echo $ac_declaration >>confdefs.h
  4382. echo '#endif' >>confdefs.h
  4383. fi
  4384. ac_ext=cc
  4385. ac_cpp='$CXXCPP $CPPFLAGS'
  4386. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4387. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4388. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4389. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  4390. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  4391. (test "X$CXX" != "Xg++"))) ; then
  4392. ac_ext=cc
  4393. ac_cpp='$CXXCPP $CPPFLAGS'
  4394. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4395. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4396. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4397. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4398. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  4399. if test -z "$CXXCPP"; then
  4400. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4401. echo $ECHO_N "(cached) $ECHO_C" >&6
  4402. else
  4403. # Double quotes because CXXCPP needs to be expanded
  4404. for CXXCPP in "$CXX -E" "/lib/cpp"
  4405. do
  4406. ac_preproc_ok=false
  4407. for ac_cxx_preproc_warn_flag in '' yes
  4408. do
  4409. # Use a header file that comes with gcc, so configuring glibc
  4410. # with a fresh cross-compiler works.
  4411. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4412. # <limits.h> exists even on freestanding compilers.
  4413. # On the NeXT, cc -E runs the code through the compiler's parser,
  4414. # not just through cpp. "Syntax error" is here to catch this case.
  4415. cat >conftest.$ac_ext <<_ACEOF
  4416. /* confdefs.h. */
  4417. _ACEOF
  4418. cat confdefs.h >>conftest.$ac_ext
  4419. cat >>conftest.$ac_ext <<_ACEOF
  4420. /* end confdefs.h. */
  4421. #ifdef __STDC__
  4422. # include <limits.h>
  4423. #else
  4424. # include <assert.h>
  4425. #endif
  4426. Syntax error
  4427. _ACEOF
  4428. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4429. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4430. ac_status=$?
  4431. grep -v '^ *+' conftest.er1 >conftest.err
  4432. rm -f conftest.er1
  4433. cat conftest.err >&5
  4434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4435. (exit $ac_status); } >/dev/null; then
  4436. if test -s conftest.err; then
  4437. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4438. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4439. else
  4440. ac_cpp_err=
  4441. fi
  4442. else
  4443. ac_cpp_err=yes
  4444. fi
  4445. if test -z "$ac_cpp_err"; then
  4446. :
  4447. else
  4448. echo "$as_me: failed program was:" >&5
  4449. sed 's/^/| /' conftest.$ac_ext >&5
  4450. # Broken: fails on valid input.
  4451. continue
  4452. fi
  4453. rm -f conftest.err conftest.$ac_ext
  4454. # OK, works on sane cases. Now check whether non-existent headers
  4455. # can be detected and how.
  4456. cat >conftest.$ac_ext <<_ACEOF
  4457. /* confdefs.h. */
  4458. _ACEOF
  4459. cat confdefs.h >>conftest.$ac_ext
  4460. cat >>conftest.$ac_ext <<_ACEOF
  4461. /* end confdefs.h. */
  4462. #include <ac_nonexistent.h>
  4463. _ACEOF
  4464. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4465. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4466. ac_status=$?
  4467. grep -v '^ *+' conftest.er1 >conftest.err
  4468. rm -f conftest.er1
  4469. cat conftest.err >&5
  4470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4471. (exit $ac_status); } >/dev/null; then
  4472. if test -s conftest.err; then
  4473. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4474. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4475. else
  4476. ac_cpp_err=
  4477. fi
  4478. else
  4479. ac_cpp_err=yes
  4480. fi
  4481. if test -z "$ac_cpp_err"; then
  4482. # Broken: success on invalid input.
  4483. continue
  4484. else
  4485. echo "$as_me: failed program was:" >&5
  4486. sed 's/^/| /' conftest.$ac_ext >&5
  4487. # Passes both tests.
  4488. ac_preproc_ok=:
  4489. break
  4490. fi
  4491. rm -f conftest.err conftest.$ac_ext
  4492. done
  4493. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4494. rm -f conftest.err conftest.$ac_ext
  4495. if $ac_preproc_ok; then
  4496. break
  4497. fi
  4498. done
  4499. ac_cv_prog_CXXCPP=$CXXCPP
  4500. fi
  4501. CXXCPP=$ac_cv_prog_CXXCPP
  4502. else
  4503. ac_cv_prog_CXXCPP=$CXXCPP
  4504. fi
  4505. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4506. echo "${ECHO_T}$CXXCPP" >&6
  4507. ac_preproc_ok=false
  4508. for ac_cxx_preproc_warn_flag in '' yes
  4509. do
  4510. # Use a header file that comes with gcc, so configuring glibc
  4511. # with a fresh cross-compiler works.
  4512. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4513. # <limits.h> exists even on freestanding compilers.
  4514. # On the NeXT, cc -E runs the code through the compiler's parser,
  4515. # not just through cpp. "Syntax error" is here to catch this case.
  4516. cat >conftest.$ac_ext <<_ACEOF
  4517. /* confdefs.h. */
  4518. _ACEOF
  4519. cat confdefs.h >>conftest.$ac_ext
  4520. cat >>conftest.$ac_ext <<_ACEOF
  4521. /* end confdefs.h. */
  4522. #ifdef __STDC__
  4523. # include <limits.h>
  4524. #else
  4525. # include <assert.h>
  4526. #endif
  4527. Syntax error
  4528. _ACEOF
  4529. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4530. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4531. ac_status=$?
  4532. grep -v '^ *+' conftest.er1 >conftest.err
  4533. rm -f conftest.er1
  4534. cat conftest.err >&5
  4535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4536. (exit $ac_status); } >/dev/null; then
  4537. if test -s conftest.err; then
  4538. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4539. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4540. else
  4541. ac_cpp_err=
  4542. fi
  4543. else
  4544. ac_cpp_err=yes
  4545. fi
  4546. if test -z "$ac_cpp_err"; then
  4547. :
  4548. else
  4549. echo "$as_me: failed program was:" >&5
  4550. sed 's/^/| /' conftest.$ac_ext >&5
  4551. # Broken: fails on valid input.
  4552. continue
  4553. fi
  4554. rm -f conftest.err conftest.$ac_ext
  4555. # OK, works on sane cases. Now check whether non-existent headers
  4556. # can be detected and how.
  4557. cat >conftest.$ac_ext <<_ACEOF
  4558. /* confdefs.h. */
  4559. _ACEOF
  4560. cat confdefs.h >>conftest.$ac_ext
  4561. cat >>conftest.$ac_ext <<_ACEOF
  4562. /* end confdefs.h. */
  4563. #include <ac_nonexistent.h>
  4564. _ACEOF
  4565. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4566. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4567. ac_status=$?
  4568. grep -v '^ *+' conftest.er1 >conftest.err
  4569. rm -f conftest.er1
  4570. cat conftest.err >&5
  4571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4572. (exit $ac_status); } >/dev/null; then
  4573. if test -s conftest.err; then
  4574. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4575. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4576. else
  4577. ac_cpp_err=
  4578. fi
  4579. else
  4580. ac_cpp_err=yes
  4581. fi
  4582. if test -z "$ac_cpp_err"; then
  4583. # Broken: success on invalid input.
  4584. continue
  4585. else
  4586. echo "$as_me: failed program was:" >&5
  4587. sed 's/^/| /' conftest.$ac_ext >&5
  4588. # Passes both tests.
  4589. ac_preproc_ok=:
  4590. break
  4591. fi
  4592. rm -f conftest.err conftest.$ac_ext
  4593. done
  4594. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4595. rm -f conftest.err conftest.$ac_ext
  4596. if $ac_preproc_ok; then
  4597. :
  4598. else
  4599. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4600. See \`config.log' for more details." >&5
  4601. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4602. See \`config.log' for more details." >&2;}
  4603. { (exit 1); exit 1; }; }
  4604. fi
  4605. ac_ext=cc
  4606. ac_cpp='$CXXCPP $CPPFLAGS'
  4607. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4608. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4609. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4610. fi
  4611. ac_ext=f
  4612. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  4613. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4614. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  4615. if test -n "$ac_tool_prefix"; then
  4616. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4617. do
  4618. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4619. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4620. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4621. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4622. if test "${ac_cv_prog_F77+set}" = set; then
  4623. echo $ECHO_N "(cached) $ECHO_C" >&6
  4624. else
  4625. if test -n "$F77"; then
  4626. ac_cv_prog_F77="$F77" # Let the user override the test.
  4627. else
  4628. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4629. for as_dir in $PATH
  4630. do
  4631. IFS=$as_save_IFS
  4632. test -z "$as_dir" && as_dir=.
  4633. for ac_exec_ext in '' $ac_executable_extensions; do
  4634. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4635. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  4636. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4637. break 2
  4638. fi
  4639. done
  4640. done
  4641. fi
  4642. fi
  4643. F77=$ac_cv_prog_F77
  4644. if test -n "$F77"; then
  4645. echo "$as_me:$LINENO: result: $F77" >&5
  4646. echo "${ECHO_T}$F77" >&6
  4647. else
  4648. echo "$as_me:$LINENO: result: no" >&5
  4649. echo "${ECHO_T}no" >&6
  4650. fi
  4651. test -n "$F77" && break
  4652. done
  4653. fi
  4654. if test -z "$F77"; then
  4655. ac_ct_F77=$F77
  4656. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4657. do
  4658. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4659. set dummy $ac_prog; ac_word=$2
  4660. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4661. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4662. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  4663. echo $ECHO_N "(cached) $ECHO_C" >&6
  4664. else
  4665. if test -n "$ac_ct_F77"; then
  4666. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  4667. else
  4668. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4669. for as_dir in $PATH
  4670. do
  4671. IFS=$as_save_IFS
  4672. test -z "$as_dir" && as_dir=.
  4673. for ac_exec_ext in '' $ac_executable_extensions; do
  4674. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4675. ac_cv_prog_ac_ct_F77="$ac_prog"
  4676. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4677. break 2
  4678. fi
  4679. done
  4680. done
  4681. fi
  4682. fi
  4683. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  4684. if test -n "$ac_ct_F77"; then
  4685. echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  4686. echo "${ECHO_T}$ac_ct_F77" >&6
  4687. else
  4688. echo "$as_me:$LINENO: result: no" >&5
  4689. echo "${ECHO_T}no" >&6
  4690. fi
  4691. test -n "$ac_ct_F77" && break
  4692. done
  4693. F77=$ac_ct_F77
  4694. fi
  4695. # Provide some information about the compiler.
  4696. echo "$as_me:5296:" \
  4697. "checking for Fortran 77 compiler version" >&5
  4698. ac_compiler=`set X $ac_compile; echo $2`
  4699. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  4700. (eval $ac_compiler --version </dev/null >&5) 2>&5
  4701. ac_status=$?
  4702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4703. (exit $ac_status); }
  4704. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  4705. (eval $ac_compiler -v </dev/null >&5) 2>&5
  4706. ac_status=$?
  4707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4708. (exit $ac_status); }
  4709. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  4710. (eval $ac_compiler -V </dev/null >&5) 2>&5
  4711. ac_status=$?
  4712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4713. (exit $ac_status); }
  4714. rm -f a.out
  4715. # If we don't use `.F' as extension, the preprocessor is not run on the
  4716. # input file. (Note that this only needs to work for GNU compilers.)
  4717. ac_save_ext=$ac_ext
  4718. ac_ext=F
  4719. echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  4720. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
  4721. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  4722. echo $ECHO_N "(cached) $ECHO_C" >&6
  4723. else
  4724. cat >conftest.$ac_ext <<_ACEOF
  4725. program main
  4726. #ifndef __GNUC__
  4727. choke me
  4728. #endif
  4729. end
  4730. _ACEOF
  4731. rm -f conftest.$ac_objext
  4732. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4733. (eval $ac_compile) 2>conftest.er1
  4734. ac_status=$?
  4735. grep -v '^ *+' conftest.er1 >conftest.err
  4736. rm -f conftest.er1
  4737. cat conftest.err >&5
  4738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4739. (exit $ac_status); } &&
  4740. { ac_try='test -z "$ac_f77_werror_flag"
  4741. || test ! -s conftest.err'
  4742. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4743. (eval $ac_try) 2>&5
  4744. ac_status=$?
  4745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4746. (exit $ac_status); }; } &&
  4747. { ac_try='test -s conftest.$ac_objext'
  4748. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4749. (eval $ac_try) 2>&5
  4750. ac_status=$?
  4751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4752. (exit $ac_status); }; }; then
  4753. ac_compiler_gnu=yes
  4754. else
  4755. echo "$as_me: failed program was:" >&5
  4756. sed 's/^/| /' conftest.$ac_ext >&5
  4757. ac_compiler_gnu=no
  4758. fi
  4759. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4760. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  4761. fi
  4762. echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  4763. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
  4764. ac_ext=$ac_save_ext
  4765. ac_test_FFLAGS=${FFLAGS+set}
  4766. ac_save_FFLAGS=$FFLAGS
  4767. FFLAGS=
  4768. echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  4769. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
  4770. if test "${ac_cv_prog_f77_g+set}" = set; then
  4771. echo $ECHO_N "(cached) $ECHO_C" >&6
  4772. else
  4773. FFLAGS=-g
  4774. cat >conftest.$ac_ext <<_ACEOF
  4775. program main
  4776. end
  4777. _ACEOF
  4778. rm -f conftest.$ac_objext
  4779. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4780. (eval $ac_compile) 2>conftest.er1
  4781. ac_status=$?
  4782. grep -v '^ *+' conftest.er1 >conftest.err
  4783. rm -f conftest.er1
  4784. cat conftest.err >&5
  4785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4786. (exit $ac_status); } &&
  4787. { ac_try='test -z "$ac_f77_werror_flag"
  4788. || test ! -s conftest.err'
  4789. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4790. (eval $ac_try) 2>&5
  4791. ac_status=$?
  4792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4793. (exit $ac_status); }; } &&
  4794. { ac_try='test -s conftest.$ac_objext'
  4795. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4796. (eval $ac_try) 2>&5
  4797. ac_status=$?
  4798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4799. (exit $ac_status); }; }; then
  4800. ac_cv_prog_f77_g=yes
  4801. else
  4802. echo "$as_me: failed program was:" >&5
  4803. sed 's/^/| /' conftest.$ac_ext >&5
  4804. ac_cv_prog_f77_g=no
  4805. fi
  4806. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4807. fi
  4808. echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  4809. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
  4810. if test "$ac_test_FFLAGS" = set; then
  4811. FFLAGS=$ac_save_FFLAGS
  4812. elif test $ac_cv_prog_f77_g = yes; then
  4813. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  4814. FFLAGS="-g -O2"
  4815. else
  4816. FFLAGS="-g"
  4817. fi
  4818. else
  4819. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  4820. FFLAGS="-O2"
  4821. else
  4822. FFLAGS=
  4823. fi
  4824. fi
  4825. G77=`test $ac_compiler_gnu = yes && echo yes`
  4826. ac_ext=c
  4827. ac_cpp='$CPP $CPPFLAGS'
  4828. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4829. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4830. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4831. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  4832. # find the maximum length of command line arguments
  4833. echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  4834. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  4835. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  4836. echo $ECHO_N "(cached) $ECHO_C" >&6
  4837. else
  4838. i=0
  4839. teststring="ABCD"
  4840. case $build_os in
  4841. msdosdjgpp*)
  4842. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4843. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4844. # during glob expansion). Even if it were fixed, the result of this
  4845. # check would be larger than it should be.
  4846. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4847. ;;
  4848. gnu*)
  4849. # Under GNU Hurd, this test is not required because there is
  4850. # no limit to the length of command line arguments.
  4851. # Libtool will interpret -1 as no limit whatsoever
  4852. lt_cv_sys_max_cmd_len=-1;
  4853. ;;
  4854. cygwin* | mingw*)
  4855. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4856. # about 5 minutes as the teststring grows exponentially.
  4857. # Worse, since 9x/ME are not pre-emptively multitasking,
  4858. # you end up with a "frozen" computer, even though with patience
  4859. # the test eventually succeeds (with a max line length of 256k).
  4860. # Instead, let's just punt: use the minimum linelength reported by
  4861. # all of the supported platforms: 8192 (on NT/2K/XP).
  4862. lt_cv_sys_max_cmd_len=8192;
  4863. ;;
  4864. amigaos*)
  4865. # On AmigaOS with pdksh, this test takes hours, literally.
  4866. # So we just punt and use a minimum line length of 8192.
  4867. lt_cv_sys_max_cmd_len=8192;
  4868. ;;
  4869. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4870. # This has been around since 386BSD, at least. Likely further.
  4871. if test -x /sbin/sysctl; then
  4872. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4873. elif test -x /usr/sbin/sysctl; then
  4874. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4875. else
  4876. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4877. fi
  4878. # And add a safety zone
  4879. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4880. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4881. ;;
  4882. interix*)
  4883. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4884. lt_cv_sys_max_cmd_len=196608
  4885. ;;
  4886. osf*)
  4887. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4888. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4889. # nice to cause kernel panics so lets avoid the loop below.
  4890. # First set a reasonable default.
  4891. lt_cv_sys_max_cmd_len=16384
  4892. #
  4893. if test -x /sbin/sysconfig; then
  4894. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4895. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4896. esac
  4897. fi
  4898. ;;
  4899. sco3.2v5*)
  4900. lt_cv_sys_max_cmd_len=102400
  4901. ;;
  4902. sysv5* | sco5v6* | sysv4.2uw2*)
  4903. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4904. if test -n "$kargmax"; then
  4905. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4906. else
  4907. lt_cv_sys_max_cmd_len=32768
  4908. fi
  4909. ;;
  4910. *)
  4911. # If test is not a shell built-in, we'll probably end up computing a
  4912. # maximum length that is only half of the actual maximum length, but
  4913. # we can't tell.
  4914. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4915. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  4916. = "XX$teststring") >/dev/null 2>&1 &&
  4917. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  4918. lt_cv_sys_max_cmd_len=$new_result &&
  4919. test $i != 17 # 1/2 MB should be enough
  4920. do
  4921. i=`expr $i + 1`
  4922. teststring=$teststring$teststring
  4923. done
  4924. teststring=
  4925. # Add a significant safety factor because C++ compilers can tack on massive
  4926. # amounts of additional arguments before passing them to the linker.
  4927. # It appears as though 1/2 is a usable value.
  4928. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4929. ;;
  4930. esac
  4931. fi
  4932. if test -n $lt_cv_sys_max_cmd_len ; then
  4933. echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  4934. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  4935. else
  4936. echo "$as_me:$LINENO: result: none" >&5
  4937. echo "${ECHO_T}none" >&6
  4938. fi
  4939. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4940. echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  4941. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  4942. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  4943. echo $ECHO_N "(cached) $ECHO_C" >&6
  4944. else
  4945. # These are sane defaults that work on at least a few old systems.
  4946. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4947. # Character class describing NM global symbol codes.
  4948. symcode='[BCDEGRST]'
  4949. # Regexp to match symbols that can be accessed directly from C.
  4950. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4951. # Transform an extracted symbol line into a proper C declaration
  4952. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  4953. # Transform an extracted symbol line into symbol name and symbol address
  4954. 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'"
  4955. # Define system-specific variables.
  4956. case $host_os in
  4957. aix*)
  4958. symcode='[BCDT]'
  4959. ;;
  4960. cygwin* | mingw* | pw32*)
  4961. symcode='[ABCDGISTW]'
  4962. ;;
  4963. hpux*) # Its linker distinguishes data from code symbols
  4964. if test "$host_cpu" = ia64; then
  4965. symcode='[ABCDEGRST]'
  4966. fi
  4967. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4968. 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'"
  4969. ;;
  4970. linux*)
  4971. if test "$host_cpu" = ia64; then
  4972. symcode='[ABCDGIRSTW]'
  4973. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4974. 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'"
  4975. fi
  4976. ;;
  4977. irix* | nonstopux*)
  4978. symcode='[BCDEGRST]'
  4979. ;;
  4980. osf*)
  4981. symcode='[BCDEGQRST]'
  4982. ;;
  4983. solaris*)
  4984. symcode='[BDRT]'
  4985. ;;
  4986. sco3.2v5*)
  4987. symcode='[DT]'
  4988. ;;
  4989. sysv4.2uw2*)
  4990. symcode='[DT]'
  4991. ;;
  4992. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4993. symcode='[ABDT]'
  4994. ;;
  4995. sysv4)
  4996. symcode='[DFNSTU]'
  4997. ;;
  4998. esac
  4999. # Handle CRLF in mingw tool chain
  5000. opt_cr=
  5001. case $build_os in
  5002. mingw*)
  5003. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5004. ;;
  5005. esac
  5006. # If we're using GNU nm, then use its standard symbol codes.
  5007. case `$NM -V 2>&1` in
  5008. *GNU* | *'with BFD'*)
  5009. symcode='[ABCDGIRSTW]' ;;
  5010. esac
  5011. # Try without a prefix undercore, then with it.
  5012. for ac_symprfx in "" "_"; do
  5013. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5014. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5015. # Write the raw and C identifiers.
  5016. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5017. # Check to see that the pipe works correctly.
  5018. pipe_works=no
  5019. rm -f conftest*
  5020. cat > conftest.$ac_ext <<EOF
  5021. #ifdef __cplusplus
  5022. extern "C" {
  5023. #endif
  5024. char nm_test_var;
  5025. void nm_test_func(){}
  5026. #ifdef __cplusplus
  5027. }
  5028. #endif
  5029. int main(){nm_test_var='a';nm_test_func();return(0);}
  5030. EOF
  5031. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5032. (eval $ac_compile) 2>&5
  5033. ac_status=$?
  5034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5035. (exit $ac_status); }; then
  5036. # Now try to grab the symbols.
  5037. nlist=conftest.nm
  5038. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5039. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5040. ac_status=$?
  5041. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5042. (exit $ac_status); } && test -s "$nlist"; then
  5043. # Try sorting and uniquifying the output.
  5044. if sort "$nlist" | uniq > "$nlist"T; then
  5045. mv -f "$nlist"T "$nlist"
  5046. else
  5047. rm -f "$nlist"T
  5048. fi
  5049. # Make sure that we snagged all the symbols we need.
  5050. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5051. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5052. cat <<EOF > conftest.$ac_ext
  5053. #ifdef __cplusplus
  5054. extern "C" {
  5055. #endif
  5056. EOF
  5057. # Now generate the symbol file.
  5058. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5059. cat <<EOF >> conftest.$ac_ext
  5060. #if defined (__STDC__) && __STDC__
  5061. # define lt_ptr_t void *
  5062. #else
  5063. # define lt_ptr_t char *
  5064. # define const
  5065. #endif
  5066. /* The mapping between symbol names and symbols. */
  5067. const struct {
  5068. const char *name;
  5069. lt_ptr_t address;
  5070. }
  5071. lt_preloaded_symbols[] =
  5072. {
  5073. EOF
  5074. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5075. cat <<\EOF >> conftest.$ac_ext
  5076. {0, (lt_ptr_t) 0}
  5077. };
  5078. #ifdef __cplusplus
  5079. }
  5080. #endif
  5081. EOF
  5082. # Now try linking the two files.
  5083. mv conftest.$ac_objext conftstm.$ac_objext
  5084. lt_save_LIBS="$LIBS"
  5085. lt_save_CFLAGS="$CFLAGS"
  5086. LIBS="conftstm.$ac_objext"
  5087. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5088. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5089. (eval $ac_link) 2>&5
  5090. ac_status=$?
  5091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5092. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5093. pipe_works=yes
  5094. fi
  5095. LIBS="$lt_save_LIBS"
  5096. CFLAGS="$lt_save_CFLAGS"
  5097. else
  5098. echo "cannot find nm_test_func in $nlist" >&5
  5099. fi
  5100. else
  5101. echo "cannot find nm_test_var in $nlist" >&5
  5102. fi
  5103. else
  5104. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5105. fi
  5106. else
  5107. echo "$progname: failed program was:" >&5
  5108. cat conftest.$ac_ext >&5
  5109. fi
  5110. rm -f conftest* conftst*
  5111. # Do not use the global_symbol_pipe unless it works.
  5112. if test "$pipe_works" = yes; then
  5113. break
  5114. else
  5115. lt_cv_sys_global_symbol_pipe=
  5116. fi
  5117. done
  5118. fi
  5119. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5120. lt_cv_sys_global_symbol_to_cdecl=
  5121. fi
  5122. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5123. echo "$as_me:$LINENO: result: failed" >&5
  5124. echo "${ECHO_T}failed" >&6
  5125. else
  5126. echo "$as_me:$LINENO: result: ok" >&5
  5127. echo "${ECHO_T}ok" >&6
  5128. fi
  5129. echo "$as_me:$LINENO: checking for objdir" >&5
  5130. echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  5131. if test "${lt_cv_objdir+set}" = set; then
  5132. echo $ECHO_N "(cached) $ECHO_C" >&6
  5133. else
  5134. rm -f .libs 2>/dev/null
  5135. mkdir .libs 2>/dev/null
  5136. if test -d .libs; then
  5137. lt_cv_objdir=.libs
  5138. else
  5139. # MS-DOS does not allow filenames that begin with a dot.
  5140. lt_cv_objdir=_libs
  5141. fi
  5142. rmdir .libs 2>/dev/null
  5143. fi
  5144. echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  5145. echo "${ECHO_T}$lt_cv_objdir" >&6
  5146. objdir=$lt_cv_objdir
  5147. case $host_os in
  5148. aix3*)
  5149. # AIX sometimes has problems with the GCC collect2 program. For some
  5150. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5151. # vanish in a puff of smoke.
  5152. if test "X${COLLECT_NAMES+set}" != Xset; then
  5153. COLLECT_NAMES=
  5154. export COLLECT_NAMES
  5155. fi
  5156. ;;
  5157. esac
  5158. # Sed substitution that helps us do robust quoting. It backslashifies
  5159. # metacharacters that are still active within double-quoted strings.
  5160. Xsed='sed -e 1s/^X//'
  5161. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  5162. # Same as above, but do not quote variable references.
  5163. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  5164. # Sed substitution to delay expansion of an escaped shell variable in a
  5165. # double_quote_subst'ed string.
  5166. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5167. # Sed substitution to avoid accidental globbing in evaled expressions
  5168. no_glob_subst='s/\*/\\\*/g'
  5169. # Constants:
  5170. rm="rm -f"
  5171. # Global variables:
  5172. default_ofile=libtool
  5173. can_build_shared=yes
  5174. # All known linkers require a `.a' archive for static linking (except MSVC,
  5175. # which needs '.lib').
  5176. libext=a
  5177. ltmain="$ac_aux_dir/ltmain.sh"
  5178. ofile="$default_ofile"
  5179. with_gnu_ld="$lt_cv_prog_gnu_ld"
  5180. if test -n "$ac_tool_prefix"; then
  5181. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5182. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5183. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5184. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5185. if test "${ac_cv_prog_AR+set}" = set; then
  5186. echo $ECHO_N "(cached) $ECHO_C" >&6
  5187. else
  5188. if test -n "$AR"; then
  5189. ac_cv_prog_AR="$AR" # Let the user override the test.
  5190. else
  5191. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5192. for as_dir in $PATH
  5193. do
  5194. IFS=$as_save_IFS
  5195. test -z "$as_dir" && as_dir=.
  5196. for ac_exec_ext in '' $ac_executable_extensions; do
  5197. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5198. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5199. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5200. break 2
  5201. fi
  5202. done
  5203. done
  5204. fi
  5205. fi
  5206. AR=$ac_cv_prog_AR
  5207. if test -n "$AR"; then
  5208. echo "$as_me:$LINENO: result: $AR" >&5
  5209. echo "${ECHO_T}$AR" >&6
  5210. else
  5211. echo "$as_me:$LINENO: result: no" >&5
  5212. echo "${ECHO_T}no" >&6
  5213. fi
  5214. fi
  5215. if test -z "$ac_cv_prog_AR"; then
  5216. ac_ct_AR=$AR
  5217. # Extract the first word of "ar", so it can be a program name with args.
  5218. set dummy ar; ac_word=$2
  5219. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5220. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5221. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  5222. echo $ECHO_N "(cached) $ECHO_C" >&6
  5223. else
  5224. if test -n "$ac_ct_AR"; then
  5225. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5226. else
  5227. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5228. for as_dir in $PATH
  5229. do
  5230. IFS=$as_save_IFS
  5231. test -z "$as_dir" && as_dir=.
  5232. for ac_exec_ext in '' $ac_executable_extensions; do
  5233. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5234. ac_cv_prog_ac_ct_AR="ar"
  5235. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5236. break 2
  5237. fi
  5238. done
  5239. done
  5240. test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  5241. fi
  5242. fi
  5243. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5244. if test -n "$ac_ct_AR"; then
  5245. echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  5246. echo "${ECHO_T}$ac_ct_AR" >&6
  5247. else
  5248. echo "$as_me:$LINENO: result: no" >&5
  5249. echo "${ECHO_T}no" >&6
  5250. fi
  5251. AR=$ac_ct_AR
  5252. else
  5253. AR="$ac_cv_prog_AR"
  5254. fi
  5255. if test -n "$ac_tool_prefix"; then
  5256. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5257. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5258. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5259. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5260. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5261. echo $ECHO_N "(cached) $ECHO_C" >&6
  5262. else
  5263. if test -n "$RANLIB"; then
  5264. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5265. else
  5266. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5267. for as_dir in $PATH
  5268. do
  5269. IFS=$as_save_IFS
  5270. test -z "$as_dir" && as_dir=.
  5271. for ac_exec_ext in '' $ac_executable_extensions; do
  5272. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5273. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5274. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5275. break 2
  5276. fi
  5277. done
  5278. done
  5279. fi
  5280. fi
  5281. RANLIB=$ac_cv_prog_RANLIB
  5282. if test -n "$RANLIB"; then
  5283. echo "$as_me:$LINENO: result: $RANLIB" >&5
  5284. echo "${ECHO_T}$RANLIB" >&6
  5285. else
  5286. echo "$as_me:$LINENO: result: no" >&5
  5287. echo "${ECHO_T}no" >&6
  5288. fi
  5289. fi
  5290. if test -z "$ac_cv_prog_RANLIB"; then
  5291. ac_ct_RANLIB=$RANLIB
  5292. # Extract the first word of "ranlib", so it can be a program name with args.
  5293. set dummy ranlib; ac_word=$2
  5294. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5295. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5296. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5297. echo $ECHO_N "(cached) $ECHO_C" >&6
  5298. else
  5299. if test -n "$ac_ct_RANLIB"; then
  5300. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5301. else
  5302. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5303. for as_dir in $PATH
  5304. do
  5305. IFS=$as_save_IFS
  5306. test -z "$as_dir" && as_dir=.
  5307. for ac_exec_ext in '' $ac_executable_extensions; do
  5308. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5309. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5310. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5311. break 2
  5312. fi
  5313. done
  5314. done
  5315. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  5316. fi
  5317. fi
  5318. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5319. if test -n "$ac_ct_RANLIB"; then
  5320. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5321. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  5322. else
  5323. echo "$as_me:$LINENO: result: no" >&5
  5324. echo "${ECHO_T}no" >&6
  5325. fi
  5326. RANLIB=$ac_ct_RANLIB
  5327. else
  5328. RANLIB="$ac_cv_prog_RANLIB"
  5329. fi
  5330. if test -n "$ac_tool_prefix"; then
  5331. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5332. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5333. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5334. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5335. if test "${ac_cv_prog_STRIP+set}" = set; then
  5336. echo $ECHO_N "(cached) $ECHO_C" >&6
  5337. else
  5338. if test -n "$STRIP"; then
  5339. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5340. else
  5341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5342. for as_dir in $PATH
  5343. do
  5344. IFS=$as_save_IFS
  5345. test -z "$as_dir" && as_dir=.
  5346. for ac_exec_ext in '' $ac_executable_extensions; do
  5347. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5348. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5349. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5350. break 2
  5351. fi
  5352. done
  5353. done
  5354. fi
  5355. fi
  5356. STRIP=$ac_cv_prog_STRIP
  5357. if test -n "$STRIP"; then
  5358. echo "$as_me:$LINENO: result: $STRIP" >&5
  5359. echo "${ECHO_T}$STRIP" >&6
  5360. else
  5361. echo "$as_me:$LINENO: result: no" >&5
  5362. echo "${ECHO_T}no" >&6
  5363. fi
  5364. fi
  5365. if test -z "$ac_cv_prog_STRIP"; then
  5366. ac_ct_STRIP=$STRIP
  5367. # Extract the first word of "strip", so it can be a program name with args.
  5368. set dummy strip; ac_word=$2
  5369. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5370. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5371. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  5372. echo $ECHO_N "(cached) $ECHO_C" >&6
  5373. else
  5374. if test -n "$ac_ct_STRIP"; then
  5375. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5376. else
  5377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5378. for as_dir in $PATH
  5379. do
  5380. IFS=$as_save_IFS
  5381. test -z "$as_dir" && as_dir=.
  5382. for ac_exec_ext in '' $ac_executable_extensions; do
  5383. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5384. ac_cv_prog_ac_ct_STRIP="strip"
  5385. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5386. break 2
  5387. fi
  5388. done
  5389. done
  5390. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  5391. fi
  5392. fi
  5393. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5394. if test -n "$ac_ct_STRIP"; then
  5395. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  5396. echo "${ECHO_T}$ac_ct_STRIP" >&6
  5397. else
  5398. echo "$as_me:$LINENO: result: no" >&5
  5399. echo "${ECHO_T}no" >&6
  5400. fi
  5401. STRIP=$ac_ct_STRIP
  5402. else
  5403. STRIP="$ac_cv_prog_STRIP"
  5404. fi
  5405. old_CC="$CC"
  5406. old_CFLAGS="$CFLAGS"
  5407. # Set sane defaults for various variables
  5408. test -z "$AR" && AR=ar
  5409. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5410. test -z "$AS" && AS=as
  5411. test -z "$CC" && CC=cc
  5412. test -z "$LTCC" && LTCC=$CC
  5413. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  5414. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5415. test -z "$LD" && LD=ld
  5416. test -z "$LN_S" && LN_S="ln -s"
  5417. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  5418. test -z "$NM" && NM=nm
  5419. test -z "$SED" && SED=sed
  5420. test -z "$OBJDUMP" && OBJDUMP=objdump
  5421. test -z "$RANLIB" && RANLIB=:
  5422. test -z "$STRIP" && STRIP=:
  5423. test -z "$ac_objext" && ac_objext=o
  5424. # Determine commands to create old-style static archives.
  5425. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  5426. old_postinstall_cmds='chmod 644 $oldlib'
  5427. old_postuninstall_cmds=
  5428. if test -n "$RANLIB"; then
  5429. case $host_os in
  5430. openbsd*)
  5431. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5432. ;;
  5433. *)
  5434. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5435. ;;
  5436. esac
  5437. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5438. fi
  5439. for cc_temp in $compiler""; do
  5440. case $cc_temp in
  5441. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5442. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5443. \-*) ;;
  5444. *) break;;
  5445. esac
  5446. done
  5447. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  5448. # Only perform the check for file, if the check method requires it
  5449. case $deplibs_check_method in
  5450. file_magic*)
  5451. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  5452. echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  5453. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  5454. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5455. echo $ECHO_N "(cached) $ECHO_C" >&6
  5456. else
  5457. case $MAGIC_CMD in
  5458. [\\/*] | ?:[\\/]*)
  5459. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5460. ;;
  5461. *)
  5462. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5463. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5464. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5465. for ac_dir in $ac_dummy; do
  5466. IFS="$lt_save_ifs"
  5467. test -z "$ac_dir" && ac_dir=.
  5468. if test -f $ac_dir/${ac_tool_prefix}file; then
  5469. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  5470. if test -n "$file_magic_test_file"; then
  5471. case $deplibs_check_method in
  5472. "file_magic "*)
  5473. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5474. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5475. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5476. $EGREP "$file_magic_regex" > /dev/null; then
  5477. :
  5478. else
  5479. cat <<EOF 1>&2
  5480. *** Warning: the command libtool uses to detect shared libraries,
  5481. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5482. *** The result is that libtool may fail to recognize shared libraries
  5483. *** as such. This will affect the creation of libtool libraries that
  5484. *** depend on shared libraries, but programs linked with such libtool
  5485. *** libraries will work regardless of this problem. Nevertheless, you
  5486. *** may want to report the problem to your system manager and/or to
  5487. *** bug-libtool@gnu.org
  5488. EOF
  5489. fi ;;
  5490. esac
  5491. fi
  5492. break
  5493. fi
  5494. done
  5495. IFS="$lt_save_ifs"
  5496. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5497. ;;
  5498. esac
  5499. fi
  5500. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5501. if test -n "$MAGIC_CMD"; then
  5502. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5503. echo "${ECHO_T}$MAGIC_CMD" >&6
  5504. else
  5505. echo "$as_me:$LINENO: result: no" >&5
  5506. echo "${ECHO_T}no" >&6
  5507. fi
  5508. if test -z "$lt_cv_path_MAGIC_CMD"; then
  5509. if test -n "$ac_tool_prefix"; then
  5510. echo "$as_me:$LINENO: checking for file" >&5
  5511. echo $ECHO_N "checking for file... $ECHO_C" >&6
  5512. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5513. echo $ECHO_N "(cached) $ECHO_C" >&6
  5514. else
  5515. case $MAGIC_CMD in
  5516. [\\/*] | ?:[\\/]*)
  5517. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5518. ;;
  5519. *)
  5520. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5521. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5522. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5523. for ac_dir in $ac_dummy; do
  5524. IFS="$lt_save_ifs"
  5525. test -z "$ac_dir" && ac_dir=.
  5526. if test -f $ac_dir/file; then
  5527. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  5528. if test -n "$file_magic_test_file"; then
  5529. case $deplibs_check_method in
  5530. "file_magic "*)
  5531. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5532. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5533. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5534. $EGREP "$file_magic_regex" > /dev/null; then
  5535. :
  5536. else
  5537. cat <<EOF 1>&2
  5538. *** Warning: the command libtool uses to detect shared libraries,
  5539. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5540. *** The result is that libtool may fail to recognize shared libraries
  5541. *** as such. This will affect the creation of libtool libraries that
  5542. *** depend on shared libraries, but programs linked with such libtool
  5543. *** libraries will work regardless of this problem. Nevertheless, you
  5544. *** may want to report the problem to your system manager and/or to
  5545. *** bug-libtool@gnu.org
  5546. EOF
  5547. fi ;;
  5548. esac
  5549. fi
  5550. break
  5551. fi
  5552. done
  5553. IFS="$lt_save_ifs"
  5554. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5555. ;;
  5556. esac
  5557. fi
  5558. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5559. if test -n "$MAGIC_CMD"; then
  5560. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5561. echo "${ECHO_T}$MAGIC_CMD" >&6
  5562. else
  5563. echo "$as_me:$LINENO: result: no" >&5
  5564. echo "${ECHO_T}no" >&6
  5565. fi
  5566. else
  5567. MAGIC_CMD=:
  5568. fi
  5569. fi
  5570. fi
  5571. ;;
  5572. esac
  5573. enable_dlopen=no
  5574. enable_win32_dll=yes
  5575. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  5576. if test "${enable_libtool_lock+set}" = set; then
  5577. enableval="$enable_libtool_lock"
  5578. fi;
  5579. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5580. # Check whether --with-pic or --without-pic was given.
  5581. if test "${with_pic+set}" = set; then
  5582. withval="$with_pic"
  5583. pic_mode="$withval"
  5584. else
  5585. pic_mode=default
  5586. fi;
  5587. test -z "$pic_mode" && pic_mode=default
  5588. # Use C for the default configuration in the libtool script
  5589. tagname=
  5590. lt_save_CC="$CC"
  5591. ac_ext=c
  5592. ac_cpp='$CPP $CPPFLAGS'
  5593. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5594. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5595. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5596. # Source file extension for C test sources.
  5597. ac_ext=c
  5598. # Object file extension for compiled C test sources.
  5599. objext=o
  5600. objext=$objext
  5601. # Code to be used in simple compile tests
  5602. lt_simple_compile_test_code="int some_variable = 0;\n"
  5603. # Code to be used in simple link tests
  5604. lt_simple_link_test_code='int main(){return(0);}\n'
  5605. # If no C compiler was specified, use CC.
  5606. LTCC=${LTCC-"$CC"}
  5607. # If no C compiler flags were specified, use CFLAGS.
  5608. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5609. # Allow CC to be a program name with arguments.
  5610. compiler=$CC
  5611. # save warnings/boilerplate of simple test code
  5612. ac_outfile=conftest.$ac_objext
  5613. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  5614. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5615. _lt_compiler_boilerplate=`cat conftest.err`
  5616. $rm conftest*
  5617. ac_outfile=conftest.$ac_objext
  5618. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  5619. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5620. _lt_linker_boilerplate=`cat conftest.err`
  5621. $rm conftest*
  5622. ## CAVEAT EMPTOR:
  5623. ## There is no encapsulation within the following macros, do not change
  5624. ## the running order or otherwise move them around unless you know exactly
  5625. ## what you are doing...
  5626. lt_prog_compiler_no_builtin_flag=
  5627. if test "$GCC" = yes; then
  5628. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  5629. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  5630. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  5631. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  5632. echo $ECHO_N "(cached) $ECHO_C" >&6
  5633. else
  5634. lt_cv_prog_compiler_rtti_exceptions=no
  5635. ac_outfile=conftest.$ac_objext
  5636. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5637. lt_compiler_flag="-fno-rtti -fno-exceptions"
  5638. # Insert the option either (1) after the last *FLAGS variable, or
  5639. # (2) before a word containing "conftest.", or (3) at the end.
  5640. # Note that $ac_compile itself does not contain backslashes and begins
  5641. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5642. # The option is referenced via a variable to avoid confusing sed.
  5643. lt_compile=`echo "$ac_compile" | $SED \
  5644. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5645. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5646. -e 's:$: $lt_compiler_flag:'`
  5647. (eval echo "\"\$as_me:6363: $lt_compile\"" >&5)
  5648. (eval "$lt_compile" 2>conftest.err)
  5649. ac_status=$?
  5650. cat conftest.err >&5
  5651. echo "$as_me:6367: \$? = $ac_status" >&5
  5652. if (exit $ac_status) && test -s "$ac_outfile"; then
  5653. # The compiler can only warn and ignore the option if not recognized
  5654. # So say no if there are warnings other than the usual output.
  5655. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  5656. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  5657. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  5658. lt_cv_prog_compiler_rtti_exceptions=yes
  5659. fi
  5660. fi
  5661. $rm conftest*
  5662. fi
  5663. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  5664. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  5665. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  5666. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  5667. else
  5668. :
  5669. fi
  5670. fi
  5671. lt_prog_compiler_wl=
  5672. lt_prog_compiler_pic=
  5673. lt_prog_compiler_static=
  5674. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  5675. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  5676. if test "$GCC" = yes; then
  5677. lt_prog_compiler_wl='-Wl,'
  5678. lt_prog_compiler_static='-static'
  5679. case $host_os in
  5680. aix*)
  5681. # All AIX code is PIC.
  5682. if test "$host_cpu" = ia64; then
  5683. # AIX 5 now supports IA64 processor
  5684. lt_prog_compiler_static='-Bstatic'
  5685. fi
  5686. ;;
  5687. amigaos*)
  5688. # FIXME: we need at least 68020 code to build shared libraries, but
  5689. # adding the `-m68020' flag to GCC prevents building anything better,
  5690. # like `-m68040'.
  5691. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  5692. ;;
  5693. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5694. # PIC is the default for these OSes.
  5695. ;;
  5696. mingw* | pw32* | os2*)
  5697. # This hack is so that the source file can tell whether it is being
  5698. # built for inclusion in a dll (and should export symbols for example).
  5699. lt_prog_compiler_pic='-DDLL_EXPORT'
  5700. ;;
  5701. darwin* | rhapsody*)
  5702. # PIC is the default on this platform
  5703. # Common symbols not allowed in MH_DYLIB files
  5704. lt_prog_compiler_pic='-fno-common'
  5705. ;;
  5706. interix3*)
  5707. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  5708. # Instead, we relocate shared libraries at runtime.
  5709. ;;
  5710. msdosdjgpp*)
  5711. # Just because we use GCC doesn't mean we suddenly get shared libraries
  5712. # on systems that don't support them.
  5713. lt_prog_compiler_can_build_shared=no
  5714. enable_shared=no
  5715. ;;
  5716. sysv4*MP*)
  5717. if test -d /usr/nec; then
  5718. lt_prog_compiler_pic=-Kconform_pic
  5719. fi
  5720. ;;
  5721. hpux*)
  5722. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5723. # not for PA HP-UX.
  5724. case $host_cpu in
  5725. hppa*64*|ia64*)
  5726. # +Z the default
  5727. ;;
  5728. *)
  5729. lt_prog_compiler_pic='-fPIC'
  5730. ;;
  5731. esac
  5732. ;;
  5733. *)
  5734. lt_prog_compiler_pic='-fPIC'
  5735. ;;
  5736. esac
  5737. else
  5738. # PORTME Check for flag to pass linker flags through the system compiler.
  5739. case $host_os in
  5740. aix*)
  5741. lt_prog_compiler_wl='-Wl,'
  5742. if test "$host_cpu" = ia64; then
  5743. # AIX 5 now supports IA64 processor
  5744. lt_prog_compiler_static='-Bstatic'
  5745. else
  5746. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  5747. fi
  5748. ;;
  5749. darwin*)
  5750. # PIC is the default on this platform
  5751. # Common symbols not allowed in MH_DYLIB files
  5752. case $cc_basename in
  5753. xlc*)
  5754. lt_prog_compiler_pic='-qnocommon'
  5755. lt_prog_compiler_wl='-Wl,'
  5756. ;;
  5757. esac
  5758. ;;
  5759. mingw* | pw32* | os2*)
  5760. # This hack is so that the source file can tell whether it is being
  5761. # built for inclusion in a dll (and should export symbols for example).
  5762. lt_prog_compiler_pic='-DDLL_EXPORT'
  5763. ;;
  5764. hpux9* | hpux10* | hpux11*)
  5765. lt_prog_compiler_wl='-Wl,'
  5766. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5767. # not for PA HP-UX.
  5768. case $host_cpu in
  5769. hppa*64*|ia64*)
  5770. # +Z the default
  5771. ;;
  5772. *)
  5773. lt_prog_compiler_pic='+Z'
  5774. ;;
  5775. esac
  5776. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  5777. lt_prog_compiler_static='${wl}-a ${wl}archive'
  5778. ;;
  5779. irix5* | irix6* | nonstopux*)
  5780. lt_prog_compiler_wl='-Wl,'
  5781. # PIC (with -KPIC) is the default.
  5782. lt_prog_compiler_static='-non_shared'
  5783. ;;
  5784. newsos6)
  5785. lt_prog_compiler_pic='-KPIC'
  5786. lt_prog_compiler_static='-Bstatic'
  5787. ;;
  5788. linux*)
  5789. case $cc_basename in
  5790. icc* | ecc*)
  5791. lt_prog_compiler_wl='-Wl,'
  5792. lt_prog_compiler_pic='-KPIC'
  5793. lt_prog_compiler_static='-static'
  5794. ;;
  5795. pgcc* | pgf77* | pgf90* | pgf95*)
  5796. # Portland Group compilers (*not* the Pentium gcc compiler,
  5797. # which looks to be a dead project)
  5798. lt_prog_compiler_wl='-Wl,'
  5799. lt_prog_compiler_pic='-fpic'
  5800. lt_prog_compiler_static='-Bstatic'
  5801. ;;
  5802. ccc*)
  5803. lt_prog_compiler_wl='-Wl,'
  5804. # All Alpha code is PIC.
  5805. lt_prog_compiler_static='-non_shared'
  5806. ;;
  5807. esac
  5808. ;;
  5809. osf3* | osf4* | osf5*)
  5810. lt_prog_compiler_wl='-Wl,'
  5811. # All OSF/1 code is PIC.
  5812. lt_prog_compiler_static='-non_shared'
  5813. ;;
  5814. solaris*)
  5815. lt_prog_compiler_pic='-KPIC'
  5816. lt_prog_compiler_static='-Bstatic'
  5817. case $cc_basename in
  5818. f77* | f90* | f95*)
  5819. lt_prog_compiler_wl='-Qoption ld ';;
  5820. *)
  5821. lt_prog_compiler_wl='-Wl,';;
  5822. esac
  5823. ;;
  5824. sunos4*)
  5825. lt_prog_compiler_wl='-Qoption ld '
  5826. lt_prog_compiler_pic='-PIC'
  5827. lt_prog_compiler_static='-Bstatic'
  5828. ;;
  5829. sysv4 | sysv4.2uw2* | sysv4.3*)
  5830. lt_prog_compiler_wl='-Wl,'
  5831. lt_prog_compiler_pic='-KPIC'
  5832. lt_prog_compiler_static='-Bstatic'
  5833. ;;
  5834. sysv4*MP*)
  5835. if test -d /usr/nec ;then
  5836. lt_prog_compiler_pic='-Kconform_pic'
  5837. lt_prog_compiler_static='-Bstatic'
  5838. fi
  5839. ;;
  5840. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  5841. lt_prog_compiler_wl='-Wl,'
  5842. lt_prog_compiler_pic='-KPIC'
  5843. lt_prog_compiler_static='-Bstatic'
  5844. ;;
  5845. unicos*)
  5846. lt_prog_compiler_wl='-Wl,'
  5847. lt_prog_compiler_can_build_shared=no
  5848. ;;
  5849. uts4*)
  5850. lt_prog_compiler_pic='-pic'
  5851. lt_prog_compiler_static='-Bstatic'
  5852. ;;
  5853. *)
  5854. lt_prog_compiler_can_build_shared=no
  5855. ;;
  5856. esac
  5857. fi
  5858. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  5859. echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  5860. #
  5861. # Check to make sure the PIC flag actually works.
  5862. #
  5863. if test -n "$lt_prog_compiler_pic"; then
  5864. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  5865. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  5866. if test "${lt_prog_compiler_pic_works+set}" = set; then
  5867. echo $ECHO_N "(cached) $ECHO_C" >&6
  5868. else
  5869. lt_prog_compiler_pic_works=no
  5870. ac_outfile=conftest.$ac_objext
  5871. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5872. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  5873. # Insert the option either (1) after the last *FLAGS variable, or
  5874. # (2) before a word containing "conftest.", or (3) at the end.
  5875. # Note that $ac_compile itself does not contain backslashes and begins
  5876. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5877. # The option is referenced via a variable to avoid confusing sed.
  5878. lt_compile=`echo "$ac_compile" | $SED \
  5879. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5880. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5881. -e 's:$: $lt_compiler_flag:'`
  5882. (eval echo "\"\$as_me:6631: $lt_compile\"" >&5)
  5883. (eval "$lt_compile" 2>conftest.err)
  5884. ac_status=$?
  5885. cat conftest.err >&5
  5886. echo "$as_me:6635: \$? = $ac_status" >&5
  5887. if (exit $ac_status) && test -s "$ac_outfile"; then
  5888. # The compiler can only warn and ignore the option if not recognized
  5889. # So say no if there are warnings other than the usual output.
  5890. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  5891. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  5892. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  5893. lt_prog_compiler_pic_works=yes
  5894. fi
  5895. fi
  5896. $rm conftest*
  5897. fi
  5898. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  5899. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  5900. if test x"$lt_prog_compiler_pic_works" = xyes; then
  5901. case $lt_prog_compiler_pic in
  5902. "" | " "*) ;;
  5903. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  5904. esac
  5905. else
  5906. lt_prog_compiler_pic=
  5907. lt_prog_compiler_can_build_shared=no
  5908. fi
  5909. fi
  5910. case $host_os in
  5911. # For platforms which do not support PIC, -DPIC is meaningless:
  5912. *djgpp*)
  5913. lt_prog_compiler_pic=
  5914. ;;
  5915. *)
  5916. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  5917. ;;
  5918. esac
  5919. #
  5920. # Check to make sure the static flag actually works.
  5921. #
  5922. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  5923. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  5924. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  5925. if test "${lt_prog_compiler_static_works+set}" = set; then
  5926. echo $ECHO_N "(cached) $ECHO_C" >&6
  5927. else
  5928. lt_prog_compiler_static_works=no
  5929. save_LDFLAGS="$LDFLAGS"
  5930. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  5931. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  5932. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  5933. # The linker can only warn and ignore the option if not recognized
  5934. # So say no if there are warnings
  5935. if test -s conftest.err; then
  5936. # Append any errors to the config.log.
  5937. cat conftest.err 1>&5
  5938. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  5939. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  5940. if diff conftest.exp conftest.er2 >/dev/null; then
  5941. lt_prog_compiler_static_works=yes
  5942. fi
  5943. else
  5944. lt_prog_compiler_static_works=yes
  5945. fi
  5946. fi
  5947. $rm conftest*
  5948. LDFLAGS="$save_LDFLAGS"
  5949. fi
  5950. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  5951. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  5952. if test x"$lt_prog_compiler_static_works" = xyes; then
  5953. :
  5954. else
  5955. lt_prog_compiler_static=
  5956. fi
  5957. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  5958. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  5959. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  5960. echo $ECHO_N "(cached) $ECHO_C" >&6
  5961. else
  5962. lt_cv_prog_compiler_c_o=no
  5963. $rm -r conftest 2>/dev/null
  5964. mkdir conftest
  5965. cd conftest
  5966. mkdir out
  5967. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5968. lt_compiler_flag="-o out/conftest2.$ac_objext"
  5969. # Insert the option either (1) after the last *FLAGS variable, or
  5970. # (2) before a word containing "conftest.", or (3) at the end.
  5971. # Note that $ac_compile itself does not contain backslashes and begins
  5972. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5973. lt_compile=`echo "$ac_compile" | $SED \
  5974. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5975. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5976. -e 's:$: $lt_compiler_flag:'`
  5977. (eval echo "\"\$as_me:6735: $lt_compile\"" >&5)
  5978. (eval "$lt_compile" 2>out/conftest.err)
  5979. ac_status=$?
  5980. cat out/conftest.err >&5
  5981. echo "$as_me:6739: \$? = $ac_status" >&5
  5982. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  5983. then
  5984. # The compiler can only warn and ignore the option if not recognized
  5985. # So say no if there are warnings
  5986. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  5987. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  5988. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  5989. lt_cv_prog_compiler_c_o=yes
  5990. fi
  5991. fi
  5992. chmod u+w . 2>&5
  5993. $rm conftest*
  5994. # SGI C++ compiler will create directory out/ii_files/ for
  5995. # template instantiation
  5996. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  5997. $rm out/* && rmdir out
  5998. cd ..
  5999. rmdir conftest
  6000. $rm conftest*
  6001. fi
  6002. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6003. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  6004. hard_links="nottested"
  6005. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6006. # do not overwrite the value of need_locks provided by the user
  6007. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6008. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  6009. hard_links=yes
  6010. $rm conftest*
  6011. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6012. touch conftest.a
  6013. ln conftest.a conftest.b 2>&5 || hard_links=no
  6014. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6015. echo "$as_me:$LINENO: result: $hard_links" >&5
  6016. echo "${ECHO_T}$hard_links" >&6
  6017. if test "$hard_links" = no; then
  6018. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6019. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6020. need_locks=warn
  6021. fi
  6022. else
  6023. need_locks=no
  6024. fi
  6025. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6026. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  6027. runpath_var=
  6028. allow_undefined_flag=
  6029. enable_shared_with_static_runtimes=no
  6030. archive_cmds=
  6031. archive_expsym_cmds=
  6032. old_archive_From_new_cmds=
  6033. old_archive_from_expsyms_cmds=
  6034. export_dynamic_flag_spec=
  6035. whole_archive_flag_spec=
  6036. thread_safe_flag_spec=
  6037. hardcode_libdir_flag_spec=
  6038. hardcode_libdir_flag_spec_ld=
  6039. hardcode_libdir_separator=
  6040. hardcode_direct=no
  6041. hardcode_minus_L=no
  6042. hardcode_shlibpath_var=unsupported
  6043. link_all_deplibs=unknown
  6044. hardcode_automatic=no
  6045. module_cmds=
  6046. module_expsym_cmds=
  6047. always_export_symbols=no
  6048. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6049. # include_expsyms should be a list of space-separated symbols to be *always*
  6050. # included in the symbol list
  6051. include_expsyms=
  6052. # exclude_expsyms can be an extended regexp of symbols to exclude
  6053. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6054. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6055. # as well as any symbol that contains `d'.
  6056. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  6057. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6058. # platforms (ab)use it in PIC code, but their linkers get confused if
  6059. # the symbol is explicitly referenced. Since portable code cannot
  6060. # rely on this symbol name, it's probably fine to never include it in
  6061. # preloaded symbol tables.
  6062. extract_expsyms_cmds=
  6063. # Just being paranoid about ensuring that cc_basename is set.
  6064. for cc_temp in $compiler""; do
  6065. case $cc_temp in
  6066. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6067. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6068. \-*) ;;
  6069. *) break;;
  6070. esac
  6071. done
  6072. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6073. case $host_os in
  6074. cygwin* | mingw* | pw32*)
  6075. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6076. # When not using gcc, we currently assume that we are using
  6077. # Microsoft Visual C++.
  6078. if test "$GCC" != yes; then
  6079. with_gnu_ld=no
  6080. fi
  6081. ;;
  6082. interix*)
  6083. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6084. with_gnu_ld=yes
  6085. ;;
  6086. openbsd*)
  6087. with_gnu_ld=no
  6088. ;;
  6089. esac
  6090. ld_shlibs=yes
  6091. if test "$with_gnu_ld" = yes; then
  6092. # If archive_cmds runs LD, not CC, wlarc should be empty
  6093. wlarc='${wl}'
  6094. # Set some defaults for GNU ld with shared library support. These
  6095. # are reset later if shared libraries are not supported. Putting them
  6096. # here allows them to be overridden if necessary.
  6097. runpath_var=LD_RUN_PATH
  6098. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  6099. export_dynamic_flag_spec='${wl}--export-dynamic'
  6100. # ancient GNU ld didn't support --whole-archive et. al.
  6101. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  6102. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6103. else
  6104. whole_archive_flag_spec=
  6105. fi
  6106. supports_anon_versioning=no
  6107. case `$LD -v 2>/dev/null` in
  6108. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6109. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6110. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6111. *\ 2.11.*) ;; # other 2.11 versions
  6112. *) supports_anon_versioning=yes ;;
  6113. esac
  6114. # See if GNU ld supports shared libraries.
  6115. case $host_os in
  6116. aix3* | aix4* | aix5*)
  6117. # On AIX/PPC, the GNU linker is very broken
  6118. if test "$host_cpu" != ia64; then
  6119. ld_shlibs=no
  6120. cat <<EOF 1>&2
  6121. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6122. *** to be unable to reliably create shared libraries on AIX.
  6123. *** Therefore, libtool is disabling shared libraries support. If you
  6124. *** really care for shared libraries, you may want to modify your PATH
  6125. *** so that a non-GNU linker is found, and then restart.
  6126. EOF
  6127. fi
  6128. ;;
  6129. amigaos*)
  6130. 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)'
  6131. hardcode_libdir_flag_spec='-L$libdir'
  6132. hardcode_minus_L=yes
  6133. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  6134. # that the semantics of dynamic libraries on AmigaOS, at least up
  6135. # to version 4, is to share data among multiple programs linked
  6136. # with the same dynamic library. Since this doesn't match the
  6137. # behavior of shared libraries on other platforms, we can't use
  6138. # them.
  6139. ld_shlibs=no
  6140. ;;
  6141. beos*)
  6142. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6143. allow_undefined_flag=unsupported
  6144. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  6145. # support --undefined. This deserves some investigation. FIXME
  6146. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6147. else
  6148. ld_shlibs=no
  6149. fi
  6150. ;;
  6151. cygwin* | mingw* | pw32*)
  6152. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6153. # as there is no search path for DLLs.
  6154. hardcode_libdir_flag_spec='-L$libdir'
  6155. allow_undefined_flag=unsupported
  6156. always_export_symbols=no
  6157. enable_shared_with_static_runtimes=yes
  6158. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  6159. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  6160. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6161. # If the export-symbols file already is a .def file (1st line
  6162. # is EXPORTS), use it as is; otherwise, prepend...
  6163. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6164. cp $export_symbols $output_objdir/$soname.def;
  6165. else
  6166. echo EXPORTS > $output_objdir/$soname.def;
  6167. cat $export_symbols >> $output_objdir/$soname.def;
  6168. fi~
  6169. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6170. else
  6171. ld_shlibs=no
  6172. fi
  6173. ;;
  6174. interix3*)
  6175. hardcode_direct=no
  6176. hardcode_shlibpath_var=no
  6177. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6178. export_dynamic_flag_spec='${wl}-E'
  6179. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6180. # Instead, shared libraries are loaded at an image base (0x10000000 by
  6181. # default) and relocated if they conflict, which is a slow very memory
  6182. # consuming and fragmenting process. To avoid this, we pick a random,
  6183. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6184. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6185. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6186. 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'
  6187. ;;
  6188. linux*)
  6189. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6190. tmp_addflag=
  6191. case $cc_basename,$host_cpu in
  6192. pgcc*) # Portland Group C compiler
  6193. 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'
  6194. tmp_addflag=' $pic_flag'
  6195. ;;
  6196. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  6197. 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'
  6198. tmp_addflag=' $pic_flag -Mnomain' ;;
  6199. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  6200. tmp_addflag=' -i_dynamic' ;;
  6201. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  6202. tmp_addflag=' -i_dynamic -nofor_main' ;;
  6203. ifc* | ifort*) # Intel Fortran compiler
  6204. tmp_addflag=' -nofor_main' ;;
  6205. esac
  6206. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6207. if test $supports_anon_versioning = yes; then
  6208. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  6209. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6210. $echo "local: *; };" >> $output_objdir/$libname.ver~
  6211. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6212. fi
  6213. else
  6214. ld_shlibs=no
  6215. fi
  6216. ;;
  6217. netbsd*)
  6218. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6219. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6220. wlarc=
  6221. else
  6222. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6223. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6224. fi
  6225. ;;
  6226. solaris*)
  6227. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  6228. ld_shlibs=no
  6229. cat <<EOF 1>&2
  6230. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6231. *** create shared libraries on Solaris systems. Therefore, libtool
  6232. *** is disabling shared libraries support. We urge you to upgrade GNU
  6233. *** binutils to release 2.9.1 or newer. Another option is to modify
  6234. *** your PATH or compiler configuration so that the native linker is
  6235. *** used, and then restart.
  6236. EOF
  6237. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6238. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6239. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6240. else
  6241. ld_shlibs=no
  6242. fi
  6243. ;;
  6244. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  6245. case `$LD -v 2>&1` in
  6246. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  6247. ld_shlibs=no
  6248. cat <<_LT_EOF 1>&2
  6249. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  6250. *** reliably create shared libraries on SCO systems. Therefore, libtool
  6251. *** is disabling shared libraries support. We urge you to upgrade GNU
  6252. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  6253. *** your PATH or compiler configuration so that the native linker is
  6254. *** used, and then restart.
  6255. _LT_EOF
  6256. ;;
  6257. *)
  6258. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6259. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  6260. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  6261. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  6262. else
  6263. ld_shlibs=no
  6264. fi
  6265. ;;
  6266. esac
  6267. ;;
  6268. sunos4*)
  6269. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6270. wlarc=
  6271. hardcode_direct=yes
  6272. hardcode_shlibpath_var=no
  6273. ;;
  6274. *)
  6275. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6276. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6277. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6278. else
  6279. ld_shlibs=no
  6280. fi
  6281. ;;
  6282. esac
  6283. if test "$ld_shlibs" = no; then
  6284. runpath_var=
  6285. hardcode_libdir_flag_spec=
  6286. export_dynamic_flag_spec=
  6287. whole_archive_flag_spec=
  6288. fi
  6289. else
  6290. # PORTME fill in a description of your system's linker (not GNU ld)
  6291. case $host_os in
  6292. aix3*)
  6293. allow_undefined_flag=unsupported
  6294. always_export_symbols=yes
  6295. 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'
  6296. # Note: this linker hardcodes the directories in LIBPATH if there
  6297. # are no directories specified by -L.
  6298. hardcode_minus_L=yes
  6299. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  6300. # Neither direct hardcoding nor static linking is supported with a
  6301. # broken collect2.
  6302. hardcode_direct=unsupported
  6303. fi
  6304. ;;
  6305. aix4* | aix5*)
  6306. if test "$host_cpu" = ia64; then
  6307. # On IA64, the linker does run time linking by default, so we don't
  6308. # have to do anything special.
  6309. aix_use_runtimelinking=no
  6310. exp_sym_flag='-Bexport'
  6311. no_entry_flag=""
  6312. else
  6313. # If we're using GNU nm, then we don't want the "-C" option.
  6314. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6315. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  6316. 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'
  6317. else
  6318. 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'
  6319. fi
  6320. aix_use_runtimelinking=no
  6321. # Test if we are trying to use run time linking or normal
  6322. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6323. # need to do runtime linking.
  6324. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  6325. for ld_flag in $LDFLAGS; do
  6326. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  6327. aix_use_runtimelinking=yes
  6328. break
  6329. fi
  6330. done
  6331. ;;
  6332. esac
  6333. exp_sym_flag='-bexport'
  6334. no_entry_flag='-bnoentry'
  6335. fi
  6336. # When large executables or shared objects are built, AIX ld can
  6337. # have problems creating the table of contents. If linking a library
  6338. # or program results in "error TOC overflow" add -mminimal-toc to
  6339. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6340. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6341. archive_cmds=''
  6342. hardcode_direct=yes
  6343. hardcode_libdir_separator=':'
  6344. link_all_deplibs=yes
  6345. if test "$GCC" = yes; then
  6346. case $host_os in aix4.[012]|aix4.[012].*)
  6347. # We only want to do this on AIX 4.2 and lower, the check
  6348. # below for broken collect2 doesn't work under 4.3+
  6349. collect2name=`${CC} -print-prog-name=collect2`
  6350. if test -f "$collect2name" && \
  6351. strings "$collect2name" | grep resolve_lib_name >/dev/null
  6352. then
  6353. # We have reworked collect2
  6354. hardcode_direct=yes
  6355. else
  6356. # We have old collect2
  6357. hardcode_direct=unsupported
  6358. # It fails to find uninstalled libraries when the uninstalled
  6359. # path is not listed in the libpath. Setting hardcode_minus_L
  6360. # to unsupported forces relinking
  6361. hardcode_minus_L=yes
  6362. hardcode_libdir_flag_spec='-L$libdir'
  6363. hardcode_libdir_separator=
  6364. fi
  6365. ;;
  6366. esac
  6367. shared_flag='-shared'
  6368. if test "$aix_use_runtimelinking" = yes; then
  6369. shared_flag="$shared_flag "'${wl}-G'
  6370. fi
  6371. else
  6372. # not using gcc
  6373. if test "$host_cpu" = ia64; then
  6374. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6375. # chokes on -Wl,-G. The following line is correct:
  6376. shared_flag='-G'
  6377. else
  6378. if test "$aix_use_runtimelinking" = yes; then
  6379. shared_flag='${wl}-G'
  6380. else
  6381. shared_flag='${wl}-bM:SRE'
  6382. fi
  6383. fi
  6384. fi
  6385. # It seems that -bexpall does not export symbols beginning with
  6386. # underscore (_), so it is better to generate a list of symbols to export.
  6387. always_export_symbols=yes
  6388. if test "$aix_use_runtimelinking" = yes; then
  6389. # Warning - without using the other runtime loading flags (-brtl),
  6390. # -berok will link without error, but may produce a broken library.
  6391. allow_undefined_flag='-berok'
  6392. # Determine the default libpath from the value encoded in an empty executable.
  6393. cat >conftest.$ac_ext <<_ACEOF
  6394. /* confdefs.h. */
  6395. _ACEOF
  6396. cat confdefs.h >>conftest.$ac_ext
  6397. cat >>conftest.$ac_ext <<_ACEOF
  6398. /* end confdefs.h. */
  6399. int
  6400. main ()
  6401. {
  6402. ;
  6403. return 0;
  6404. }
  6405. _ACEOF
  6406. rm -f conftest.$ac_objext conftest$ac_exeext
  6407. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6408. (eval $ac_link) 2>conftest.er1
  6409. ac_status=$?
  6410. grep -v '^ *+' conftest.er1 >conftest.err
  6411. rm -f conftest.er1
  6412. cat conftest.err >&5
  6413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6414. (exit $ac_status); } &&
  6415. { ac_try='test -z "$ac_c_werror_flag"
  6416. || test ! -s conftest.err'
  6417. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6418. (eval $ac_try) 2>&5
  6419. ac_status=$?
  6420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6421. (exit $ac_status); }; } &&
  6422. { ac_try='test -s conftest$ac_exeext'
  6423. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6424. (eval $ac_try) 2>&5
  6425. ac_status=$?
  6426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6427. (exit $ac_status); }; }; then
  6428. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6429. }'`
  6430. # Check for a 64-bit object if we didn't find anything.
  6431. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6432. }'`; fi
  6433. else
  6434. echo "$as_me: failed program was:" >&5
  6435. sed 's/^/| /' conftest.$ac_ext >&5
  6436. fi
  6437. rm -f conftest.err conftest.$ac_objext \
  6438. conftest$ac_exeext conftest.$ac_ext
  6439. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6440. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6441. 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"
  6442. else
  6443. if test "$host_cpu" = ia64; then
  6444. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  6445. allow_undefined_flag="-z nodefs"
  6446. 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"
  6447. else
  6448. # Determine the default libpath from the value encoded in an empty executable.
  6449. cat >conftest.$ac_ext <<_ACEOF
  6450. /* confdefs.h. */
  6451. _ACEOF
  6452. cat confdefs.h >>conftest.$ac_ext
  6453. cat >>conftest.$ac_ext <<_ACEOF
  6454. /* end confdefs.h. */
  6455. int
  6456. main ()
  6457. {
  6458. ;
  6459. return 0;
  6460. }
  6461. _ACEOF
  6462. rm -f conftest.$ac_objext conftest$ac_exeext
  6463. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6464. (eval $ac_link) 2>conftest.er1
  6465. ac_status=$?
  6466. grep -v '^ *+' conftest.er1 >conftest.err
  6467. rm -f conftest.er1
  6468. cat conftest.err >&5
  6469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6470. (exit $ac_status); } &&
  6471. { ac_try='test -z "$ac_c_werror_flag"
  6472. || test ! -s conftest.err'
  6473. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6474. (eval $ac_try) 2>&5
  6475. ac_status=$?
  6476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6477. (exit $ac_status); }; } &&
  6478. { ac_try='test -s conftest$ac_exeext'
  6479. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6480. (eval $ac_try) 2>&5
  6481. ac_status=$?
  6482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6483. (exit $ac_status); }; }; then
  6484. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6485. }'`
  6486. # Check for a 64-bit object if we didn't find anything.
  6487. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6488. }'`; fi
  6489. else
  6490. echo "$as_me: failed program was:" >&5
  6491. sed 's/^/| /' conftest.$ac_ext >&5
  6492. fi
  6493. rm -f conftest.err conftest.$ac_objext \
  6494. conftest$ac_exeext conftest.$ac_ext
  6495. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6496. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6497. # Warning - without using the other run time loading flags,
  6498. # -berok will link without error, but may produce a broken library.
  6499. no_undefined_flag=' ${wl}-bernotok'
  6500. allow_undefined_flag=' ${wl}-berok'
  6501. # Exported symbols can be pulled into shared objects from archives
  6502. whole_archive_flag_spec='$convenience'
  6503. archive_cmds_need_lc=yes
  6504. # This is similar to how AIX traditionally builds its shared libraries.
  6505. 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'
  6506. fi
  6507. fi
  6508. ;;
  6509. amigaos*)
  6510. 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)'
  6511. hardcode_libdir_flag_spec='-L$libdir'
  6512. hardcode_minus_L=yes
  6513. # see comment about different semantics on the GNU ld section
  6514. ld_shlibs=no
  6515. ;;
  6516. bsdi[45]*)
  6517. export_dynamic_flag_spec=-rdynamic
  6518. ;;
  6519. cygwin* | mingw* | pw32*)
  6520. # When not using gcc, we currently assume that we are using
  6521. # Microsoft Visual C++.
  6522. # hardcode_libdir_flag_spec is actually meaningless, as there is
  6523. # no search path for DLLs.
  6524. hardcode_libdir_flag_spec=' '
  6525. allow_undefined_flag=unsupported
  6526. # Tell ltmain to make .lib files, not .a files.
  6527. libext=lib
  6528. # Tell ltmain to make .dll files, not .so files.
  6529. shrext_cmds=".dll"
  6530. # FIXME: Setting linknames here is a bad hack.
  6531. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6532. # The linker will automatically build a .lib file if we build a DLL.
  6533. old_archive_From_new_cmds='true'
  6534. # FIXME: Should let the user specify the lib program.
  6535. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  6536. fix_srcfile_path='`cygpath -w "$srcfile"`'
  6537. enable_shared_with_static_runtimes=yes
  6538. ;;
  6539. darwin* | rhapsody*)
  6540. case $host_os in
  6541. rhapsody* | darwin1.[012])
  6542. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  6543. ;;
  6544. *) # Darwin 1.3 on
  6545. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  6546. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6547. else
  6548. case ${MACOSX_DEPLOYMENT_TARGET} in
  6549. 10.[012])
  6550. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6551. ;;
  6552. 10.*)
  6553. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  6554. ;;
  6555. esac
  6556. fi
  6557. ;;
  6558. esac
  6559. archive_cmds_need_lc=no
  6560. hardcode_direct=no
  6561. hardcode_automatic=yes
  6562. hardcode_shlibpath_var=unsupported
  6563. whole_archive_flag_spec=''
  6564. link_all_deplibs=yes
  6565. if test "$GCC" = yes ; then
  6566. output_verbose_link_cmd='echo'
  6567. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  6568. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6569. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6570. 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}'
  6571. 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}'
  6572. else
  6573. case $cc_basename in
  6574. xlc*)
  6575. output_verbose_link_cmd='echo'
  6576. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  6577. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6578. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6579. 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6580. 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}'
  6581. ;;
  6582. *)
  6583. ld_shlibs=no
  6584. ;;
  6585. esac
  6586. fi
  6587. ;;
  6588. dgux*)
  6589. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6590. hardcode_libdir_flag_spec='-L$libdir'
  6591. hardcode_shlibpath_var=no
  6592. ;;
  6593. freebsd1*)
  6594. ld_shlibs=no
  6595. ;;
  6596. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6597. # support. Future versions do this automatically, but an explicit c++rt0.o
  6598. # does not break anything, and helps significantly (at the cost of a little
  6599. # extra space).
  6600. freebsd2.2*)
  6601. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6602. hardcode_libdir_flag_spec='-R$libdir'
  6603. hardcode_direct=yes
  6604. hardcode_shlibpath_var=no
  6605. ;;
  6606. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6607. freebsd2*)
  6608. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6609. hardcode_direct=yes
  6610. hardcode_minus_L=yes
  6611. hardcode_shlibpath_var=no
  6612. ;;
  6613. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6614. freebsd* | kfreebsd*-gnu | dragonfly*)
  6615. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6616. hardcode_libdir_flag_spec='-R$libdir'
  6617. hardcode_direct=yes
  6618. hardcode_shlibpath_var=no
  6619. ;;
  6620. hpux9*)
  6621. if test "$GCC" = yes; then
  6622. 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'
  6623. else
  6624. 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'
  6625. fi
  6626. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6627. hardcode_libdir_separator=:
  6628. hardcode_direct=yes
  6629. # hardcode_minus_L: Not really in the search PATH,
  6630. # but as the default location of the library.
  6631. hardcode_minus_L=yes
  6632. export_dynamic_flag_spec='${wl}-E'
  6633. ;;
  6634. hpux10*)
  6635. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6636. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6637. else
  6638. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6639. fi
  6640. if test "$with_gnu_ld" = no; then
  6641. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6642. hardcode_libdir_separator=:
  6643. hardcode_direct=yes
  6644. export_dynamic_flag_spec='${wl}-E'
  6645. # hardcode_minus_L: Not really in the search PATH,
  6646. # but as the default location of the library.
  6647. hardcode_minus_L=yes
  6648. fi
  6649. ;;
  6650. hpux11*)
  6651. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6652. case $host_cpu in
  6653. hppa*64*)
  6654. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6655. ;;
  6656. ia64*)
  6657. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6658. ;;
  6659. *)
  6660. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6661. ;;
  6662. esac
  6663. else
  6664. case $host_cpu in
  6665. hppa*64*)
  6666. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6667. ;;
  6668. ia64*)
  6669. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6670. ;;
  6671. *)
  6672. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6673. ;;
  6674. esac
  6675. fi
  6676. if test "$with_gnu_ld" = no; then
  6677. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6678. hardcode_libdir_separator=:
  6679. case $host_cpu in
  6680. hppa*64*|ia64*)
  6681. hardcode_libdir_flag_spec_ld='+b $libdir'
  6682. hardcode_direct=no
  6683. hardcode_shlibpath_var=no
  6684. ;;
  6685. *)
  6686. hardcode_direct=yes
  6687. export_dynamic_flag_spec='${wl}-E'
  6688. # hardcode_minus_L: Not really in the search PATH,
  6689. # but as the default location of the library.
  6690. hardcode_minus_L=yes
  6691. ;;
  6692. esac
  6693. fi
  6694. ;;
  6695. irix5* | irix6* | nonstopux*)
  6696. if test "$GCC" = yes; then
  6697. 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'
  6698. else
  6699. 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'
  6700. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  6701. fi
  6702. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6703. hardcode_libdir_separator=:
  6704. link_all_deplibs=yes
  6705. ;;
  6706. netbsd*)
  6707. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6708. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6709. else
  6710. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6711. fi
  6712. hardcode_libdir_flag_spec='-R$libdir'
  6713. hardcode_direct=yes
  6714. hardcode_shlibpath_var=no
  6715. ;;
  6716. newsos6)
  6717. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6718. hardcode_direct=yes
  6719. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6720. hardcode_libdir_separator=:
  6721. hardcode_shlibpath_var=no
  6722. ;;
  6723. openbsd*)
  6724. hardcode_direct=yes
  6725. hardcode_shlibpath_var=no
  6726. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6727. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6728. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  6729. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6730. export_dynamic_flag_spec='${wl}-E'
  6731. else
  6732. case $host_os in
  6733. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  6734. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6735. hardcode_libdir_flag_spec='-R$libdir'
  6736. ;;
  6737. *)
  6738. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6739. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6740. ;;
  6741. esac
  6742. fi
  6743. ;;
  6744. os2*)
  6745. hardcode_libdir_flag_spec='-L$libdir'
  6746. hardcode_minus_L=yes
  6747. allow_undefined_flag=unsupported
  6748. 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'
  6749. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6750. ;;
  6751. osf3*)
  6752. if test "$GCC" = yes; then
  6753. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6754. 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'
  6755. else
  6756. allow_undefined_flag=' -expect_unresolved \*'
  6757. 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'
  6758. fi
  6759. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6760. hardcode_libdir_separator=:
  6761. ;;
  6762. osf4* | osf5*) # as osf3* with the addition of -msym flag
  6763. if test "$GCC" = yes; then
  6764. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6765. 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'
  6766. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6767. else
  6768. allow_undefined_flag=' -expect_unresolved \*'
  6769. 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'
  6770. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  6771. $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'
  6772. # Both c and cxx compiler support -rpath directly
  6773. hardcode_libdir_flag_spec='-rpath $libdir'
  6774. fi
  6775. hardcode_libdir_separator=:
  6776. ;;
  6777. solaris*)
  6778. no_undefined_flag=' -z text'
  6779. if test "$GCC" = yes; then
  6780. wlarc='${wl}'
  6781. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6782. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6783. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  6784. else
  6785. wlarc=''
  6786. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6787. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6788. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  6789. fi
  6790. hardcode_libdir_flag_spec='-R$libdir'
  6791. hardcode_shlibpath_var=no
  6792. case $host_os in
  6793. solaris2.[0-5] | solaris2.[0-5].*) ;;
  6794. *)
  6795. # The compiler driver will combine linker options so we
  6796. # cannot just pass the convience library names through
  6797. # without $wl, iff we do not link with $LD.
  6798. # Luckily, gcc supports the same syntax we need for Sun Studio.
  6799. # Supported since Solaris 2.6 (maybe 2.5.1?)
  6800. case $wlarc in
  6801. '')
  6802. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  6803. *)
  6804. whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  6805. esac ;;
  6806. esac
  6807. link_all_deplibs=yes
  6808. ;;
  6809. sunos4*)
  6810. if test "x$host_vendor" = xsequent; then
  6811. # Use $CC to link under sequent, because it throws in some extra .o
  6812. # files that make .init and .fini sections work.
  6813. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6814. else
  6815. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  6816. fi
  6817. hardcode_libdir_flag_spec='-L$libdir'
  6818. hardcode_direct=yes
  6819. hardcode_minus_L=yes
  6820. hardcode_shlibpath_var=no
  6821. ;;
  6822. sysv4)
  6823. case $host_vendor in
  6824. sni)
  6825. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6826. hardcode_direct=yes # is this really true???
  6827. ;;
  6828. siemens)
  6829. ## LD is ld it makes a PLAMLIB
  6830. ## CC just makes a GrossModule.
  6831. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6832. reload_cmds='$CC -r -o $output$reload_objs'
  6833. hardcode_direct=no
  6834. ;;
  6835. motorola)
  6836. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6837. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  6838. ;;
  6839. esac
  6840. runpath_var='LD_RUN_PATH'
  6841. hardcode_shlibpath_var=no
  6842. ;;
  6843. sysv4.3*)
  6844. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6845. hardcode_shlibpath_var=no
  6846. export_dynamic_flag_spec='-Bexport'
  6847. ;;
  6848. sysv4*MP*)
  6849. if test -d /usr/nec; then
  6850. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6851. hardcode_shlibpath_var=no
  6852. runpath_var=LD_RUN_PATH
  6853. hardcode_runpath_var=yes
  6854. ld_shlibs=yes
  6855. fi
  6856. ;;
  6857. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  6858. no_undefined_flag='${wl}-z,text'
  6859. archive_cmds_need_lc=no
  6860. hardcode_shlibpath_var=no
  6861. runpath_var='LD_RUN_PATH'
  6862. if test "$GCC" = yes; then
  6863. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6864. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6865. else
  6866. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6867. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6868. fi
  6869. ;;
  6870. sysv5* | sco3.2v5* | sco5v6*)
  6871. # Note: We can NOT use -z defs as we might desire, because we do not
  6872. # link with -lc, and that would cause any symbols used from libc to
  6873. # always be unresolved, which means just about no library would
  6874. # ever link correctly. If we're not using GNU ld we use -z text
  6875. # though, which does catch some bad symbols but isn't as heavy-handed
  6876. # as -z defs.
  6877. no_undefined_flag='${wl}-z,text'
  6878. allow_undefined_flag='${wl}-z,nodefs'
  6879. archive_cmds_need_lc=no
  6880. hardcode_shlibpath_var=no
  6881. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  6882. hardcode_libdir_separator=':'
  6883. link_all_deplibs=yes
  6884. export_dynamic_flag_spec='${wl}-Bexport'
  6885. runpath_var='LD_RUN_PATH'
  6886. if test "$GCC" = yes; then
  6887. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6888. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6889. else
  6890. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6891. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6892. fi
  6893. ;;
  6894. uts4*)
  6895. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6896. hardcode_libdir_flag_spec='-L$libdir'
  6897. hardcode_shlibpath_var=no
  6898. ;;
  6899. *)
  6900. ld_shlibs=no
  6901. ;;
  6902. esac
  6903. fi
  6904. echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  6905. echo "${ECHO_T}$ld_shlibs" >&6
  6906. test "$ld_shlibs" = no && can_build_shared=no
  6907. #
  6908. # Do we need to explicitly link libc?
  6909. #
  6910. case "x$archive_cmds_need_lc" in
  6911. x|xyes)
  6912. # Assume -lc should be added
  6913. archive_cmds_need_lc=yes
  6914. if test "$enable_shared" = yes && test "$GCC" = yes; then
  6915. case $archive_cmds in
  6916. *'~'*)
  6917. # FIXME: we may have to deal with multi-command sequences.
  6918. ;;
  6919. '$CC '*)
  6920. # Test whether the compiler implicitly links with -lc since on some
  6921. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  6922. # to ld, don't add -lc before -lgcc.
  6923. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  6924. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  6925. $rm conftest*
  6926. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6927. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6928. (eval $ac_compile) 2>&5
  6929. ac_status=$?
  6930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6931. (exit $ac_status); } 2>conftest.err; then
  6932. soname=conftest
  6933. lib=conftest
  6934. libobjs=conftest.$ac_objext
  6935. deplibs=
  6936. wl=$lt_prog_compiler_wl
  6937. pic_flag=$lt_prog_compiler_pic
  6938. compiler_flags=-v
  6939. linker_flags=-v
  6940. verstring=
  6941. output_objdir=.
  6942. libname=conftest
  6943. lt_save_allow_undefined_flag=$allow_undefined_flag
  6944. allow_undefined_flag=
  6945. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  6946. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  6947. ac_status=$?
  6948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6949. (exit $ac_status); }
  6950. then
  6951. archive_cmds_need_lc=no
  6952. else
  6953. archive_cmds_need_lc=yes
  6954. fi
  6955. allow_undefined_flag=$lt_save_allow_undefined_flag
  6956. else
  6957. cat conftest.err 1>&5
  6958. fi
  6959. $rm conftest*
  6960. echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  6961. echo "${ECHO_T}$archive_cmds_need_lc" >&6
  6962. ;;
  6963. esac
  6964. fi
  6965. ;;
  6966. esac
  6967. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  6968. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  6969. library_names_spec=
  6970. libname_spec='lib$name'
  6971. soname_spec=
  6972. shrext_cmds=".so"
  6973. postinstall_cmds=
  6974. postuninstall_cmds=
  6975. finish_cmds=
  6976. finish_eval=
  6977. shlibpath_var=
  6978. shlibpath_overrides_runpath=unknown
  6979. version_type=none
  6980. dynamic_linker="$host_os ld.so"
  6981. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  6982. if test "$GCC" = yes; then
  6983. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  6984. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  6985. # if the path contains ";" then we assume it to be the separator
  6986. # otherwise default to the standard path separator (i.e. ":") - it is
  6987. # assumed that no part of a normal pathname contains ";" but that should
  6988. # okay in the real world where ";" in dirpaths is itself problematic.
  6989. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  6990. else
  6991. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  6992. fi
  6993. else
  6994. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  6995. fi
  6996. need_lib_prefix=unknown
  6997. hardcode_into_libs=no
  6998. # when you set need_version to no, make sure it does not cause -set_version
  6999. # flags to be left without arguments
  7000. need_version=unknown
  7001. case $host_os in
  7002. aix3*)
  7003. version_type=linux
  7004. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7005. shlibpath_var=LIBPATH
  7006. # AIX 3 has no versioning support, so we append a major version to the name.
  7007. soname_spec='${libname}${release}${shared_ext}$major'
  7008. ;;
  7009. aix4* | aix5*)
  7010. version_type=linux
  7011. need_lib_prefix=no
  7012. need_version=no
  7013. hardcode_into_libs=yes
  7014. if test "$host_cpu" = ia64; then
  7015. # AIX 5 supports IA64
  7016. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7017. shlibpath_var=LD_LIBRARY_PATH
  7018. else
  7019. # With GCC up to 2.95.x, collect2 would create an import file
  7020. # for dependence libraries. The import file would start with
  7021. # the line `#! .'. This would cause the generated library to
  7022. # depend on `.', always an invalid library. This was fixed in
  7023. # development snapshots of GCC prior to 3.0.
  7024. case $host_os in
  7025. aix4 | aix4.[01] | aix4.[01].*)
  7026. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7027. echo ' yes '
  7028. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  7029. :
  7030. else
  7031. can_build_shared=no
  7032. fi
  7033. ;;
  7034. esac
  7035. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7036. # soname into executable. Probably we can add versioning support to
  7037. # collect2, so additional links can be useful in future.
  7038. if test "$aix_use_runtimelinking" = yes; then
  7039. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7040. # instead of lib<name>.a to let people know that these are not
  7041. # typical AIX shared libraries.
  7042. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7043. else
  7044. # We preserve .a as extension for shared libraries through AIX4.2
  7045. # and later when we are not doing run time linking.
  7046. library_names_spec='${libname}${release}.a $libname.a'
  7047. soname_spec='${libname}${release}${shared_ext}$major'
  7048. fi
  7049. shlibpath_var=LIBPATH
  7050. fi
  7051. ;;
  7052. amigaos*)
  7053. library_names_spec='$libname.ixlibrary $libname.a'
  7054. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7055. 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'
  7056. ;;
  7057. beos*)
  7058. library_names_spec='${libname}${shared_ext}'
  7059. dynamic_linker="$host_os ld.so"
  7060. shlibpath_var=LIBRARY_PATH
  7061. ;;
  7062. bsdi[45]*)
  7063. version_type=linux
  7064. need_version=no
  7065. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7066. soname_spec='${libname}${release}${shared_ext}$major'
  7067. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7068. shlibpath_var=LD_LIBRARY_PATH
  7069. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7070. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7071. # the default ld.so.conf also contains /usr/contrib/lib and
  7072. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7073. # libtool to hard-code these into programs
  7074. ;;
  7075. cygwin* | mingw* | pw32*)
  7076. version_type=windows
  7077. shrext_cmds=".dll"
  7078. need_version=no
  7079. need_lib_prefix=no
  7080. case $GCC,$host_os in
  7081. yes,cygwin* | yes,mingw* | yes,pw32*)
  7082. library_names_spec='$libname.dll.a'
  7083. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7084. postinstall_cmds='base_file=`basename \${file}`~
  7085. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  7086. dldir=$destdir/`dirname \$dlpath`~
  7087. test -d \$dldir || mkdir -p \$dldir~
  7088. $install_prog $dir/$dlname \$dldir/$dlname~
  7089. chmod a+x \$dldir/$dlname'
  7090. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7091. dlpath=$dir/\$dldll~
  7092. $rm \$dlpath'
  7093. shlibpath_overrides_runpath=yes
  7094. case $host_os in
  7095. cygwin*)
  7096. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7097. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7098. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7099. ;;
  7100. mingw*)
  7101. # MinGW DLLs use traditional 'lib' prefix
  7102. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7103. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7104. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  7105. # It is most probably a Windows format PATH printed by
  7106. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7107. # path with ; separators, and with drive letters. We can handle the
  7108. # drive letters (cygwin fileutils understands them), so leave them,
  7109. # especially as we might pass files found there to a mingw objdump,
  7110. # which wouldn't understand a cygwinified path. Ahh.
  7111. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7112. else
  7113. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7114. fi
  7115. ;;
  7116. pw32*)
  7117. # pw32 DLLs use 'pw' prefix rather than 'lib'
  7118. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7119. ;;
  7120. esac
  7121. ;;
  7122. *)
  7123. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  7124. ;;
  7125. esac
  7126. dynamic_linker='Win32 ld.exe'
  7127. # FIXME: first we should search . and the directory the executable is in
  7128. shlibpath_var=PATH
  7129. ;;
  7130. darwin* | rhapsody*)
  7131. dynamic_linker="$host_os dyld"
  7132. version_type=darwin
  7133. need_lib_prefix=no
  7134. need_version=no
  7135. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  7136. soname_spec='${libname}${release}${major}$shared_ext'
  7137. shlibpath_overrides_runpath=yes
  7138. shlibpath_var=DYLD_LIBRARY_PATH
  7139. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  7140. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  7141. if test "$GCC" = yes; then
  7142. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  7143. else
  7144. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  7145. fi
  7146. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  7147. ;;
  7148. dgux*)
  7149. version_type=linux
  7150. need_lib_prefix=no
  7151. need_version=no
  7152. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  7153. soname_spec='${libname}${release}${shared_ext}$major'
  7154. shlibpath_var=LD_LIBRARY_PATH
  7155. ;;
  7156. freebsd1*)
  7157. dynamic_linker=no
  7158. ;;
  7159. kfreebsd*-gnu)
  7160. version_type=linux
  7161. need_lib_prefix=no
  7162. need_version=no
  7163. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7164. soname_spec='${libname}${release}${shared_ext}$major'
  7165. shlibpath_var=LD_LIBRARY_PATH
  7166. shlibpath_overrides_runpath=no
  7167. hardcode_into_libs=yes
  7168. dynamic_linker='GNU ld.so'
  7169. ;;
  7170. freebsd* | dragonfly*)
  7171. # DragonFly does not have aout. When/if they implement a new
  7172. # versioning mechanism, adjust this.
  7173. if test -x /usr/bin/objformat; then
  7174. objformat=`/usr/bin/objformat`
  7175. else
  7176. case $host_os in
  7177. freebsd[123]*) objformat=aout ;;
  7178. *) objformat=elf ;;
  7179. esac
  7180. fi
  7181. version_type=freebsd-$objformat
  7182. case $version_type in
  7183. freebsd-elf*)
  7184. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7185. need_version=no
  7186. need_lib_prefix=no
  7187. ;;
  7188. freebsd-*)
  7189. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  7190. need_version=yes
  7191. ;;
  7192. esac
  7193. shlibpath_var=LD_LIBRARY_PATH
  7194. case $host_os in
  7195. freebsd2*)
  7196. shlibpath_overrides_runpath=yes
  7197. ;;
  7198. freebsd3.[01]* | freebsdelf3.[01]*)
  7199. shlibpath_overrides_runpath=yes
  7200. hardcode_into_libs=yes
  7201. ;;
  7202. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  7203. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  7204. shlibpath_overrides_runpath=no
  7205. hardcode_into_libs=yes
  7206. ;;
  7207. freebsd*) # from 4.6 on
  7208. shlibpath_overrides_runpath=yes
  7209. hardcode_into_libs=yes
  7210. ;;
  7211. esac
  7212. ;;
  7213. gnu*)
  7214. version_type=linux
  7215. need_lib_prefix=no
  7216. need_version=no
  7217. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  7218. soname_spec='${libname}${release}${shared_ext}$major'
  7219. shlibpath_var=LD_LIBRARY_PATH
  7220. hardcode_into_libs=yes
  7221. ;;
  7222. hpux9* | hpux10* | hpux11*)
  7223. # Give a soname corresponding to the major version so that dld.sl refuses to
  7224. # link against other versions.
  7225. version_type=sunos
  7226. need_lib_prefix=no
  7227. need_version=no
  7228. case $host_cpu in
  7229. ia64*)
  7230. shrext_cmds='.so'
  7231. hardcode_into_libs=yes
  7232. dynamic_linker="$host_os dld.so"
  7233. shlibpath_var=LD_LIBRARY_PATH
  7234. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7235. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7236. soname_spec='${libname}${release}${shared_ext}$major'
  7237. if test "X$HPUX_IA64_MODE" = X32; then
  7238. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  7239. else
  7240. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  7241. fi
  7242. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7243. ;;
  7244. hppa*64*)
  7245. shrext_cmds='.sl'
  7246. hardcode_into_libs=yes
  7247. dynamic_linker="$host_os dld.sl"
  7248. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  7249. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7250. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7251. soname_spec='${libname}${release}${shared_ext}$major'
  7252. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  7253. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7254. ;;
  7255. *)
  7256. shrext_cmds='.sl'
  7257. dynamic_linker="$host_os dld.sl"
  7258. shlibpath_var=SHLIB_PATH
  7259. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  7260. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7261. soname_spec='${libname}${release}${shared_ext}$major'
  7262. ;;
  7263. esac
  7264. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  7265. postinstall_cmds='chmod 555 $lib'
  7266. ;;
  7267. interix3*)
  7268. version_type=linux
  7269. need_lib_prefix=no
  7270. need_version=no
  7271. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7272. soname_spec='${libname}${release}${shared_ext}$major'
  7273. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  7274. shlibpath_var=LD_LIBRARY_PATH
  7275. shlibpath_overrides_runpath=no
  7276. hardcode_into_libs=yes
  7277. ;;
  7278. irix5* | irix6* | nonstopux*)
  7279. case $host_os in
  7280. nonstopux*) version_type=nonstopux ;;
  7281. *)
  7282. if test "$lt_cv_prog_gnu_ld" = yes; then
  7283. version_type=linux
  7284. else
  7285. version_type=irix
  7286. fi ;;
  7287. esac
  7288. need_lib_prefix=no
  7289. need_version=no
  7290. soname_spec='${libname}${release}${shared_ext}$major'
  7291. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  7292. case $host_os in
  7293. irix5* | nonstopux*)
  7294. libsuff= shlibsuff=
  7295. ;;
  7296. *)
  7297. case $LD in # libtool.m4 will add one of these switches to LD
  7298. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  7299. libsuff= shlibsuff= libmagic=32-bit;;
  7300. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  7301. libsuff=32 shlibsuff=N32 libmagic=N32;;
  7302. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  7303. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  7304. *) libsuff= shlibsuff= libmagic=never-match;;
  7305. esac
  7306. ;;
  7307. esac
  7308. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  7309. shlibpath_overrides_runpath=no
  7310. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  7311. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  7312. hardcode_into_libs=yes
  7313. ;;
  7314. # No shared lib support for Linux oldld, aout, or coff.
  7315. linux*oldld* | linux*aout* | linux*coff*)
  7316. dynamic_linker=no
  7317. ;;
  7318. # This must be Linux ELF.
  7319. linux*)
  7320. version_type=linux
  7321. need_lib_prefix=no
  7322. need_version=no
  7323. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7324. soname_spec='${libname}${release}${shared_ext}$major'
  7325. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  7326. shlibpath_var=LD_LIBRARY_PATH
  7327. shlibpath_overrides_runpath=no
  7328. # This implies no fast_install, which is unacceptable.
  7329. # Some rework will be needed to allow for fast_install
  7330. # before this can be enabled.
  7331. hardcode_into_libs=yes
  7332. # Append ld.so.conf contents to the search path
  7333. if test -f /etc/ld.so.conf; then
  7334. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  7335. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  7336. fi
  7337. # We used to test for /lib/ld.so.1 and disable shared libraries on
  7338. # powerpc, because MkLinux only supported shared libraries with the
  7339. # GNU dynamic linker. Since this was broken with cross compilers,
  7340. # most powerpc-linux boxes support dynamic linking these days and
  7341. # people can always --disable-shared, the test was removed, and we
  7342. # assume the GNU/Linux dynamic linker is in use.
  7343. dynamic_linker='GNU/Linux ld.so'
  7344. ;;
  7345. knetbsd*-gnu)
  7346. version_type=linux
  7347. need_lib_prefix=no
  7348. need_version=no
  7349. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7350. soname_spec='${libname}${release}${shared_ext}$major'
  7351. shlibpath_var=LD_LIBRARY_PATH
  7352. shlibpath_overrides_runpath=no
  7353. hardcode_into_libs=yes
  7354. dynamic_linker='GNU ld.so'
  7355. ;;
  7356. netbsd*)
  7357. version_type=sunos
  7358. need_lib_prefix=no
  7359. need_version=no
  7360. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7361. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7362. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7363. dynamic_linker='NetBSD (a.out) ld.so'
  7364. else
  7365. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7366. soname_spec='${libname}${release}${shared_ext}$major'
  7367. dynamic_linker='NetBSD ld.elf_so'
  7368. fi
  7369. shlibpath_var=LD_LIBRARY_PATH
  7370. shlibpath_overrides_runpath=yes
  7371. hardcode_into_libs=yes
  7372. ;;
  7373. newsos6)
  7374. version_type=linux
  7375. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7376. shlibpath_var=LD_LIBRARY_PATH
  7377. shlibpath_overrides_runpath=yes
  7378. ;;
  7379. nto-qnx*)
  7380. version_type=linux
  7381. need_lib_prefix=no
  7382. need_version=no
  7383. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7384. soname_spec='${libname}${release}${shared_ext}$major'
  7385. shlibpath_var=LD_LIBRARY_PATH
  7386. shlibpath_overrides_runpath=yes
  7387. ;;
  7388. openbsd*)
  7389. version_type=sunos
  7390. sys_lib_dlsearch_path_spec="/usr/lib"
  7391. need_lib_prefix=no
  7392. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  7393. case $host_os in
  7394. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  7395. *) need_version=no ;;
  7396. esac
  7397. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7398. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7399. shlibpath_var=LD_LIBRARY_PATH
  7400. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7401. case $host_os in
  7402. openbsd2.[89] | openbsd2.[89].*)
  7403. shlibpath_overrides_runpath=no
  7404. ;;
  7405. *)
  7406. shlibpath_overrides_runpath=yes
  7407. ;;
  7408. esac
  7409. else
  7410. shlibpath_overrides_runpath=yes
  7411. fi
  7412. ;;
  7413. os2*)
  7414. libname_spec='$name'
  7415. shrext_cmds=".dll"
  7416. need_lib_prefix=no
  7417. library_names_spec='$libname${shared_ext} $libname.a'
  7418. dynamic_linker='OS/2 ld.exe'
  7419. shlibpath_var=LIBPATH
  7420. ;;
  7421. osf3* | osf4* | osf5*)
  7422. version_type=osf
  7423. need_lib_prefix=no
  7424. need_version=no
  7425. soname_spec='${libname}${release}${shared_ext}$major'
  7426. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7427. shlibpath_var=LD_LIBRARY_PATH
  7428. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  7429. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  7430. ;;
  7431. solaris*)
  7432. version_type=linux
  7433. need_lib_prefix=no
  7434. need_version=no
  7435. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7436. soname_spec='${libname}${release}${shared_ext}$major'
  7437. shlibpath_var=LD_LIBRARY_PATH
  7438. shlibpath_overrides_runpath=yes
  7439. hardcode_into_libs=yes
  7440. # ldd complains unless libraries are executable
  7441. postinstall_cmds='chmod +x $lib'
  7442. ;;
  7443. sunos4*)
  7444. version_type=sunos
  7445. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7446. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  7447. shlibpath_var=LD_LIBRARY_PATH
  7448. shlibpath_overrides_runpath=yes
  7449. if test "$with_gnu_ld" = yes; then
  7450. need_lib_prefix=no
  7451. fi
  7452. need_version=yes
  7453. ;;
  7454. sysv4 | sysv4.3*)
  7455. version_type=linux
  7456. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7457. soname_spec='${libname}${release}${shared_ext}$major'
  7458. shlibpath_var=LD_LIBRARY_PATH
  7459. case $host_vendor in
  7460. sni)
  7461. shlibpath_overrides_runpath=no
  7462. need_lib_prefix=no
  7463. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7464. runpath_var=LD_RUN_PATH
  7465. ;;
  7466. siemens)
  7467. need_lib_prefix=no
  7468. ;;
  7469. motorola)
  7470. need_lib_prefix=no
  7471. need_version=no
  7472. shlibpath_overrides_runpath=no
  7473. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  7474. ;;
  7475. esac
  7476. ;;
  7477. sysv4*MP*)
  7478. if test -d /usr/nec ;then
  7479. version_type=linux
  7480. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  7481. soname_spec='$libname${shared_ext}.$major'
  7482. shlibpath_var=LD_LIBRARY_PATH
  7483. fi
  7484. ;;
  7485. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7486. version_type=freebsd-elf
  7487. need_lib_prefix=no
  7488. need_version=no
  7489. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7490. soname_spec='${libname}${release}${shared_ext}$major'
  7491. shlibpath_var=LD_LIBRARY_PATH
  7492. hardcode_into_libs=yes
  7493. if test "$with_gnu_ld" = yes; then
  7494. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  7495. shlibpath_overrides_runpath=no
  7496. else
  7497. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  7498. shlibpath_overrides_runpath=yes
  7499. case $host_os in
  7500. sco3.2v5*)
  7501. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  7502. ;;
  7503. esac
  7504. fi
  7505. sys_lib_dlsearch_path_spec='/usr/lib'
  7506. ;;
  7507. uts4*)
  7508. version_type=linux
  7509. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7510. soname_spec='${libname}${release}${shared_ext}$major'
  7511. shlibpath_var=LD_LIBRARY_PATH
  7512. ;;
  7513. *)
  7514. dynamic_linker=no
  7515. ;;
  7516. esac
  7517. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  7518. echo "${ECHO_T}$dynamic_linker" >&6
  7519. test "$dynamic_linker" = no && can_build_shared=no
  7520. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  7521. if test "$GCC" = yes; then
  7522. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  7523. fi
  7524. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  7525. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  7526. hardcode_action=
  7527. if test -n "$hardcode_libdir_flag_spec" || \
  7528. test -n "$runpath_var" || \
  7529. test "X$hardcode_automatic" = "Xyes" ; then
  7530. # We can hardcode non-existant directories.
  7531. if test "$hardcode_direct" != no &&
  7532. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  7533. # have to relink, otherwise we might link with an installed library
  7534. # when we should be linking with a yet-to-be-installed one
  7535. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  7536. test "$hardcode_minus_L" != no; then
  7537. # Linking always hardcodes the temporary library directory.
  7538. hardcode_action=relink
  7539. else
  7540. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  7541. hardcode_action=immediate
  7542. fi
  7543. else
  7544. # We cannot hardcode anything, or else we can only hardcode existing
  7545. # directories.
  7546. hardcode_action=unsupported
  7547. fi
  7548. echo "$as_me:$LINENO: result: $hardcode_action" >&5
  7549. echo "${ECHO_T}$hardcode_action" >&6
  7550. if test "$hardcode_action" = relink; then
  7551. # Fast installation is not supported
  7552. enable_fast_install=no
  7553. elif test "$shlibpath_overrides_runpath" = yes ||
  7554. test "$enable_shared" = no; then
  7555. # Fast installation is not necessary
  7556. enable_fast_install=needless
  7557. fi
  7558. striplib=
  7559. old_striplib=
  7560. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  7561. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  7562. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  7563. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  7564. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  7565. echo "$as_me:$LINENO: result: yes" >&5
  7566. echo "${ECHO_T}yes" >&6
  7567. else
  7568. # FIXME - insert some real tests, host_os isn't really good enough
  7569. case $host_os in
  7570. darwin*)
  7571. if test -n "$STRIP" ; then
  7572. striplib="$STRIP -x"
  7573. echo "$as_me:$LINENO: result: yes" >&5
  7574. echo "${ECHO_T}yes" >&6
  7575. else
  7576. echo "$as_me:$LINENO: result: no" >&5
  7577. echo "${ECHO_T}no" >&6
  7578. fi
  7579. ;;
  7580. *)
  7581. echo "$as_me:$LINENO: result: no" >&5
  7582. echo "${ECHO_T}no" >&6
  7583. ;;
  7584. esac
  7585. fi
  7586. if test "x$enable_dlopen" != xyes; then
  7587. enable_dlopen=unknown
  7588. enable_dlopen_self=unknown
  7589. enable_dlopen_self_static=unknown
  7590. else
  7591. lt_cv_dlopen=no
  7592. lt_cv_dlopen_libs=
  7593. case $host_os in
  7594. beos*)
  7595. lt_cv_dlopen="load_add_on"
  7596. lt_cv_dlopen_libs=
  7597. lt_cv_dlopen_self=yes
  7598. ;;
  7599. mingw* | pw32*)
  7600. lt_cv_dlopen="LoadLibrary"
  7601. lt_cv_dlopen_libs=
  7602. ;;
  7603. cygwin*)
  7604. lt_cv_dlopen="dlopen"
  7605. lt_cv_dlopen_libs=
  7606. ;;
  7607. darwin*)
  7608. # if libdl is installed we need to link against it
  7609. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  7610. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  7611. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  7612. echo $ECHO_N "(cached) $ECHO_C" >&6
  7613. else
  7614. ac_check_lib_save_LIBS=$LIBS
  7615. LIBS="-ldl $LIBS"
  7616. cat >conftest.$ac_ext <<_ACEOF
  7617. /* confdefs.h. */
  7618. _ACEOF
  7619. cat confdefs.h >>conftest.$ac_ext
  7620. cat >>conftest.$ac_ext <<_ACEOF
  7621. /* end confdefs.h. */
  7622. /* Override any gcc2 internal prototype to avoid an error. */
  7623. #ifdef __cplusplus
  7624. extern "C"
  7625. #endif
  7626. /* We use char because int might match the return type of a gcc2
  7627. builtin and then its argument prototype would still apply. */
  7628. char dlopen ();
  7629. int
  7630. main ()
  7631. {
  7632. dlopen ();
  7633. ;
  7634. return 0;
  7635. }
  7636. _ACEOF
  7637. rm -f conftest.$ac_objext conftest$ac_exeext
  7638. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7639. (eval $ac_link) 2>conftest.er1
  7640. ac_status=$?
  7641. grep -v '^ *+' conftest.er1 >conftest.err
  7642. rm -f conftest.er1
  7643. cat conftest.err >&5
  7644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7645. (exit $ac_status); } &&
  7646. { ac_try='test -z "$ac_c_werror_flag"
  7647. || test ! -s conftest.err'
  7648. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7649. (eval $ac_try) 2>&5
  7650. ac_status=$?
  7651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7652. (exit $ac_status); }; } &&
  7653. { ac_try='test -s conftest$ac_exeext'
  7654. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7655. (eval $ac_try) 2>&5
  7656. ac_status=$?
  7657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7658. (exit $ac_status); }; }; then
  7659. ac_cv_lib_dl_dlopen=yes
  7660. else
  7661. echo "$as_me: failed program was:" >&5
  7662. sed 's/^/| /' conftest.$ac_ext >&5
  7663. ac_cv_lib_dl_dlopen=no
  7664. fi
  7665. rm -f conftest.err conftest.$ac_objext \
  7666. conftest$ac_exeext conftest.$ac_ext
  7667. LIBS=$ac_check_lib_save_LIBS
  7668. fi
  7669. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  7670. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  7671. if test $ac_cv_lib_dl_dlopen = yes; then
  7672. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7673. else
  7674. lt_cv_dlopen="dyld"
  7675. lt_cv_dlopen_libs=
  7676. lt_cv_dlopen_self=yes
  7677. fi
  7678. ;;
  7679. *)
  7680. echo "$as_me:$LINENO: checking for shl_load" >&5
  7681. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  7682. if test "${ac_cv_func_shl_load+set}" = set; then
  7683. echo $ECHO_N "(cached) $ECHO_C" >&6
  7684. else
  7685. cat >conftest.$ac_ext <<_ACEOF
  7686. /* confdefs.h. */
  7687. _ACEOF
  7688. cat confdefs.h >>conftest.$ac_ext
  7689. cat >>conftest.$ac_ext <<_ACEOF
  7690. /* end confdefs.h. */
  7691. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  7692. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7693. #define shl_load innocuous_shl_load
  7694. /* System header to define __stub macros and hopefully few prototypes,
  7695. which can conflict with char shl_load (); below.
  7696. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7697. <limits.h> exists even on freestanding compilers. */
  7698. #ifdef __STDC__
  7699. # include <limits.h>
  7700. #else
  7701. # include <assert.h>
  7702. #endif
  7703. #undef shl_load
  7704. /* Override any gcc2 internal prototype to avoid an error. */
  7705. #ifdef __cplusplus
  7706. extern "C"
  7707. {
  7708. #endif
  7709. /* We use char because int might match the return type of a gcc2
  7710. builtin and then its argument prototype would still apply. */
  7711. char shl_load ();
  7712. /* The GNU C library defines this for functions which it implements
  7713. to always fail with ENOSYS. Some functions are actually named
  7714. something starting with __ and the normal name is an alias. */
  7715. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  7716. choke me
  7717. #else
  7718. char (*f) () = shl_load;
  7719. #endif
  7720. #ifdef __cplusplus
  7721. }
  7722. #endif
  7723. int
  7724. main ()
  7725. {
  7726. return f != shl_load;
  7727. ;
  7728. return 0;
  7729. }
  7730. _ACEOF
  7731. rm -f conftest.$ac_objext conftest$ac_exeext
  7732. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7733. (eval $ac_link) 2>conftest.er1
  7734. ac_status=$?
  7735. grep -v '^ *+' conftest.er1 >conftest.err
  7736. rm -f conftest.er1
  7737. cat conftest.err >&5
  7738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7739. (exit $ac_status); } &&
  7740. { ac_try='test -z "$ac_c_werror_flag"
  7741. || test ! -s conftest.err'
  7742. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7743. (eval $ac_try) 2>&5
  7744. ac_status=$?
  7745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7746. (exit $ac_status); }; } &&
  7747. { ac_try='test -s conftest$ac_exeext'
  7748. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7749. (eval $ac_try) 2>&5
  7750. ac_status=$?
  7751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7752. (exit $ac_status); }; }; then
  7753. ac_cv_func_shl_load=yes
  7754. else
  7755. echo "$as_me: failed program was:" >&5
  7756. sed 's/^/| /' conftest.$ac_ext >&5
  7757. ac_cv_func_shl_load=no
  7758. fi
  7759. rm -f conftest.err conftest.$ac_objext \
  7760. conftest$ac_exeext conftest.$ac_ext
  7761. fi
  7762. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  7763. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  7764. if test $ac_cv_func_shl_load = yes; then
  7765. lt_cv_dlopen="shl_load"
  7766. else
  7767. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  7768. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  7769. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  7770. echo $ECHO_N "(cached) $ECHO_C" >&6
  7771. else
  7772. ac_check_lib_save_LIBS=$LIBS
  7773. LIBS="-ldld $LIBS"
  7774. cat >conftest.$ac_ext <<_ACEOF
  7775. /* confdefs.h. */
  7776. _ACEOF
  7777. cat confdefs.h >>conftest.$ac_ext
  7778. cat >>conftest.$ac_ext <<_ACEOF
  7779. /* end confdefs.h. */
  7780. /* Override any gcc2 internal prototype to avoid an error. */
  7781. #ifdef __cplusplus
  7782. extern "C"
  7783. #endif
  7784. /* We use char because int might match the return type of a gcc2
  7785. builtin and then its argument prototype would still apply. */
  7786. char shl_load ();
  7787. int
  7788. main ()
  7789. {
  7790. shl_load ();
  7791. ;
  7792. return 0;
  7793. }
  7794. _ACEOF
  7795. rm -f conftest.$ac_objext conftest$ac_exeext
  7796. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7797. (eval $ac_link) 2>conftest.er1
  7798. ac_status=$?
  7799. grep -v '^ *+' conftest.er1 >conftest.err
  7800. rm -f conftest.er1
  7801. cat conftest.err >&5
  7802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7803. (exit $ac_status); } &&
  7804. { ac_try='test -z "$ac_c_werror_flag"
  7805. || test ! -s conftest.err'
  7806. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7807. (eval $ac_try) 2>&5
  7808. ac_status=$?
  7809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7810. (exit $ac_status); }; } &&
  7811. { ac_try='test -s conftest$ac_exeext'
  7812. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7813. (eval $ac_try) 2>&5
  7814. ac_status=$?
  7815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7816. (exit $ac_status); }; }; then
  7817. ac_cv_lib_dld_shl_load=yes
  7818. else
  7819. echo "$as_me: failed program was:" >&5
  7820. sed 's/^/| /' conftest.$ac_ext >&5
  7821. ac_cv_lib_dld_shl_load=no
  7822. fi
  7823. rm -f conftest.err conftest.$ac_objext \
  7824. conftest$ac_exeext conftest.$ac_ext
  7825. LIBS=$ac_check_lib_save_LIBS
  7826. fi
  7827. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  7828. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  7829. if test $ac_cv_lib_dld_shl_load = yes; then
  7830. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  7831. else
  7832. echo "$as_me:$LINENO: checking for dlopen" >&5
  7833. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  7834. if test "${ac_cv_func_dlopen+set}" = set; then
  7835. echo $ECHO_N "(cached) $ECHO_C" >&6
  7836. else
  7837. cat >conftest.$ac_ext <<_ACEOF
  7838. /* confdefs.h. */
  7839. _ACEOF
  7840. cat confdefs.h >>conftest.$ac_ext
  7841. cat >>conftest.$ac_ext <<_ACEOF
  7842. /* end confdefs.h. */
  7843. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  7844. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7845. #define dlopen innocuous_dlopen
  7846. /* System header to define __stub macros and hopefully few prototypes,
  7847. which can conflict with char dlopen (); below.
  7848. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7849. <limits.h> exists even on freestanding compilers. */
  7850. #ifdef __STDC__
  7851. # include <limits.h>
  7852. #else
  7853. # include <assert.h>
  7854. #endif
  7855. #undef dlopen
  7856. /* Override any gcc2 internal prototype to avoid an error. */
  7857. #ifdef __cplusplus
  7858. extern "C"
  7859. {
  7860. #endif
  7861. /* We use char because int might match the return type of a gcc2
  7862. builtin and then its argument prototype would still apply. */
  7863. char dlopen ();
  7864. /* The GNU C library defines this for functions which it implements
  7865. to always fail with ENOSYS. Some functions are actually named
  7866. something starting with __ and the normal name is an alias. */
  7867. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  7868. choke me
  7869. #else
  7870. char (*f) () = dlopen;
  7871. #endif
  7872. #ifdef __cplusplus
  7873. }
  7874. #endif
  7875. int
  7876. main ()
  7877. {
  7878. return f != dlopen;
  7879. ;
  7880. return 0;
  7881. }
  7882. _ACEOF
  7883. rm -f conftest.$ac_objext conftest$ac_exeext
  7884. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7885. (eval $ac_link) 2>conftest.er1
  7886. ac_status=$?
  7887. grep -v '^ *+' conftest.er1 >conftest.err
  7888. rm -f conftest.er1
  7889. cat conftest.err >&5
  7890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7891. (exit $ac_status); } &&
  7892. { ac_try='test -z "$ac_c_werror_flag"
  7893. || test ! -s conftest.err'
  7894. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7895. (eval $ac_try) 2>&5
  7896. ac_status=$?
  7897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7898. (exit $ac_status); }; } &&
  7899. { ac_try='test -s conftest$ac_exeext'
  7900. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7901. (eval $ac_try) 2>&5
  7902. ac_status=$?
  7903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7904. (exit $ac_status); }; }; then
  7905. ac_cv_func_dlopen=yes
  7906. else
  7907. echo "$as_me: failed program was:" >&5
  7908. sed 's/^/| /' conftest.$ac_ext >&5
  7909. ac_cv_func_dlopen=no
  7910. fi
  7911. rm -f conftest.err conftest.$ac_objext \
  7912. conftest$ac_exeext conftest.$ac_ext
  7913. fi
  7914. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  7915. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  7916. if test $ac_cv_func_dlopen = yes; then
  7917. lt_cv_dlopen="dlopen"
  7918. else
  7919. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  7920. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  7921. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  7922. echo $ECHO_N "(cached) $ECHO_C" >&6
  7923. else
  7924. ac_check_lib_save_LIBS=$LIBS
  7925. LIBS="-ldl $LIBS"
  7926. cat >conftest.$ac_ext <<_ACEOF
  7927. /* confdefs.h. */
  7928. _ACEOF
  7929. cat confdefs.h >>conftest.$ac_ext
  7930. cat >>conftest.$ac_ext <<_ACEOF
  7931. /* end confdefs.h. */
  7932. /* Override any gcc2 internal prototype to avoid an error. */
  7933. #ifdef __cplusplus
  7934. extern "C"
  7935. #endif
  7936. /* We use char because int might match the return type of a gcc2
  7937. builtin and then its argument prototype would still apply. */
  7938. char dlopen ();
  7939. int
  7940. main ()
  7941. {
  7942. dlopen ();
  7943. ;
  7944. return 0;
  7945. }
  7946. _ACEOF
  7947. rm -f conftest.$ac_objext conftest$ac_exeext
  7948. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7949. (eval $ac_link) 2>conftest.er1
  7950. ac_status=$?
  7951. grep -v '^ *+' conftest.er1 >conftest.err
  7952. rm -f conftest.er1
  7953. cat conftest.err >&5
  7954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7955. (exit $ac_status); } &&
  7956. { ac_try='test -z "$ac_c_werror_flag"
  7957. || test ! -s conftest.err'
  7958. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7959. (eval $ac_try) 2>&5
  7960. ac_status=$?
  7961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7962. (exit $ac_status); }; } &&
  7963. { ac_try='test -s conftest$ac_exeext'
  7964. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7965. (eval $ac_try) 2>&5
  7966. ac_status=$?
  7967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7968. (exit $ac_status); }; }; then
  7969. ac_cv_lib_dl_dlopen=yes
  7970. else
  7971. echo "$as_me: failed program was:" >&5
  7972. sed 's/^/| /' conftest.$ac_ext >&5
  7973. ac_cv_lib_dl_dlopen=no
  7974. fi
  7975. rm -f conftest.err conftest.$ac_objext \
  7976. conftest$ac_exeext conftest.$ac_ext
  7977. LIBS=$ac_check_lib_save_LIBS
  7978. fi
  7979. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  7980. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  7981. if test $ac_cv_lib_dl_dlopen = yes; then
  7982. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7983. else
  7984. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  7985. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  7986. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  7987. echo $ECHO_N "(cached) $ECHO_C" >&6
  7988. else
  7989. ac_check_lib_save_LIBS=$LIBS
  7990. LIBS="-lsvld $LIBS"
  7991. cat >conftest.$ac_ext <<_ACEOF
  7992. /* confdefs.h. */
  7993. _ACEOF
  7994. cat confdefs.h >>conftest.$ac_ext
  7995. cat >>conftest.$ac_ext <<_ACEOF
  7996. /* end confdefs.h. */
  7997. /* Override any gcc2 internal prototype to avoid an error. */
  7998. #ifdef __cplusplus
  7999. extern "C"
  8000. #endif
  8001. /* We use char because int might match the return type of a gcc2
  8002. builtin and then its argument prototype would still apply. */
  8003. char dlopen ();
  8004. int
  8005. main ()
  8006. {
  8007. dlopen ();
  8008. ;
  8009. return 0;
  8010. }
  8011. _ACEOF
  8012. rm -f conftest.$ac_objext conftest$ac_exeext
  8013. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8014. (eval $ac_link) 2>conftest.er1
  8015. ac_status=$?
  8016. grep -v '^ *+' conftest.er1 >conftest.err
  8017. rm -f conftest.er1
  8018. cat conftest.err >&5
  8019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8020. (exit $ac_status); } &&
  8021. { ac_try='test -z "$ac_c_werror_flag"
  8022. || test ! -s conftest.err'
  8023. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8024. (eval $ac_try) 2>&5
  8025. ac_status=$?
  8026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8027. (exit $ac_status); }; } &&
  8028. { ac_try='test -s conftest$ac_exeext'
  8029. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8030. (eval $ac_try) 2>&5
  8031. ac_status=$?
  8032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8033. (exit $ac_status); }; }; then
  8034. ac_cv_lib_svld_dlopen=yes
  8035. else
  8036. echo "$as_me: failed program was:" >&5
  8037. sed 's/^/| /' conftest.$ac_ext >&5
  8038. ac_cv_lib_svld_dlopen=no
  8039. fi
  8040. rm -f conftest.err conftest.$ac_objext \
  8041. conftest$ac_exeext conftest.$ac_ext
  8042. LIBS=$ac_check_lib_save_LIBS
  8043. fi
  8044. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8045. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  8046. if test $ac_cv_lib_svld_dlopen = yes; then
  8047. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8048. else
  8049. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8050. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  8051. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8052. echo $ECHO_N "(cached) $ECHO_C" >&6
  8053. else
  8054. ac_check_lib_save_LIBS=$LIBS
  8055. LIBS="-ldld $LIBS"
  8056. cat >conftest.$ac_ext <<_ACEOF
  8057. /* confdefs.h. */
  8058. _ACEOF
  8059. cat confdefs.h >>conftest.$ac_ext
  8060. cat >>conftest.$ac_ext <<_ACEOF
  8061. /* end confdefs.h. */
  8062. /* Override any gcc2 internal prototype to avoid an error. */
  8063. #ifdef __cplusplus
  8064. extern "C"
  8065. #endif
  8066. /* We use char because int might match the return type of a gcc2
  8067. builtin and then its argument prototype would still apply. */
  8068. char dld_link ();
  8069. int
  8070. main ()
  8071. {
  8072. dld_link ();
  8073. ;
  8074. return 0;
  8075. }
  8076. _ACEOF
  8077. rm -f conftest.$ac_objext conftest$ac_exeext
  8078. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8079. (eval $ac_link) 2>conftest.er1
  8080. ac_status=$?
  8081. grep -v '^ *+' conftest.er1 >conftest.err
  8082. rm -f conftest.er1
  8083. cat conftest.err >&5
  8084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8085. (exit $ac_status); } &&
  8086. { ac_try='test -z "$ac_c_werror_flag"
  8087. || test ! -s conftest.err'
  8088. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8089. (eval $ac_try) 2>&5
  8090. ac_status=$?
  8091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8092. (exit $ac_status); }; } &&
  8093. { ac_try='test -s conftest$ac_exeext'
  8094. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8095. (eval $ac_try) 2>&5
  8096. ac_status=$?
  8097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8098. (exit $ac_status); }; }; then
  8099. ac_cv_lib_dld_dld_link=yes
  8100. else
  8101. echo "$as_me: failed program was:" >&5
  8102. sed 's/^/| /' conftest.$ac_ext >&5
  8103. ac_cv_lib_dld_dld_link=no
  8104. fi
  8105. rm -f conftest.err conftest.$ac_objext \
  8106. conftest$ac_exeext conftest.$ac_ext
  8107. LIBS=$ac_check_lib_save_LIBS
  8108. fi
  8109. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  8110. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  8111. if test $ac_cv_lib_dld_dld_link = yes; then
  8112. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  8113. fi
  8114. fi
  8115. fi
  8116. fi
  8117. fi
  8118. fi
  8119. ;;
  8120. esac
  8121. if test "x$lt_cv_dlopen" != xno; then
  8122. enable_dlopen=yes
  8123. else
  8124. enable_dlopen=no
  8125. fi
  8126. case $lt_cv_dlopen in
  8127. dlopen)
  8128. save_CPPFLAGS="$CPPFLAGS"
  8129. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8130. save_LDFLAGS="$LDFLAGS"
  8131. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8132. save_LIBS="$LIBS"
  8133. LIBS="$lt_cv_dlopen_libs $LIBS"
  8134. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  8135. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  8136. if test "${lt_cv_dlopen_self+set}" = set; then
  8137. echo $ECHO_N "(cached) $ECHO_C" >&6
  8138. else
  8139. if test "$cross_compiling" = yes; then :
  8140. lt_cv_dlopen_self=cross
  8141. else
  8142. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8143. lt_status=$lt_dlunknown
  8144. cat > conftest.$ac_ext <<EOF
  8145. #line 9080 "configure"
  8146. #include "confdefs.h"
  8147. #if HAVE_DLFCN_H
  8148. #include <dlfcn.h>
  8149. #endif
  8150. #include <stdio.h>
  8151. #ifdef RTLD_GLOBAL
  8152. # define LT_DLGLOBAL RTLD_GLOBAL
  8153. #else
  8154. # ifdef DL_GLOBAL
  8155. # define LT_DLGLOBAL DL_GLOBAL
  8156. # else
  8157. # define LT_DLGLOBAL 0
  8158. # endif
  8159. #endif
  8160. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8161. find out it does not work in some platform. */
  8162. #ifndef LT_DLLAZY_OR_NOW
  8163. # ifdef RTLD_LAZY
  8164. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8165. # else
  8166. # ifdef DL_LAZY
  8167. # define LT_DLLAZY_OR_NOW DL_LAZY
  8168. # else
  8169. # ifdef RTLD_NOW
  8170. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8171. # else
  8172. # ifdef DL_NOW
  8173. # define LT_DLLAZY_OR_NOW DL_NOW
  8174. # else
  8175. # define LT_DLLAZY_OR_NOW 0
  8176. # endif
  8177. # endif
  8178. # endif
  8179. # endif
  8180. #endif
  8181. #ifdef __cplusplus
  8182. extern "C" void exit (int);
  8183. #endif
  8184. void fnord() { int i=42;}
  8185. int main ()
  8186. {
  8187. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8188. int status = $lt_dlunknown;
  8189. if (self)
  8190. {
  8191. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8192. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8193. /* dlclose (self); */
  8194. }
  8195. else
  8196. puts (dlerror ());
  8197. exit (status);
  8198. }
  8199. EOF
  8200. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8201. (eval $ac_link) 2>&5
  8202. ac_status=$?
  8203. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8204. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8205. (./conftest; exit; ) >&5 2>/dev/null
  8206. lt_status=$?
  8207. case x$lt_status in
  8208. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8209. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8210. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  8211. esac
  8212. else :
  8213. # compilation failed
  8214. lt_cv_dlopen_self=no
  8215. fi
  8216. fi
  8217. rm -fr conftest*
  8218. fi
  8219. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  8220. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  8221. if test "x$lt_cv_dlopen_self" = xyes; then
  8222. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  8223. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  8224. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  8225. if test "${lt_cv_dlopen_self_static+set}" = set; then
  8226. echo $ECHO_N "(cached) $ECHO_C" >&6
  8227. else
  8228. if test "$cross_compiling" = yes; then :
  8229. lt_cv_dlopen_self_static=cross
  8230. else
  8231. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8232. lt_status=$lt_dlunknown
  8233. cat > conftest.$ac_ext <<EOF
  8234. #line 9180 "configure"
  8235. #include "confdefs.h"
  8236. #if HAVE_DLFCN_H
  8237. #include <dlfcn.h>
  8238. #endif
  8239. #include <stdio.h>
  8240. #ifdef RTLD_GLOBAL
  8241. # define LT_DLGLOBAL RTLD_GLOBAL
  8242. #else
  8243. # ifdef DL_GLOBAL
  8244. # define LT_DLGLOBAL DL_GLOBAL
  8245. # else
  8246. # define LT_DLGLOBAL 0
  8247. # endif
  8248. #endif
  8249. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8250. find out it does not work in some platform. */
  8251. #ifndef LT_DLLAZY_OR_NOW
  8252. # ifdef RTLD_LAZY
  8253. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8254. # else
  8255. # ifdef DL_LAZY
  8256. # define LT_DLLAZY_OR_NOW DL_LAZY
  8257. # else
  8258. # ifdef RTLD_NOW
  8259. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8260. # else
  8261. # ifdef DL_NOW
  8262. # define LT_DLLAZY_OR_NOW DL_NOW
  8263. # else
  8264. # define LT_DLLAZY_OR_NOW 0
  8265. # endif
  8266. # endif
  8267. # endif
  8268. # endif
  8269. #endif
  8270. #ifdef __cplusplus
  8271. extern "C" void exit (int);
  8272. #endif
  8273. void fnord() { int i=42;}
  8274. int main ()
  8275. {
  8276. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8277. int status = $lt_dlunknown;
  8278. if (self)
  8279. {
  8280. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8281. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8282. /* dlclose (self); */
  8283. }
  8284. else
  8285. puts (dlerror ());
  8286. exit (status);
  8287. }
  8288. EOF
  8289. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8290. (eval $ac_link) 2>&5
  8291. ac_status=$?
  8292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8293. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8294. (./conftest; exit; ) >&5 2>/dev/null
  8295. lt_status=$?
  8296. case x$lt_status in
  8297. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  8298. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  8299. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  8300. esac
  8301. else :
  8302. # compilation failed
  8303. lt_cv_dlopen_self_static=no
  8304. fi
  8305. fi
  8306. rm -fr conftest*
  8307. fi
  8308. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  8309. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  8310. fi
  8311. CPPFLAGS="$save_CPPFLAGS"
  8312. LDFLAGS="$save_LDFLAGS"
  8313. LIBS="$save_LIBS"
  8314. ;;
  8315. esac
  8316. case $lt_cv_dlopen_self in
  8317. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  8318. *) enable_dlopen_self=unknown ;;
  8319. esac
  8320. case $lt_cv_dlopen_self_static in
  8321. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  8322. *) enable_dlopen_self_static=unknown ;;
  8323. esac
  8324. fi
  8325. # Report which library types will actually be built
  8326. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  8327. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  8328. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  8329. echo "${ECHO_T}$can_build_shared" >&6
  8330. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  8331. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  8332. test "$can_build_shared" = "no" && enable_shared=no
  8333. # On AIX, shared libraries and static libraries use the same namespace, and
  8334. # are all built from PIC.
  8335. case $host_os in
  8336. aix3*)
  8337. test "$enable_shared" = yes && enable_static=no
  8338. if test -n "$RANLIB"; then
  8339. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8340. postinstall_cmds='$RANLIB $lib'
  8341. fi
  8342. ;;
  8343. aix4* | aix5*)
  8344. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8345. test "$enable_shared" = yes && enable_static=no
  8346. fi
  8347. ;;
  8348. esac
  8349. echo "$as_me:$LINENO: result: $enable_shared" >&5
  8350. echo "${ECHO_T}$enable_shared" >&6
  8351. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  8352. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  8353. # Make sure either enable_shared or enable_static is yes.
  8354. test "$enable_shared" = yes || enable_static=yes
  8355. echo "$as_me:$LINENO: result: $enable_static" >&5
  8356. echo "${ECHO_T}$enable_static" >&6
  8357. # The else clause should only fire when bootstrapping the
  8358. # libtool distribution, otherwise you forgot to ship ltmain.sh
  8359. # with your package, and you will get complaints that there are
  8360. # no rules to generate ltmain.sh.
  8361. if test -f "$ltmain"; then
  8362. # See if we are running on zsh, and set the options which allow our commands through
  8363. # without removal of \ escapes.
  8364. if test -n "${ZSH_VERSION+set}" ; then
  8365. setopt NO_GLOB_SUBST
  8366. fi
  8367. # Now quote all the things that may contain metacharacters while being
  8368. # careful not to overquote the AC_SUBSTed values. We take copies of the
  8369. # variables and quote the copies for generation of the libtool script.
  8370. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  8371. SED SHELL STRIP \
  8372. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  8373. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  8374. deplibs_check_method reload_flag reload_cmds need_locks \
  8375. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  8376. lt_cv_sys_global_symbol_to_c_name_address \
  8377. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  8378. old_postinstall_cmds old_postuninstall_cmds \
  8379. compiler \
  8380. CC \
  8381. LD \
  8382. lt_prog_compiler_wl \
  8383. lt_prog_compiler_pic \
  8384. lt_prog_compiler_static \
  8385. lt_prog_compiler_no_builtin_flag \
  8386. export_dynamic_flag_spec \
  8387. thread_safe_flag_spec \
  8388. whole_archive_flag_spec \
  8389. enable_shared_with_static_runtimes \
  8390. old_archive_cmds \
  8391. old_archive_from_new_cmds \
  8392. predep_objects \
  8393. postdep_objects \
  8394. predeps \
  8395. postdeps \
  8396. compiler_lib_search_path \
  8397. archive_cmds \
  8398. archive_expsym_cmds \
  8399. postinstall_cmds \
  8400. postuninstall_cmds \
  8401. old_archive_from_expsyms_cmds \
  8402. allow_undefined_flag \
  8403. no_undefined_flag \
  8404. export_symbols_cmds \
  8405. hardcode_libdir_flag_spec \
  8406. hardcode_libdir_flag_spec_ld \
  8407. hardcode_libdir_separator \
  8408. hardcode_automatic \
  8409. module_cmds \
  8410. module_expsym_cmds \
  8411. lt_cv_prog_compiler_c_o \
  8412. exclude_expsyms \
  8413. include_expsyms; do
  8414. case $var in
  8415. old_archive_cmds | \
  8416. old_archive_from_new_cmds | \
  8417. archive_cmds | \
  8418. archive_expsym_cmds | \
  8419. module_cmds | \
  8420. module_expsym_cmds | \
  8421. old_archive_from_expsyms_cmds | \
  8422. export_symbols_cmds | \
  8423. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  8424. postinstall_cmds | postuninstall_cmds | \
  8425. old_postinstall_cmds | old_postuninstall_cmds | \
  8426. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  8427. # Double-quote double-evaled strings.
  8428. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  8429. ;;
  8430. *)
  8431. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  8432. ;;
  8433. esac
  8434. done
  8435. case $lt_echo in
  8436. *'\$0 --fallback-echo"')
  8437. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  8438. ;;
  8439. esac
  8440. cfgfile="${ofile}T"
  8441. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  8442. $rm -f "$cfgfile"
  8443. { echo "$as_me:$LINENO: creating $ofile" >&5
  8444. echo "$as_me: creating $ofile" >&6;}
  8445. cat <<__EOF__ >> "$cfgfile"
  8446. #! $SHELL
  8447. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  8448. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  8449. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  8450. #
  8451. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  8452. # Free Software Foundation, Inc.
  8453. #
  8454. # This file is part of GNU Libtool:
  8455. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  8456. #
  8457. # This program is free software; you can redistribute it and/or modify
  8458. # it under the terms of the GNU General Public License as published by
  8459. # the Free Software Foundation; either version 2 of the License, or
  8460. # (at your option) any later version.
  8461. #
  8462. # This program is distributed in the hope that it will be useful, but
  8463. # WITHOUT ANY WARRANTY; without even the implied warranty of
  8464. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  8465. # General Public License for more details.
  8466. #
  8467. # You should have received a copy of the GNU General Public License
  8468. # along with this program; if not, write to the Free Software
  8469. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  8470. #
  8471. # As a special exception to the GNU General Public License, if you
  8472. # distribute this file as part of a program that contains a
  8473. # configuration script generated by Autoconf, you may include it under
  8474. # the same distribution terms that you use for the rest of that program.
  8475. # A sed program that does not truncate output.
  8476. SED=$lt_SED
  8477. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  8478. Xsed="$SED -e 1s/^X//"
  8479. # The HP-UX ksh and POSIX shell print the target directory to stdout
  8480. # if CDPATH is set.
  8481. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8482. # The names of the tagged configurations supported by this script.
  8483. available_tags=
  8484. # ### BEGIN LIBTOOL CONFIG
  8485. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  8486. # Shell to use when invoking shell scripts.
  8487. SHELL=$lt_SHELL
  8488. # Whether or not to build shared libraries.
  8489. build_libtool_libs=$enable_shared
  8490. # Whether or not to build static libraries.
  8491. build_old_libs=$enable_static
  8492. # Whether or not to add -lc for building shared libraries.
  8493. build_libtool_need_lc=$archive_cmds_need_lc
  8494. # Whether or not to disallow shared libs when runtime libs are static
  8495. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  8496. # Whether or not to optimize for fast installation.
  8497. fast_install=$enable_fast_install
  8498. # The host system.
  8499. host_alias=$host_alias
  8500. host=$host
  8501. host_os=$host_os
  8502. # The build system.
  8503. build_alias=$build_alias
  8504. build=$build
  8505. build_os=$build_os
  8506. # An echo program that does not interpret backslashes.
  8507. echo=$lt_echo
  8508. # The archiver.
  8509. AR=$lt_AR
  8510. AR_FLAGS=$lt_AR_FLAGS
  8511. # A C compiler.
  8512. LTCC=$lt_LTCC
  8513. # LTCC compiler flags.
  8514. LTCFLAGS=$lt_LTCFLAGS
  8515. # A language-specific compiler.
  8516. CC=$lt_compiler
  8517. # Is the compiler the GNU C compiler?
  8518. with_gcc=$GCC
  8519. # An ERE matcher.
  8520. EGREP=$lt_EGREP
  8521. # The linker used to build libraries.
  8522. LD=$lt_LD
  8523. # Whether we need hard or soft links.
  8524. LN_S=$lt_LN_S
  8525. # A BSD-compatible nm program.
  8526. NM=$lt_NM
  8527. # A symbol stripping program
  8528. STRIP=$lt_STRIP
  8529. # Used to examine libraries when file_magic_cmd begins "file"
  8530. MAGIC_CMD=$MAGIC_CMD
  8531. # Used on cygwin: DLL creation program.
  8532. DLLTOOL="$DLLTOOL"
  8533. # Used on cygwin: object dumper.
  8534. OBJDUMP="$OBJDUMP"
  8535. # Used on cygwin: assembler.
  8536. AS="$AS"
  8537. # The name of the directory that contains temporary libtool files.
  8538. objdir=$objdir
  8539. # How to create reloadable object files.
  8540. reload_flag=$lt_reload_flag
  8541. reload_cmds=$lt_reload_cmds
  8542. # How to pass a linker flag through the compiler.
  8543. wl=$lt_lt_prog_compiler_wl
  8544. # Object file suffix (normally "o").
  8545. objext="$ac_objext"
  8546. # Old archive suffix (normally "a").
  8547. libext="$libext"
  8548. # Shared library suffix (normally ".so").
  8549. shrext_cmds='$shrext_cmds'
  8550. # Executable file suffix (normally "").
  8551. exeext="$exeext"
  8552. # Additional compiler flags for building library objects.
  8553. pic_flag=$lt_lt_prog_compiler_pic
  8554. pic_mode=$pic_mode
  8555. # What is the maximum length of a command?
  8556. max_cmd_len=$lt_cv_sys_max_cmd_len
  8557. # Does compiler simultaneously support -c and -o options?
  8558. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  8559. # Must we lock files when doing compilation?
  8560. need_locks=$lt_need_locks
  8561. # Do we need the lib prefix for modules?
  8562. need_lib_prefix=$need_lib_prefix
  8563. # Do we need a version for libraries?
  8564. need_version=$need_version
  8565. # Whether dlopen is supported.
  8566. dlopen_support=$enable_dlopen
  8567. # Whether dlopen of programs is supported.
  8568. dlopen_self=$enable_dlopen_self
  8569. # Whether dlopen of statically linked programs is supported.
  8570. dlopen_self_static=$enable_dlopen_self_static
  8571. # Compiler flag to prevent dynamic linking.
  8572. link_static_flag=$lt_lt_prog_compiler_static
  8573. # Compiler flag to turn off builtin functions.
  8574. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  8575. # Compiler flag to allow reflexive dlopens.
  8576. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  8577. # Compiler flag to generate shared objects directly from archives.
  8578. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  8579. # Compiler flag to generate thread-safe objects.
  8580. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  8581. # Library versioning type.
  8582. version_type=$version_type
  8583. # Format of library name prefix.
  8584. libname_spec=$lt_libname_spec
  8585. # List of archive names. First name is the real one, the rest are links.
  8586. # The last name is the one that the linker finds with -lNAME.
  8587. library_names_spec=$lt_library_names_spec
  8588. # The coded name of the library, if different from the real name.
  8589. soname_spec=$lt_soname_spec
  8590. # Commands used to build and install an old-style archive.
  8591. RANLIB=$lt_RANLIB
  8592. old_archive_cmds=$lt_old_archive_cmds
  8593. old_postinstall_cmds=$lt_old_postinstall_cmds
  8594. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  8595. # Create an old-style archive from a shared archive.
  8596. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  8597. # Create a temporary old-style archive to link instead of a shared archive.
  8598. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  8599. # Commands used to build and install a shared archive.
  8600. archive_cmds=$lt_archive_cmds
  8601. archive_expsym_cmds=$lt_archive_expsym_cmds
  8602. postinstall_cmds=$lt_postinstall_cmds
  8603. postuninstall_cmds=$lt_postuninstall_cmds
  8604. # Commands used to build a loadable module (assumed same as above if empty)
  8605. module_cmds=$lt_module_cmds
  8606. module_expsym_cmds=$lt_module_expsym_cmds
  8607. # Commands to strip libraries.
  8608. old_striplib=$lt_old_striplib
  8609. striplib=$lt_striplib
  8610. # Dependencies to place before the objects being linked to create a
  8611. # shared library.
  8612. predep_objects=$lt_predep_objects
  8613. # Dependencies to place after the objects being linked to create a
  8614. # shared library.
  8615. postdep_objects=$lt_postdep_objects
  8616. # Dependencies to place before the objects being linked to create a
  8617. # shared library.
  8618. predeps=$lt_predeps
  8619. # Dependencies to place after the objects being linked to create a
  8620. # shared library.
  8621. postdeps=$lt_postdeps
  8622. # The library search path used internally by the compiler when linking
  8623. # a shared library.
  8624. compiler_lib_search_path=$lt_compiler_lib_search_path
  8625. # Method to check whether dependent libraries are shared objects.
  8626. deplibs_check_method=$lt_deplibs_check_method
  8627. # Command to use when deplibs_check_method == file_magic.
  8628. file_magic_cmd=$lt_file_magic_cmd
  8629. # Flag that allows shared libraries with undefined symbols to be built.
  8630. allow_undefined_flag=$lt_allow_undefined_flag
  8631. # Flag that forces no undefined symbols.
  8632. no_undefined_flag=$lt_no_undefined_flag
  8633. # Commands used to finish a libtool library installation in a directory.
  8634. finish_cmds=$lt_finish_cmds
  8635. # Same as above, but a single script fragment to be evaled but not shown.
  8636. finish_eval=$lt_finish_eval
  8637. # Take the output of nm and produce a listing of raw symbols and C names.
  8638. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  8639. # Transform the output of nm in a proper C declaration
  8640. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8641. # Transform the output of nm in a C name address pair
  8642. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8643. # This is the shared library runtime path variable.
  8644. runpath_var=$runpath_var
  8645. # This is the shared library path variable.
  8646. shlibpath_var=$shlibpath_var
  8647. # Is shlibpath searched before the hard-coded library search path?
  8648. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8649. # How to hardcode a shared library path into an executable.
  8650. hardcode_action=$hardcode_action
  8651. # Whether we should hardcode library paths into libraries.
  8652. hardcode_into_libs=$hardcode_into_libs
  8653. # Flag to hardcode \$libdir into a binary during linking.
  8654. # This must work even if \$libdir does not exist.
  8655. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  8656. # If ld is used when linking, flag to hardcode \$libdir into
  8657. # a binary during linking. This must work even if \$libdir does
  8658. # not exist.
  8659. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  8660. # Whether we need a single -rpath flag with a separated argument.
  8661. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  8662. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  8663. # resulting binary.
  8664. hardcode_direct=$hardcode_direct
  8665. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8666. # resulting binary.
  8667. hardcode_minus_L=$hardcode_minus_L
  8668. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8669. # the resulting binary.
  8670. hardcode_shlibpath_var=$hardcode_shlibpath_var
  8671. # Set to yes if building a shared library automatically hardcodes DIR into the library
  8672. # and all subsequent libraries and executables linked against it.
  8673. hardcode_automatic=$hardcode_automatic
  8674. # Variables whose values should be saved in libtool wrapper scripts and
  8675. # restored at relink time.
  8676. variables_saved_for_relink="$variables_saved_for_relink"
  8677. # Whether libtool must link a program against all its dependency libraries.
  8678. link_all_deplibs=$link_all_deplibs
  8679. # Compile-time system search path for libraries
  8680. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  8681. # Run-time system search path for libraries
  8682. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  8683. # Fix the shell variable \$srcfile for the compiler.
  8684. fix_srcfile_path="$fix_srcfile_path"
  8685. # Set to yes if exported symbols are required.
  8686. always_export_symbols=$always_export_symbols
  8687. # The commands to list exported symbols.
  8688. export_symbols_cmds=$lt_export_symbols_cmds
  8689. # The commands to extract the exported symbol list from a shared archive.
  8690. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  8691. # Symbols that should not be listed in the preloaded symbols.
  8692. exclude_expsyms=$lt_exclude_expsyms
  8693. # Symbols that must always be exported.
  8694. include_expsyms=$lt_include_expsyms
  8695. # ### END LIBTOOL CONFIG
  8696. __EOF__
  8697. case $host_os in
  8698. aix3*)
  8699. cat <<\EOF >> "$cfgfile"
  8700. # AIX sometimes has problems with the GCC collect2 program. For some
  8701. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8702. # vanish in a puff of smoke.
  8703. if test "X${COLLECT_NAMES+set}" != Xset; then
  8704. COLLECT_NAMES=
  8705. export COLLECT_NAMES
  8706. fi
  8707. EOF
  8708. ;;
  8709. esac
  8710. # We use sed instead of cat because bash on DJGPP gets confused if
  8711. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  8712. # text mode, it properly converts lines to CR/LF. This bash problem
  8713. # is reportedly fixed, but why not run on old versions too?
  8714. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  8715. mv -f "$cfgfile" "$ofile" || \
  8716. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  8717. chmod +x "$ofile"
  8718. else
  8719. # If there is no Makefile yet, we rely on a make rule to execute
  8720. # `config.status --recheck' to rerun these tests and create the
  8721. # libtool script then.
  8722. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  8723. if test -f "$ltmain_in"; then
  8724. test -f Makefile && make "$ltmain"
  8725. fi
  8726. fi
  8727. ac_ext=c
  8728. ac_cpp='$CPP $CPPFLAGS'
  8729. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8730. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8731. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8732. CC="$lt_save_CC"
  8733. # Check whether --with-tags or --without-tags was given.
  8734. if test "${with_tags+set}" = set; then
  8735. withval="$with_tags"
  8736. tagnames="$withval"
  8737. fi;
  8738. if test -f "$ltmain" && test -n "$tagnames"; then
  8739. if test ! -f "${ofile}"; then
  8740. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  8741. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  8742. fi
  8743. if test -z "$LTCC"; then
  8744. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  8745. if test -z "$LTCC"; then
  8746. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  8747. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  8748. else
  8749. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  8750. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  8751. fi
  8752. fi
  8753. if test -z "$LTCFLAGS"; then
  8754. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  8755. fi
  8756. # Extract list of available tagged configurations in $ofile.
  8757. # Note that this assumes the entire list is on one line.
  8758. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  8759. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8760. for tagname in $tagnames; do
  8761. IFS="$lt_save_ifs"
  8762. # Check whether tagname contains only valid characters
  8763. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  8764. "") ;;
  8765. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  8766. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  8767. { (exit 1); exit 1; }; }
  8768. ;;
  8769. esac
  8770. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  8771. then
  8772. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  8773. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  8774. { (exit 1); exit 1; }; }
  8775. fi
  8776. # Update the list of available tags.
  8777. if test -n "$tagname"; then
  8778. echo appending configuration tag \"$tagname\" to $ofile
  8779. case $tagname in
  8780. CXX)
  8781. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  8782. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  8783. (test "X$CXX" != "Xg++"))) ; then
  8784. ac_ext=cc
  8785. ac_cpp='$CXXCPP $CPPFLAGS'
  8786. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8787. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8788. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8789. archive_cmds_need_lc_CXX=no
  8790. allow_undefined_flag_CXX=
  8791. always_export_symbols_CXX=no
  8792. archive_expsym_cmds_CXX=
  8793. export_dynamic_flag_spec_CXX=
  8794. hardcode_direct_CXX=no
  8795. hardcode_libdir_flag_spec_CXX=
  8796. hardcode_libdir_flag_spec_ld_CXX=
  8797. hardcode_libdir_separator_CXX=
  8798. hardcode_minus_L_CXX=no
  8799. hardcode_shlibpath_var_CXX=unsupported
  8800. hardcode_automatic_CXX=no
  8801. module_cmds_CXX=
  8802. module_expsym_cmds_CXX=
  8803. link_all_deplibs_CXX=unknown
  8804. old_archive_cmds_CXX=$old_archive_cmds
  8805. no_undefined_flag_CXX=
  8806. whole_archive_flag_spec_CXX=
  8807. enable_shared_with_static_runtimes_CXX=no
  8808. # Dependencies to place before and after the object being linked:
  8809. predep_objects_CXX=
  8810. postdep_objects_CXX=
  8811. predeps_CXX=
  8812. postdeps_CXX=
  8813. compiler_lib_search_path_CXX=
  8814. # Source file extension for C++ test sources.
  8815. ac_ext=cpp
  8816. # Object file extension for compiled C++ test sources.
  8817. objext=o
  8818. objext_CXX=$objext
  8819. # Code to be used in simple compile tests
  8820. lt_simple_compile_test_code="int some_variable = 0;\n"
  8821. # Code to be used in simple link tests
  8822. lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  8823. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8824. # If no C compiler was specified, use CC.
  8825. LTCC=${LTCC-"$CC"}
  8826. # If no C compiler flags were specified, use CFLAGS.
  8827. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8828. # Allow CC to be a program name with arguments.
  8829. compiler=$CC
  8830. # save warnings/boilerplate of simple test code
  8831. ac_outfile=conftest.$ac_objext
  8832. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  8833. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8834. _lt_compiler_boilerplate=`cat conftest.err`
  8835. $rm conftest*
  8836. ac_outfile=conftest.$ac_objext
  8837. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  8838. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8839. _lt_linker_boilerplate=`cat conftest.err`
  8840. $rm conftest*
  8841. # Allow CC to be a program name with arguments.
  8842. lt_save_CC=$CC
  8843. lt_save_LD=$LD
  8844. lt_save_GCC=$GCC
  8845. GCC=$GXX
  8846. lt_save_with_gnu_ld=$with_gnu_ld
  8847. lt_save_path_LD=$lt_cv_path_LD
  8848. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  8849. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  8850. else
  8851. $as_unset lt_cv_prog_gnu_ld
  8852. fi
  8853. if test -n "${lt_cv_path_LDCXX+set}"; then
  8854. lt_cv_path_LD=$lt_cv_path_LDCXX
  8855. else
  8856. $as_unset lt_cv_path_LD
  8857. fi
  8858. test -z "${LDCXX+set}" || LD=$LDCXX
  8859. CC=${CXX-"c++"}
  8860. compiler=$CC
  8861. compiler_CXX=$CC
  8862. for cc_temp in $compiler""; do
  8863. case $cc_temp in
  8864. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8865. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8866. \-*) ;;
  8867. *) break;;
  8868. esac
  8869. done
  8870. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  8871. # We don't want -fno-exception wen compiling C++ code, so set the
  8872. # no_builtin_flag separately
  8873. if test "$GXX" = yes; then
  8874. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  8875. else
  8876. lt_prog_compiler_no_builtin_flag_CXX=
  8877. fi
  8878. if test "$GXX" = yes; then
  8879. # Set up default GNU C++ configuration
  8880. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  8881. if test "${with_gnu_ld+set}" = set; then
  8882. withval="$with_gnu_ld"
  8883. test "$withval" = no || with_gnu_ld=yes
  8884. else
  8885. with_gnu_ld=no
  8886. fi;
  8887. ac_prog=ld
  8888. if test "$GCC" = yes; then
  8889. # Check if gcc -print-prog-name=ld gives a path.
  8890. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  8891. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  8892. case $host in
  8893. *-*-mingw*)
  8894. # gcc leaves a trailing carriage return which upsets mingw
  8895. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8896. *)
  8897. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8898. esac
  8899. case $ac_prog in
  8900. # Accept absolute paths.
  8901. [\\/]* | ?:[\\/]*)
  8902. re_direlt='/[^/][^/]*/\.\./'
  8903. # Canonicalize the pathname of ld
  8904. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  8905. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8906. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  8907. done
  8908. test -z "$LD" && LD="$ac_prog"
  8909. ;;
  8910. "")
  8911. # If it fails, then pretend we aren't using GCC.
  8912. ac_prog=ld
  8913. ;;
  8914. *)
  8915. # If it is relative, then search for the first ld in PATH.
  8916. with_gnu_ld=unknown
  8917. ;;
  8918. esac
  8919. elif test "$with_gnu_ld" = yes; then
  8920. echo "$as_me:$LINENO: checking for GNU ld" >&5
  8921. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  8922. else
  8923. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  8924. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  8925. fi
  8926. if test "${lt_cv_path_LD+set}" = set; then
  8927. echo $ECHO_N "(cached) $ECHO_C" >&6
  8928. else
  8929. if test -z "$LD"; then
  8930. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8931. for ac_dir in $PATH; do
  8932. IFS="$lt_save_ifs"
  8933. test -z "$ac_dir" && ac_dir=.
  8934. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8935. lt_cv_path_LD="$ac_dir/$ac_prog"
  8936. # Check to see if the program is GNU ld. I'd rather use --version,
  8937. # but apparently some variants of GNU ld only accept -v.
  8938. # Break only if it was the GNU/non-GNU ld that we prefer.
  8939. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  8940. *GNU* | *'with BFD'*)
  8941. test "$with_gnu_ld" != no && break
  8942. ;;
  8943. *)
  8944. test "$with_gnu_ld" != yes && break
  8945. ;;
  8946. esac
  8947. fi
  8948. done
  8949. IFS="$lt_save_ifs"
  8950. else
  8951. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  8952. fi
  8953. fi
  8954. LD="$lt_cv_path_LD"
  8955. if test -n "$LD"; then
  8956. echo "$as_me:$LINENO: result: $LD" >&5
  8957. echo "${ECHO_T}$LD" >&6
  8958. else
  8959. echo "$as_me:$LINENO: result: no" >&5
  8960. echo "${ECHO_T}no" >&6
  8961. fi
  8962. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  8963. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  8964. { (exit 1); exit 1; }; }
  8965. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  8966. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  8967. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  8968. echo $ECHO_N "(cached) $ECHO_C" >&6
  8969. else
  8970. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  8971. case `$LD -v 2>&1 </dev/null` in
  8972. *GNU* | *'with BFD'*)
  8973. lt_cv_prog_gnu_ld=yes
  8974. ;;
  8975. *)
  8976. lt_cv_prog_gnu_ld=no
  8977. ;;
  8978. esac
  8979. fi
  8980. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  8981. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  8982. with_gnu_ld=$lt_cv_prog_gnu_ld
  8983. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  8984. # archiving commands below assume that GNU ld is being used.
  8985. if test "$with_gnu_ld" = yes; then
  8986. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8987. 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'
  8988. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  8989. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  8990. # If archive_cmds runs LD, not CC, wlarc should be empty
  8991. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  8992. # investigate it a little bit more. (MM)
  8993. wlarc='${wl}'
  8994. # ancient GNU ld didn't support --whole-archive et. al.
  8995. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  8996. grep 'no-whole-archive' > /dev/null; then
  8997. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8998. else
  8999. whole_archive_flag_spec_CXX=
  9000. fi
  9001. else
  9002. with_gnu_ld=no
  9003. wlarc=
  9004. # A generic and very simple default shared library creation
  9005. # command for GNU C++ for the case where it uses the native
  9006. # linker, instead of GNU ld. If possible, this setting should
  9007. # overridden to take advantage of the native linker features on
  9008. # the platform it is being used on.
  9009. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9010. fi
  9011. # Commands to make compiler produce verbose output that lists
  9012. # what "hidden" libraries, object files and flags are used when
  9013. # linking a shared library.
  9014. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9015. else
  9016. GXX=no
  9017. with_gnu_ld=no
  9018. wlarc=
  9019. fi
  9020. # PORTME: fill in a description of your system's C++ link characteristics
  9021. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9022. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  9023. ld_shlibs_CXX=yes
  9024. case $host_os in
  9025. aix3*)
  9026. # FIXME: insert proper C++ library support
  9027. ld_shlibs_CXX=no
  9028. ;;
  9029. aix4* | aix5*)
  9030. if test "$host_cpu" = ia64; then
  9031. # On IA64, the linker does run time linking by default, so we don't
  9032. # have to do anything special.
  9033. aix_use_runtimelinking=no
  9034. exp_sym_flag='-Bexport'
  9035. no_entry_flag=""
  9036. else
  9037. aix_use_runtimelinking=no
  9038. # Test if we are trying to use run time linking or normal
  9039. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9040. # need to do runtime linking.
  9041. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  9042. for ld_flag in $LDFLAGS; do
  9043. case $ld_flag in
  9044. *-brtl*)
  9045. aix_use_runtimelinking=yes
  9046. break
  9047. ;;
  9048. esac
  9049. done
  9050. ;;
  9051. esac
  9052. exp_sym_flag='-bexport'
  9053. no_entry_flag='-bnoentry'
  9054. fi
  9055. # When large executables or shared objects are built, AIX ld can
  9056. # have problems creating the table of contents. If linking a library
  9057. # or program results in "error TOC overflow" add -mminimal-toc to
  9058. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9059. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9060. archive_cmds_CXX=''
  9061. hardcode_direct_CXX=yes
  9062. hardcode_libdir_separator_CXX=':'
  9063. link_all_deplibs_CXX=yes
  9064. if test "$GXX" = yes; then
  9065. case $host_os in aix4.[012]|aix4.[012].*)
  9066. # We only want to do this on AIX 4.2 and lower, the check
  9067. # below for broken collect2 doesn't work under 4.3+
  9068. collect2name=`${CC} -print-prog-name=collect2`
  9069. if test -f "$collect2name" && \
  9070. strings "$collect2name" | grep resolve_lib_name >/dev/null
  9071. then
  9072. # We have reworked collect2
  9073. hardcode_direct_CXX=yes
  9074. else
  9075. # We have old collect2
  9076. hardcode_direct_CXX=unsupported
  9077. # It fails to find uninstalled libraries when the uninstalled
  9078. # path is not listed in the libpath. Setting hardcode_minus_L
  9079. # to unsupported forces relinking
  9080. hardcode_minus_L_CXX=yes
  9081. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9082. hardcode_libdir_separator_CXX=
  9083. fi
  9084. ;;
  9085. esac
  9086. shared_flag='-shared'
  9087. if test "$aix_use_runtimelinking" = yes; then
  9088. shared_flag="$shared_flag "'${wl}-G'
  9089. fi
  9090. else
  9091. # not using gcc
  9092. if test "$host_cpu" = ia64; then
  9093. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9094. # chokes on -Wl,-G. The following line is correct:
  9095. shared_flag='-G'
  9096. else
  9097. if test "$aix_use_runtimelinking" = yes; then
  9098. shared_flag='${wl}-G'
  9099. else
  9100. shared_flag='${wl}-bM:SRE'
  9101. fi
  9102. fi
  9103. fi
  9104. # It seems that -bexpall does not export symbols beginning with
  9105. # underscore (_), so it is better to generate a list of symbols to export.
  9106. always_export_symbols_CXX=yes
  9107. if test "$aix_use_runtimelinking" = yes; then
  9108. # Warning - without using the other runtime loading flags (-brtl),
  9109. # -berok will link without error, but may produce a broken library.
  9110. allow_undefined_flag_CXX='-berok'
  9111. # Determine the default libpath from the value encoded in an empty executable.
  9112. cat >conftest.$ac_ext <<_ACEOF
  9113. /* confdefs.h. */
  9114. _ACEOF
  9115. cat confdefs.h >>conftest.$ac_ext
  9116. cat >>conftest.$ac_ext <<_ACEOF
  9117. /* end confdefs.h. */
  9118. int
  9119. main ()
  9120. {
  9121. ;
  9122. return 0;
  9123. }
  9124. _ACEOF
  9125. rm -f conftest.$ac_objext conftest$ac_exeext
  9126. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9127. (eval $ac_link) 2>conftest.er1
  9128. ac_status=$?
  9129. grep -v '^ *+' conftest.er1 >conftest.err
  9130. rm -f conftest.er1
  9131. cat conftest.err >&5
  9132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9133. (exit $ac_status); } &&
  9134. { ac_try='test -z "$ac_cxx_werror_flag"
  9135. || test ! -s conftest.err'
  9136. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9137. (eval $ac_try) 2>&5
  9138. ac_status=$?
  9139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9140. (exit $ac_status); }; } &&
  9141. { ac_try='test -s conftest$ac_exeext'
  9142. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9143. (eval $ac_try) 2>&5
  9144. ac_status=$?
  9145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9146. (exit $ac_status); }; }; then
  9147. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9148. }'`
  9149. # Check for a 64-bit object if we didn't find anything.
  9150. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9151. }'`; fi
  9152. else
  9153. echo "$as_me: failed program was:" >&5
  9154. sed 's/^/| /' conftest.$ac_ext >&5
  9155. fi
  9156. rm -f conftest.err conftest.$ac_objext \
  9157. conftest$ac_exeext conftest.$ac_ext
  9158. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9159. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9160. 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"
  9161. else
  9162. if test "$host_cpu" = ia64; then
  9163. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  9164. allow_undefined_flag_CXX="-z nodefs"
  9165. 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"
  9166. else
  9167. # Determine the default libpath from the value encoded in an empty executable.
  9168. cat >conftest.$ac_ext <<_ACEOF
  9169. /* confdefs.h. */
  9170. _ACEOF
  9171. cat confdefs.h >>conftest.$ac_ext
  9172. cat >>conftest.$ac_ext <<_ACEOF
  9173. /* end confdefs.h. */
  9174. int
  9175. main ()
  9176. {
  9177. ;
  9178. return 0;
  9179. }
  9180. _ACEOF
  9181. rm -f conftest.$ac_objext conftest$ac_exeext
  9182. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9183. (eval $ac_link) 2>conftest.er1
  9184. ac_status=$?
  9185. grep -v '^ *+' conftest.er1 >conftest.err
  9186. rm -f conftest.er1
  9187. cat conftest.err >&5
  9188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9189. (exit $ac_status); } &&
  9190. { ac_try='test -z "$ac_cxx_werror_flag"
  9191. || test ! -s conftest.err'
  9192. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9193. (eval $ac_try) 2>&5
  9194. ac_status=$?
  9195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9196. (exit $ac_status); }; } &&
  9197. { ac_try='test -s conftest$ac_exeext'
  9198. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9199. (eval $ac_try) 2>&5
  9200. ac_status=$?
  9201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9202. (exit $ac_status); }; }; then
  9203. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9204. }'`
  9205. # Check for a 64-bit object if we didn't find anything.
  9206. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9207. }'`; fi
  9208. else
  9209. echo "$as_me: failed program was:" >&5
  9210. sed 's/^/| /' conftest.$ac_ext >&5
  9211. fi
  9212. rm -f conftest.err conftest.$ac_objext \
  9213. conftest$ac_exeext conftest.$ac_ext
  9214. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9215. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9216. # Warning - without using the other run time loading flags,
  9217. # -berok will link without error, but may produce a broken library.
  9218. no_undefined_flag_CXX=' ${wl}-bernotok'
  9219. allow_undefined_flag_CXX=' ${wl}-berok'
  9220. # Exported symbols can be pulled into shared objects from archives
  9221. whole_archive_flag_spec_CXX='$convenience'
  9222. archive_cmds_need_lc_CXX=yes
  9223. # This is similar to how AIX traditionally builds its shared libraries.
  9224. 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'
  9225. fi
  9226. fi
  9227. ;;
  9228. beos*)
  9229. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9230. allow_undefined_flag_CXX=unsupported
  9231. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9232. # support --undefined. This deserves some investigation. FIXME
  9233. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9234. else
  9235. ld_shlibs_CXX=no
  9236. fi
  9237. ;;
  9238. chorus*)
  9239. case $cc_basename in
  9240. *)
  9241. # FIXME: insert proper C++ library support
  9242. ld_shlibs_CXX=no
  9243. ;;
  9244. esac
  9245. ;;
  9246. cygwin* | mingw* | pw32*)
  9247. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  9248. # as there is no search path for DLLs.
  9249. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9250. allow_undefined_flag_CXX=unsupported
  9251. always_export_symbols_CXX=no
  9252. enable_shared_with_static_runtimes_CXX=yes
  9253. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9254. 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'
  9255. # If the export-symbols file already is a .def file (1st line
  9256. # is EXPORTS), use it as is; otherwise, prepend...
  9257. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9258. cp $export_symbols $output_objdir/$soname.def;
  9259. else
  9260. echo EXPORTS > $output_objdir/$soname.def;
  9261. cat $export_symbols >> $output_objdir/$soname.def;
  9262. fi~
  9263. $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'
  9264. else
  9265. ld_shlibs_CXX=no
  9266. fi
  9267. ;;
  9268. darwin* | rhapsody*)
  9269. case $host_os in
  9270. rhapsody* | darwin1.[012])
  9271. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  9272. ;;
  9273. *) # Darwin 1.3 on
  9274. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  9275. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9276. else
  9277. case ${MACOSX_DEPLOYMENT_TARGET} in
  9278. 10.[012])
  9279. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9280. ;;
  9281. 10.*)
  9282. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  9283. ;;
  9284. esac
  9285. fi
  9286. ;;
  9287. esac
  9288. archive_cmds_need_lc_CXX=no
  9289. hardcode_direct_CXX=no
  9290. hardcode_automatic_CXX=yes
  9291. hardcode_shlibpath_var_CXX=unsupported
  9292. whole_archive_flag_spec_CXX=''
  9293. link_all_deplibs_CXX=yes
  9294. if test "$GXX" = yes ; then
  9295. lt_int_apple_cc_single_mod=no
  9296. output_verbose_link_cmd='echo'
  9297. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  9298. lt_int_apple_cc_single_mod=yes
  9299. fi
  9300. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9301. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  9302. else
  9303. 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'
  9304. fi
  9305. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9306. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9307. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9308. 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}'
  9309. else
  9310. 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}'
  9311. fi
  9312. 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}'
  9313. else
  9314. case $cc_basename in
  9315. xlc*)
  9316. output_verbose_link_cmd='echo'
  9317. archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  9318. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9319. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9320. 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9321. 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}'
  9322. ;;
  9323. *)
  9324. ld_shlibs_CXX=no
  9325. ;;
  9326. esac
  9327. fi
  9328. ;;
  9329. dgux*)
  9330. case $cc_basename in
  9331. ec++*)
  9332. # FIXME: insert proper C++ library support
  9333. ld_shlibs_CXX=no
  9334. ;;
  9335. ghcx*)
  9336. # Green Hills C++ Compiler
  9337. # FIXME: insert proper C++ library support
  9338. ld_shlibs_CXX=no
  9339. ;;
  9340. *)
  9341. # FIXME: insert proper C++ library support
  9342. ld_shlibs_CXX=no
  9343. ;;
  9344. esac
  9345. ;;
  9346. freebsd[12]*)
  9347. # C++ shared libraries reported to be fairly broken before switch to ELF
  9348. ld_shlibs_CXX=no
  9349. ;;
  9350. freebsd-elf*)
  9351. archive_cmds_need_lc_CXX=no
  9352. ;;
  9353. freebsd* | kfreebsd*-gnu | dragonfly*)
  9354. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9355. # conventions
  9356. ld_shlibs_CXX=yes
  9357. ;;
  9358. gnu*)
  9359. ;;
  9360. hpux9*)
  9361. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9362. hardcode_libdir_separator_CXX=:
  9363. export_dynamic_flag_spec_CXX='${wl}-E'
  9364. hardcode_direct_CXX=yes
  9365. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9366. # but as the default
  9367. # location of the library.
  9368. case $cc_basename in
  9369. CC*)
  9370. # FIXME: insert proper C++ library support
  9371. ld_shlibs_CXX=no
  9372. ;;
  9373. aCC*)
  9374. 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'
  9375. # Commands to make compiler produce verbose output that lists
  9376. # what "hidden" libraries, object files and flags are used when
  9377. # linking a shared library.
  9378. #
  9379. # There doesn't appear to be a way to prevent this compiler from
  9380. # explicitly linking system object files so we need to strip them
  9381. # from the output so that they don't get included in the library
  9382. # dependencies.
  9383. 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'
  9384. ;;
  9385. *)
  9386. if test "$GXX" = yes; then
  9387. 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'
  9388. else
  9389. # FIXME: insert proper C++ library support
  9390. ld_shlibs_CXX=no
  9391. fi
  9392. ;;
  9393. esac
  9394. ;;
  9395. hpux10*|hpux11*)
  9396. if test $with_gnu_ld = no; then
  9397. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9398. hardcode_libdir_separator_CXX=:
  9399. case $host_cpu in
  9400. hppa*64*|ia64*)
  9401. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  9402. ;;
  9403. *)
  9404. export_dynamic_flag_spec_CXX='${wl}-E'
  9405. ;;
  9406. esac
  9407. fi
  9408. case $host_cpu in
  9409. hppa*64*|ia64*)
  9410. hardcode_direct_CXX=no
  9411. hardcode_shlibpath_var_CXX=no
  9412. ;;
  9413. *)
  9414. hardcode_direct_CXX=yes
  9415. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9416. # but as the default
  9417. # location of the library.
  9418. ;;
  9419. esac
  9420. case $cc_basename in
  9421. CC*)
  9422. # FIXME: insert proper C++ library support
  9423. ld_shlibs_CXX=no
  9424. ;;
  9425. aCC*)
  9426. case $host_cpu in
  9427. hppa*64*)
  9428. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9429. ;;
  9430. ia64*)
  9431. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9432. ;;
  9433. *)
  9434. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9435. ;;
  9436. esac
  9437. # Commands to make compiler produce verbose output that lists
  9438. # what "hidden" libraries, object files and flags are used when
  9439. # linking a shared library.
  9440. #
  9441. # There doesn't appear to be a way to prevent this compiler from
  9442. # explicitly linking system object files so we need to strip them
  9443. # from the output so that they don't get included in the library
  9444. # dependencies.
  9445. 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'
  9446. ;;
  9447. *)
  9448. if test "$GXX" = yes; then
  9449. if test $with_gnu_ld = no; then
  9450. case $host_cpu in
  9451. hppa*64*)
  9452. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9453. ;;
  9454. ia64*)
  9455. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9456. ;;
  9457. *)
  9458. 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'
  9459. ;;
  9460. esac
  9461. fi
  9462. else
  9463. # FIXME: insert proper C++ library support
  9464. ld_shlibs_CXX=no
  9465. fi
  9466. ;;
  9467. esac
  9468. ;;
  9469. interix3*)
  9470. hardcode_direct_CXX=no
  9471. hardcode_shlibpath_var_CXX=no
  9472. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9473. export_dynamic_flag_spec_CXX='${wl}-E'
  9474. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9475. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9476. # default) and relocated if they conflict, which is a slow very memory
  9477. # consuming and fragmenting process. To avoid this, we pick a random,
  9478. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9479. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9480. 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'
  9481. 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'
  9482. ;;
  9483. irix5* | irix6*)
  9484. case $cc_basename in
  9485. CC*)
  9486. # SGI C++
  9487. 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'
  9488. # Archives containing C++ object files must be created using
  9489. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  9490. # necessary to make sure instantiated templates are included
  9491. # in the archive.
  9492. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  9493. ;;
  9494. *)
  9495. if test "$GXX" = yes; then
  9496. if test "$with_gnu_ld" = no; then
  9497. 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'
  9498. else
  9499. 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'
  9500. fi
  9501. fi
  9502. link_all_deplibs_CXX=yes
  9503. ;;
  9504. esac
  9505. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9506. hardcode_libdir_separator_CXX=:
  9507. ;;
  9508. linux*)
  9509. case $cc_basename in
  9510. KCC*)
  9511. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9512. # KCC will only create a shared library if the output file
  9513. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9514. # to its proper name (with version) after linking.
  9515. 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'
  9516. 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'
  9517. # Commands to make compiler produce verbose output that lists
  9518. # what "hidden" libraries, object files and flags are used when
  9519. # linking a shared library.
  9520. #
  9521. # There doesn't appear to be a way to prevent this compiler from
  9522. # explicitly linking system object files so we need to strip them
  9523. # from the output so that they don't get included in the library
  9524. # dependencies.
  9525. 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'
  9526. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  9527. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9528. # Archives containing C++ object files must be created using
  9529. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9530. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9531. ;;
  9532. icpc*)
  9533. # Intel C++
  9534. with_gnu_ld=yes
  9535. # version 8.0 and above of icpc choke on multiply defined symbols
  9536. # if we add $predep_objects and $postdep_objects, however 7.1 and
  9537. # earlier do not add the objects themselves.
  9538. case `$CC -V 2>&1` in
  9539. *"Version 7."*)
  9540. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9541. 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'
  9542. ;;
  9543. *) # Version 8.0 or newer
  9544. tmp_idyn=
  9545. case $host_cpu in
  9546. ia64*) tmp_idyn=' -i_dynamic';;
  9547. esac
  9548. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9549. 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'
  9550. ;;
  9551. esac
  9552. archive_cmds_need_lc_CXX=no
  9553. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9554. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9555. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9556. ;;
  9557. pgCC*)
  9558. # Portland Group C++ compiler
  9559. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9560. 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'
  9561. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9562. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9563. 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'
  9564. ;;
  9565. cxx*)
  9566. # Compaq C++
  9567. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9568. 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'
  9569. runpath_var=LD_RUN_PATH
  9570. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9571. hardcode_libdir_separator_CXX=:
  9572. # Commands to make compiler produce verbose output that lists
  9573. # what "hidden" libraries, object files and flags are used when
  9574. # linking a shared library.
  9575. #
  9576. # There doesn't appear to be a way to prevent this compiler from
  9577. # explicitly linking system object files so we need to strip them
  9578. # from the output so that they don't get included in the library
  9579. # dependencies.
  9580. 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'
  9581. ;;
  9582. esac
  9583. ;;
  9584. lynxos*)
  9585. # FIXME: insert proper C++ library support
  9586. ld_shlibs_CXX=no
  9587. ;;
  9588. m88k*)
  9589. # FIXME: insert proper C++ library support
  9590. ld_shlibs_CXX=no
  9591. ;;
  9592. mvs*)
  9593. case $cc_basename in
  9594. cxx*)
  9595. # FIXME: insert proper C++ library support
  9596. ld_shlibs_CXX=no
  9597. ;;
  9598. *)
  9599. # FIXME: insert proper C++ library support
  9600. ld_shlibs_CXX=no
  9601. ;;
  9602. esac
  9603. ;;
  9604. netbsd*)
  9605. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9606. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  9607. wlarc=
  9608. hardcode_libdir_flag_spec_CXX='-R$libdir'
  9609. hardcode_direct_CXX=yes
  9610. hardcode_shlibpath_var_CXX=no
  9611. fi
  9612. # Workaround some broken pre-1.5 toolchains
  9613. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  9614. ;;
  9615. openbsd2*)
  9616. # C++ shared libraries are fairly broken
  9617. ld_shlibs_CXX=no
  9618. ;;
  9619. openbsd*)
  9620. hardcode_direct_CXX=yes
  9621. hardcode_shlibpath_var_CXX=no
  9622. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9623. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9624. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9625. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  9626. export_dynamic_flag_spec_CXX='${wl}-E'
  9627. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9628. fi
  9629. output_verbose_link_cmd='echo'
  9630. ;;
  9631. osf3*)
  9632. case $cc_basename in
  9633. KCC*)
  9634. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9635. # KCC will only create a shared library if the output file
  9636. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9637. # to its proper name (with version) after linking.
  9638. 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'
  9639. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9640. hardcode_libdir_separator_CXX=:
  9641. # Archives containing C++ object files must be created using
  9642. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9643. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9644. ;;
  9645. RCC*)
  9646. # Rational C++ 2.4.1
  9647. # FIXME: insert proper C++ library support
  9648. ld_shlibs_CXX=no
  9649. ;;
  9650. cxx*)
  9651. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9652. 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'
  9653. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9654. hardcode_libdir_separator_CXX=:
  9655. # Commands to make compiler produce verbose output that lists
  9656. # what "hidden" libraries, object files and flags are used when
  9657. # linking a shared library.
  9658. #
  9659. # There doesn't appear to be a way to prevent this compiler from
  9660. # explicitly linking system object files so we need to strip them
  9661. # from the output so that they don't get included in the library
  9662. # dependencies.
  9663. 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'
  9664. ;;
  9665. *)
  9666. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9667. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9668. 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'
  9669. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9670. hardcode_libdir_separator_CXX=:
  9671. # Commands to make compiler produce verbose output that lists
  9672. # what "hidden" libraries, object files and flags are used when
  9673. # linking a shared library.
  9674. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9675. else
  9676. # FIXME: insert proper C++ library support
  9677. ld_shlibs_CXX=no
  9678. fi
  9679. ;;
  9680. esac
  9681. ;;
  9682. osf4* | osf5*)
  9683. case $cc_basename in
  9684. KCC*)
  9685. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9686. # KCC will only create a shared library if the output file
  9687. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9688. # to its proper name (with version) after linking.
  9689. 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'
  9690. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9691. hardcode_libdir_separator_CXX=:
  9692. # Archives containing C++ object files must be created using
  9693. # the KAI C++ compiler.
  9694. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  9695. ;;
  9696. RCC*)
  9697. # Rational C++ 2.4.1
  9698. # FIXME: insert proper C++ library support
  9699. ld_shlibs_CXX=no
  9700. ;;
  9701. cxx*)
  9702. allow_undefined_flag_CXX=' -expect_unresolved \*'
  9703. 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'
  9704. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  9705. echo "-hidden">> $lib.exp~
  9706. $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~
  9707. $rm $lib.exp'
  9708. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9709. hardcode_libdir_separator_CXX=:
  9710. # Commands to make compiler produce verbose output that lists
  9711. # what "hidden" libraries, object files and flags are used when
  9712. # linking a shared library.
  9713. #
  9714. # There doesn't appear to be a way to prevent this compiler from
  9715. # explicitly linking system object files so we need to strip them
  9716. # from the output so that they don't get included in the library
  9717. # dependencies.
  9718. 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'
  9719. ;;
  9720. *)
  9721. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9722. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9723. 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'
  9724. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9725. hardcode_libdir_separator_CXX=:
  9726. # Commands to make compiler produce verbose output that lists
  9727. # what "hidden" libraries, object files and flags are used when
  9728. # linking a shared library.
  9729. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9730. else
  9731. # FIXME: insert proper C++ library support
  9732. ld_shlibs_CXX=no
  9733. fi
  9734. ;;
  9735. esac
  9736. ;;
  9737. psos*)
  9738. # FIXME: insert proper C++ library support
  9739. ld_shlibs_CXX=no
  9740. ;;
  9741. sunos4*)
  9742. case $cc_basename in
  9743. CC*)
  9744. # Sun C++ 4.x
  9745. # FIXME: insert proper C++ library support
  9746. ld_shlibs_CXX=no
  9747. ;;
  9748. lcc*)
  9749. # Lucid
  9750. # FIXME: insert proper C++ library support
  9751. ld_shlibs_CXX=no
  9752. ;;
  9753. *)
  9754. # FIXME: insert proper C++ library support
  9755. ld_shlibs_CXX=no
  9756. ;;
  9757. esac
  9758. ;;
  9759. solaris*)
  9760. case $cc_basename in
  9761. CC*)
  9762. # Sun C++ 4.2, 5.x and Centerline C++
  9763. archive_cmds_need_lc_CXX=yes
  9764. no_undefined_flag_CXX=' -zdefs'
  9765. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9766. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9767. $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'
  9768. hardcode_libdir_flag_spec_CXX='-R$libdir'
  9769. hardcode_shlibpath_var_CXX=no
  9770. case $host_os in
  9771. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9772. *)
  9773. # The C++ compiler is used as linker so we must use $wl
  9774. # flag to pass the commands to the underlying system
  9775. # linker. We must also pass each convience library through
  9776. # to the system linker between allextract/defaultextract.
  9777. # The C++ compiler will combine linker options so we
  9778. # cannot just pass the convience library names through
  9779. # without $wl.
  9780. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9781. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  9782. ;;
  9783. esac
  9784. link_all_deplibs_CXX=yes
  9785. output_verbose_link_cmd='echo'
  9786. # Archives containing C++ object files must be created using
  9787. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  9788. # necessary to make sure instantiated templates are included
  9789. # in the archive.
  9790. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  9791. ;;
  9792. gcx*)
  9793. # Green Hills C++ Compiler
  9794. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9795. # The C++ compiler must be used to create the archive.
  9796. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  9797. ;;
  9798. *)
  9799. # GNU C++ compiler with Solaris linker
  9800. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9801. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  9802. if $CC --version | grep -v '^2\.7' > /dev/null; then
  9803. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9804. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9805. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9806. # Commands to make compiler produce verbose output that lists
  9807. # what "hidden" libraries, object files and flags are used when
  9808. # linking a shared library.
  9809. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  9810. else
  9811. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  9812. # platform.
  9813. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9814. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9815. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9816. # Commands to make compiler produce verbose output that lists
  9817. # what "hidden" libraries, object files and flags are used when
  9818. # linking a shared library.
  9819. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  9820. fi
  9821. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  9822. fi
  9823. ;;
  9824. esac
  9825. ;;
  9826. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9827. no_undefined_flag_CXX='${wl}-z,text'
  9828. archive_cmds_need_lc_CXX=no
  9829. hardcode_shlibpath_var_CXX=no
  9830. runpath_var='LD_RUN_PATH'
  9831. case $cc_basename in
  9832. CC*)
  9833. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9834. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9835. ;;
  9836. *)
  9837. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9838. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9839. ;;
  9840. esac
  9841. ;;
  9842. sysv5* | sco3.2v5* | sco5v6*)
  9843. # Note: We can NOT use -z defs as we might desire, because we do not
  9844. # link with -lc, and that would cause any symbols used from libc to
  9845. # always be unresolved, which means just about no library would
  9846. # ever link correctly. If we're not using GNU ld we use -z text
  9847. # though, which does catch some bad symbols but isn't as heavy-handed
  9848. # as -z defs.
  9849. # For security reasons, it is highly recommended that you always
  9850. # use absolute paths for naming shared libraries, and exclude the
  9851. # DT_RUNPATH tag from executables and libraries. But doing so
  9852. # requires that you compile everything twice, which is a pain.
  9853. # So that behaviour is only enabled if SCOABSPATH is set to a
  9854. # non-empty value in the environment. Most likely only useful for
  9855. # creating official distributions of packages.
  9856. # This is a hack until libtool officially supports absolute path
  9857. # names for shared libraries.
  9858. no_undefined_flag_CXX='${wl}-z,text'
  9859. allow_undefined_flag_CXX='${wl}-z,nodefs'
  9860. archive_cmds_need_lc_CXX=no
  9861. hardcode_shlibpath_var_CXX=no
  9862. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  9863. hardcode_libdir_separator_CXX=':'
  9864. link_all_deplibs_CXX=yes
  9865. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  9866. runpath_var='LD_RUN_PATH'
  9867. case $cc_basename in
  9868. CC*)
  9869. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9870. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9871. ;;
  9872. *)
  9873. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9874. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9875. ;;
  9876. esac
  9877. ;;
  9878. tandem*)
  9879. case $cc_basename in
  9880. NCC*)
  9881. # NonStop-UX NCC 3.20
  9882. # FIXME: insert proper C++ library support
  9883. ld_shlibs_CXX=no
  9884. ;;
  9885. *)
  9886. # FIXME: insert proper C++ library support
  9887. ld_shlibs_CXX=no
  9888. ;;
  9889. esac
  9890. ;;
  9891. vxworks*)
  9892. # FIXME: insert proper C++ library support
  9893. ld_shlibs_CXX=no
  9894. ;;
  9895. *)
  9896. # FIXME: insert proper C++ library support
  9897. ld_shlibs_CXX=no
  9898. ;;
  9899. esac
  9900. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  9901. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  9902. test "$ld_shlibs_CXX" = no && can_build_shared=no
  9903. GCC_CXX="$GXX"
  9904. LD_CXX="$LD"
  9905. ## CAVEAT EMPTOR:
  9906. ## There is no encapsulation within the following macros, do not change
  9907. ## the running order or otherwise move them around unless you know exactly
  9908. ## what you are doing...
  9909. cat > conftest.$ac_ext <<EOF
  9910. class Foo
  9911. {
  9912. public:
  9913. Foo (void) { a = 0; }
  9914. private:
  9915. int a;
  9916. };
  9917. EOF
  9918. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9919. (eval $ac_compile) 2>&5
  9920. ac_status=$?
  9921. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9922. (exit $ac_status); }; then
  9923. # Parse the compiler output and extract the necessary
  9924. # objects, libraries and library flags.
  9925. # Sentinel used to keep track of whether or not we are before
  9926. # the conftest object file.
  9927. pre_test_object_deps_done=no
  9928. # The `*' in the case matches for architectures that use `case' in
  9929. # $output_verbose_cmd can trigger glob expansion during the loop
  9930. # eval without this substitution.
  9931. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  9932. for p in `eval $output_verbose_link_cmd`; do
  9933. case $p in
  9934. -L* | -R* | -l*)
  9935. # Some compilers place space between "-{L,R}" and the path.
  9936. # Remove the space.
  9937. if test $p = "-L" \
  9938. || test $p = "-R"; then
  9939. prev=$p
  9940. continue
  9941. else
  9942. prev=
  9943. fi
  9944. if test "$pre_test_object_deps_done" = no; then
  9945. case $p in
  9946. -L* | -R*)
  9947. # Internal compiler library paths should come after those
  9948. # provided the user. The postdeps already come after the
  9949. # user supplied libs so there is no need to process them.
  9950. if test -z "$compiler_lib_search_path_CXX"; then
  9951. compiler_lib_search_path_CXX="${prev}${p}"
  9952. else
  9953. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  9954. fi
  9955. ;;
  9956. # The "-l" case would never come before the object being
  9957. # linked, so don't bother handling this case.
  9958. esac
  9959. else
  9960. if test -z "$postdeps_CXX"; then
  9961. postdeps_CXX="${prev}${p}"
  9962. else
  9963. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  9964. fi
  9965. fi
  9966. ;;
  9967. *.$objext)
  9968. # This assumes that the test object file only shows up
  9969. # once in the compiler output.
  9970. if test "$p" = "conftest.$objext"; then
  9971. pre_test_object_deps_done=yes
  9972. continue
  9973. fi
  9974. if test "$pre_test_object_deps_done" = no; then
  9975. if test -z "$predep_objects_CXX"; then
  9976. predep_objects_CXX="$p"
  9977. else
  9978. predep_objects_CXX="$predep_objects_CXX $p"
  9979. fi
  9980. else
  9981. if test -z "$postdep_objects_CXX"; then
  9982. postdep_objects_CXX="$p"
  9983. else
  9984. postdep_objects_CXX="$postdep_objects_CXX $p"
  9985. fi
  9986. fi
  9987. ;;
  9988. *) ;; # Ignore the rest.
  9989. esac
  9990. done
  9991. # Clean up.
  9992. rm -f a.out a.exe
  9993. else
  9994. echo "libtool.m4: error: problem compiling CXX test program"
  9995. fi
  9996. $rm -f confest.$objext
  9997. # PORTME: override above test on systems where it is broken
  9998. case $host_os in
  9999. interix3*)
  10000. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10001. # hack all around it, let's just trust "g++" to DTRT.
  10002. predep_objects_CXX=
  10003. postdep_objects_CXX=
  10004. postdeps_CXX=
  10005. ;;
  10006. solaris*)
  10007. case $cc_basename in
  10008. CC*)
  10009. # Adding this requires a known-good setup of shared libraries for
  10010. # Sun compiler versions before 5.6, else PIC objects from an old
  10011. # archive will be linked into the output, leading to subtle bugs.
  10012. postdeps_CXX='-lCstd -lCrun'
  10013. ;;
  10014. esac
  10015. ;;
  10016. esac
  10017. case " $postdeps_CXX " in
  10018. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10019. esac
  10020. lt_prog_compiler_wl_CXX=
  10021. lt_prog_compiler_pic_CXX=
  10022. lt_prog_compiler_static_CXX=
  10023. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  10024. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  10025. # C++ specific cases for pic, static, wl, etc.
  10026. if test "$GXX" = yes; then
  10027. lt_prog_compiler_wl_CXX='-Wl,'
  10028. lt_prog_compiler_static_CXX='-static'
  10029. case $host_os in
  10030. aix*)
  10031. # All AIX code is PIC.
  10032. if test "$host_cpu" = ia64; then
  10033. # AIX 5 now supports IA64 processor
  10034. lt_prog_compiler_static_CXX='-Bstatic'
  10035. fi
  10036. ;;
  10037. amigaos*)
  10038. # FIXME: we need at least 68020 code to build shared libraries, but
  10039. # adding the `-m68020' flag to GCC prevents building anything better,
  10040. # like `-m68040'.
  10041. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  10042. ;;
  10043. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10044. # PIC is the default for these OSes.
  10045. ;;
  10046. mingw* | os2* | pw32*)
  10047. # This hack is so that the source file can tell whether it is being
  10048. # built for inclusion in a dll (and should export symbols for example).
  10049. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  10050. ;;
  10051. darwin* | rhapsody*)
  10052. # PIC is the default on this platform
  10053. # Common symbols not allowed in MH_DYLIB files
  10054. lt_prog_compiler_pic_CXX='-fno-common'
  10055. ;;
  10056. *djgpp*)
  10057. # DJGPP does not support shared libraries at all
  10058. lt_prog_compiler_pic_CXX=
  10059. ;;
  10060. interix3*)
  10061. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10062. # Instead, we relocate shared libraries at runtime.
  10063. ;;
  10064. sysv4*MP*)
  10065. if test -d /usr/nec; then
  10066. lt_prog_compiler_pic_CXX=-Kconform_pic
  10067. fi
  10068. ;;
  10069. hpux*)
  10070. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10071. # not for PA HP-UX.
  10072. case $host_cpu in
  10073. hppa*64*|ia64*)
  10074. ;;
  10075. *)
  10076. lt_prog_compiler_pic_CXX='-fPIC'
  10077. ;;
  10078. esac
  10079. ;;
  10080. *)
  10081. lt_prog_compiler_pic_CXX='-fPIC'
  10082. ;;
  10083. esac
  10084. else
  10085. case $host_os in
  10086. aix4* | aix5*)
  10087. # All AIX code is PIC.
  10088. if test "$host_cpu" = ia64; then
  10089. # AIX 5 now supports IA64 processor
  10090. lt_prog_compiler_static_CXX='-Bstatic'
  10091. else
  10092. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  10093. fi
  10094. ;;
  10095. chorus*)
  10096. case $cc_basename in
  10097. cxch68*)
  10098. # Green Hills C++ Compiler
  10099. # _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"
  10100. ;;
  10101. esac
  10102. ;;
  10103. darwin*)
  10104. # PIC is the default on this platform
  10105. # Common symbols not allowed in MH_DYLIB files
  10106. case $cc_basename in
  10107. xlc*)
  10108. lt_prog_compiler_pic_CXX='-qnocommon'
  10109. lt_prog_compiler_wl_CXX='-Wl,'
  10110. ;;
  10111. esac
  10112. ;;
  10113. dgux*)
  10114. case $cc_basename in
  10115. ec++*)
  10116. lt_prog_compiler_pic_CXX='-KPIC'
  10117. ;;
  10118. ghcx*)
  10119. # Green Hills C++ Compiler
  10120. lt_prog_compiler_pic_CXX='-pic'
  10121. ;;
  10122. *)
  10123. ;;
  10124. esac
  10125. ;;
  10126. freebsd* | kfreebsd*-gnu | dragonfly*)
  10127. # FreeBSD uses GNU C++
  10128. ;;
  10129. hpux9* | hpux10* | hpux11*)
  10130. case $cc_basename in
  10131. CC*)
  10132. lt_prog_compiler_wl_CXX='-Wl,'
  10133. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10134. if test "$host_cpu" != ia64; then
  10135. lt_prog_compiler_pic_CXX='+Z'
  10136. fi
  10137. ;;
  10138. aCC*)
  10139. lt_prog_compiler_wl_CXX='-Wl,'
  10140. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10141. case $host_cpu in
  10142. hppa*64*|ia64*)
  10143. # +Z the default
  10144. ;;
  10145. *)
  10146. lt_prog_compiler_pic_CXX='+Z'
  10147. ;;
  10148. esac
  10149. ;;
  10150. *)
  10151. ;;
  10152. esac
  10153. ;;
  10154. interix*)
  10155. # This is c89, which is MS Visual C++ (no shared libs)
  10156. # Anyone wants to do a port?
  10157. ;;
  10158. irix5* | irix6* | nonstopux*)
  10159. case $cc_basename in
  10160. CC*)
  10161. lt_prog_compiler_wl_CXX='-Wl,'
  10162. lt_prog_compiler_static_CXX='-non_shared'
  10163. # CC pic flag -KPIC is the default.
  10164. ;;
  10165. *)
  10166. ;;
  10167. esac
  10168. ;;
  10169. linux*)
  10170. case $cc_basename in
  10171. KCC*)
  10172. # KAI C++ Compiler
  10173. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10174. lt_prog_compiler_pic_CXX='-fPIC'
  10175. ;;
  10176. icpc* | ecpc*)
  10177. # Intel C++
  10178. lt_prog_compiler_wl_CXX='-Wl,'
  10179. lt_prog_compiler_pic_CXX='-KPIC'
  10180. lt_prog_compiler_static_CXX='-static'
  10181. ;;
  10182. pgCC*)
  10183. # Portland Group C++ compiler.
  10184. lt_prog_compiler_wl_CXX='-Wl,'
  10185. lt_prog_compiler_pic_CXX='-fpic'
  10186. lt_prog_compiler_static_CXX='-Bstatic'
  10187. ;;
  10188. cxx*)
  10189. # Compaq C++
  10190. # Make sure the PIC flag is empty. It appears that all Alpha
  10191. # Linux and Compaq Tru64 Unix objects are PIC.
  10192. lt_prog_compiler_pic_CXX=
  10193. lt_prog_compiler_static_CXX='-non_shared'
  10194. ;;
  10195. *)
  10196. ;;
  10197. esac
  10198. ;;
  10199. lynxos*)
  10200. ;;
  10201. m88k*)
  10202. ;;
  10203. mvs*)
  10204. case $cc_basename in
  10205. cxx*)
  10206. lt_prog_compiler_pic_CXX='-W c,exportall'
  10207. ;;
  10208. *)
  10209. ;;
  10210. esac
  10211. ;;
  10212. netbsd*)
  10213. ;;
  10214. osf3* | osf4* | osf5*)
  10215. case $cc_basename in
  10216. KCC*)
  10217. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10218. ;;
  10219. RCC*)
  10220. # Rational C++ 2.4.1
  10221. lt_prog_compiler_pic_CXX='-pic'
  10222. ;;
  10223. cxx*)
  10224. # Digital/Compaq C++
  10225. lt_prog_compiler_wl_CXX='-Wl,'
  10226. # Make sure the PIC flag is empty. It appears that all Alpha
  10227. # Linux and Compaq Tru64 Unix objects are PIC.
  10228. lt_prog_compiler_pic_CXX=
  10229. lt_prog_compiler_static_CXX='-non_shared'
  10230. ;;
  10231. *)
  10232. ;;
  10233. esac
  10234. ;;
  10235. psos*)
  10236. ;;
  10237. solaris*)
  10238. case $cc_basename in
  10239. CC*)
  10240. # Sun C++ 4.2, 5.x and Centerline C++
  10241. lt_prog_compiler_pic_CXX='-KPIC'
  10242. lt_prog_compiler_static_CXX='-Bstatic'
  10243. lt_prog_compiler_wl_CXX='-Qoption ld '
  10244. ;;
  10245. gcx*)
  10246. # Green Hills C++ Compiler
  10247. lt_prog_compiler_pic_CXX='-PIC'
  10248. ;;
  10249. *)
  10250. ;;
  10251. esac
  10252. ;;
  10253. sunos4*)
  10254. case $cc_basename in
  10255. CC*)
  10256. # Sun C++ 4.x
  10257. lt_prog_compiler_pic_CXX='-pic'
  10258. lt_prog_compiler_static_CXX='-Bstatic'
  10259. ;;
  10260. lcc*)
  10261. # Lucid
  10262. lt_prog_compiler_pic_CXX='-pic'
  10263. ;;
  10264. *)
  10265. ;;
  10266. esac
  10267. ;;
  10268. tandem*)
  10269. case $cc_basename in
  10270. NCC*)
  10271. # NonStop-UX NCC 3.20
  10272. lt_prog_compiler_pic_CXX='-KPIC'
  10273. ;;
  10274. *)
  10275. ;;
  10276. esac
  10277. ;;
  10278. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10279. case $cc_basename in
  10280. CC*)
  10281. lt_prog_compiler_wl_CXX='-Wl,'
  10282. lt_prog_compiler_pic_CXX='-KPIC'
  10283. lt_prog_compiler_static_CXX='-Bstatic'
  10284. ;;
  10285. esac
  10286. ;;
  10287. vxworks*)
  10288. ;;
  10289. *)
  10290. lt_prog_compiler_can_build_shared_CXX=no
  10291. ;;
  10292. esac
  10293. fi
  10294. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  10295. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
  10296. #
  10297. # Check to make sure the PIC flag actually works.
  10298. #
  10299. if test -n "$lt_prog_compiler_pic_CXX"; then
  10300. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  10301. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
  10302. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  10303. echo $ECHO_N "(cached) $ECHO_C" >&6
  10304. else
  10305. lt_prog_compiler_pic_works_CXX=no
  10306. ac_outfile=conftest.$ac_objext
  10307. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10308. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  10309. # Insert the option either (1) after the last *FLAGS variable, or
  10310. # (2) before a word containing "conftest.", or (3) at the end.
  10311. # Note that $ac_compile itself does not contain backslashes and begins
  10312. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10313. # The option is referenced via a variable to avoid confusing sed.
  10314. lt_compile=`echo "$ac_compile" | $SED \
  10315. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10316. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10317. -e 's:$: $lt_compiler_flag:'`
  10318. (eval echo "\"\$as_me:11524: $lt_compile\"" >&5)
  10319. (eval "$lt_compile" 2>conftest.err)
  10320. ac_status=$?
  10321. cat conftest.err >&5
  10322. echo "$as_me:11528: \$? = $ac_status" >&5
  10323. if (exit $ac_status) && test -s "$ac_outfile"; then
  10324. # The compiler can only warn and ignore the option if not recognized
  10325. # So say no if there are warnings other than the usual output.
  10326. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  10327. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10328. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10329. lt_prog_compiler_pic_works_CXX=yes
  10330. fi
  10331. fi
  10332. $rm conftest*
  10333. fi
  10334. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  10335. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
  10336. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  10337. case $lt_prog_compiler_pic_CXX in
  10338. "" | " "*) ;;
  10339. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  10340. esac
  10341. else
  10342. lt_prog_compiler_pic_CXX=
  10343. lt_prog_compiler_can_build_shared_CXX=no
  10344. fi
  10345. fi
  10346. case $host_os in
  10347. # For platforms which do not support PIC, -DPIC is meaningless:
  10348. *djgpp*)
  10349. lt_prog_compiler_pic_CXX=
  10350. ;;
  10351. *)
  10352. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  10353. ;;
  10354. esac
  10355. #
  10356. # Check to make sure the static flag actually works.
  10357. #
  10358. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  10359. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  10360. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  10361. if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  10362. echo $ECHO_N "(cached) $ECHO_C" >&6
  10363. else
  10364. lt_prog_compiler_static_works_CXX=no
  10365. save_LDFLAGS="$LDFLAGS"
  10366. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  10367. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  10368. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10369. # The linker can only warn and ignore the option if not recognized
  10370. # So say no if there are warnings
  10371. if test -s conftest.err; then
  10372. # Append any errors to the config.log.
  10373. cat conftest.err 1>&5
  10374. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  10375. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10376. if diff conftest.exp conftest.er2 >/dev/null; then
  10377. lt_prog_compiler_static_works_CXX=yes
  10378. fi
  10379. else
  10380. lt_prog_compiler_static_works_CXX=yes
  10381. fi
  10382. fi
  10383. $rm conftest*
  10384. LDFLAGS="$save_LDFLAGS"
  10385. fi
  10386. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  10387. echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
  10388. if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  10389. :
  10390. else
  10391. lt_prog_compiler_static_CXX=
  10392. fi
  10393. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  10394. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  10395. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  10396. echo $ECHO_N "(cached) $ECHO_C" >&6
  10397. else
  10398. lt_cv_prog_compiler_c_o_CXX=no
  10399. $rm -r conftest 2>/dev/null
  10400. mkdir conftest
  10401. cd conftest
  10402. mkdir out
  10403. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10404. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10405. # Insert the option either (1) after the last *FLAGS variable, or
  10406. # (2) before a word containing "conftest.", or (3) at the end.
  10407. # Note that $ac_compile itself does not contain backslashes and begins
  10408. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10409. lt_compile=`echo "$ac_compile" | $SED \
  10410. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10411. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10412. -e 's:$: $lt_compiler_flag:'`
  10413. (eval echo "\"\$as_me:11628: $lt_compile\"" >&5)
  10414. (eval "$lt_compile" 2>out/conftest.err)
  10415. ac_status=$?
  10416. cat out/conftest.err >&5
  10417. echo "$as_me:11632: \$? = $ac_status" >&5
  10418. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10419. then
  10420. # The compiler can only warn and ignore the option if not recognized
  10421. # So say no if there are warnings
  10422. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  10423. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10424. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10425. lt_cv_prog_compiler_c_o_CXX=yes
  10426. fi
  10427. fi
  10428. chmod u+w . 2>&5
  10429. $rm conftest*
  10430. # SGI C++ compiler will create directory out/ii_files/ for
  10431. # template instantiation
  10432. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  10433. $rm out/* && rmdir out
  10434. cd ..
  10435. rmdir conftest
  10436. $rm conftest*
  10437. fi
  10438. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  10439. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
  10440. hard_links="nottested"
  10441. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  10442. # do not overwrite the value of need_locks provided by the user
  10443. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  10444. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  10445. hard_links=yes
  10446. $rm conftest*
  10447. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10448. touch conftest.a
  10449. ln conftest.a conftest.b 2>&5 || hard_links=no
  10450. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10451. echo "$as_me:$LINENO: result: $hard_links" >&5
  10452. echo "${ECHO_T}$hard_links" >&6
  10453. if test "$hard_links" = no; then
  10454. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  10455. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  10456. need_locks=warn
  10457. fi
  10458. else
  10459. need_locks=no
  10460. fi
  10461. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10462. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  10463. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10464. case $host_os in
  10465. aix4* | aix5*)
  10466. # If we're using GNU nm, then we don't want the "-C" option.
  10467. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  10468. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  10469. 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'
  10470. else
  10471. 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'
  10472. fi
  10473. ;;
  10474. pw32*)
  10475. export_symbols_cmds_CXX="$ltdll_cmds"
  10476. ;;
  10477. cygwin* | mingw*)
  10478. 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'
  10479. ;;
  10480. *)
  10481. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10482. ;;
  10483. esac
  10484. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10485. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  10486. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10487. #
  10488. # Do we need to explicitly link libc?
  10489. #
  10490. case "x$archive_cmds_need_lc_CXX" in
  10491. x|xyes)
  10492. # Assume -lc should be added
  10493. archive_cmds_need_lc_CXX=yes
  10494. if test "$enable_shared" = yes && test "$GCC" = yes; then
  10495. case $archive_cmds_CXX in
  10496. *'~'*)
  10497. # FIXME: we may have to deal with multi-command sequences.
  10498. ;;
  10499. '$CC '*)
  10500. # Test whether the compiler implicitly links with -lc since on some
  10501. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10502. # to ld, don't add -lc before -lgcc.
  10503. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  10504. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  10505. $rm conftest*
  10506. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10507. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10508. (eval $ac_compile) 2>&5
  10509. ac_status=$?
  10510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10511. (exit $ac_status); } 2>conftest.err; then
  10512. soname=conftest
  10513. lib=conftest
  10514. libobjs=conftest.$ac_objext
  10515. deplibs=
  10516. wl=$lt_prog_compiler_wl_CXX
  10517. pic_flag=$lt_prog_compiler_pic_CXX
  10518. compiler_flags=-v
  10519. linker_flags=-v
  10520. verstring=
  10521. output_objdir=.
  10522. libname=conftest
  10523. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  10524. allow_undefined_flag_CXX=
  10525. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  10526. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10527. ac_status=$?
  10528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10529. (exit $ac_status); }
  10530. then
  10531. archive_cmds_need_lc_CXX=no
  10532. else
  10533. archive_cmds_need_lc_CXX=yes
  10534. fi
  10535. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  10536. else
  10537. cat conftest.err 1>&5
  10538. fi
  10539. $rm conftest*
  10540. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  10541. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
  10542. ;;
  10543. esac
  10544. fi
  10545. ;;
  10546. esac
  10547. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  10548. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  10549. library_names_spec=
  10550. libname_spec='lib$name'
  10551. soname_spec=
  10552. shrext_cmds=".so"
  10553. postinstall_cmds=
  10554. postuninstall_cmds=
  10555. finish_cmds=
  10556. finish_eval=
  10557. shlibpath_var=
  10558. shlibpath_overrides_runpath=unknown
  10559. version_type=none
  10560. dynamic_linker="$host_os ld.so"
  10561. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10562. if test "$GCC" = yes; then
  10563. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10564. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  10565. # if the path contains ";" then we assume it to be the separator
  10566. # otherwise default to the standard path separator (i.e. ":") - it is
  10567. # assumed that no part of a normal pathname contains ";" but that should
  10568. # okay in the real world where ";" in dirpaths is itself problematic.
  10569. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10570. else
  10571. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10572. fi
  10573. else
  10574. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10575. fi
  10576. need_lib_prefix=unknown
  10577. hardcode_into_libs=no
  10578. # when you set need_version to no, make sure it does not cause -set_version
  10579. # flags to be left without arguments
  10580. need_version=unknown
  10581. case $host_os in
  10582. aix3*)
  10583. version_type=linux
  10584. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10585. shlibpath_var=LIBPATH
  10586. # AIX 3 has no versioning support, so we append a major version to the name.
  10587. soname_spec='${libname}${release}${shared_ext}$major'
  10588. ;;
  10589. aix4* | aix5*)
  10590. version_type=linux
  10591. need_lib_prefix=no
  10592. need_version=no
  10593. hardcode_into_libs=yes
  10594. if test "$host_cpu" = ia64; then
  10595. # AIX 5 supports IA64
  10596. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10597. shlibpath_var=LD_LIBRARY_PATH
  10598. else
  10599. # With GCC up to 2.95.x, collect2 would create an import file
  10600. # for dependence libraries. The import file would start with
  10601. # the line `#! .'. This would cause the generated library to
  10602. # depend on `.', always an invalid library. This was fixed in
  10603. # development snapshots of GCC prior to 3.0.
  10604. case $host_os in
  10605. aix4 | aix4.[01] | aix4.[01].*)
  10606. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10607. echo ' yes '
  10608. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  10609. :
  10610. else
  10611. can_build_shared=no
  10612. fi
  10613. ;;
  10614. esac
  10615. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10616. # soname into executable. Probably we can add versioning support to
  10617. # collect2, so additional links can be useful in future.
  10618. if test "$aix_use_runtimelinking" = yes; then
  10619. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10620. # instead of lib<name>.a to let people know that these are not
  10621. # typical AIX shared libraries.
  10622. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10623. else
  10624. # We preserve .a as extension for shared libraries through AIX4.2
  10625. # and later when we are not doing run time linking.
  10626. library_names_spec='${libname}${release}.a $libname.a'
  10627. soname_spec='${libname}${release}${shared_ext}$major'
  10628. fi
  10629. shlibpath_var=LIBPATH
  10630. fi
  10631. ;;
  10632. amigaos*)
  10633. library_names_spec='$libname.ixlibrary $libname.a'
  10634. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10635. 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'
  10636. ;;
  10637. beos*)
  10638. library_names_spec='${libname}${shared_ext}'
  10639. dynamic_linker="$host_os ld.so"
  10640. shlibpath_var=LIBRARY_PATH
  10641. ;;
  10642. bsdi[45]*)
  10643. version_type=linux
  10644. need_version=no
  10645. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10646. soname_spec='${libname}${release}${shared_ext}$major'
  10647. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10648. shlibpath_var=LD_LIBRARY_PATH
  10649. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10650. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10651. # the default ld.so.conf also contains /usr/contrib/lib and
  10652. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10653. # libtool to hard-code these into programs
  10654. ;;
  10655. cygwin* | mingw* | pw32*)
  10656. version_type=windows
  10657. shrext_cmds=".dll"
  10658. need_version=no
  10659. need_lib_prefix=no
  10660. case $GCC,$host_os in
  10661. yes,cygwin* | yes,mingw* | yes,pw32*)
  10662. library_names_spec='$libname.dll.a'
  10663. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10664. postinstall_cmds='base_file=`basename \${file}`~
  10665. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  10666. dldir=$destdir/`dirname \$dlpath`~
  10667. test -d \$dldir || mkdir -p \$dldir~
  10668. $install_prog $dir/$dlname \$dldir/$dlname~
  10669. chmod a+x \$dldir/$dlname'
  10670. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10671. dlpath=$dir/\$dldll~
  10672. $rm \$dlpath'
  10673. shlibpath_overrides_runpath=yes
  10674. case $host_os in
  10675. cygwin*)
  10676. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10677. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10678. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  10679. ;;
  10680. mingw*)
  10681. # MinGW DLLs use traditional 'lib' prefix
  10682. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10683. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10684. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  10685. # It is most probably a Windows format PATH printed by
  10686. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  10687. # path with ; separators, and with drive letters. We can handle the
  10688. # drive letters (cygwin fileutils understands them), so leave them,
  10689. # especially as we might pass files found there to a mingw objdump,
  10690. # which wouldn't understand a cygwinified path. Ahh.
  10691. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10692. else
  10693. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10694. fi
  10695. ;;
  10696. pw32*)
  10697. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10698. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10699. ;;
  10700. esac
  10701. ;;
  10702. *)
  10703. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10704. ;;
  10705. esac
  10706. dynamic_linker='Win32 ld.exe'
  10707. # FIXME: first we should search . and the directory the executable is in
  10708. shlibpath_var=PATH
  10709. ;;
  10710. darwin* | rhapsody*)
  10711. dynamic_linker="$host_os dyld"
  10712. version_type=darwin
  10713. need_lib_prefix=no
  10714. need_version=no
  10715. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10716. soname_spec='${libname}${release}${major}$shared_ext'
  10717. shlibpath_overrides_runpath=yes
  10718. shlibpath_var=DYLD_LIBRARY_PATH
  10719. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10720. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  10721. if test "$GCC" = yes; then
  10722. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  10723. else
  10724. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  10725. fi
  10726. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10727. ;;
  10728. dgux*)
  10729. version_type=linux
  10730. need_lib_prefix=no
  10731. need_version=no
  10732. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  10733. soname_spec='${libname}${release}${shared_ext}$major'
  10734. shlibpath_var=LD_LIBRARY_PATH
  10735. ;;
  10736. freebsd1*)
  10737. dynamic_linker=no
  10738. ;;
  10739. kfreebsd*-gnu)
  10740. version_type=linux
  10741. need_lib_prefix=no
  10742. need_version=no
  10743. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10744. soname_spec='${libname}${release}${shared_ext}$major'
  10745. shlibpath_var=LD_LIBRARY_PATH
  10746. shlibpath_overrides_runpath=no
  10747. hardcode_into_libs=yes
  10748. dynamic_linker='GNU ld.so'
  10749. ;;
  10750. freebsd* | dragonfly*)
  10751. # DragonFly does not have aout. When/if they implement a new
  10752. # versioning mechanism, adjust this.
  10753. if test -x /usr/bin/objformat; then
  10754. objformat=`/usr/bin/objformat`
  10755. else
  10756. case $host_os in
  10757. freebsd[123]*) objformat=aout ;;
  10758. *) objformat=elf ;;
  10759. esac
  10760. fi
  10761. version_type=freebsd-$objformat
  10762. case $version_type in
  10763. freebsd-elf*)
  10764. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10765. need_version=no
  10766. need_lib_prefix=no
  10767. ;;
  10768. freebsd-*)
  10769. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10770. need_version=yes
  10771. ;;
  10772. esac
  10773. shlibpath_var=LD_LIBRARY_PATH
  10774. case $host_os in
  10775. freebsd2*)
  10776. shlibpath_overrides_runpath=yes
  10777. ;;
  10778. freebsd3.[01]* | freebsdelf3.[01]*)
  10779. shlibpath_overrides_runpath=yes
  10780. hardcode_into_libs=yes
  10781. ;;
  10782. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10783. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10784. shlibpath_overrides_runpath=no
  10785. hardcode_into_libs=yes
  10786. ;;
  10787. freebsd*) # from 4.6 on
  10788. shlibpath_overrides_runpath=yes
  10789. hardcode_into_libs=yes
  10790. ;;
  10791. esac
  10792. ;;
  10793. gnu*)
  10794. version_type=linux
  10795. need_lib_prefix=no
  10796. need_version=no
  10797. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10798. soname_spec='${libname}${release}${shared_ext}$major'
  10799. shlibpath_var=LD_LIBRARY_PATH
  10800. hardcode_into_libs=yes
  10801. ;;
  10802. hpux9* | hpux10* | hpux11*)
  10803. # Give a soname corresponding to the major version so that dld.sl refuses to
  10804. # link against other versions.
  10805. version_type=sunos
  10806. need_lib_prefix=no
  10807. need_version=no
  10808. case $host_cpu in
  10809. ia64*)
  10810. shrext_cmds='.so'
  10811. hardcode_into_libs=yes
  10812. dynamic_linker="$host_os dld.so"
  10813. shlibpath_var=LD_LIBRARY_PATH
  10814. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10815. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10816. soname_spec='${libname}${release}${shared_ext}$major'
  10817. if test "X$HPUX_IA64_MODE" = X32; then
  10818. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10819. else
  10820. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10821. fi
  10822. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10823. ;;
  10824. hppa*64*)
  10825. shrext_cmds='.sl'
  10826. hardcode_into_libs=yes
  10827. dynamic_linker="$host_os dld.sl"
  10828. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10829. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10830. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10831. soname_spec='${libname}${release}${shared_ext}$major'
  10832. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10833. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10834. ;;
  10835. *)
  10836. shrext_cmds='.sl'
  10837. dynamic_linker="$host_os dld.sl"
  10838. shlibpath_var=SHLIB_PATH
  10839. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10840. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10841. soname_spec='${libname}${release}${shared_ext}$major'
  10842. ;;
  10843. esac
  10844. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  10845. postinstall_cmds='chmod 555 $lib'
  10846. ;;
  10847. interix3*)
  10848. version_type=linux
  10849. need_lib_prefix=no
  10850. need_version=no
  10851. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10852. soname_spec='${libname}${release}${shared_ext}$major'
  10853. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10854. shlibpath_var=LD_LIBRARY_PATH
  10855. shlibpath_overrides_runpath=no
  10856. hardcode_into_libs=yes
  10857. ;;
  10858. irix5* | irix6* | nonstopux*)
  10859. case $host_os in
  10860. nonstopux*) version_type=nonstopux ;;
  10861. *)
  10862. if test "$lt_cv_prog_gnu_ld" = yes; then
  10863. version_type=linux
  10864. else
  10865. version_type=irix
  10866. fi ;;
  10867. esac
  10868. need_lib_prefix=no
  10869. need_version=no
  10870. soname_spec='${libname}${release}${shared_ext}$major'
  10871. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10872. case $host_os in
  10873. irix5* | nonstopux*)
  10874. libsuff= shlibsuff=
  10875. ;;
  10876. *)
  10877. case $LD in # libtool.m4 will add one of these switches to LD
  10878. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10879. libsuff= shlibsuff= libmagic=32-bit;;
  10880. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10881. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10882. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10883. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10884. *) libsuff= shlibsuff= libmagic=never-match;;
  10885. esac
  10886. ;;
  10887. esac
  10888. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10889. shlibpath_overrides_runpath=no
  10890. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10891. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10892. hardcode_into_libs=yes
  10893. ;;
  10894. # No shared lib support for Linux oldld, aout, or coff.
  10895. linux*oldld* | linux*aout* | linux*coff*)
  10896. dynamic_linker=no
  10897. ;;
  10898. # This must be Linux ELF.
  10899. linux*)
  10900. version_type=linux
  10901. need_lib_prefix=no
  10902. need_version=no
  10903. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10904. soname_spec='${libname}${release}${shared_ext}$major'
  10905. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10906. shlibpath_var=LD_LIBRARY_PATH
  10907. shlibpath_overrides_runpath=no
  10908. # This implies no fast_install, which is unacceptable.
  10909. # Some rework will be needed to allow for fast_install
  10910. # before this can be enabled.
  10911. hardcode_into_libs=yes
  10912. # Append ld.so.conf contents to the search path
  10913. if test -f /etc/ld.so.conf; then
  10914. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  10915. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10916. fi
  10917. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10918. # powerpc, because MkLinux only supported shared libraries with the
  10919. # GNU dynamic linker. Since this was broken with cross compilers,
  10920. # most powerpc-linux boxes support dynamic linking these days and
  10921. # people can always --disable-shared, the test was removed, and we
  10922. # assume the GNU/Linux dynamic linker is in use.
  10923. dynamic_linker='GNU/Linux ld.so'
  10924. ;;
  10925. knetbsd*-gnu)
  10926. version_type=linux
  10927. need_lib_prefix=no
  10928. need_version=no
  10929. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10930. soname_spec='${libname}${release}${shared_ext}$major'
  10931. shlibpath_var=LD_LIBRARY_PATH
  10932. shlibpath_overrides_runpath=no
  10933. hardcode_into_libs=yes
  10934. dynamic_linker='GNU ld.so'
  10935. ;;
  10936. netbsd*)
  10937. version_type=sunos
  10938. need_lib_prefix=no
  10939. need_version=no
  10940. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10941. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10942. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10943. dynamic_linker='NetBSD (a.out) ld.so'
  10944. else
  10945. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10946. soname_spec='${libname}${release}${shared_ext}$major'
  10947. dynamic_linker='NetBSD ld.elf_so'
  10948. fi
  10949. shlibpath_var=LD_LIBRARY_PATH
  10950. shlibpath_overrides_runpath=yes
  10951. hardcode_into_libs=yes
  10952. ;;
  10953. newsos6)
  10954. version_type=linux
  10955. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10956. shlibpath_var=LD_LIBRARY_PATH
  10957. shlibpath_overrides_runpath=yes
  10958. ;;
  10959. nto-qnx*)
  10960. version_type=linux
  10961. need_lib_prefix=no
  10962. need_version=no
  10963. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10964. soname_spec='${libname}${release}${shared_ext}$major'
  10965. shlibpath_var=LD_LIBRARY_PATH
  10966. shlibpath_overrides_runpath=yes
  10967. ;;
  10968. openbsd*)
  10969. version_type=sunos
  10970. sys_lib_dlsearch_path_spec="/usr/lib"
  10971. need_lib_prefix=no
  10972. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10973. case $host_os in
  10974. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10975. *) need_version=no ;;
  10976. esac
  10977. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10978. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10979. shlibpath_var=LD_LIBRARY_PATH
  10980. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10981. case $host_os in
  10982. openbsd2.[89] | openbsd2.[89].*)
  10983. shlibpath_overrides_runpath=no
  10984. ;;
  10985. *)
  10986. shlibpath_overrides_runpath=yes
  10987. ;;
  10988. esac
  10989. else
  10990. shlibpath_overrides_runpath=yes
  10991. fi
  10992. ;;
  10993. os2*)
  10994. libname_spec='$name'
  10995. shrext_cmds=".dll"
  10996. need_lib_prefix=no
  10997. library_names_spec='$libname${shared_ext} $libname.a'
  10998. dynamic_linker='OS/2 ld.exe'
  10999. shlibpath_var=LIBPATH
  11000. ;;
  11001. osf3* | osf4* | osf5*)
  11002. version_type=osf
  11003. need_lib_prefix=no
  11004. need_version=no
  11005. soname_spec='${libname}${release}${shared_ext}$major'
  11006. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11007. shlibpath_var=LD_LIBRARY_PATH
  11008. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11009. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11010. ;;
  11011. solaris*)
  11012. version_type=linux
  11013. need_lib_prefix=no
  11014. need_version=no
  11015. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11016. soname_spec='${libname}${release}${shared_ext}$major'
  11017. shlibpath_var=LD_LIBRARY_PATH
  11018. shlibpath_overrides_runpath=yes
  11019. hardcode_into_libs=yes
  11020. # ldd complains unless libraries are executable
  11021. postinstall_cmds='chmod +x $lib'
  11022. ;;
  11023. sunos4*)
  11024. version_type=sunos
  11025. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11026. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11027. shlibpath_var=LD_LIBRARY_PATH
  11028. shlibpath_overrides_runpath=yes
  11029. if test "$with_gnu_ld" = yes; then
  11030. need_lib_prefix=no
  11031. fi
  11032. need_version=yes
  11033. ;;
  11034. sysv4 | sysv4.3*)
  11035. version_type=linux
  11036. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11037. soname_spec='${libname}${release}${shared_ext}$major'
  11038. shlibpath_var=LD_LIBRARY_PATH
  11039. case $host_vendor in
  11040. sni)
  11041. shlibpath_overrides_runpath=no
  11042. need_lib_prefix=no
  11043. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11044. runpath_var=LD_RUN_PATH
  11045. ;;
  11046. siemens)
  11047. need_lib_prefix=no
  11048. ;;
  11049. motorola)
  11050. need_lib_prefix=no
  11051. need_version=no
  11052. shlibpath_overrides_runpath=no
  11053. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11054. ;;
  11055. esac
  11056. ;;
  11057. sysv4*MP*)
  11058. if test -d /usr/nec ;then
  11059. version_type=linux
  11060. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11061. soname_spec='$libname${shared_ext}.$major'
  11062. shlibpath_var=LD_LIBRARY_PATH
  11063. fi
  11064. ;;
  11065. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11066. version_type=freebsd-elf
  11067. need_lib_prefix=no
  11068. need_version=no
  11069. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11070. soname_spec='${libname}${release}${shared_ext}$major'
  11071. shlibpath_var=LD_LIBRARY_PATH
  11072. hardcode_into_libs=yes
  11073. if test "$with_gnu_ld" = yes; then
  11074. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11075. shlibpath_overrides_runpath=no
  11076. else
  11077. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11078. shlibpath_overrides_runpath=yes
  11079. case $host_os in
  11080. sco3.2v5*)
  11081. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11082. ;;
  11083. esac
  11084. fi
  11085. sys_lib_dlsearch_path_spec='/usr/lib'
  11086. ;;
  11087. uts4*)
  11088. version_type=linux
  11089. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11090. soname_spec='${libname}${release}${shared_ext}$major'
  11091. shlibpath_var=LD_LIBRARY_PATH
  11092. ;;
  11093. *)
  11094. dynamic_linker=no
  11095. ;;
  11096. esac
  11097. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  11098. echo "${ECHO_T}$dynamic_linker" >&6
  11099. test "$dynamic_linker" = no && can_build_shared=no
  11100. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11101. if test "$GCC" = yes; then
  11102. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11103. fi
  11104. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  11105. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  11106. hardcode_action_CXX=
  11107. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  11108. test -n "$runpath_var_CXX" || \
  11109. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  11110. # We can hardcode non-existant directories.
  11111. if test "$hardcode_direct_CXX" != no &&
  11112. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11113. # have to relink, otherwise we might link with an installed library
  11114. # when we should be linking with a yet-to-be-installed one
  11115. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  11116. test "$hardcode_minus_L_CXX" != no; then
  11117. # Linking always hardcodes the temporary library directory.
  11118. hardcode_action_CXX=relink
  11119. else
  11120. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11121. hardcode_action_CXX=immediate
  11122. fi
  11123. else
  11124. # We cannot hardcode anything, or else we can only hardcode existing
  11125. # directories.
  11126. hardcode_action_CXX=unsupported
  11127. fi
  11128. echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  11129. echo "${ECHO_T}$hardcode_action_CXX" >&6
  11130. if test "$hardcode_action_CXX" = relink; then
  11131. # Fast installation is not supported
  11132. enable_fast_install=no
  11133. elif test "$shlibpath_overrides_runpath" = yes ||
  11134. test "$enable_shared" = no; then
  11135. # Fast installation is not necessary
  11136. enable_fast_install=needless
  11137. fi
  11138. # The else clause should only fire when bootstrapping the
  11139. # libtool distribution, otherwise you forgot to ship ltmain.sh
  11140. # with your package, and you will get complaints that there are
  11141. # no rules to generate ltmain.sh.
  11142. if test -f "$ltmain"; then
  11143. # See if we are running on zsh, and set the options which allow our commands through
  11144. # without removal of \ escapes.
  11145. if test -n "${ZSH_VERSION+set}" ; then
  11146. setopt NO_GLOB_SUBST
  11147. fi
  11148. # Now quote all the things that may contain metacharacters while being
  11149. # careful not to overquote the AC_SUBSTed values. We take copies of the
  11150. # variables and quote the copies for generation of the libtool script.
  11151. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  11152. SED SHELL STRIP \
  11153. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  11154. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  11155. deplibs_check_method reload_flag reload_cmds need_locks \
  11156. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  11157. lt_cv_sys_global_symbol_to_c_name_address \
  11158. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  11159. old_postinstall_cmds old_postuninstall_cmds \
  11160. compiler_CXX \
  11161. CC_CXX \
  11162. LD_CXX \
  11163. lt_prog_compiler_wl_CXX \
  11164. lt_prog_compiler_pic_CXX \
  11165. lt_prog_compiler_static_CXX \
  11166. lt_prog_compiler_no_builtin_flag_CXX \
  11167. export_dynamic_flag_spec_CXX \
  11168. thread_safe_flag_spec_CXX \
  11169. whole_archive_flag_spec_CXX \
  11170. enable_shared_with_static_runtimes_CXX \
  11171. old_archive_cmds_CXX \
  11172. old_archive_from_new_cmds_CXX \
  11173. predep_objects_CXX \
  11174. postdep_objects_CXX \
  11175. predeps_CXX \
  11176. postdeps_CXX \
  11177. compiler_lib_search_path_CXX \
  11178. archive_cmds_CXX \
  11179. archive_expsym_cmds_CXX \
  11180. postinstall_cmds_CXX \
  11181. postuninstall_cmds_CXX \
  11182. old_archive_from_expsyms_cmds_CXX \
  11183. allow_undefined_flag_CXX \
  11184. no_undefined_flag_CXX \
  11185. export_symbols_cmds_CXX \
  11186. hardcode_libdir_flag_spec_CXX \
  11187. hardcode_libdir_flag_spec_ld_CXX \
  11188. hardcode_libdir_separator_CXX \
  11189. hardcode_automatic_CXX \
  11190. module_cmds_CXX \
  11191. module_expsym_cmds_CXX \
  11192. lt_cv_prog_compiler_c_o_CXX \
  11193. exclude_expsyms_CXX \
  11194. include_expsyms_CXX; do
  11195. case $var in
  11196. old_archive_cmds_CXX | \
  11197. old_archive_from_new_cmds_CXX | \
  11198. archive_cmds_CXX | \
  11199. archive_expsym_cmds_CXX | \
  11200. module_cmds_CXX | \
  11201. module_expsym_cmds_CXX | \
  11202. old_archive_from_expsyms_cmds_CXX | \
  11203. export_symbols_cmds_CXX | \
  11204. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  11205. postinstall_cmds | postuninstall_cmds | \
  11206. old_postinstall_cmds | old_postuninstall_cmds | \
  11207. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  11208. # Double-quote double-evaled strings.
  11209. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  11210. ;;
  11211. *)
  11212. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  11213. ;;
  11214. esac
  11215. done
  11216. case $lt_echo in
  11217. *'\$0 --fallback-echo"')
  11218. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  11219. ;;
  11220. esac
  11221. cfgfile="$ofile"
  11222. cat <<__EOF__ >> "$cfgfile"
  11223. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  11224. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11225. # Shell to use when invoking shell scripts.
  11226. SHELL=$lt_SHELL
  11227. # Whether or not to build shared libraries.
  11228. build_libtool_libs=$enable_shared
  11229. # Whether or not to build static libraries.
  11230. build_old_libs=$enable_static
  11231. # Whether or not to add -lc for building shared libraries.
  11232. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  11233. # Whether or not to disallow shared libs when runtime libs are static
  11234. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  11235. # Whether or not to optimize for fast installation.
  11236. fast_install=$enable_fast_install
  11237. # The host system.
  11238. host_alias=$host_alias
  11239. host=$host
  11240. host_os=$host_os
  11241. # The build system.
  11242. build_alias=$build_alias
  11243. build=$build
  11244. build_os=$build_os
  11245. # An echo program that does not interpret backslashes.
  11246. echo=$lt_echo
  11247. # The archiver.
  11248. AR=$lt_AR
  11249. AR_FLAGS=$lt_AR_FLAGS
  11250. # A C compiler.
  11251. LTCC=$lt_LTCC
  11252. # LTCC compiler flags.
  11253. LTCFLAGS=$lt_LTCFLAGS
  11254. # A language-specific compiler.
  11255. CC=$lt_compiler_CXX
  11256. # Is the compiler the GNU C compiler?
  11257. with_gcc=$GCC_CXX
  11258. # An ERE matcher.
  11259. EGREP=$lt_EGREP
  11260. # The linker used to build libraries.
  11261. LD=$lt_LD_CXX
  11262. # Whether we need hard or soft links.
  11263. LN_S=$lt_LN_S
  11264. # A BSD-compatible nm program.
  11265. NM=$lt_NM
  11266. # A symbol stripping program
  11267. STRIP=$lt_STRIP
  11268. # Used to examine libraries when file_magic_cmd begins "file"
  11269. MAGIC_CMD=$MAGIC_CMD
  11270. # Used on cygwin: DLL creation program.
  11271. DLLTOOL="$DLLTOOL"
  11272. # Used on cygwin: object dumper.
  11273. OBJDUMP="$OBJDUMP"
  11274. # Used on cygwin: assembler.
  11275. AS="$AS"
  11276. # The name of the directory that contains temporary libtool files.
  11277. objdir=$objdir
  11278. # How to create reloadable object files.
  11279. reload_flag=$lt_reload_flag
  11280. reload_cmds=$lt_reload_cmds
  11281. # How to pass a linker flag through the compiler.
  11282. wl=$lt_lt_prog_compiler_wl_CXX
  11283. # Object file suffix (normally "o").
  11284. objext="$ac_objext"
  11285. # Old archive suffix (normally "a").
  11286. libext="$libext"
  11287. # Shared library suffix (normally ".so").
  11288. shrext_cmds='$shrext_cmds'
  11289. # Executable file suffix (normally "").
  11290. exeext="$exeext"
  11291. # Additional compiler flags for building library objects.
  11292. pic_flag=$lt_lt_prog_compiler_pic_CXX
  11293. pic_mode=$pic_mode
  11294. # What is the maximum length of a command?
  11295. max_cmd_len=$lt_cv_sys_max_cmd_len
  11296. # Does compiler simultaneously support -c and -o options?
  11297. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  11298. # Must we lock files when doing compilation?
  11299. need_locks=$lt_need_locks
  11300. # Do we need the lib prefix for modules?
  11301. need_lib_prefix=$need_lib_prefix
  11302. # Do we need a version for libraries?
  11303. need_version=$need_version
  11304. # Whether dlopen is supported.
  11305. dlopen_support=$enable_dlopen
  11306. # Whether dlopen of programs is supported.
  11307. dlopen_self=$enable_dlopen_self
  11308. # Whether dlopen of statically linked programs is supported.
  11309. dlopen_self_static=$enable_dlopen_self_static
  11310. # Compiler flag to prevent dynamic linking.
  11311. link_static_flag=$lt_lt_prog_compiler_static_CXX
  11312. # Compiler flag to turn off builtin functions.
  11313. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  11314. # Compiler flag to allow reflexive dlopens.
  11315. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  11316. # Compiler flag to generate shared objects directly from archives.
  11317. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  11318. # Compiler flag to generate thread-safe objects.
  11319. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  11320. # Library versioning type.
  11321. version_type=$version_type
  11322. # Format of library name prefix.
  11323. libname_spec=$lt_libname_spec
  11324. # List of archive names. First name is the real one, the rest are links.
  11325. # The last name is the one that the linker finds with -lNAME.
  11326. library_names_spec=$lt_library_names_spec
  11327. # The coded name of the library, if different from the real name.
  11328. soname_spec=$lt_soname_spec
  11329. # Commands used to build and install an old-style archive.
  11330. RANLIB=$lt_RANLIB
  11331. old_archive_cmds=$lt_old_archive_cmds_CXX
  11332. old_postinstall_cmds=$lt_old_postinstall_cmds
  11333. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11334. # Create an old-style archive from a shared archive.
  11335. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  11336. # Create a temporary old-style archive to link instead of a shared archive.
  11337. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  11338. # Commands used to build and install a shared archive.
  11339. archive_cmds=$lt_archive_cmds_CXX
  11340. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  11341. postinstall_cmds=$lt_postinstall_cmds
  11342. postuninstall_cmds=$lt_postuninstall_cmds
  11343. # Commands used to build a loadable module (assumed same as above if empty)
  11344. module_cmds=$lt_module_cmds_CXX
  11345. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  11346. # Commands to strip libraries.
  11347. old_striplib=$lt_old_striplib
  11348. striplib=$lt_striplib
  11349. # Dependencies to place before the objects being linked to create a
  11350. # shared library.
  11351. predep_objects=$lt_predep_objects_CXX
  11352. # Dependencies to place after the objects being linked to create a
  11353. # shared library.
  11354. postdep_objects=$lt_postdep_objects_CXX
  11355. # Dependencies to place before the objects being linked to create a
  11356. # shared library.
  11357. predeps=$lt_predeps_CXX
  11358. # Dependencies to place after the objects being linked to create a
  11359. # shared library.
  11360. postdeps=$lt_postdeps_CXX
  11361. # The library search path used internally by the compiler when linking
  11362. # a shared library.
  11363. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  11364. # Method to check whether dependent libraries are shared objects.
  11365. deplibs_check_method=$lt_deplibs_check_method
  11366. # Command to use when deplibs_check_method == file_magic.
  11367. file_magic_cmd=$lt_file_magic_cmd
  11368. # Flag that allows shared libraries with undefined symbols to be built.
  11369. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  11370. # Flag that forces no undefined symbols.
  11371. no_undefined_flag=$lt_no_undefined_flag_CXX
  11372. # Commands used to finish a libtool library installation in a directory.
  11373. finish_cmds=$lt_finish_cmds
  11374. # Same as above, but a single script fragment to be evaled but not shown.
  11375. finish_eval=$lt_finish_eval
  11376. # Take the output of nm and produce a listing of raw symbols and C names.
  11377. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11378. # Transform the output of nm in a proper C declaration
  11379. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11380. # Transform the output of nm in a C name address pair
  11381. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11382. # This is the shared library runtime path variable.
  11383. runpath_var=$runpath_var
  11384. # This is the shared library path variable.
  11385. shlibpath_var=$shlibpath_var
  11386. # Is shlibpath searched before the hard-coded library search path?
  11387. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11388. # How to hardcode a shared library path into an executable.
  11389. hardcode_action=$hardcode_action_CXX
  11390. # Whether we should hardcode library paths into libraries.
  11391. hardcode_into_libs=$hardcode_into_libs
  11392. # Flag to hardcode \$libdir into a binary during linking.
  11393. # This must work even if \$libdir does not exist.
  11394. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  11395. # If ld is used when linking, flag to hardcode \$libdir into
  11396. # a binary during linking. This must work even if \$libdir does
  11397. # not exist.
  11398. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  11399. # Whether we need a single -rpath flag with a separated argument.
  11400. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  11401. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  11402. # resulting binary.
  11403. hardcode_direct=$hardcode_direct_CXX
  11404. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  11405. # resulting binary.
  11406. hardcode_minus_L=$hardcode_minus_L_CXX
  11407. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  11408. # the resulting binary.
  11409. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  11410. # Set to yes if building a shared library automatically hardcodes DIR into the library
  11411. # and all subsequent libraries and executables linked against it.
  11412. hardcode_automatic=$hardcode_automatic_CXX
  11413. # Variables whose values should be saved in libtool wrapper scripts and
  11414. # restored at relink time.
  11415. variables_saved_for_relink="$variables_saved_for_relink"
  11416. # Whether libtool must link a program against all its dependency libraries.
  11417. link_all_deplibs=$link_all_deplibs_CXX
  11418. # Compile-time system search path for libraries
  11419. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11420. # Run-time system search path for libraries
  11421. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11422. # Fix the shell variable \$srcfile for the compiler.
  11423. fix_srcfile_path="$fix_srcfile_path_CXX"
  11424. # Set to yes if exported symbols are required.
  11425. always_export_symbols=$always_export_symbols_CXX
  11426. # The commands to list exported symbols.
  11427. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  11428. # The commands to extract the exported symbol list from a shared archive.
  11429. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11430. # Symbols that should not be listed in the preloaded symbols.
  11431. exclude_expsyms=$lt_exclude_expsyms_CXX
  11432. # Symbols that must always be exported.
  11433. include_expsyms=$lt_include_expsyms_CXX
  11434. # ### END LIBTOOL TAG CONFIG: $tagname
  11435. __EOF__
  11436. else
  11437. # If there is no Makefile yet, we rely on a make rule to execute
  11438. # `config.status --recheck' to rerun these tests and create the
  11439. # libtool script then.
  11440. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  11441. if test -f "$ltmain_in"; then
  11442. test -f Makefile && make "$ltmain"
  11443. fi
  11444. fi
  11445. ac_ext=c
  11446. ac_cpp='$CPP $CPPFLAGS'
  11447. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11448. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11449. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11450. CC=$lt_save_CC
  11451. LDCXX=$LD
  11452. LD=$lt_save_LD
  11453. GCC=$lt_save_GCC
  11454. with_gnu_ldcxx=$with_gnu_ld
  11455. with_gnu_ld=$lt_save_with_gnu_ld
  11456. lt_cv_path_LDCXX=$lt_cv_path_LD
  11457. lt_cv_path_LD=$lt_save_path_LD
  11458. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  11459. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  11460. else
  11461. tagname=""
  11462. fi
  11463. ;;
  11464. F77)
  11465. if test -n "$F77" && test "X$F77" != "Xno"; then
  11466. ac_ext=f
  11467. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  11468. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11469. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  11470. archive_cmds_need_lc_F77=no
  11471. allow_undefined_flag_F77=
  11472. always_export_symbols_F77=no
  11473. archive_expsym_cmds_F77=
  11474. export_dynamic_flag_spec_F77=
  11475. hardcode_direct_F77=no
  11476. hardcode_libdir_flag_spec_F77=
  11477. hardcode_libdir_flag_spec_ld_F77=
  11478. hardcode_libdir_separator_F77=
  11479. hardcode_minus_L_F77=no
  11480. hardcode_automatic_F77=no
  11481. module_cmds_F77=
  11482. module_expsym_cmds_F77=
  11483. link_all_deplibs_F77=unknown
  11484. old_archive_cmds_F77=$old_archive_cmds
  11485. no_undefined_flag_F77=
  11486. whole_archive_flag_spec_F77=
  11487. enable_shared_with_static_runtimes_F77=no
  11488. # Source file extension for f77 test sources.
  11489. ac_ext=f
  11490. # Object file extension for compiled f77 test sources.
  11491. objext=o
  11492. objext_F77=$objext
  11493. # Code to be used in simple compile tests
  11494. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  11495. # Code to be used in simple link tests
  11496. lt_simple_link_test_code=" program t\n end\n"
  11497. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11498. # If no C compiler was specified, use CC.
  11499. LTCC=${LTCC-"$CC"}
  11500. # If no C compiler flags were specified, use CFLAGS.
  11501. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11502. # Allow CC to be a program name with arguments.
  11503. compiler=$CC
  11504. # save warnings/boilerplate of simple test code
  11505. ac_outfile=conftest.$ac_objext
  11506. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  11507. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11508. _lt_compiler_boilerplate=`cat conftest.err`
  11509. $rm conftest*
  11510. ac_outfile=conftest.$ac_objext
  11511. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  11512. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11513. _lt_linker_boilerplate=`cat conftest.err`
  11514. $rm conftest*
  11515. # Allow CC to be a program name with arguments.
  11516. lt_save_CC="$CC"
  11517. CC=${F77-"f77"}
  11518. compiler=$CC
  11519. compiler_F77=$CC
  11520. for cc_temp in $compiler""; do
  11521. case $cc_temp in
  11522. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11523. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11524. \-*) ;;
  11525. *) break;;
  11526. esac
  11527. done
  11528. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11529. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  11530. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  11531. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  11532. echo "${ECHO_T}$can_build_shared" >&6
  11533. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  11534. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  11535. test "$can_build_shared" = "no" && enable_shared=no
  11536. # On AIX, shared libraries and static libraries use the same namespace, and
  11537. # are all built from PIC.
  11538. case $host_os in
  11539. aix3*)
  11540. test "$enable_shared" = yes && enable_static=no
  11541. if test -n "$RANLIB"; then
  11542. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11543. postinstall_cmds='$RANLIB $lib'
  11544. fi
  11545. ;;
  11546. aix4* | aix5*)
  11547. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11548. test "$enable_shared" = yes && enable_static=no
  11549. fi
  11550. ;;
  11551. esac
  11552. echo "$as_me:$LINENO: result: $enable_shared" >&5
  11553. echo "${ECHO_T}$enable_shared" >&6
  11554. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  11555. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  11556. # Make sure either enable_shared or enable_static is yes.
  11557. test "$enable_shared" = yes || enable_static=yes
  11558. echo "$as_me:$LINENO: result: $enable_static" >&5
  11559. echo "${ECHO_T}$enable_static" >&6
  11560. GCC_F77="$G77"
  11561. LD_F77="$LD"
  11562. lt_prog_compiler_wl_F77=
  11563. lt_prog_compiler_pic_F77=
  11564. lt_prog_compiler_static_F77=
  11565. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11566. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  11567. if test "$GCC" = yes; then
  11568. lt_prog_compiler_wl_F77='-Wl,'
  11569. lt_prog_compiler_static_F77='-static'
  11570. case $host_os in
  11571. aix*)
  11572. # All AIX code is PIC.
  11573. if test "$host_cpu" = ia64; then
  11574. # AIX 5 now supports IA64 processor
  11575. lt_prog_compiler_static_F77='-Bstatic'
  11576. fi
  11577. ;;
  11578. amigaos*)
  11579. # FIXME: we need at least 68020 code to build shared libraries, but
  11580. # adding the `-m68020' flag to GCC prevents building anything better,
  11581. # like `-m68040'.
  11582. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  11583. ;;
  11584. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11585. # PIC is the default for these OSes.
  11586. ;;
  11587. mingw* | pw32* | os2*)
  11588. # This hack is so that the source file can tell whether it is being
  11589. # built for inclusion in a dll (and should export symbols for example).
  11590. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11591. ;;
  11592. darwin* | rhapsody*)
  11593. # PIC is the default on this platform
  11594. # Common symbols not allowed in MH_DYLIB files
  11595. lt_prog_compiler_pic_F77='-fno-common'
  11596. ;;
  11597. interix3*)
  11598. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11599. # Instead, we relocate shared libraries at runtime.
  11600. ;;
  11601. msdosdjgpp*)
  11602. # Just because we use GCC doesn't mean we suddenly get shared libraries
  11603. # on systems that don't support them.
  11604. lt_prog_compiler_can_build_shared_F77=no
  11605. enable_shared=no
  11606. ;;
  11607. sysv4*MP*)
  11608. if test -d /usr/nec; then
  11609. lt_prog_compiler_pic_F77=-Kconform_pic
  11610. fi
  11611. ;;
  11612. hpux*)
  11613. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11614. # not for PA HP-UX.
  11615. case $host_cpu in
  11616. hppa*64*|ia64*)
  11617. # +Z the default
  11618. ;;
  11619. *)
  11620. lt_prog_compiler_pic_F77='-fPIC'
  11621. ;;
  11622. esac
  11623. ;;
  11624. *)
  11625. lt_prog_compiler_pic_F77='-fPIC'
  11626. ;;
  11627. esac
  11628. else
  11629. # PORTME Check for flag to pass linker flags through the system compiler.
  11630. case $host_os in
  11631. aix*)
  11632. lt_prog_compiler_wl_F77='-Wl,'
  11633. if test "$host_cpu" = ia64; then
  11634. # AIX 5 now supports IA64 processor
  11635. lt_prog_compiler_static_F77='-Bstatic'
  11636. else
  11637. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  11638. fi
  11639. ;;
  11640. darwin*)
  11641. # PIC is the default on this platform
  11642. # Common symbols not allowed in MH_DYLIB files
  11643. case $cc_basename in
  11644. xlc*)
  11645. lt_prog_compiler_pic_F77='-qnocommon'
  11646. lt_prog_compiler_wl_F77='-Wl,'
  11647. ;;
  11648. esac
  11649. ;;
  11650. mingw* | pw32* | os2*)
  11651. # This hack is so that the source file can tell whether it is being
  11652. # built for inclusion in a dll (and should export symbols for example).
  11653. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11654. ;;
  11655. hpux9* | hpux10* | hpux11*)
  11656. lt_prog_compiler_wl_F77='-Wl,'
  11657. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11658. # not for PA HP-UX.
  11659. case $host_cpu in
  11660. hppa*64*|ia64*)
  11661. # +Z the default
  11662. ;;
  11663. *)
  11664. lt_prog_compiler_pic_F77='+Z'
  11665. ;;
  11666. esac
  11667. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  11668. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  11669. ;;
  11670. irix5* | irix6* | nonstopux*)
  11671. lt_prog_compiler_wl_F77='-Wl,'
  11672. # PIC (with -KPIC) is the default.
  11673. lt_prog_compiler_static_F77='-non_shared'
  11674. ;;
  11675. newsos6)
  11676. lt_prog_compiler_pic_F77='-KPIC'
  11677. lt_prog_compiler_static_F77='-Bstatic'
  11678. ;;
  11679. linux*)
  11680. case $cc_basename in
  11681. icc* | ecc*)
  11682. lt_prog_compiler_wl_F77='-Wl,'
  11683. lt_prog_compiler_pic_F77='-KPIC'
  11684. lt_prog_compiler_static_F77='-static'
  11685. ;;
  11686. pgcc* | pgf77* | pgf90* | pgf95*)
  11687. # Portland Group compilers (*not* the Pentium gcc compiler,
  11688. # which looks to be a dead project)
  11689. lt_prog_compiler_wl_F77='-Wl,'
  11690. lt_prog_compiler_pic_F77='-fpic'
  11691. lt_prog_compiler_static_F77='-Bstatic'
  11692. ;;
  11693. ccc*)
  11694. lt_prog_compiler_wl_F77='-Wl,'
  11695. # All Alpha code is PIC.
  11696. lt_prog_compiler_static_F77='-non_shared'
  11697. ;;
  11698. esac
  11699. ;;
  11700. osf3* | osf4* | osf5*)
  11701. lt_prog_compiler_wl_F77='-Wl,'
  11702. # All OSF/1 code is PIC.
  11703. lt_prog_compiler_static_F77='-non_shared'
  11704. ;;
  11705. solaris*)
  11706. lt_prog_compiler_pic_F77='-KPIC'
  11707. lt_prog_compiler_static_F77='-Bstatic'
  11708. case $cc_basename in
  11709. f77* | f90* | f95*)
  11710. lt_prog_compiler_wl_F77='-Qoption ld ';;
  11711. *)
  11712. lt_prog_compiler_wl_F77='-Wl,';;
  11713. esac
  11714. ;;
  11715. sunos4*)
  11716. lt_prog_compiler_wl_F77='-Qoption ld '
  11717. lt_prog_compiler_pic_F77='-PIC'
  11718. lt_prog_compiler_static_F77='-Bstatic'
  11719. ;;
  11720. sysv4 | sysv4.2uw2* | sysv4.3*)
  11721. lt_prog_compiler_wl_F77='-Wl,'
  11722. lt_prog_compiler_pic_F77='-KPIC'
  11723. lt_prog_compiler_static_F77='-Bstatic'
  11724. ;;
  11725. sysv4*MP*)
  11726. if test -d /usr/nec ;then
  11727. lt_prog_compiler_pic_F77='-Kconform_pic'
  11728. lt_prog_compiler_static_F77='-Bstatic'
  11729. fi
  11730. ;;
  11731. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11732. lt_prog_compiler_wl_F77='-Wl,'
  11733. lt_prog_compiler_pic_F77='-KPIC'
  11734. lt_prog_compiler_static_F77='-Bstatic'
  11735. ;;
  11736. unicos*)
  11737. lt_prog_compiler_wl_F77='-Wl,'
  11738. lt_prog_compiler_can_build_shared_F77=no
  11739. ;;
  11740. uts4*)
  11741. lt_prog_compiler_pic_F77='-pic'
  11742. lt_prog_compiler_static_F77='-Bstatic'
  11743. ;;
  11744. *)
  11745. lt_prog_compiler_can_build_shared_F77=no
  11746. ;;
  11747. esac
  11748. fi
  11749. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  11750. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
  11751. #
  11752. # Check to make sure the PIC flag actually works.
  11753. #
  11754. if test -n "$lt_prog_compiler_pic_F77"; then
  11755. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  11756. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
  11757. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  11758. echo $ECHO_N "(cached) $ECHO_C" >&6
  11759. else
  11760. lt_prog_compiler_pic_works_F77=no
  11761. ac_outfile=conftest.$ac_objext
  11762. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11763. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  11764. # Insert the option either (1) after the last *FLAGS variable, or
  11765. # (2) before a word containing "conftest.", or (3) at the end.
  11766. # Note that $ac_compile itself does not contain backslashes and begins
  11767. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11768. # The option is referenced via a variable to avoid confusing sed.
  11769. lt_compile=`echo "$ac_compile" | $SED \
  11770. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11771. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11772. -e 's:$: $lt_compiler_flag:'`
  11773. (eval echo "\"\$as_me:13198: $lt_compile\"" >&5)
  11774. (eval "$lt_compile" 2>conftest.err)
  11775. ac_status=$?
  11776. cat conftest.err >&5
  11777. echo "$as_me:13202: \$? = $ac_status" >&5
  11778. if (exit $ac_status) && test -s "$ac_outfile"; then
  11779. # The compiler can only warn and ignore the option if not recognized
  11780. # So say no if there are warnings other than the usual output.
  11781. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11782. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11783. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11784. lt_prog_compiler_pic_works_F77=yes
  11785. fi
  11786. fi
  11787. $rm conftest*
  11788. fi
  11789. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  11790. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
  11791. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  11792. case $lt_prog_compiler_pic_F77 in
  11793. "" | " "*) ;;
  11794. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  11795. esac
  11796. else
  11797. lt_prog_compiler_pic_F77=
  11798. lt_prog_compiler_can_build_shared_F77=no
  11799. fi
  11800. fi
  11801. case $host_os in
  11802. # For platforms which do not support PIC, -DPIC is meaningless:
  11803. *djgpp*)
  11804. lt_prog_compiler_pic_F77=
  11805. ;;
  11806. *)
  11807. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  11808. ;;
  11809. esac
  11810. #
  11811. # Check to make sure the static flag actually works.
  11812. #
  11813. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  11814. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11815. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  11816. if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  11817. echo $ECHO_N "(cached) $ECHO_C" >&6
  11818. else
  11819. lt_prog_compiler_static_works_F77=no
  11820. save_LDFLAGS="$LDFLAGS"
  11821. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11822. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  11823. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11824. # The linker can only warn and ignore the option if not recognized
  11825. # So say no if there are warnings
  11826. if test -s conftest.err; then
  11827. # Append any errors to the config.log.
  11828. cat conftest.err 1>&5
  11829. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11830. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11831. if diff conftest.exp conftest.er2 >/dev/null; then
  11832. lt_prog_compiler_static_works_F77=yes
  11833. fi
  11834. else
  11835. lt_prog_compiler_static_works_F77=yes
  11836. fi
  11837. fi
  11838. $rm conftest*
  11839. LDFLAGS="$save_LDFLAGS"
  11840. fi
  11841. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  11842. echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
  11843. if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  11844. :
  11845. else
  11846. lt_prog_compiler_static_F77=
  11847. fi
  11848. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11849. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  11850. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  11851. echo $ECHO_N "(cached) $ECHO_C" >&6
  11852. else
  11853. lt_cv_prog_compiler_c_o_F77=no
  11854. $rm -r conftest 2>/dev/null
  11855. mkdir conftest
  11856. cd conftest
  11857. mkdir out
  11858. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11859. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11860. # Insert the option either (1) after the last *FLAGS variable, or
  11861. # (2) before a word containing "conftest.", or (3) at the end.
  11862. # Note that $ac_compile itself does not contain backslashes and begins
  11863. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11864. lt_compile=`echo "$ac_compile" | $SED \
  11865. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11866. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11867. -e 's:$: $lt_compiler_flag:'`
  11868. (eval echo "\"\$as_me:13302: $lt_compile\"" >&5)
  11869. (eval "$lt_compile" 2>out/conftest.err)
  11870. ac_status=$?
  11871. cat out/conftest.err >&5
  11872. echo "$as_me:13306: \$? = $ac_status" >&5
  11873. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11874. then
  11875. # The compiler can only warn and ignore the option if not recognized
  11876. # So say no if there are warnings
  11877. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11878. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11879. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11880. lt_cv_prog_compiler_c_o_F77=yes
  11881. fi
  11882. fi
  11883. chmod u+w . 2>&5
  11884. $rm conftest*
  11885. # SGI C++ compiler will create directory out/ii_files/ for
  11886. # template instantiation
  11887. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  11888. $rm out/* && rmdir out
  11889. cd ..
  11890. rmdir conftest
  11891. $rm conftest*
  11892. fi
  11893. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  11894. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
  11895. hard_links="nottested"
  11896. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  11897. # do not overwrite the value of need_locks provided by the user
  11898. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11899. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  11900. hard_links=yes
  11901. $rm conftest*
  11902. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11903. touch conftest.a
  11904. ln conftest.a conftest.b 2>&5 || hard_links=no
  11905. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11906. echo "$as_me:$LINENO: result: $hard_links" >&5
  11907. echo "${ECHO_T}$hard_links" >&6
  11908. if test "$hard_links" = no; then
  11909. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11910. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11911. need_locks=warn
  11912. fi
  11913. else
  11914. need_locks=no
  11915. fi
  11916. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11917. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  11918. runpath_var=
  11919. allow_undefined_flag_F77=
  11920. enable_shared_with_static_runtimes_F77=no
  11921. archive_cmds_F77=
  11922. archive_expsym_cmds_F77=
  11923. old_archive_From_new_cmds_F77=
  11924. old_archive_from_expsyms_cmds_F77=
  11925. export_dynamic_flag_spec_F77=
  11926. whole_archive_flag_spec_F77=
  11927. thread_safe_flag_spec_F77=
  11928. hardcode_libdir_flag_spec_F77=
  11929. hardcode_libdir_flag_spec_ld_F77=
  11930. hardcode_libdir_separator_F77=
  11931. hardcode_direct_F77=no
  11932. hardcode_minus_L_F77=no
  11933. hardcode_shlibpath_var_F77=unsupported
  11934. link_all_deplibs_F77=unknown
  11935. hardcode_automatic_F77=no
  11936. module_cmds_F77=
  11937. module_expsym_cmds_F77=
  11938. always_export_symbols_F77=no
  11939. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11940. # include_expsyms should be a list of space-separated symbols to be *always*
  11941. # included in the symbol list
  11942. include_expsyms_F77=
  11943. # exclude_expsyms can be an extended regexp of symbols to exclude
  11944. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  11945. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  11946. # as well as any symbol that contains `d'.
  11947. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  11948. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  11949. # platforms (ab)use it in PIC code, but their linkers get confused if
  11950. # the symbol is explicitly referenced. Since portable code cannot
  11951. # rely on this symbol name, it's probably fine to never include it in
  11952. # preloaded symbol tables.
  11953. extract_expsyms_cmds=
  11954. # Just being paranoid about ensuring that cc_basename is set.
  11955. for cc_temp in $compiler""; do
  11956. case $cc_temp in
  11957. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11958. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11959. \-*) ;;
  11960. *) break;;
  11961. esac
  11962. done
  11963. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11964. case $host_os in
  11965. cygwin* | mingw* | pw32*)
  11966. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  11967. # When not using gcc, we currently assume that we are using
  11968. # Microsoft Visual C++.
  11969. if test "$GCC" != yes; then
  11970. with_gnu_ld=no
  11971. fi
  11972. ;;
  11973. interix*)
  11974. # we just hope/assume this is gcc and not c89 (= MSVC++)
  11975. with_gnu_ld=yes
  11976. ;;
  11977. openbsd*)
  11978. with_gnu_ld=no
  11979. ;;
  11980. esac
  11981. ld_shlibs_F77=yes
  11982. if test "$with_gnu_ld" = yes; then
  11983. # If archive_cmds runs LD, not CC, wlarc should be empty
  11984. wlarc='${wl}'
  11985. # Set some defaults for GNU ld with shared library support. These
  11986. # are reset later if shared libraries are not supported. Putting them
  11987. # here allows them to be overridden if necessary.
  11988. runpath_var=LD_RUN_PATH
  11989. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  11990. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  11991. # ancient GNU ld didn't support --whole-archive et. al.
  11992. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  11993. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11994. else
  11995. whole_archive_flag_spec_F77=
  11996. fi
  11997. supports_anon_versioning=no
  11998. case `$LD -v 2>/dev/null` in
  11999. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12000. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12001. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12002. *\ 2.11.*) ;; # other 2.11 versions
  12003. *) supports_anon_versioning=yes ;;
  12004. esac
  12005. # See if GNU ld supports shared libraries.
  12006. case $host_os in
  12007. aix3* | aix4* | aix5*)
  12008. # On AIX/PPC, the GNU linker is very broken
  12009. if test "$host_cpu" != ia64; then
  12010. ld_shlibs_F77=no
  12011. cat <<EOF 1>&2
  12012. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  12013. *** to be unable to reliably create shared libraries on AIX.
  12014. *** Therefore, libtool is disabling shared libraries support. If you
  12015. *** really care for shared libraries, you may want to modify your PATH
  12016. *** so that a non-GNU linker is found, and then restart.
  12017. EOF
  12018. fi
  12019. ;;
  12020. amigaos*)
  12021. 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)'
  12022. hardcode_libdir_flag_spec_F77='-L$libdir'
  12023. hardcode_minus_L_F77=yes
  12024. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  12025. # that the semantics of dynamic libraries on AmigaOS, at least up
  12026. # to version 4, is to share data among multiple programs linked
  12027. # with the same dynamic library. Since this doesn't match the
  12028. # behavior of shared libraries on other platforms, we can't use
  12029. # them.
  12030. ld_shlibs_F77=no
  12031. ;;
  12032. beos*)
  12033. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12034. allow_undefined_flag_F77=unsupported
  12035. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12036. # support --undefined. This deserves some investigation. FIXME
  12037. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12038. else
  12039. ld_shlibs_F77=no
  12040. fi
  12041. ;;
  12042. cygwin* | mingw* | pw32*)
  12043. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  12044. # as there is no search path for DLLs.
  12045. hardcode_libdir_flag_spec_F77='-L$libdir'
  12046. allow_undefined_flag_F77=unsupported
  12047. always_export_symbols_F77=no
  12048. enable_shared_with_static_runtimes_F77=yes
  12049. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  12050. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  12051. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12052. # If the export-symbols file already is a .def file (1st line
  12053. # is EXPORTS), use it as is; otherwise, prepend...
  12054. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12055. cp $export_symbols $output_objdir/$soname.def;
  12056. else
  12057. echo EXPORTS > $output_objdir/$soname.def;
  12058. cat $export_symbols >> $output_objdir/$soname.def;
  12059. fi~
  12060. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12061. else
  12062. ld_shlibs_F77=no
  12063. fi
  12064. ;;
  12065. interix3*)
  12066. hardcode_direct_F77=no
  12067. hardcode_shlibpath_var_F77=no
  12068. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12069. export_dynamic_flag_spec_F77='${wl}-E'
  12070. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12071. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12072. # default) and relocated if they conflict, which is a slow very memory
  12073. # consuming and fragmenting process. To avoid this, we pick a random,
  12074. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12075. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12076. 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'
  12077. 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'
  12078. ;;
  12079. linux*)
  12080. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12081. tmp_addflag=
  12082. case $cc_basename,$host_cpu in
  12083. pgcc*) # Portland Group C compiler
  12084. 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'
  12085. tmp_addflag=' $pic_flag'
  12086. ;;
  12087. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  12088. 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'
  12089. tmp_addflag=' $pic_flag -Mnomain' ;;
  12090. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  12091. tmp_addflag=' -i_dynamic' ;;
  12092. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  12093. tmp_addflag=' -i_dynamic -nofor_main' ;;
  12094. ifc* | ifort*) # Intel Fortran compiler
  12095. tmp_addflag=' -nofor_main' ;;
  12096. esac
  12097. archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12098. if test $supports_anon_versioning = yes; then
  12099. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  12100. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12101. $echo "local: *; };" >> $output_objdir/$libname.ver~
  12102. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12103. fi
  12104. else
  12105. ld_shlibs_F77=no
  12106. fi
  12107. ;;
  12108. netbsd*)
  12109. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12110. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12111. wlarc=
  12112. else
  12113. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12114. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12115. fi
  12116. ;;
  12117. solaris*)
  12118. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  12119. ld_shlibs_F77=no
  12120. cat <<EOF 1>&2
  12121. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12122. *** create shared libraries on Solaris systems. Therefore, libtool
  12123. *** is disabling shared libraries support. We urge you to upgrade GNU
  12124. *** binutils to release 2.9.1 or newer. Another option is to modify
  12125. *** your PATH or compiler configuration so that the native linker is
  12126. *** used, and then restart.
  12127. EOF
  12128. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12129. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12130. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12131. else
  12132. ld_shlibs_F77=no
  12133. fi
  12134. ;;
  12135. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  12136. case `$LD -v 2>&1` in
  12137. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  12138. ld_shlibs_F77=no
  12139. cat <<_LT_EOF 1>&2
  12140. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  12141. *** reliably create shared libraries on SCO systems. Therefore, libtool
  12142. *** is disabling shared libraries support. We urge you to upgrade GNU
  12143. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  12144. *** your PATH or compiler configuration so that the native linker is
  12145. *** used, and then restart.
  12146. _LT_EOF
  12147. ;;
  12148. *)
  12149. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12150. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  12151. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  12152. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  12153. else
  12154. ld_shlibs_F77=no
  12155. fi
  12156. ;;
  12157. esac
  12158. ;;
  12159. sunos4*)
  12160. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12161. wlarc=
  12162. hardcode_direct_F77=yes
  12163. hardcode_shlibpath_var_F77=no
  12164. ;;
  12165. *)
  12166. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12167. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12168. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12169. else
  12170. ld_shlibs_F77=no
  12171. fi
  12172. ;;
  12173. esac
  12174. if test "$ld_shlibs_F77" = no; then
  12175. runpath_var=
  12176. hardcode_libdir_flag_spec_F77=
  12177. export_dynamic_flag_spec_F77=
  12178. whole_archive_flag_spec_F77=
  12179. fi
  12180. else
  12181. # PORTME fill in a description of your system's linker (not GNU ld)
  12182. case $host_os in
  12183. aix3*)
  12184. allow_undefined_flag_F77=unsupported
  12185. always_export_symbols_F77=yes
  12186. 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'
  12187. # Note: this linker hardcodes the directories in LIBPATH if there
  12188. # are no directories specified by -L.
  12189. hardcode_minus_L_F77=yes
  12190. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  12191. # Neither direct hardcoding nor static linking is supported with a
  12192. # broken collect2.
  12193. hardcode_direct_F77=unsupported
  12194. fi
  12195. ;;
  12196. aix4* | aix5*)
  12197. if test "$host_cpu" = ia64; then
  12198. # On IA64, the linker does run time linking by default, so we don't
  12199. # have to do anything special.
  12200. aix_use_runtimelinking=no
  12201. exp_sym_flag='-Bexport'
  12202. no_entry_flag=""
  12203. else
  12204. # If we're using GNU nm, then we don't want the "-C" option.
  12205. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12206. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  12207. 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'
  12208. else
  12209. 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'
  12210. fi
  12211. aix_use_runtimelinking=no
  12212. # Test if we are trying to use run time linking or normal
  12213. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12214. # need to do runtime linking.
  12215. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  12216. for ld_flag in $LDFLAGS; do
  12217. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  12218. aix_use_runtimelinking=yes
  12219. break
  12220. fi
  12221. done
  12222. ;;
  12223. esac
  12224. exp_sym_flag='-bexport'
  12225. no_entry_flag='-bnoentry'
  12226. fi
  12227. # When large executables or shared objects are built, AIX ld can
  12228. # have problems creating the table of contents. If linking a library
  12229. # or program results in "error TOC overflow" add -mminimal-toc to
  12230. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12231. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12232. archive_cmds_F77=''
  12233. hardcode_direct_F77=yes
  12234. hardcode_libdir_separator_F77=':'
  12235. link_all_deplibs_F77=yes
  12236. if test "$GCC" = yes; then
  12237. case $host_os in aix4.[012]|aix4.[012].*)
  12238. # We only want to do this on AIX 4.2 and lower, the check
  12239. # below for broken collect2 doesn't work under 4.3+
  12240. collect2name=`${CC} -print-prog-name=collect2`
  12241. if test -f "$collect2name" && \
  12242. strings "$collect2name" | grep resolve_lib_name >/dev/null
  12243. then
  12244. # We have reworked collect2
  12245. hardcode_direct_F77=yes
  12246. else
  12247. # We have old collect2
  12248. hardcode_direct_F77=unsupported
  12249. # It fails to find uninstalled libraries when the uninstalled
  12250. # path is not listed in the libpath. Setting hardcode_minus_L
  12251. # to unsupported forces relinking
  12252. hardcode_minus_L_F77=yes
  12253. hardcode_libdir_flag_spec_F77='-L$libdir'
  12254. hardcode_libdir_separator_F77=
  12255. fi
  12256. ;;
  12257. esac
  12258. shared_flag='-shared'
  12259. if test "$aix_use_runtimelinking" = yes; then
  12260. shared_flag="$shared_flag "'${wl}-G'
  12261. fi
  12262. else
  12263. # not using gcc
  12264. if test "$host_cpu" = ia64; then
  12265. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12266. # chokes on -Wl,-G. The following line is correct:
  12267. shared_flag='-G'
  12268. else
  12269. if test "$aix_use_runtimelinking" = yes; then
  12270. shared_flag='${wl}-G'
  12271. else
  12272. shared_flag='${wl}-bM:SRE'
  12273. fi
  12274. fi
  12275. fi
  12276. # It seems that -bexpall does not export symbols beginning with
  12277. # underscore (_), so it is better to generate a list of symbols to export.
  12278. always_export_symbols_F77=yes
  12279. if test "$aix_use_runtimelinking" = yes; then
  12280. # Warning - without using the other runtime loading flags (-brtl),
  12281. # -berok will link without error, but may produce a broken library.
  12282. allow_undefined_flag_F77='-berok'
  12283. # Determine the default libpath from the value encoded in an empty executable.
  12284. cat >conftest.$ac_ext <<_ACEOF
  12285. program main
  12286. end
  12287. _ACEOF
  12288. rm -f conftest.$ac_objext conftest$ac_exeext
  12289. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12290. (eval $ac_link) 2>conftest.er1
  12291. ac_status=$?
  12292. grep -v '^ *+' conftest.er1 >conftest.err
  12293. rm -f conftest.er1
  12294. cat conftest.err >&5
  12295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12296. (exit $ac_status); } &&
  12297. { ac_try='test -z "$ac_f77_werror_flag"
  12298. || test ! -s conftest.err'
  12299. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12300. (eval $ac_try) 2>&5
  12301. ac_status=$?
  12302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12303. (exit $ac_status); }; } &&
  12304. { ac_try='test -s conftest$ac_exeext'
  12305. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12306. (eval $ac_try) 2>&5
  12307. ac_status=$?
  12308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12309. (exit $ac_status); }; }; then
  12310. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12311. }'`
  12312. # Check for a 64-bit object if we didn't find anything.
  12313. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12314. }'`; fi
  12315. else
  12316. echo "$as_me: failed program was:" >&5
  12317. sed 's/^/| /' conftest.$ac_ext >&5
  12318. fi
  12319. rm -f conftest.err conftest.$ac_objext \
  12320. conftest$ac_exeext conftest.$ac_ext
  12321. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12322. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12323. 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"
  12324. else
  12325. if test "$host_cpu" = ia64; then
  12326. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  12327. allow_undefined_flag_F77="-z nodefs"
  12328. 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"
  12329. else
  12330. # Determine the default libpath from the value encoded in an empty executable.
  12331. cat >conftest.$ac_ext <<_ACEOF
  12332. program main
  12333. end
  12334. _ACEOF
  12335. rm -f conftest.$ac_objext conftest$ac_exeext
  12336. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12337. (eval $ac_link) 2>conftest.er1
  12338. ac_status=$?
  12339. grep -v '^ *+' conftest.er1 >conftest.err
  12340. rm -f conftest.er1
  12341. cat conftest.err >&5
  12342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12343. (exit $ac_status); } &&
  12344. { ac_try='test -z "$ac_f77_werror_flag"
  12345. || test ! -s conftest.err'
  12346. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12347. (eval $ac_try) 2>&5
  12348. ac_status=$?
  12349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12350. (exit $ac_status); }; } &&
  12351. { ac_try='test -s conftest$ac_exeext'
  12352. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12353. (eval $ac_try) 2>&5
  12354. ac_status=$?
  12355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12356. (exit $ac_status); }; }; then
  12357. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12358. }'`
  12359. # Check for a 64-bit object if we didn't find anything.
  12360. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12361. }'`; fi
  12362. else
  12363. echo "$as_me: failed program was:" >&5
  12364. sed 's/^/| /' conftest.$ac_ext >&5
  12365. fi
  12366. rm -f conftest.err conftest.$ac_objext \
  12367. conftest$ac_exeext conftest.$ac_ext
  12368. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12369. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12370. # Warning - without using the other run time loading flags,
  12371. # -berok will link without error, but may produce a broken library.
  12372. no_undefined_flag_F77=' ${wl}-bernotok'
  12373. allow_undefined_flag_F77=' ${wl}-berok'
  12374. # Exported symbols can be pulled into shared objects from archives
  12375. whole_archive_flag_spec_F77='$convenience'
  12376. archive_cmds_need_lc_F77=yes
  12377. # This is similar to how AIX traditionally builds its shared libraries.
  12378. 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'
  12379. fi
  12380. fi
  12381. ;;
  12382. amigaos*)
  12383. 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)'
  12384. hardcode_libdir_flag_spec_F77='-L$libdir'
  12385. hardcode_minus_L_F77=yes
  12386. # see comment about different semantics on the GNU ld section
  12387. ld_shlibs_F77=no
  12388. ;;
  12389. bsdi[45]*)
  12390. export_dynamic_flag_spec_F77=-rdynamic
  12391. ;;
  12392. cygwin* | mingw* | pw32*)
  12393. # When not using gcc, we currently assume that we are using
  12394. # Microsoft Visual C++.
  12395. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12396. # no search path for DLLs.
  12397. hardcode_libdir_flag_spec_F77=' '
  12398. allow_undefined_flag_F77=unsupported
  12399. # Tell ltmain to make .lib files, not .a files.
  12400. libext=lib
  12401. # Tell ltmain to make .dll files, not .so files.
  12402. shrext_cmds=".dll"
  12403. # FIXME: Setting linknames here is a bad hack.
  12404. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  12405. # The linker will automatically build a .lib file if we build a DLL.
  12406. old_archive_From_new_cmds_F77='true'
  12407. # FIXME: Should let the user specify the lib program.
  12408. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  12409. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  12410. enable_shared_with_static_runtimes_F77=yes
  12411. ;;
  12412. darwin* | rhapsody*)
  12413. case $host_os in
  12414. rhapsody* | darwin1.[012])
  12415. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  12416. ;;
  12417. *) # Darwin 1.3 on
  12418. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  12419. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12420. else
  12421. case ${MACOSX_DEPLOYMENT_TARGET} in
  12422. 10.[012])
  12423. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12424. ;;
  12425. 10.*)
  12426. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  12427. ;;
  12428. esac
  12429. fi
  12430. ;;
  12431. esac
  12432. archive_cmds_need_lc_F77=no
  12433. hardcode_direct_F77=no
  12434. hardcode_automatic_F77=yes
  12435. hardcode_shlibpath_var_F77=unsupported
  12436. whole_archive_flag_spec_F77=''
  12437. link_all_deplibs_F77=yes
  12438. if test "$GCC" = yes ; then
  12439. output_verbose_link_cmd='echo'
  12440. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  12441. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12442. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12443. 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}'
  12444. 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}'
  12445. else
  12446. case $cc_basename in
  12447. xlc*)
  12448. output_verbose_link_cmd='echo'
  12449. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  12450. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12451. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12452. 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12453. 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}'
  12454. ;;
  12455. *)
  12456. ld_shlibs_F77=no
  12457. ;;
  12458. esac
  12459. fi
  12460. ;;
  12461. dgux*)
  12462. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12463. hardcode_libdir_flag_spec_F77='-L$libdir'
  12464. hardcode_shlibpath_var_F77=no
  12465. ;;
  12466. freebsd1*)
  12467. ld_shlibs_F77=no
  12468. ;;
  12469. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12470. # support. Future versions do this automatically, but an explicit c++rt0.o
  12471. # does not break anything, and helps significantly (at the cost of a little
  12472. # extra space).
  12473. freebsd2.2*)
  12474. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12475. hardcode_libdir_flag_spec_F77='-R$libdir'
  12476. hardcode_direct_F77=yes
  12477. hardcode_shlibpath_var_F77=no
  12478. ;;
  12479. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12480. freebsd2*)
  12481. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12482. hardcode_direct_F77=yes
  12483. hardcode_minus_L_F77=yes
  12484. hardcode_shlibpath_var_F77=no
  12485. ;;
  12486. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12487. freebsd* | kfreebsd*-gnu | dragonfly*)
  12488. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12489. hardcode_libdir_flag_spec_F77='-R$libdir'
  12490. hardcode_direct_F77=yes
  12491. hardcode_shlibpath_var_F77=no
  12492. ;;
  12493. hpux9*)
  12494. if test "$GCC" = yes; then
  12495. 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'
  12496. else
  12497. 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'
  12498. fi
  12499. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12500. hardcode_libdir_separator_F77=:
  12501. hardcode_direct_F77=yes
  12502. # hardcode_minus_L: Not really in the search PATH,
  12503. # but as the default location of the library.
  12504. hardcode_minus_L_F77=yes
  12505. export_dynamic_flag_spec_F77='${wl}-E'
  12506. ;;
  12507. hpux10*)
  12508. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12509. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12510. else
  12511. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12512. fi
  12513. if test "$with_gnu_ld" = no; then
  12514. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12515. hardcode_libdir_separator_F77=:
  12516. hardcode_direct_F77=yes
  12517. export_dynamic_flag_spec_F77='${wl}-E'
  12518. # hardcode_minus_L: Not really in the search PATH,
  12519. # but as the default location of the library.
  12520. hardcode_minus_L_F77=yes
  12521. fi
  12522. ;;
  12523. hpux11*)
  12524. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12525. case $host_cpu in
  12526. hppa*64*)
  12527. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12528. ;;
  12529. ia64*)
  12530. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12531. ;;
  12532. *)
  12533. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12534. ;;
  12535. esac
  12536. else
  12537. case $host_cpu in
  12538. hppa*64*)
  12539. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12540. ;;
  12541. ia64*)
  12542. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12543. ;;
  12544. *)
  12545. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12546. ;;
  12547. esac
  12548. fi
  12549. if test "$with_gnu_ld" = no; then
  12550. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12551. hardcode_libdir_separator_F77=:
  12552. case $host_cpu in
  12553. hppa*64*|ia64*)
  12554. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  12555. hardcode_direct_F77=no
  12556. hardcode_shlibpath_var_F77=no
  12557. ;;
  12558. *)
  12559. hardcode_direct_F77=yes
  12560. export_dynamic_flag_spec_F77='${wl}-E'
  12561. # hardcode_minus_L: Not really in the search PATH,
  12562. # but as the default location of the library.
  12563. hardcode_minus_L_F77=yes
  12564. ;;
  12565. esac
  12566. fi
  12567. ;;
  12568. irix5* | irix6* | nonstopux*)
  12569. if test "$GCC" = yes; then
  12570. 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'
  12571. else
  12572. 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'
  12573. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  12574. fi
  12575. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12576. hardcode_libdir_separator_F77=:
  12577. link_all_deplibs_F77=yes
  12578. ;;
  12579. netbsd*)
  12580. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12581. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12582. else
  12583. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12584. fi
  12585. hardcode_libdir_flag_spec_F77='-R$libdir'
  12586. hardcode_direct_F77=yes
  12587. hardcode_shlibpath_var_F77=no
  12588. ;;
  12589. newsos6)
  12590. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12591. hardcode_direct_F77=yes
  12592. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12593. hardcode_libdir_separator_F77=:
  12594. hardcode_shlibpath_var_F77=no
  12595. ;;
  12596. openbsd*)
  12597. hardcode_direct_F77=yes
  12598. hardcode_shlibpath_var_F77=no
  12599. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12600. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12601. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  12602. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12603. export_dynamic_flag_spec_F77='${wl}-E'
  12604. else
  12605. case $host_os in
  12606. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  12607. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12608. hardcode_libdir_flag_spec_F77='-R$libdir'
  12609. ;;
  12610. *)
  12611. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12612. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12613. ;;
  12614. esac
  12615. fi
  12616. ;;
  12617. os2*)
  12618. hardcode_libdir_flag_spec_F77='-L$libdir'
  12619. hardcode_minus_L_F77=yes
  12620. allow_undefined_flag_F77=unsupported
  12621. 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'
  12622. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12623. ;;
  12624. osf3*)
  12625. if test "$GCC" = yes; then
  12626. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12627. 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'
  12628. else
  12629. allow_undefined_flag_F77=' -expect_unresolved \*'
  12630. 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'
  12631. fi
  12632. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12633. hardcode_libdir_separator_F77=:
  12634. ;;
  12635. osf4* | osf5*) # as osf3* with the addition of -msym flag
  12636. if test "$GCC" = yes; then
  12637. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12638. 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'
  12639. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12640. else
  12641. allow_undefined_flag_F77=' -expect_unresolved \*'
  12642. 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'
  12643. 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~
  12644. $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'
  12645. # Both c and cxx compiler support -rpath directly
  12646. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  12647. fi
  12648. hardcode_libdir_separator_F77=:
  12649. ;;
  12650. solaris*)
  12651. no_undefined_flag_F77=' -z text'
  12652. if test "$GCC" = yes; then
  12653. wlarc='${wl}'
  12654. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12655. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12656. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  12657. else
  12658. wlarc=''
  12659. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12660. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12661. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12662. fi
  12663. hardcode_libdir_flag_spec_F77='-R$libdir'
  12664. hardcode_shlibpath_var_F77=no
  12665. case $host_os in
  12666. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12667. *)
  12668. # The compiler driver will combine linker options so we
  12669. # cannot just pass the convience library names through
  12670. # without $wl, iff we do not link with $LD.
  12671. # Luckily, gcc supports the same syntax we need for Sun Studio.
  12672. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12673. case $wlarc in
  12674. '')
  12675. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  12676. *)
  12677. whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  12678. esac ;;
  12679. esac
  12680. link_all_deplibs_F77=yes
  12681. ;;
  12682. sunos4*)
  12683. if test "x$host_vendor" = xsequent; then
  12684. # Use $CC to link under sequent, because it throws in some extra .o
  12685. # files that make .init and .fini sections work.
  12686. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12687. else
  12688. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12689. fi
  12690. hardcode_libdir_flag_spec_F77='-L$libdir'
  12691. hardcode_direct_F77=yes
  12692. hardcode_minus_L_F77=yes
  12693. hardcode_shlibpath_var_F77=no
  12694. ;;
  12695. sysv4)
  12696. case $host_vendor in
  12697. sni)
  12698. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12699. hardcode_direct_F77=yes # is this really true???
  12700. ;;
  12701. siemens)
  12702. ## LD is ld it makes a PLAMLIB
  12703. ## CC just makes a GrossModule.
  12704. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12705. reload_cmds_F77='$CC -r -o $output$reload_objs'
  12706. hardcode_direct_F77=no
  12707. ;;
  12708. motorola)
  12709. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12710. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  12711. ;;
  12712. esac
  12713. runpath_var='LD_RUN_PATH'
  12714. hardcode_shlibpath_var_F77=no
  12715. ;;
  12716. sysv4.3*)
  12717. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12718. hardcode_shlibpath_var_F77=no
  12719. export_dynamic_flag_spec_F77='-Bexport'
  12720. ;;
  12721. sysv4*MP*)
  12722. if test -d /usr/nec; then
  12723. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12724. hardcode_shlibpath_var_F77=no
  12725. runpath_var=LD_RUN_PATH
  12726. hardcode_runpath_var=yes
  12727. ld_shlibs_F77=yes
  12728. fi
  12729. ;;
  12730. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  12731. no_undefined_flag_F77='${wl}-z,text'
  12732. archive_cmds_need_lc_F77=no
  12733. hardcode_shlibpath_var_F77=no
  12734. runpath_var='LD_RUN_PATH'
  12735. if test "$GCC" = yes; then
  12736. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12737. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12738. else
  12739. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12740. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12741. fi
  12742. ;;
  12743. sysv5* | sco3.2v5* | sco5v6*)
  12744. # Note: We can NOT use -z defs as we might desire, because we do not
  12745. # link with -lc, and that would cause any symbols used from libc to
  12746. # always be unresolved, which means just about no library would
  12747. # ever link correctly. If we're not using GNU ld we use -z text
  12748. # though, which does catch some bad symbols but isn't as heavy-handed
  12749. # as -z defs.
  12750. no_undefined_flag_F77='${wl}-z,text'
  12751. allow_undefined_flag_F77='${wl}-z,nodefs'
  12752. archive_cmds_need_lc_F77=no
  12753. hardcode_shlibpath_var_F77=no
  12754. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  12755. hardcode_libdir_separator_F77=':'
  12756. link_all_deplibs_F77=yes
  12757. export_dynamic_flag_spec_F77='${wl}-Bexport'
  12758. runpath_var='LD_RUN_PATH'
  12759. if test "$GCC" = yes; then
  12760. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12761. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12762. else
  12763. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12764. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12765. fi
  12766. ;;
  12767. uts4*)
  12768. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12769. hardcode_libdir_flag_spec_F77='-L$libdir'
  12770. hardcode_shlibpath_var_F77=no
  12771. ;;
  12772. *)
  12773. ld_shlibs_F77=no
  12774. ;;
  12775. esac
  12776. fi
  12777. echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  12778. echo "${ECHO_T}$ld_shlibs_F77" >&6
  12779. test "$ld_shlibs_F77" = no && can_build_shared=no
  12780. #
  12781. # Do we need to explicitly link libc?
  12782. #
  12783. case "x$archive_cmds_need_lc_F77" in
  12784. x|xyes)
  12785. # Assume -lc should be added
  12786. archive_cmds_need_lc_F77=yes
  12787. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12788. case $archive_cmds_F77 in
  12789. *'~'*)
  12790. # FIXME: we may have to deal with multi-command sequences.
  12791. ;;
  12792. '$CC '*)
  12793. # Test whether the compiler implicitly links with -lc since on some
  12794. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12795. # to ld, don't add -lc before -lgcc.
  12796. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  12797. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  12798. $rm conftest*
  12799. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12800. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12801. (eval $ac_compile) 2>&5
  12802. ac_status=$?
  12803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12804. (exit $ac_status); } 2>conftest.err; then
  12805. soname=conftest
  12806. lib=conftest
  12807. libobjs=conftest.$ac_objext
  12808. deplibs=
  12809. wl=$lt_prog_compiler_wl_F77
  12810. pic_flag=$lt_prog_compiler_pic_F77
  12811. compiler_flags=-v
  12812. linker_flags=-v
  12813. verstring=
  12814. output_objdir=.
  12815. libname=conftest
  12816. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  12817. allow_undefined_flag_F77=
  12818. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  12819. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12820. ac_status=$?
  12821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12822. (exit $ac_status); }
  12823. then
  12824. archive_cmds_need_lc_F77=no
  12825. else
  12826. archive_cmds_need_lc_F77=yes
  12827. fi
  12828. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  12829. else
  12830. cat conftest.err 1>&5
  12831. fi
  12832. $rm conftest*
  12833. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  12834. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
  12835. ;;
  12836. esac
  12837. fi
  12838. ;;
  12839. esac
  12840. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  12841. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  12842. library_names_spec=
  12843. libname_spec='lib$name'
  12844. soname_spec=
  12845. shrext_cmds=".so"
  12846. postinstall_cmds=
  12847. postuninstall_cmds=
  12848. finish_cmds=
  12849. finish_eval=
  12850. shlibpath_var=
  12851. shlibpath_overrides_runpath=unknown
  12852. version_type=none
  12853. dynamic_linker="$host_os ld.so"
  12854. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12855. if test "$GCC" = yes; then
  12856. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  12857. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  12858. # if the path contains ";" then we assume it to be the separator
  12859. # otherwise default to the standard path separator (i.e. ":") - it is
  12860. # assumed that no part of a normal pathname contains ";" but that should
  12861. # okay in the real world where ";" in dirpaths is itself problematic.
  12862. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12863. else
  12864. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12865. fi
  12866. else
  12867. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  12868. fi
  12869. need_lib_prefix=unknown
  12870. hardcode_into_libs=no
  12871. # when you set need_version to no, make sure it does not cause -set_version
  12872. # flags to be left without arguments
  12873. need_version=unknown
  12874. case $host_os in
  12875. aix3*)
  12876. version_type=linux
  12877. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12878. shlibpath_var=LIBPATH
  12879. # AIX 3 has no versioning support, so we append a major version to the name.
  12880. soname_spec='${libname}${release}${shared_ext}$major'
  12881. ;;
  12882. aix4* | aix5*)
  12883. version_type=linux
  12884. need_lib_prefix=no
  12885. need_version=no
  12886. hardcode_into_libs=yes
  12887. if test "$host_cpu" = ia64; then
  12888. # AIX 5 supports IA64
  12889. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12890. shlibpath_var=LD_LIBRARY_PATH
  12891. else
  12892. # With GCC up to 2.95.x, collect2 would create an import file
  12893. # for dependence libraries. The import file would start with
  12894. # the line `#! .'. This would cause the generated library to
  12895. # depend on `.', always an invalid library. This was fixed in
  12896. # development snapshots of GCC prior to 3.0.
  12897. case $host_os in
  12898. aix4 | aix4.[01] | aix4.[01].*)
  12899. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12900. echo ' yes '
  12901. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  12902. :
  12903. else
  12904. can_build_shared=no
  12905. fi
  12906. ;;
  12907. esac
  12908. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12909. # soname into executable. Probably we can add versioning support to
  12910. # collect2, so additional links can be useful in future.
  12911. if test "$aix_use_runtimelinking" = yes; then
  12912. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12913. # instead of lib<name>.a to let people know that these are not
  12914. # typical AIX shared libraries.
  12915. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12916. else
  12917. # We preserve .a as extension for shared libraries through AIX4.2
  12918. # and later when we are not doing run time linking.
  12919. library_names_spec='${libname}${release}.a $libname.a'
  12920. soname_spec='${libname}${release}${shared_ext}$major'
  12921. fi
  12922. shlibpath_var=LIBPATH
  12923. fi
  12924. ;;
  12925. amigaos*)
  12926. library_names_spec='$libname.ixlibrary $libname.a'
  12927. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12928. 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'
  12929. ;;
  12930. beos*)
  12931. library_names_spec='${libname}${shared_ext}'
  12932. dynamic_linker="$host_os ld.so"
  12933. shlibpath_var=LIBRARY_PATH
  12934. ;;
  12935. bsdi[45]*)
  12936. version_type=linux
  12937. need_version=no
  12938. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12939. soname_spec='${libname}${release}${shared_ext}$major'
  12940. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12941. shlibpath_var=LD_LIBRARY_PATH
  12942. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12943. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12944. # the default ld.so.conf also contains /usr/contrib/lib and
  12945. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12946. # libtool to hard-code these into programs
  12947. ;;
  12948. cygwin* | mingw* | pw32*)
  12949. version_type=windows
  12950. shrext_cmds=".dll"
  12951. need_version=no
  12952. need_lib_prefix=no
  12953. case $GCC,$host_os in
  12954. yes,cygwin* | yes,mingw* | yes,pw32*)
  12955. library_names_spec='$libname.dll.a'
  12956. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12957. postinstall_cmds='base_file=`basename \${file}`~
  12958. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  12959. dldir=$destdir/`dirname \$dlpath`~
  12960. test -d \$dldir || mkdir -p \$dldir~
  12961. $install_prog $dir/$dlname \$dldir/$dlname~
  12962. chmod a+x \$dldir/$dlname'
  12963. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12964. dlpath=$dir/\$dldll~
  12965. $rm \$dlpath'
  12966. shlibpath_overrides_runpath=yes
  12967. case $host_os in
  12968. cygwin*)
  12969. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12970. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12971. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  12972. ;;
  12973. mingw*)
  12974. # MinGW DLLs use traditional 'lib' prefix
  12975. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12976. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  12977. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  12978. # It is most probably a Windows format PATH printed by
  12979. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  12980. # path with ; separators, and with drive letters. We can handle the
  12981. # drive letters (cygwin fileutils understands them), so leave them,
  12982. # especially as we might pass files found there to a mingw objdump,
  12983. # which wouldn't understand a cygwinified path. Ahh.
  12984. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12985. else
  12986. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12987. fi
  12988. ;;
  12989. pw32*)
  12990. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12991. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12992. ;;
  12993. esac
  12994. ;;
  12995. *)
  12996. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12997. ;;
  12998. esac
  12999. dynamic_linker='Win32 ld.exe'
  13000. # FIXME: first we should search . and the directory the executable is in
  13001. shlibpath_var=PATH
  13002. ;;
  13003. darwin* | rhapsody*)
  13004. dynamic_linker="$host_os dyld"
  13005. version_type=darwin
  13006. need_lib_prefix=no
  13007. need_version=no
  13008. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13009. soname_spec='${libname}${release}${major}$shared_ext'
  13010. shlibpath_overrides_runpath=yes
  13011. shlibpath_var=DYLD_LIBRARY_PATH
  13012. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13013. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  13014. if test "$GCC" = yes; then
  13015. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  13016. else
  13017. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  13018. fi
  13019. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13020. ;;
  13021. dgux*)
  13022. version_type=linux
  13023. need_lib_prefix=no
  13024. need_version=no
  13025. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13026. soname_spec='${libname}${release}${shared_ext}$major'
  13027. shlibpath_var=LD_LIBRARY_PATH
  13028. ;;
  13029. freebsd1*)
  13030. dynamic_linker=no
  13031. ;;
  13032. kfreebsd*-gnu)
  13033. version_type=linux
  13034. need_lib_prefix=no
  13035. need_version=no
  13036. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13037. soname_spec='${libname}${release}${shared_ext}$major'
  13038. shlibpath_var=LD_LIBRARY_PATH
  13039. shlibpath_overrides_runpath=no
  13040. hardcode_into_libs=yes
  13041. dynamic_linker='GNU ld.so'
  13042. ;;
  13043. freebsd* | dragonfly*)
  13044. # DragonFly does not have aout. When/if they implement a new
  13045. # versioning mechanism, adjust this.
  13046. if test -x /usr/bin/objformat; then
  13047. objformat=`/usr/bin/objformat`
  13048. else
  13049. case $host_os in
  13050. freebsd[123]*) objformat=aout ;;
  13051. *) objformat=elf ;;
  13052. esac
  13053. fi
  13054. version_type=freebsd-$objformat
  13055. case $version_type in
  13056. freebsd-elf*)
  13057. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13058. need_version=no
  13059. need_lib_prefix=no
  13060. ;;
  13061. freebsd-*)
  13062. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13063. need_version=yes
  13064. ;;
  13065. esac
  13066. shlibpath_var=LD_LIBRARY_PATH
  13067. case $host_os in
  13068. freebsd2*)
  13069. shlibpath_overrides_runpath=yes
  13070. ;;
  13071. freebsd3.[01]* | freebsdelf3.[01]*)
  13072. shlibpath_overrides_runpath=yes
  13073. hardcode_into_libs=yes
  13074. ;;
  13075. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13076. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13077. shlibpath_overrides_runpath=no
  13078. hardcode_into_libs=yes
  13079. ;;
  13080. freebsd*) # from 4.6 on
  13081. shlibpath_overrides_runpath=yes
  13082. hardcode_into_libs=yes
  13083. ;;
  13084. esac
  13085. ;;
  13086. gnu*)
  13087. version_type=linux
  13088. need_lib_prefix=no
  13089. need_version=no
  13090. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13091. soname_spec='${libname}${release}${shared_ext}$major'
  13092. shlibpath_var=LD_LIBRARY_PATH
  13093. hardcode_into_libs=yes
  13094. ;;
  13095. hpux9* | hpux10* | hpux11*)
  13096. # Give a soname corresponding to the major version so that dld.sl refuses to
  13097. # link against other versions.
  13098. version_type=sunos
  13099. need_lib_prefix=no
  13100. need_version=no
  13101. case $host_cpu in
  13102. ia64*)
  13103. shrext_cmds='.so'
  13104. hardcode_into_libs=yes
  13105. dynamic_linker="$host_os dld.so"
  13106. shlibpath_var=LD_LIBRARY_PATH
  13107. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13108. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13109. soname_spec='${libname}${release}${shared_ext}$major'
  13110. if test "X$HPUX_IA64_MODE" = X32; then
  13111. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13112. else
  13113. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13114. fi
  13115. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13116. ;;
  13117. hppa*64*)
  13118. shrext_cmds='.sl'
  13119. hardcode_into_libs=yes
  13120. dynamic_linker="$host_os dld.sl"
  13121. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13122. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13123. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13124. soname_spec='${libname}${release}${shared_ext}$major'
  13125. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13126. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13127. ;;
  13128. *)
  13129. shrext_cmds='.sl'
  13130. dynamic_linker="$host_os dld.sl"
  13131. shlibpath_var=SHLIB_PATH
  13132. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13133. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13134. soname_spec='${libname}${release}${shared_ext}$major'
  13135. ;;
  13136. esac
  13137. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13138. postinstall_cmds='chmod 555 $lib'
  13139. ;;
  13140. interix3*)
  13141. version_type=linux
  13142. need_lib_prefix=no
  13143. need_version=no
  13144. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13145. soname_spec='${libname}${release}${shared_ext}$major'
  13146. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13147. shlibpath_var=LD_LIBRARY_PATH
  13148. shlibpath_overrides_runpath=no
  13149. hardcode_into_libs=yes
  13150. ;;
  13151. irix5* | irix6* | nonstopux*)
  13152. case $host_os in
  13153. nonstopux*) version_type=nonstopux ;;
  13154. *)
  13155. if test "$lt_cv_prog_gnu_ld" = yes; then
  13156. version_type=linux
  13157. else
  13158. version_type=irix
  13159. fi ;;
  13160. esac
  13161. need_lib_prefix=no
  13162. need_version=no
  13163. soname_spec='${libname}${release}${shared_ext}$major'
  13164. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13165. case $host_os in
  13166. irix5* | nonstopux*)
  13167. libsuff= shlibsuff=
  13168. ;;
  13169. *)
  13170. case $LD in # libtool.m4 will add one of these switches to LD
  13171. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13172. libsuff= shlibsuff= libmagic=32-bit;;
  13173. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13174. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13175. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13176. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13177. *) libsuff= shlibsuff= libmagic=never-match;;
  13178. esac
  13179. ;;
  13180. esac
  13181. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13182. shlibpath_overrides_runpath=no
  13183. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13184. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13185. hardcode_into_libs=yes
  13186. ;;
  13187. # No shared lib support for Linux oldld, aout, or coff.
  13188. linux*oldld* | linux*aout* | linux*coff*)
  13189. dynamic_linker=no
  13190. ;;
  13191. # This must be Linux ELF.
  13192. linux*)
  13193. version_type=linux
  13194. need_lib_prefix=no
  13195. need_version=no
  13196. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13197. soname_spec='${libname}${release}${shared_ext}$major'
  13198. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13199. shlibpath_var=LD_LIBRARY_PATH
  13200. shlibpath_overrides_runpath=no
  13201. # This implies no fast_install, which is unacceptable.
  13202. # Some rework will be needed to allow for fast_install
  13203. # before this can be enabled.
  13204. hardcode_into_libs=yes
  13205. # Append ld.so.conf contents to the search path
  13206. if test -f /etc/ld.so.conf; then
  13207. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  13208. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13209. fi
  13210. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13211. # powerpc, because MkLinux only supported shared libraries with the
  13212. # GNU dynamic linker. Since this was broken with cross compilers,
  13213. # most powerpc-linux boxes support dynamic linking these days and
  13214. # people can always --disable-shared, the test was removed, and we
  13215. # assume the GNU/Linux dynamic linker is in use.
  13216. dynamic_linker='GNU/Linux ld.so'
  13217. ;;
  13218. knetbsd*-gnu)
  13219. version_type=linux
  13220. need_lib_prefix=no
  13221. need_version=no
  13222. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13223. soname_spec='${libname}${release}${shared_ext}$major'
  13224. shlibpath_var=LD_LIBRARY_PATH
  13225. shlibpath_overrides_runpath=no
  13226. hardcode_into_libs=yes
  13227. dynamic_linker='GNU ld.so'
  13228. ;;
  13229. netbsd*)
  13230. version_type=sunos
  13231. need_lib_prefix=no
  13232. need_version=no
  13233. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13234. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13235. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13236. dynamic_linker='NetBSD (a.out) ld.so'
  13237. else
  13238. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13239. soname_spec='${libname}${release}${shared_ext}$major'
  13240. dynamic_linker='NetBSD ld.elf_so'
  13241. fi
  13242. shlibpath_var=LD_LIBRARY_PATH
  13243. shlibpath_overrides_runpath=yes
  13244. hardcode_into_libs=yes
  13245. ;;
  13246. newsos6)
  13247. version_type=linux
  13248. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13249. shlibpath_var=LD_LIBRARY_PATH
  13250. shlibpath_overrides_runpath=yes
  13251. ;;
  13252. nto-qnx*)
  13253. version_type=linux
  13254. need_lib_prefix=no
  13255. need_version=no
  13256. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13257. soname_spec='${libname}${release}${shared_ext}$major'
  13258. shlibpath_var=LD_LIBRARY_PATH
  13259. shlibpath_overrides_runpath=yes
  13260. ;;
  13261. openbsd*)
  13262. version_type=sunos
  13263. sys_lib_dlsearch_path_spec="/usr/lib"
  13264. need_lib_prefix=no
  13265. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13266. case $host_os in
  13267. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13268. *) need_version=no ;;
  13269. esac
  13270. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13271. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13272. shlibpath_var=LD_LIBRARY_PATH
  13273. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13274. case $host_os in
  13275. openbsd2.[89] | openbsd2.[89].*)
  13276. shlibpath_overrides_runpath=no
  13277. ;;
  13278. *)
  13279. shlibpath_overrides_runpath=yes
  13280. ;;
  13281. esac
  13282. else
  13283. shlibpath_overrides_runpath=yes
  13284. fi
  13285. ;;
  13286. os2*)
  13287. libname_spec='$name'
  13288. shrext_cmds=".dll"
  13289. need_lib_prefix=no
  13290. library_names_spec='$libname${shared_ext} $libname.a'
  13291. dynamic_linker='OS/2 ld.exe'
  13292. shlibpath_var=LIBPATH
  13293. ;;
  13294. osf3* | osf4* | osf5*)
  13295. version_type=osf
  13296. need_lib_prefix=no
  13297. need_version=no
  13298. soname_spec='${libname}${release}${shared_ext}$major'
  13299. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13300. shlibpath_var=LD_LIBRARY_PATH
  13301. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13302. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13303. ;;
  13304. solaris*)
  13305. version_type=linux
  13306. need_lib_prefix=no
  13307. need_version=no
  13308. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13309. soname_spec='${libname}${release}${shared_ext}$major'
  13310. shlibpath_var=LD_LIBRARY_PATH
  13311. shlibpath_overrides_runpath=yes
  13312. hardcode_into_libs=yes
  13313. # ldd complains unless libraries are executable
  13314. postinstall_cmds='chmod +x $lib'
  13315. ;;
  13316. sunos4*)
  13317. version_type=sunos
  13318. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13319. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13320. shlibpath_var=LD_LIBRARY_PATH
  13321. shlibpath_overrides_runpath=yes
  13322. if test "$with_gnu_ld" = yes; then
  13323. need_lib_prefix=no
  13324. fi
  13325. need_version=yes
  13326. ;;
  13327. sysv4 | sysv4.3*)
  13328. version_type=linux
  13329. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13330. soname_spec='${libname}${release}${shared_ext}$major'
  13331. shlibpath_var=LD_LIBRARY_PATH
  13332. case $host_vendor in
  13333. sni)
  13334. shlibpath_overrides_runpath=no
  13335. need_lib_prefix=no
  13336. export_dynamic_flag_spec='${wl}-Blargedynsym'
  13337. runpath_var=LD_RUN_PATH
  13338. ;;
  13339. siemens)
  13340. need_lib_prefix=no
  13341. ;;
  13342. motorola)
  13343. need_lib_prefix=no
  13344. need_version=no
  13345. shlibpath_overrides_runpath=no
  13346. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13347. ;;
  13348. esac
  13349. ;;
  13350. sysv4*MP*)
  13351. if test -d /usr/nec ;then
  13352. version_type=linux
  13353. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13354. soname_spec='$libname${shared_ext}.$major'
  13355. shlibpath_var=LD_LIBRARY_PATH
  13356. fi
  13357. ;;
  13358. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13359. version_type=freebsd-elf
  13360. need_lib_prefix=no
  13361. need_version=no
  13362. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13363. soname_spec='${libname}${release}${shared_ext}$major'
  13364. shlibpath_var=LD_LIBRARY_PATH
  13365. hardcode_into_libs=yes
  13366. if test "$with_gnu_ld" = yes; then
  13367. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13368. shlibpath_overrides_runpath=no
  13369. else
  13370. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13371. shlibpath_overrides_runpath=yes
  13372. case $host_os in
  13373. sco3.2v5*)
  13374. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13375. ;;
  13376. esac
  13377. fi
  13378. sys_lib_dlsearch_path_spec='/usr/lib'
  13379. ;;
  13380. uts4*)
  13381. version_type=linux
  13382. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13383. soname_spec='${libname}${release}${shared_ext}$major'
  13384. shlibpath_var=LD_LIBRARY_PATH
  13385. ;;
  13386. *)
  13387. dynamic_linker=no
  13388. ;;
  13389. esac
  13390. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13391. echo "${ECHO_T}$dynamic_linker" >&6
  13392. test "$dynamic_linker" = no && can_build_shared=no
  13393. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13394. if test "$GCC" = yes; then
  13395. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13396. fi
  13397. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13398. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  13399. hardcode_action_F77=
  13400. if test -n "$hardcode_libdir_flag_spec_F77" || \
  13401. test -n "$runpath_var_F77" || \
  13402. test "X$hardcode_automatic_F77" = "Xyes" ; then
  13403. # We can hardcode non-existant directories.
  13404. if test "$hardcode_direct_F77" != no &&
  13405. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13406. # have to relink, otherwise we might link with an installed library
  13407. # when we should be linking with a yet-to-be-installed one
  13408. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  13409. test "$hardcode_minus_L_F77" != no; then
  13410. # Linking always hardcodes the temporary library directory.
  13411. hardcode_action_F77=relink
  13412. else
  13413. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13414. hardcode_action_F77=immediate
  13415. fi
  13416. else
  13417. # We cannot hardcode anything, or else we can only hardcode existing
  13418. # directories.
  13419. hardcode_action_F77=unsupported
  13420. fi
  13421. echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  13422. echo "${ECHO_T}$hardcode_action_F77" >&6
  13423. if test "$hardcode_action_F77" = relink; then
  13424. # Fast installation is not supported
  13425. enable_fast_install=no
  13426. elif test "$shlibpath_overrides_runpath" = yes ||
  13427. test "$enable_shared" = no; then
  13428. # Fast installation is not necessary
  13429. enable_fast_install=needless
  13430. fi
  13431. # The else clause should only fire when bootstrapping the
  13432. # libtool distribution, otherwise you forgot to ship ltmain.sh
  13433. # with your package, and you will get complaints that there are
  13434. # no rules to generate ltmain.sh.
  13435. if test -f "$ltmain"; then
  13436. # See if we are running on zsh, and set the options which allow our commands through
  13437. # without removal of \ escapes.
  13438. if test -n "${ZSH_VERSION+set}" ; then
  13439. setopt NO_GLOB_SUBST
  13440. fi
  13441. # Now quote all the things that may contain metacharacters while being
  13442. # careful not to overquote the AC_SUBSTed values. We take copies of the
  13443. # variables and quote the copies for generation of the libtool script.
  13444. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  13445. SED SHELL STRIP \
  13446. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  13447. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  13448. deplibs_check_method reload_flag reload_cmds need_locks \
  13449. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  13450. lt_cv_sys_global_symbol_to_c_name_address \
  13451. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  13452. old_postinstall_cmds old_postuninstall_cmds \
  13453. compiler_F77 \
  13454. CC_F77 \
  13455. LD_F77 \
  13456. lt_prog_compiler_wl_F77 \
  13457. lt_prog_compiler_pic_F77 \
  13458. lt_prog_compiler_static_F77 \
  13459. lt_prog_compiler_no_builtin_flag_F77 \
  13460. export_dynamic_flag_spec_F77 \
  13461. thread_safe_flag_spec_F77 \
  13462. whole_archive_flag_spec_F77 \
  13463. enable_shared_with_static_runtimes_F77 \
  13464. old_archive_cmds_F77 \
  13465. old_archive_from_new_cmds_F77 \
  13466. predep_objects_F77 \
  13467. postdep_objects_F77 \
  13468. predeps_F77 \
  13469. postdeps_F77 \
  13470. compiler_lib_search_path_F77 \
  13471. archive_cmds_F77 \
  13472. archive_expsym_cmds_F77 \
  13473. postinstall_cmds_F77 \
  13474. postuninstall_cmds_F77 \
  13475. old_archive_from_expsyms_cmds_F77 \
  13476. allow_undefined_flag_F77 \
  13477. no_undefined_flag_F77 \
  13478. export_symbols_cmds_F77 \
  13479. hardcode_libdir_flag_spec_F77 \
  13480. hardcode_libdir_flag_spec_ld_F77 \
  13481. hardcode_libdir_separator_F77 \
  13482. hardcode_automatic_F77 \
  13483. module_cmds_F77 \
  13484. module_expsym_cmds_F77 \
  13485. lt_cv_prog_compiler_c_o_F77 \
  13486. exclude_expsyms_F77 \
  13487. include_expsyms_F77; do
  13488. case $var in
  13489. old_archive_cmds_F77 | \
  13490. old_archive_from_new_cmds_F77 | \
  13491. archive_cmds_F77 | \
  13492. archive_expsym_cmds_F77 | \
  13493. module_cmds_F77 | \
  13494. module_expsym_cmds_F77 | \
  13495. old_archive_from_expsyms_cmds_F77 | \
  13496. export_symbols_cmds_F77 | \
  13497. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  13498. postinstall_cmds | postuninstall_cmds | \
  13499. old_postinstall_cmds | old_postuninstall_cmds | \
  13500. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  13501. # Double-quote double-evaled strings.
  13502. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  13503. ;;
  13504. *)
  13505. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  13506. ;;
  13507. esac
  13508. done
  13509. case $lt_echo in
  13510. *'\$0 --fallback-echo"')
  13511. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  13512. ;;
  13513. esac
  13514. cfgfile="$ofile"
  13515. cat <<__EOF__ >> "$cfgfile"
  13516. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  13517. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13518. # Shell to use when invoking shell scripts.
  13519. SHELL=$lt_SHELL
  13520. # Whether or not to build shared libraries.
  13521. build_libtool_libs=$enable_shared
  13522. # Whether or not to build static libraries.
  13523. build_old_libs=$enable_static
  13524. # Whether or not to add -lc for building shared libraries.
  13525. build_libtool_need_lc=$archive_cmds_need_lc_F77
  13526. # Whether or not to disallow shared libs when runtime libs are static
  13527. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  13528. # Whether or not to optimize for fast installation.
  13529. fast_install=$enable_fast_install
  13530. # The host system.
  13531. host_alias=$host_alias
  13532. host=$host
  13533. host_os=$host_os
  13534. # The build system.
  13535. build_alias=$build_alias
  13536. build=$build
  13537. build_os=$build_os
  13538. # An echo program that does not interpret backslashes.
  13539. echo=$lt_echo
  13540. # The archiver.
  13541. AR=$lt_AR
  13542. AR_FLAGS=$lt_AR_FLAGS
  13543. # A C compiler.
  13544. LTCC=$lt_LTCC
  13545. # LTCC compiler flags.
  13546. LTCFLAGS=$lt_LTCFLAGS
  13547. # A language-specific compiler.
  13548. CC=$lt_compiler_F77
  13549. # Is the compiler the GNU C compiler?
  13550. with_gcc=$GCC_F77
  13551. # An ERE matcher.
  13552. EGREP=$lt_EGREP
  13553. # The linker used to build libraries.
  13554. LD=$lt_LD_F77
  13555. # Whether we need hard or soft links.
  13556. LN_S=$lt_LN_S
  13557. # A BSD-compatible nm program.
  13558. NM=$lt_NM
  13559. # A symbol stripping program
  13560. STRIP=$lt_STRIP
  13561. # Used to examine libraries when file_magic_cmd begins "file"
  13562. MAGIC_CMD=$MAGIC_CMD
  13563. # Used on cygwin: DLL creation program.
  13564. DLLTOOL="$DLLTOOL"
  13565. # Used on cygwin: object dumper.
  13566. OBJDUMP="$OBJDUMP"
  13567. # Used on cygwin: assembler.
  13568. AS="$AS"
  13569. # The name of the directory that contains temporary libtool files.
  13570. objdir=$objdir
  13571. # How to create reloadable object files.
  13572. reload_flag=$lt_reload_flag
  13573. reload_cmds=$lt_reload_cmds
  13574. # How to pass a linker flag through the compiler.
  13575. wl=$lt_lt_prog_compiler_wl_F77
  13576. # Object file suffix (normally "o").
  13577. objext="$ac_objext"
  13578. # Old archive suffix (normally "a").
  13579. libext="$libext"
  13580. # Shared library suffix (normally ".so").
  13581. shrext_cmds='$shrext_cmds'
  13582. # Executable file suffix (normally "").
  13583. exeext="$exeext"
  13584. # Additional compiler flags for building library objects.
  13585. pic_flag=$lt_lt_prog_compiler_pic_F77
  13586. pic_mode=$pic_mode
  13587. # What is the maximum length of a command?
  13588. max_cmd_len=$lt_cv_sys_max_cmd_len
  13589. # Does compiler simultaneously support -c and -o options?
  13590. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  13591. # Must we lock files when doing compilation?
  13592. need_locks=$lt_need_locks
  13593. # Do we need the lib prefix for modules?
  13594. need_lib_prefix=$need_lib_prefix
  13595. # Do we need a version for libraries?
  13596. need_version=$need_version
  13597. # Whether dlopen is supported.
  13598. dlopen_support=$enable_dlopen
  13599. # Whether dlopen of programs is supported.
  13600. dlopen_self=$enable_dlopen_self
  13601. # Whether dlopen of statically linked programs is supported.
  13602. dlopen_self_static=$enable_dlopen_self_static
  13603. # Compiler flag to prevent dynamic linking.
  13604. link_static_flag=$lt_lt_prog_compiler_static_F77
  13605. # Compiler flag to turn off builtin functions.
  13606. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  13607. # Compiler flag to allow reflexive dlopens.
  13608. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  13609. # Compiler flag to generate shared objects directly from archives.
  13610. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  13611. # Compiler flag to generate thread-safe objects.
  13612. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  13613. # Library versioning type.
  13614. version_type=$version_type
  13615. # Format of library name prefix.
  13616. libname_spec=$lt_libname_spec
  13617. # List of archive names. First name is the real one, the rest are links.
  13618. # The last name is the one that the linker finds with -lNAME.
  13619. library_names_spec=$lt_library_names_spec
  13620. # The coded name of the library, if different from the real name.
  13621. soname_spec=$lt_soname_spec
  13622. # Commands used to build and install an old-style archive.
  13623. RANLIB=$lt_RANLIB
  13624. old_archive_cmds=$lt_old_archive_cmds_F77
  13625. old_postinstall_cmds=$lt_old_postinstall_cmds
  13626. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13627. # Create an old-style archive from a shared archive.
  13628. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  13629. # Create a temporary old-style archive to link instead of a shared archive.
  13630. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  13631. # Commands used to build and install a shared archive.
  13632. archive_cmds=$lt_archive_cmds_F77
  13633. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  13634. postinstall_cmds=$lt_postinstall_cmds
  13635. postuninstall_cmds=$lt_postuninstall_cmds
  13636. # Commands used to build a loadable module (assumed same as above if empty)
  13637. module_cmds=$lt_module_cmds_F77
  13638. module_expsym_cmds=$lt_module_expsym_cmds_F77
  13639. # Commands to strip libraries.
  13640. old_striplib=$lt_old_striplib
  13641. striplib=$lt_striplib
  13642. # Dependencies to place before the objects being linked to create a
  13643. # shared library.
  13644. predep_objects=$lt_predep_objects_F77
  13645. # Dependencies to place after the objects being linked to create a
  13646. # shared library.
  13647. postdep_objects=$lt_postdep_objects_F77
  13648. # Dependencies to place before the objects being linked to create a
  13649. # shared library.
  13650. predeps=$lt_predeps_F77
  13651. # Dependencies to place after the objects being linked to create a
  13652. # shared library.
  13653. postdeps=$lt_postdeps_F77
  13654. # The library search path used internally by the compiler when linking
  13655. # a shared library.
  13656. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  13657. # Method to check whether dependent libraries are shared objects.
  13658. deplibs_check_method=$lt_deplibs_check_method
  13659. # Command to use when deplibs_check_method == file_magic.
  13660. file_magic_cmd=$lt_file_magic_cmd
  13661. # Flag that allows shared libraries with undefined symbols to be built.
  13662. allow_undefined_flag=$lt_allow_undefined_flag_F77
  13663. # Flag that forces no undefined symbols.
  13664. no_undefined_flag=$lt_no_undefined_flag_F77
  13665. # Commands used to finish a libtool library installation in a directory.
  13666. finish_cmds=$lt_finish_cmds
  13667. # Same as above, but a single script fragment to be evaled but not shown.
  13668. finish_eval=$lt_finish_eval
  13669. # Take the output of nm and produce a listing of raw symbols and C names.
  13670. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13671. # Transform the output of nm in a proper C declaration
  13672. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13673. # Transform the output of nm in a C name address pair
  13674. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13675. # This is the shared library runtime path variable.
  13676. runpath_var=$runpath_var
  13677. # This is the shared library path variable.
  13678. shlibpath_var=$shlibpath_var
  13679. # Is shlibpath searched before the hard-coded library search path?
  13680. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13681. # How to hardcode a shared library path into an executable.
  13682. hardcode_action=$hardcode_action_F77
  13683. # Whether we should hardcode library paths into libraries.
  13684. hardcode_into_libs=$hardcode_into_libs
  13685. # Flag to hardcode \$libdir into a binary during linking.
  13686. # This must work even if \$libdir does not exist.
  13687. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  13688. # If ld is used when linking, flag to hardcode \$libdir into
  13689. # a binary during linking. This must work even if \$libdir does
  13690. # not exist.
  13691. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  13692. # Whether we need a single -rpath flag with a separated argument.
  13693. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  13694. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  13695. # resulting binary.
  13696. hardcode_direct=$hardcode_direct_F77
  13697. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  13698. # resulting binary.
  13699. hardcode_minus_L=$hardcode_minus_L_F77
  13700. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  13701. # the resulting binary.
  13702. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  13703. # Set to yes if building a shared library automatically hardcodes DIR into the library
  13704. # and all subsequent libraries and executables linked against it.
  13705. hardcode_automatic=$hardcode_automatic_F77
  13706. # Variables whose values should be saved in libtool wrapper scripts and
  13707. # restored at relink time.
  13708. variables_saved_for_relink="$variables_saved_for_relink"
  13709. # Whether libtool must link a program against all its dependency libraries.
  13710. link_all_deplibs=$link_all_deplibs_F77
  13711. # Compile-time system search path for libraries
  13712. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13713. # Run-time system search path for libraries
  13714. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13715. # Fix the shell variable \$srcfile for the compiler.
  13716. fix_srcfile_path="$fix_srcfile_path_F77"
  13717. # Set to yes if exported symbols are required.
  13718. always_export_symbols=$always_export_symbols_F77
  13719. # The commands to list exported symbols.
  13720. export_symbols_cmds=$lt_export_symbols_cmds_F77
  13721. # The commands to extract the exported symbol list from a shared archive.
  13722. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13723. # Symbols that should not be listed in the preloaded symbols.
  13724. exclude_expsyms=$lt_exclude_expsyms_F77
  13725. # Symbols that must always be exported.
  13726. include_expsyms=$lt_include_expsyms_F77
  13727. # ### END LIBTOOL TAG CONFIG: $tagname
  13728. __EOF__
  13729. else
  13730. # If there is no Makefile yet, we rely on a make rule to execute
  13731. # `config.status --recheck' to rerun these tests and create the
  13732. # libtool script then.
  13733. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  13734. if test -f "$ltmain_in"; then
  13735. test -f Makefile && make "$ltmain"
  13736. fi
  13737. fi
  13738. ac_ext=c
  13739. ac_cpp='$CPP $CPPFLAGS'
  13740. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13741. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13742. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13743. CC="$lt_save_CC"
  13744. else
  13745. tagname=""
  13746. fi
  13747. ;;
  13748. GCJ)
  13749. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  13750. # Source file extension for Java test sources.
  13751. ac_ext=java
  13752. # Object file extension for compiled Java test sources.
  13753. objext=o
  13754. objext_GCJ=$objext
  13755. # Code to be used in simple compile tests
  13756. lt_simple_compile_test_code="class foo {}\n"
  13757. # Code to be used in simple link tests
  13758. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  13759. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  13760. # If no C compiler was specified, use CC.
  13761. LTCC=${LTCC-"$CC"}
  13762. # If no C compiler flags were specified, use CFLAGS.
  13763. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  13764. # Allow CC to be a program name with arguments.
  13765. compiler=$CC
  13766. # save warnings/boilerplate of simple test code
  13767. ac_outfile=conftest.$ac_objext
  13768. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  13769. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13770. _lt_compiler_boilerplate=`cat conftest.err`
  13771. $rm conftest*
  13772. ac_outfile=conftest.$ac_objext
  13773. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  13774. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13775. _lt_linker_boilerplate=`cat conftest.err`
  13776. $rm conftest*
  13777. # Allow CC to be a program name with arguments.
  13778. lt_save_CC="$CC"
  13779. CC=${GCJ-"gcj"}
  13780. compiler=$CC
  13781. compiler_GCJ=$CC
  13782. for cc_temp in $compiler""; do
  13783. case $cc_temp in
  13784. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13785. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13786. \-*) ;;
  13787. *) break;;
  13788. esac
  13789. done
  13790. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13791. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  13792. archive_cmds_need_lc_GCJ=no
  13793. old_archive_cmds_GCJ=$old_archive_cmds
  13794. ## CAVEAT EMPTOR:
  13795. ## There is no encapsulation within the following macros, do not change
  13796. ## the running order or otherwise move them around unless you know exactly
  13797. ## what you are doing...
  13798. lt_prog_compiler_no_builtin_flag_GCJ=
  13799. if test "$GCC" = yes; then
  13800. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  13801. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  13802. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  13803. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  13804. echo $ECHO_N "(cached) $ECHO_C" >&6
  13805. else
  13806. lt_cv_prog_compiler_rtti_exceptions=no
  13807. ac_outfile=conftest.$ac_objext
  13808. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13809. lt_compiler_flag="-fno-rtti -fno-exceptions"
  13810. # Insert the option either (1) after the last *FLAGS variable, or
  13811. # (2) before a word containing "conftest.", or (3) at the end.
  13812. # Note that $ac_compile itself does not contain backslashes and begins
  13813. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13814. # The option is referenced via a variable to avoid confusing sed.
  13815. lt_compile=`echo "$ac_compile" | $SED \
  13816. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13817. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13818. -e 's:$: $lt_compiler_flag:'`
  13819. (eval echo "\"\$as_me:15509: $lt_compile\"" >&5)
  13820. (eval "$lt_compile" 2>conftest.err)
  13821. ac_status=$?
  13822. cat conftest.err >&5
  13823. echo "$as_me:15513: \$? = $ac_status" >&5
  13824. if (exit $ac_status) && test -s "$ac_outfile"; then
  13825. # The compiler can only warn and ignore the option if not recognized
  13826. # So say no if there are warnings other than the usual output.
  13827. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  13828. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13829. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13830. lt_cv_prog_compiler_rtti_exceptions=yes
  13831. fi
  13832. fi
  13833. $rm conftest*
  13834. fi
  13835. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  13836. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  13837. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  13838. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  13839. else
  13840. :
  13841. fi
  13842. fi
  13843. lt_prog_compiler_wl_GCJ=
  13844. lt_prog_compiler_pic_GCJ=
  13845. lt_prog_compiler_static_GCJ=
  13846. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  13847. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  13848. if test "$GCC" = yes; then
  13849. lt_prog_compiler_wl_GCJ='-Wl,'
  13850. lt_prog_compiler_static_GCJ='-static'
  13851. case $host_os in
  13852. aix*)
  13853. # All AIX code is PIC.
  13854. if test "$host_cpu" = ia64; then
  13855. # AIX 5 now supports IA64 processor
  13856. lt_prog_compiler_static_GCJ='-Bstatic'
  13857. fi
  13858. ;;
  13859. amigaos*)
  13860. # FIXME: we need at least 68020 code to build shared libraries, but
  13861. # adding the `-m68020' flag to GCC prevents building anything better,
  13862. # like `-m68040'.
  13863. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  13864. ;;
  13865. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13866. # PIC is the default for these OSes.
  13867. ;;
  13868. mingw* | pw32* | os2*)
  13869. # This hack is so that the source file can tell whether it is being
  13870. # built for inclusion in a dll (and should export symbols for example).
  13871. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  13872. ;;
  13873. darwin* | rhapsody*)
  13874. # PIC is the default on this platform
  13875. # Common symbols not allowed in MH_DYLIB files
  13876. lt_prog_compiler_pic_GCJ='-fno-common'
  13877. ;;
  13878. interix3*)
  13879. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13880. # Instead, we relocate shared libraries at runtime.
  13881. ;;
  13882. msdosdjgpp*)
  13883. # Just because we use GCC doesn't mean we suddenly get shared libraries
  13884. # on systems that don't support them.
  13885. lt_prog_compiler_can_build_shared_GCJ=no
  13886. enable_shared=no
  13887. ;;
  13888. sysv4*MP*)
  13889. if test -d /usr/nec; then
  13890. lt_prog_compiler_pic_GCJ=-Kconform_pic
  13891. fi
  13892. ;;
  13893. hpux*)
  13894. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13895. # not for PA HP-UX.
  13896. case $host_cpu in
  13897. hppa*64*|ia64*)
  13898. # +Z the default
  13899. ;;
  13900. *)
  13901. lt_prog_compiler_pic_GCJ='-fPIC'
  13902. ;;
  13903. esac
  13904. ;;
  13905. *)
  13906. lt_prog_compiler_pic_GCJ='-fPIC'
  13907. ;;
  13908. esac
  13909. else
  13910. # PORTME Check for flag to pass linker flags through the system compiler.
  13911. case $host_os in
  13912. aix*)
  13913. lt_prog_compiler_wl_GCJ='-Wl,'
  13914. if test "$host_cpu" = ia64; then
  13915. # AIX 5 now supports IA64 processor
  13916. lt_prog_compiler_static_GCJ='-Bstatic'
  13917. else
  13918. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  13919. fi
  13920. ;;
  13921. darwin*)
  13922. # PIC is the default on this platform
  13923. # Common symbols not allowed in MH_DYLIB files
  13924. case $cc_basename in
  13925. xlc*)
  13926. lt_prog_compiler_pic_GCJ='-qnocommon'
  13927. lt_prog_compiler_wl_GCJ='-Wl,'
  13928. ;;
  13929. esac
  13930. ;;
  13931. mingw* | pw32* | os2*)
  13932. # This hack is so that the source file can tell whether it is being
  13933. # built for inclusion in a dll (and should export symbols for example).
  13934. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  13935. ;;
  13936. hpux9* | hpux10* | hpux11*)
  13937. lt_prog_compiler_wl_GCJ='-Wl,'
  13938. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13939. # not for PA HP-UX.
  13940. case $host_cpu in
  13941. hppa*64*|ia64*)
  13942. # +Z the default
  13943. ;;
  13944. *)
  13945. lt_prog_compiler_pic_GCJ='+Z'
  13946. ;;
  13947. esac
  13948. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  13949. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  13950. ;;
  13951. irix5* | irix6* | nonstopux*)
  13952. lt_prog_compiler_wl_GCJ='-Wl,'
  13953. # PIC (with -KPIC) is the default.
  13954. lt_prog_compiler_static_GCJ='-non_shared'
  13955. ;;
  13956. newsos6)
  13957. lt_prog_compiler_pic_GCJ='-KPIC'
  13958. lt_prog_compiler_static_GCJ='-Bstatic'
  13959. ;;
  13960. linux*)
  13961. case $cc_basename in
  13962. icc* | ecc*)
  13963. lt_prog_compiler_wl_GCJ='-Wl,'
  13964. lt_prog_compiler_pic_GCJ='-KPIC'
  13965. lt_prog_compiler_static_GCJ='-static'
  13966. ;;
  13967. pgcc* | pgf77* | pgf90* | pgf95*)
  13968. # Portland Group compilers (*not* the Pentium gcc compiler,
  13969. # which looks to be a dead project)
  13970. lt_prog_compiler_wl_GCJ='-Wl,'
  13971. lt_prog_compiler_pic_GCJ='-fpic'
  13972. lt_prog_compiler_static_GCJ='-Bstatic'
  13973. ;;
  13974. ccc*)
  13975. lt_prog_compiler_wl_GCJ='-Wl,'
  13976. # All Alpha code is PIC.
  13977. lt_prog_compiler_static_GCJ='-non_shared'
  13978. ;;
  13979. esac
  13980. ;;
  13981. osf3* | osf4* | osf5*)
  13982. lt_prog_compiler_wl_GCJ='-Wl,'
  13983. # All OSF/1 code is PIC.
  13984. lt_prog_compiler_static_GCJ='-non_shared'
  13985. ;;
  13986. solaris*)
  13987. lt_prog_compiler_pic_GCJ='-KPIC'
  13988. lt_prog_compiler_static_GCJ='-Bstatic'
  13989. case $cc_basename in
  13990. f77* | f90* | f95*)
  13991. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  13992. *)
  13993. lt_prog_compiler_wl_GCJ='-Wl,';;
  13994. esac
  13995. ;;
  13996. sunos4*)
  13997. lt_prog_compiler_wl_GCJ='-Qoption ld '
  13998. lt_prog_compiler_pic_GCJ='-PIC'
  13999. lt_prog_compiler_static_GCJ='-Bstatic'
  14000. ;;
  14001. sysv4 | sysv4.2uw2* | sysv4.3*)
  14002. lt_prog_compiler_wl_GCJ='-Wl,'
  14003. lt_prog_compiler_pic_GCJ='-KPIC'
  14004. lt_prog_compiler_static_GCJ='-Bstatic'
  14005. ;;
  14006. sysv4*MP*)
  14007. if test -d /usr/nec ;then
  14008. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  14009. lt_prog_compiler_static_GCJ='-Bstatic'
  14010. fi
  14011. ;;
  14012. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14013. lt_prog_compiler_wl_GCJ='-Wl,'
  14014. lt_prog_compiler_pic_GCJ='-KPIC'
  14015. lt_prog_compiler_static_GCJ='-Bstatic'
  14016. ;;
  14017. unicos*)
  14018. lt_prog_compiler_wl_GCJ='-Wl,'
  14019. lt_prog_compiler_can_build_shared_GCJ=no
  14020. ;;
  14021. uts4*)
  14022. lt_prog_compiler_pic_GCJ='-pic'
  14023. lt_prog_compiler_static_GCJ='-Bstatic'
  14024. ;;
  14025. *)
  14026. lt_prog_compiler_can_build_shared_GCJ=no
  14027. ;;
  14028. esac
  14029. fi
  14030. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  14031. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
  14032. #
  14033. # Check to make sure the PIC flag actually works.
  14034. #
  14035. if test -n "$lt_prog_compiler_pic_GCJ"; then
  14036. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  14037. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
  14038. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  14039. echo $ECHO_N "(cached) $ECHO_C" >&6
  14040. else
  14041. lt_prog_compiler_pic_works_GCJ=no
  14042. ac_outfile=conftest.$ac_objext
  14043. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14044. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  14045. # Insert the option either (1) after the last *FLAGS variable, or
  14046. # (2) before a word containing "conftest.", or (3) at the end.
  14047. # Note that $ac_compile itself does not contain backslashes and begins
  14048. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14049. # The option is referenced via a variable to avoid confusing sed.
  14050. lt_compile=`echo "$ac_compile" | $SED \
  14051. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14052. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14053. -e 's:$: $lt_compiler_flag:'`
  14054. (eval echo "\"\$as_me:15777: $lt_compile\"" >&5)
  14055. (eval "$lt_compile" 2>conftest.err)
  14056. ac_status=$?
  14057. cat conftest.err >&5
  14058. echo "$as_me:15781: \$? = $ac_status" >&5
  14059. if (exit $ac_status) && test -s "$ac_outfile"; then
  14060. # The compiler can only warn and ignore the option if not recognized
  14061. # So say no if there are warnings other than the usual output.
  14062. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14063. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14064. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14065. lt_prog_compiler_pic_works_GCJ=yes
  14066. fi
  14067. fi
  14068. $rm conftest*
  14069. fi
  14070. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  14071. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
  14072. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  14073. case $lt_prog_compiler_pic_GCJ in
  14074. "" | " "*) ;;
  14075. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  14076. esac
  14077. else
  14078. lt_prog_compiler_pic_GCJ=
  14079. lt_prog_compiler_can_build_shared_GCJ=no
  14080. fi
  14081. fi
  14082. case $host_os in
  14083. # For platforms which do not support PIC, -DPIC is meaningless:
  14084. *djgpp*)
  14085. lt_prog_compiler_pic_GCJ=
  14086. ;;
  14087. *)
  14088. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  14089. ;;
  14090. esac
  14091. #
  14092. # Check to make sure the static flag actually works.
  14093. #
  14094. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  14095. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14096. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  14097. if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  14098. echo $ECHO_N "(cached) $ECHO_C" >&6
  14099. else
  14100. lt_prog_compiler_static_works_GCJ=no
  14101. save_LDFLAGS="$LDFLAGS"
  14102. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14103. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  14104. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14105. # The linker can only warn and ignore the option if not recognized
  14106. # So say no if there are warnings
  14107. if test -s conftest.err; then
  14108. # Append any errors to the config.log.
  14109. cat conftest.err 1>&5
  14110. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  14111. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14112. if diff conftest.exp conftest.er2 >/dev/null; then
  14113. lt_prog_compiler_static_works_GCJ=yes
  14114. fi
  14115. else
  14116. lt_prog_compiler_static_works_GCJ=yes
  14117. fi
  14118. fi
  14119. $rm conftest*
  14120. LDFLAGS="$save_LDFLAGS"
  14121. fi
  14122. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  14123. echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
  14124. if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  14125. :
  14126. else
  14127. lt_prog_compiler_static_GCJ=
  14128. fi
  14129. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  14130. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  14131. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  14132. echo $ECHO_N "(cached) $ECHO_C" >&6
  14133. else
  14134. lt_cv_prog_compiler_c_o_GCJ=no
  14135. $rm -r conftest 2>/dev/null
  14136. mkdir conftest
  14137. cd conftest
  14138. mkdir out
  14139. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14140. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14141. # Insert the option either (1) after the last *FLAGS variable, or
  14142. # (2) before a word containing "conftest.", or (3) at the end.
  14143. # Note that $ac_compile itself does not contain backslashes and begins
  14144. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14145. lt_compile=`echo "$ac_compile" | $SED \
  14146. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14147. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14148. -e 's:$: $lt_compiler_flag:'`
  14149. (eval echo "\"\$as_me:15881: $lt_compile\"" >&5)
  14150. (eval "$lt_compile" 2>out/conftest.err)
  14151. ac_status=$?
  14152. cat out/conftest.err >&5
  14153. echo "$as_me:15885: \$? = $ac_status" >&5
  14154. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14155. then
  14156. # The compiler can only warn and ignore the option if not recognized
  14157. # So say no if there are warnings
  14158. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  14159. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14160. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14161. lt_cv_prog_compiler_c_o_GCJ=yes
  14162. fi
  14163. fi
  14164. chmod u+w . 2>&5
  14165. $rm conftest*
  14166. # SGI C++ compiler will create directory out/ii_files/ for
  14167. # template instantiation
  14168. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  14169. $rm out/* && rmdir out
  14170. cd ..
  14171. rmdir conftest
  14172. $rm conftest*
  14173. fi
  14174. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  14175. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
  14176. hard_links="nottested"
  14177. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  14178. # do not overwrite the value of need_locks provided by the user
  14179. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  14180. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  14181. hard_links=yes
  14182. $rm conftest*
  14183. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14184. touch conftest.a
  14185. ln conftest.a conftest.b 2>&5 || hard_links=no
  14186. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14187. echo "$as_me:$LINENO: result: $hard_links" >&5
  14188. echo "${ECHO_T}$hard_links" >&6
  14189. if test "$hard_links" = no; then
  14190. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  14191. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  14192. need_locks=warn
  14193. fi
  14194. else
  14195. need_locks=no
  14196. fi
  14197. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14198. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  14199. runpath_var=
  14200. allow_undefined_flag_GCJ=
  14201. enable_shared_with_static_runtimes_GCJ=no
  14202. archive_cmds_GCJ=
  14203. archive_expsym_cmds_GCJ=
  14204. old_archive_From_new_cmds_GCJ=
  14205. old_archive_from_expsyms_cmds_GCJ=
  14206. export_dynamic_flag_spec_GCJ=
  14207. whole_archive_flag_spec_GCJ=
  14208. thread_safe_flag_spec_GCJ=
  14209. hardcode_libdir_flag_spec_GCJ=
  14210. hardcode_libdir_flag_spec_ld_GCJ=
  14211. hardcode_libdir_separator_GCJ=
  14212. hardcode_direct_GCJ=no
  14213. hardcode_minus_L_GCJ=no
  14214. hardcode_shlibpath_var_GCJ=unsupported
  14215. link_all_deplibs_GCJ=unknown
  14216. hardcode_automatic_GCJ=no
  14217. module_cmds_GCJ=
  14218. module_expsym_cmds_GCJ=
  14219. always_export_symbols_GCJ=no
  14220. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14221. # include_expsyms should be a list of space-separated symbols to be *always*
  14222. # included in the symbol list
  14223. include_expsyms_GCJ=
  14224. # exclude_expsyms can be an extended regexp of symbols to exclude
  14225. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  14226. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  14227. # as well as any symbol that contains `d'.
  14228. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  14229. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  14230. # platforms (ab)use it in PIC code, but their linkers get confused if
  14231. # the symbol is explicitly referenced. Since portable code cannot
  14232. # rely on this symbol name, it's probably fine to never include it in
  14233. # preloaded symbol tables.
  14234. extract_expsyms_cmds=
  14235. # Just being paranoid about ensuring that cc_basename is set.
  14236. for cc_temp in $compiler""; do
  14237. case $cc_temp in
  14238. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14239. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14240. \-*) ;;
  14241. *) break;;
  14242. esac
  14243. done
  14244. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14245. case $host_os in
  14246. cygwin* | mingw* | pw32*)
  14247. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  14248. # When not using gcc, we currently assume that we are using
  14249. # Microsoft Visual C++.
  14250. if test "$GCC" != yes; then
  14251. with_gnu_ld=no
  14252. fi
  14253. ;;
  14254. interix*)
  14255. # we just hope/assume this is gcc and not c89 (= MSVC++)
  14256. with_gnu_ld=yes
  14257. ;;
  14258. openbsd*)
  14259. with_gnu_ld=no
  14260. ;;
  14261. esac
  14262. ld_shlibs_GCJ=yes
  14263. if test "$with_gnu_ld" = yes; then
  14264. # If archive_cmds runs LD, not CC, wlarc should be empty
  14265. wlarc='${wl}'
  14266. # Set some defaults for GNU ld with shared library support. These
  14267. # are reset later if shared libraries are not supported. Putting them
  14268. # here allows them to be overridden if necessary.
  14269. runpath_var=LD_RUN_PATH
  14270. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  14271. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  14272. # ancient GNU ld didn't support --whole-archive et. al.
  14273. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  14274. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  14275. else
  14276. whole_archive_flag_spec_GCJ=
  14277. fi
  14278. supports_anon_versioning=no
  14279. case `$LD -v 2>/dev/null` in
  14280. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  14281. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  14282. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  14283. *\ 2.11.*) ;; # other 2.11 versions
  14284. *) supports_anon_versioning=yes ;;
  14285. esac
  14286. # See if GNU ld supports shared libraries.
  14287. case $host_os in
  14288. aix3* | aix4* | aix5*)
  14289. # On AIX/PPC, the GNU linker is very broken
  14290. if test "$host_cpu" != ia64; then
  14291. ld_shlibs_GCJ=no
  14292. cat <<EOF 1>&2
  14293. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  14294. *** to be unable to reliably create shared libraries on AIX.
  14295. *** Therefore, libtool is disabling shared libraries support. If you
  14296. *** really care for shared libraries, you may want to modify your PATH
  14297. *** so that a non-GNU linker is found, and then restart.
  14298. EOF
  14299. fi
  14300. ;;
  14301. amigaos*)
  14302. 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)'
  14303. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14304. hardcode_minus_L_GCJ=yes
  14305. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  14306. # that the semantics of dynamic libraries on AmigaOS, at least up
  14307. # to version 4, is to share data among multiple programs linked
  14308. # with the same dynamic library. Since this doesn't match the
  14309. # behavior of shared libraries on other platforms, we can't use
  14310. # them.
  14311. ld_shlibs_GCJ=no
  14312. ;;
  14313. beos*)
  14314. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14315. allow_undefined_flag_GCJ=unsupported
  14316. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  14317. # support --undefined. This deserves some investigation. FIXME
  14318. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14319. else
  14320. ld_shlibs_GCJ=no
  14321. fi
  14322. ;;
  14323. cygwin* | mingw* | pw32*)
  14324. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  14325. # as there is no search path for DLLs.
  14326. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14327. allow_undefined_flag_GCJ=unsupported
  14328. always_export_symbols_GCJ=no
  14329. enable_shared_with_static_runtimes_GCJ=yes
  14330. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  14331. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  14332. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14333. # If the export-symbols file already is a .def file (1st line
  14334. # is EXPORTS), use it as is; otherwise, prepend...
  14335. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  14336. cp $export_symbols $output_objdir/$soname.def;
  14337. else
  14338. echo EXPORTS > $output_objdir/$soname.def;
  14339. cat $export_symbols >> $output_objdir/$soname.def;
  14340. fi~
  14341. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14342. else
  14343. ld_shlibs_GCJ=no
  14344. fi
  14345. ;;
  14346. interix3*)
  14347. hardcode_direct_GCJ=no
  14348. hardcode_shlibpath_var_GCJ=no
  14349. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  14350. export_dynamic_flag_spec_GCJ='${wl}-E'
  14351. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  14352. # Instead, shared libraries are loaded at an image base (0x10000000 by
  14353. # default) and relocated if they conflict, which is a slow very memory
  14354. # consuming and fragmenting process. To avoid this, we pick a random,
  14355. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  14356. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  14357. 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'
  14358. 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'
  14359. ;;
  14360. linux*)
  14361. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14362. tmp_addflag=
  14363. case $cc_basename,$host_cpu in
  14364. pgcc*) # Portland Group C compiler
  14365. 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'
  14366. tmp_addflag=' $pic_flag'
  14367. ;;
  14368. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  14369. 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'
  14370. tmp_addflag=' $pic_flag -Mnomain' ;;
  14371. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  14372. tmp_addflag=' -i_dynamic' ;;
  14373. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  14374. tmp_addflag=' -i_dynamic -nofor_main' ;;
  14375. ifc* | ifort*) # Intel Fortran compiler
  14376. tmp_addflag=' -nofor_main' ;;
  14377. esac
  14378. archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14379. if test $supports_anon_versioning = yes; then
  14380. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  14381. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  14382. $echo "local: *; };" >> $output_objdir/$libname.ver~
  14383. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  14384. fi
  14385. else
  14386. ld_shlibs_GCJ=no
  14387. fi
  14388. ;;
  14389. netbsd*)
  14390. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14391. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  14392. wlarc=
  14393. else
  14394. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14395. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14396. fi
  14397. ;;
  14398. solaris*)
  14399. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  14400. ld_shlibs_GCJ=no
  14401. cat <<EOF 1>&2
  14402. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  14403. *** create shared libraries on Solaris systems. Therefore, libtool
  14404. *** is disabling shared libraries support. We urge you to upgrade GNU
  14405. *** binutils to release 2.9.1 or newer. Another option is to modify
  14406. *** your PATH or compiler configuration so that the native linker is
  14407. *** used, and then restart.
  14408. EOF
  14409. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14410. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14411. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14412. else
  14413. ld_shlibs_GCJ=no
  14414. fi
  14415. ;;
  14416. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  14417. case `$LD -v 2>&1` in
  14418. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  14419. ld_shlibs_GCJ=no
  14420. cat <<_LT_EOF 1>&2
  14421. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  14422. *** reliably create shared libraries on SCO systems. Therefore, libtool
  14423. *** is disabling shared libraries support. We urge you to upgrade GNU
  14424. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  14425. *** your PATH or compiler configuration so that the native linker is
  14426. *** used, and then restart.
  14427. _LT_EOF
  14428. ;;
  14429. *)
  14430. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14431. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  14432. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  14433. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  14434. else
  14435. ld_shlibs_GCJ=no
  14436. fi
  14437. ;;
  14438. esac
  14439. ;;
  14440. sunos4*)
  14441. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14442. wlarc=
  14443. hardcode_direct_GCJ=yes
  14444. hardcode_shlibpath_var_GCJ=no
  14445. ;;
  14446. *)
  14447. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14448. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14449. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14450. else
  14451. ld_shlibs_GCJ=no
  14452. fi
  14453. ;;
  14454. esac
  14455. if test "$ld_shlibs_GCJ" = no; then
  14456. runpath_var=
  14457. hardcode_libdir_flag_spec_GCJ=
  14458. export_dynamic_flag_spec_GCJ=
  14459. whole_archive_flag_spec_GCJ=
  14460. fi
  14461. else
  14462. # PORTME fill in a description of your system's linker (not GNU ld)
  14463. case $host_os in
  14464. aix3*)
  14465. allow_undefined_flag_GCJ=unsupported
  14466. always_export_symbols_GCJ=yes
  14467. 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'
  14468. # Note: this linker hardcodes the directories in LIBPATH if there
  14469. # are no directories specified by -L.
  14470. hardcode_minus_L_GCJ=yes
  14471. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  14472. # Neither direct hardcoding nor static linking is supported with a
  14473. # broken collect2.
  14474. hardcode_direct_GCJ=unsupported
  14475. fi
  14476. ;;
  14477. aix4* | aix5*)
  14478. if test "$host_cpu" = ia64; then
  14479. # On IA64, the linker does run time linking by default, so we don't
  14480. # have to do anything special.
  14481. aix_use_runtimelinking=no
  14482. exp_sym_flag='-Bexport'
  14483. no_entry_flag=""
  14484. else
  14485. # If we're using GNU nm, then we don't want the "-C" option.
  14486. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14487. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  14488. 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'
  14489. else
  14490. 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'
  14491. fi
  14492. aix_use_runtimelinking=no
  14493. # Test if we are trying to use run time linking or normal
  14494. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14495. # need to do runtime linking.
  14496. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  14497. for ld_flag in $LDFLAGS; do
  14498. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  14499. aix_use_runtimelinking=yes
  14500. break
  14501. fi
  14502. done
  14503. ;;
  14504. esac
  14505. exp_sym_flag='-bexport'
  14506. no_entry_flag='-bnoentry'
  14507. fi
  14508. # When large executables or shared objects are built, AIX ld can
  14509. # have problems creating the table of contents. If linking a library
  14510. # or program results in "error TOC overflow" add -mminimal-toc to
  14511. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  14512. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  14513. archive_cmds_GCJ=''
  14514. hardcode_direct_GCJ=yes
  14515. hardcode_libdir_separator_GCJ=':'
  14516. link_all_deplibs_GCJ=yes
  14517. if test "$GCC" = yes; then
  14518. case $host_os in aix4.[012]|aix4.[012].*)
  14519. # We only want to do this on AIX 4.2 and lower, the check
  14520. # below for broken collect2 doesn't work under 4.3+
  14521. collect2name=`${CC} -print-prog-name=collect2`
  14522. if test -f "$collect2name" && \
  14523. strings "$collect2name" | grep resolve_lib_name >/dev/null
  14524. then
  14525. # We have reworked collect2
  14526. hardcode_direct_GCJ=yes
  14527. else
  14528. # We have old collect2
  14529. hardcode_direct_GCJ=unsupported
  14530. # It fails to find uninstalled libraries when the uninstalled
  14531. # path is not listed in the libpath. Setting hardcode_minus_L
  14532. # to unsupported forces relinking
  14533. hardcode_minus_L_GCJ=yes
  14534. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14535. hardcode_libdir_separator_GCJ=
  14536. fi
  14537. ;;
  14538. esac
  14539. shared_flag='-shared'
  14540. if test "$aix_use_runtimelinking" = yes; then
  14541. shared_flag="$shared_flag "'${wl}-G'
  14542. fi
  14543. else
  14544. # not using gcc
  14545. if test "$host_cpu" = ia64; then
  14546. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  14547. # chokes on -Wl,-G. The following line is correct:
  14548. shared_flag='-G'
  14549. else
  14550. if test "$aix_use_runtimelinking" = yes; then
  14551. shared_flag='${wl}-G'
  14552. else
  14553. shared_flag='${wl}-bM:SRE'
  14554. fi
  14555. fi
  14556. fi
  14557. # It seems that -bexpall does not export symbols beginning with
  14558. # underscore (_), so it is better to generate a list of symbols to export.
  14559. always_export_symbols_GCJ=yes
  14560. if test "$aix_use_runtimelinking" = yes; then
  14561. # Warning - without using the other runtime loading flags (-brtl),
  14562. # -berok will link without error, but may produce a broken library.
  14563. allow_undefined_flag_GCJ='-berok'
  14564. # Determine the default libpath from the value encoded in an empty executable.
  14565. cat >conftest.$ac_ext <<_ACEOF
  14566. /* confdefs.h. */
  14567. _ACEOF
  14568. cat confdefs.h >>conftest.$ac_ext
  14569. cat >>conftest.$ac_ext <<_ACEOF
  14570. /* end confdefs.h. */
  14571. int
  14572. main ()
  14573. {
  14574. ;
  14575. return 0;
  14576. }
  14577. _ACEOF
  14578. rm -f conftest.$ac_objext conftest$ac_exeext
  14579. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14580. (eval $ac_link) 2>conftest.er1
  14581. ac_status=$?
  14582. grep -v '^ *+' conftest.er1 >conftest.err
  14583. rm -f conftest.er1
  14584. cat conftest.err >&5
  14585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14586. (exit $ac_status); } &&
  14587. { ac_try='test -z "$ac_c_werror_flag"
  14588. || test ! -s conftest.err'
  14589. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14590. (eval $ac_try) 2>&5
  14591. ac_status=$?
  14592. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14593. (exit $ac_status); }; } &&
  14594. { ac_try='test -s conftest$ac_exeext'
  14595. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14596. (eval $ac_try) 2>&5
  14597. ac_status=$?
  14598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14599. (exit $ac_status); }; }; then
  14600. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14601. }'`
  14602. # Check for a 64-bit object if we didn't find anything.
  14603. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14604. }'`; fi
  14605. else
  14606. echo "$as_me: failed program was:" >&5
  14607. sed 's/^/| /' conftest.$ac_ext >&5
  14608. fi
  14609. rm -f conftest.err conftest.$ac_objext \
  14610. conftest$ac_exeext conftest.$ac_ext
  14611. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14612. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14613. 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"
  14614. else
  14615. if test "$host_cpu" = ia64; then
  14616. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  14617. allow_undefined_flag_GCJ="-z nodefs"
  14618. 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"
  14619. else
  14620. # Determine the default libpath from the value encoded in an empty executable.
  14621. cat >conftest.$ac_ext <<_ACEOF
  14622. /* confdefs.h. */
  14623. _ACEOF
  14624. cat confdefs.h >>conftest.$ac_ext
  14625. cat >>conftest.$ac_ext <<_ACEOF
  14626. /* end confdefs.h. */
  14627. int
  14628. main ()
  14629. {
  14630. ;
  14631. return 0;
  14632. }
  14633. _ACEOF
  14634. rm -f conftest.$ac_objext conftest$ac_exeext
  14635. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14636. (eval $ac_link) 2>conftest.er1
  14637. ac_status=$?
  14638. grep -v '^ *+' conftest.er1 >conftest.err
  14639. rm -f conftest.er1
  14640. cat conftest.err >&5
  14641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14642. (exit $ac_status); } &&
  14643. { ac_try='test -z "$ac_c_werror_flag"
  14644. || test ! -s conftest.err'
  14645. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14646. (eval $ac_try) 2>&5
  14647. ac_status=$?
  14648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14649. (exit $ac_status); }; } &&
  14650. { ac_try='test -s conftest$ac_exeext'
  14651. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14652. (eval $ac_try) 2>&5
  14653. ac_status=$?
  14654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14655. (exit $ac_status); }; }; then
  14656. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14657. }'`
  14658. # Check for a 64-bit object if we didn't find anything.
  14659. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14660. }'`; fi
  14661. else
  14662. echo "$as_me: failed program was:" >&5
  14663. sed 's/^/| /' conftest.$ac_ext >&5
  14664. fi
  14665. rm -f conftest.err conftest.$ac_objext \
  14666. conftest$ac_exeext conftest.$ac_ext
  14667. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14668. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14669. # Warning - without using the other run time loading flags,
  14670. # -berok will link without error, but may produce a broken library.
  14671. no_undefined_flag_GCJ=' ${wl}-bernotok'
  14672. allow_undefined_flag_GCJ=' ${wl}-berok'
  14673. # Exported symbols can be pulled into shared objects from archives
  14674. whole_archive_flag_spec_GCJ='$convenience'
  14675. archive_cmds_need_lc_GCJ=yes
  14676. # This is similar to how AIX traditionally builds its shared libraries.
  14677. 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'
  14678. fi
  14679. fi
  14680. ;;
  14681. amigaos*)
  14682. 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)'
  14683. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14684. hardcode_minus_L_GCJ=yes
  14685. # see comment about different semantics on the GNU ld section
  14686. ld_shlibs_GCJ=no
  14687. ;;
  14688. bsdi[45]*)
  14689. export_dynamic_flag_spec_GCJ=-rdynamic
  14690. ;;
  14691. cygwin* | mingw* | pw32*)
  14692. # When not using gcc, we currently assume that we are using
  14693. # Microsoft Visual C++.
  14694. # hardcode_libdir_flag_spec is actually meaningless, as there is
  14695. # no search path for DLLs.
  14696. hardcode_libdir_flag_spec_GCJ=' '
  14697. allow_undefined_flag_GCJ=unsupported
  14698. # Tell ltmain to make .lib files, not .a files.
  14699. libext=lib
  14700. # Tell ltmain to make .dll files, not .so files.
  14701. shrext_cmds=".dll"
  14702. # FIXME: Setting linknames here is a bad hack.
  14703. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  14704. # The linker will automatically build a .lib file if we build a DLL.
  14705. old_archive_From_new_cmds_GCJ='true'
  14706. # FIXME: Should let the user specify the lib program.
  14707. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  14708. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  14709. enable_shared_with_static_runtimes_GCJ=yes
  14710. ;;
  14711. darwin* | rhapsody*)
  14712. case $host_os in
  14713. rhapsody* | darwin1.[012])
  14714. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  14715. ;;
  14716. *) # Darwin 1.3 on
  14717. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  14718. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  14719. else
  14720. case ${MACOSX_DEPLOYMENT_TARGET} in
  14721. 10.[012])
  14722. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  14723. ;;
  14724. 10.*)
  14725. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  14726. ;;
  14727. esac
  14728. fi
  14729. ;;
  14730. esac
  14731. archive_cmds_need_lc_GCJ=no
  14732. hardcode_direct_GCJ=no
  14733. hardcode_automatic_GCJ=yes
  14734. hardcode_shlibpath_var_GCJ=unsupported
  14735. whole_archive_flag_spec_GCJ=''
  14736. link_all_deplibs_GCJ=yes
  14737. if test "$GCC" = yes ; then
  14738. output_verbose_link_cmd='echo'
  14739. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  14740. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  14741. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  14742. 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}'
  14743. 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}'
  14744. else
  14745. case $cc_basename in
  14746. xlc*)
  14747. output_verbose_link_cmd='echo'
  14748. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  14749. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  14750. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  14751. 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14752. 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}'
  14753. ;;
  14754. *)
  14755. ld_shlibs_GCJ=no
  14756. ;;
  14757. esac
  14758. fi
  14759. ;;
  14760. dgux*)
  14761. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14762. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14763. hardcode_shlibpath_var_GCJ=no
  14764. ;;
  14765. freebsd1*)
  14766. ld_shlibs_GCJ=no
  14767. ;;
  14768. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  14769. # support. Future versions do this automatically, but an explicit c++rt0.o
  14770. # does not break anything, and helps significantly (at the cost of a little
  14771. # extra space).
  14772. freebsd2.2*)
  14773. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  14774. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14775. hardcode_direct_GCJ=yes
  14776. hardcode_shlibpath_var_GCJ=no
  14777. ;;
  14778. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  14779. freebsd2*)
  14780. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14781. hardcode_direct_GCJ=yes
  14782. hardcode_minus_L_GCJ=yes
  14783. hardcode_shlibpath_var_GCJ=no
  14784. ;;
  14785. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  14786. freebsd* | kfreebsd*-gnu | dragonfly*)
  14787. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  14788. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14789. hardcode_direct_GCJ=yes
  14790. hardcode_shlibpath_var_GCJ=no
  14791. ;;
  14792. hpux9*)
  14793. if test "$GCC" = yes; then
  14794. 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'
  14795. else
  14796. 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'
  14797. fi
  14798. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  14799. hardcode_libdir_separator_GCJ=:
  14800. hardcode_direct_GCJ=yes
  14801. # hardcode_minus_L: Not really in the search PATH,
  14802. # but as the default location of the library.
  14803. hardcode_minus_L_GCJ=yes
  14804. export_dynamic_flag_spec_GCJ='${wl}-E'
  14805. ;;
  14806. hpux10*)
  14807. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  14808. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14809. else
  14810. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  14811. fi
  14812. if test "$with_gnu_ld" = no; then
  14813. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  14814. hardcode_libdir_separator_GCJ=:
  14815. hardcode_direct_GCJ=yes
  14816. export_dynamic_flag_spec_GCJ='${wl}-E'
  14817. # hardcode_minus_L: Not really in the search PATH,
  14818. # but as the default location of the library.
  14819. hardcode_minus_L_GCJ=yes
  14820. fi
  14821. ;;
  14822. hpux11*)
  14823. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  14824. case $host_cpu in
  14825. hppa*64*)
  14826. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14827. ;;
  14828. ia64*)
  14829. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  14830. ;;
  14831. *)
  14832. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14833. ;;
  14834. esac
  14835. else
  14836. case $host_cpu in
  14837. hppa*64*)
  14838. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14839. ;;
  14840. ia64*)
  14841. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  14842. ;;
  14843. *)
  14844. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14845. ;;
  14846. esac
  14847. fi
  14848. if test "$with_gnu_ld" = no; then
  14849. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  14850. hardcode_libdir_separator_GCJ=:
  14851. case $host_cpu in
  14852. hppa*64*|ia64*)
  14853. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  14854. hardcode_direct_GCJ=no
  14855. hardcode_shlibpath_var_GCJ=no
  14856. ;;
  14857. *)
  14858. hardcode_direct_GCJ=yes
  14859. export_dynamic_flag_spec_GCJ='${wl}-E'
  14860. # hardcode_minus_L: Not really in the search PATH,
  14861. # but as the default location of the library.
  14862. hardcode_minus_L_GCJ=yes
  14863. ;;
  14864. esac
  14865. fi
  14866. ;;
  14867. irix5* | irix6* | nonstopux*)
  14868. if test "$GCC" = yes; then
  14869. 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'
  14870. else
  14871. 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'
  14872. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  14873. fi
  14874. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14875. hardcode_libdir_separator_GCJ=:
  14876. link_all_deplibs_GCJ=yes
  14877. ;;
  14878. netbsd*)
  14879. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14880. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  14881. else
  14882. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  14883. fi
  14884. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14885. hardcode_direct_GCJ=yes
  14886. hardcode_shlibpath_var_GCJ=no
  14887. ;;
  14888. newsos6)
  14889. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14890. hardcode_direct_GCJ=yes
  14891. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14892. hardcode_libdir_separator_GCJ=:
  14893. hardcode_shlibpath_var_GCJ=no
  14894. ;;
  14895. openbsd*)
  14896. hardcode_direct_GCJ=yes
  14897. hardcode_shlibpath_var_GCJ=no
  14898. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14899. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14900. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  14901. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  14902. export_dynamic_flag_spec_GCJ='${wl}-E'
  14903. else
  14904. case $host_os in
  14905. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  14906. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14907. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14908. ;;
  14909. *)
  14910. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14911. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  14912. ;;
  14913. esac
  14914. fi
  14915. ;;
  14916. os2*)
  14917. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14918. hardcode_minus_L_GCJ=yes
  14919. allow_undefined_flag_GCJ=unsupported
  14920. 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'
  14921. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  14922. ;;
  14923. osf3*)
  14924. if test "$GCC" = yes; then
  14925. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  14926. 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'
  14927. else
  14928. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  14929. 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'
  14930. fi
  14931. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14932. hardcode_libdir_separator_GCJ=:
  14933. ;;
  14934. osf4* | osf5*) # as osf3* with the addition of -msym flag
  14935. if test "$GCC" = yes; then
  14936. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  14937. 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'
  14938. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14939. else
  14940. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  14941. 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'
  14942. 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~
  14943. $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'
  14944. # Both c and cxx compiler support -rpath directly
  14945. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  14946. fi
  14947. hardcode_libdir_separator_GCJ=:
  14948. ;;
  14949. solaris*)
  14950. no_undefined_flag_GCJ=' -z text'
  14951. if test "$GCC" = yes; then
  14952. wlarc='${wl}'
  14953. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14954. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14955. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  14956. else
  14957. wlarc=''
  14958. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14959. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14960. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  14961. fi
  14962. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14963. hardcode_shlibpath_var_GCJ=no
  14964. case $host_os in
  14965. solaris2.[0-5] | solaris2.[0-5].*) ;;
  14966. *)
  14967. # The compiler driver will combine linker options so we
  14968. # cannot just pass the convience library names through
  14969. # without $wl, iff we do not link with $LD.
  14970. # Luckily, gcc supports the same syntax we need for Sun Studio.
  14971. # Supported since Solaris 2.6 (maybe 2.5.1?)
  14972. case $wlarc in
  14973. '')
  14974. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  14975. *)
  14976. whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  14977. esac ;;
  14978. esac
  14979. link_all_deplibs_GCJ=yes
  14980. ;;
  14981. sunos4*)
  14982. if test "x$host_vendor" = xsequent; then
  14983. # Use $CC to link under sequent, because it throws in some extra .o
  14984. # files that make .init and .fini sections work.
  14985. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  14986. else
  14987. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  14988. fi
  14989. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14990. hardcode_direct_GCJ=yes
  14991. hardcode_minus_L_GCJ=yes
  14992. hardcode_shlibpath_var_GCJ=no
  14993. ;;
  14994. sysv4)
  14995. case $host_vendor in
  14996. sni)
  14997. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14998. hardcode_direct_GCJ=yes # is this really true???
  14999. ;;
  15000. siemens)
  15001. ## LD is ld it makes a PLAMLIB
  15002. ## CC just makes a GrossModule.
  15003. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15004. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  15005. hardcode_direct_GCJ=no
  15006. ;;
  15007. motorola)
  15008. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15009. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  15010. ;;
  15011. esac
  15012. runpath_var='LD_RUN_PATH'
  15013. hardcode_shlibpath_var_GCJ=no
  15014. ;;
  15015. sysv4.3*)
  15016. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15017. hardcode_shlibpath_var_GCJ=no
  15018. export_dynamic_flag_spec_GCJ='-Bexport'
  15019. ;;
  15020. sysv4*MP*)
  15021. if test -d /usr/nec; then
  15022. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15023. hardcode_shlibpath_var_GCJ=no
  15024. runpath_var=LD_RUN_PATH
  15025. hardcode_runpath_var=yes
  15026. ld_shlibs_GCJ=yes
  15027. fi
  15028. ;;
  15029. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  15030. no_undefined_flag_GCJ='${wl}-z,text'
  15031. archive_cmds_need_lc_GCJ=no
  15032. hardcode_shlibpath_var_GCJ=no
  15033. runpath_var='LD_RUN_PATH'
  15034. if test "$GCC" = yes; then
  15035. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15036. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15037. else
  15038. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15039. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15040. fi
  15041. ;;
  15042. sysv5* | sco3.2v5* | sco5v6*)
  15043. # Note: We can NOT use -z defs as we might desire, because we do not
  15044. # link with -lc, and that would cause any symbols used from libc to
  15045. # always be unresolved, which means just about no library would
  15046. # ever link correctly. If we're not using GNU ld we use -z text
  15047. # though, which does catch some bad symbols but isn't as heavy-handed
  15048. # as -z defs.
  15049. no_undefined_flag_GCJ='${wl}-z,text'
  15050. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  15051. archive_cmds_need_lc_GCJ=no
  15052. hardcode_shlibpath_var_GCJ=no
  15053. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  15054. hardcode_libdir_separator_GCJ=':'
  15055. link_all_deplibs_GCJ=yes
  15056. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  15057. runpath_var='LD_RUN_PATH'
  15058. if test "$GCC" = yes; then
  15059. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15060. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15061. else
  15062. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15063. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15064. fi
  15065. ;;
  15066. uts4*)
  15067. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15068. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15069. hardcode_shlibpath_var_GCJ=no
  15070. ;;
  15071. *)
  15072. ld_shlibs_GCJ=no
  15073. ;;
  15074. esac
  15075. fi
  15076. echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  15077. echo "${ECHO_T}$ld_shlibs_GCJ" >&6
  15078. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  15079. #
  15080. # Do we need to explicitly link libc?
  15081. #
  15082. case "x$archive_cmds_need_lc_GCJ" in
  15083. x|xyes)
  15084. # Assume -lc should be added
  15085. archive_cmds_need_lc_GCJ=yes
  15086. if test "$enable_shared" = yes && test "$GCC" = yes; then
  15087. case $archive_cmds_GCJ in
  15088. *'~'*)
  15089. # FIXME: we may have to deal with multi-command sequences.
  15090. ;;
  15091. '$CC '*)
  15092. # Test whether the compiler implicitly links with -lc since on some
  15093. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  15094. # to ld, don't add -lc before -lgcc.
  15095. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  15096. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  15097. $rm conftest*
  15098. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15099. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15100. (eval $ac_compile) 2>&5
  15101. ac_status=$?
  15102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15103. (exit $ac_status); } 2>conftest.err; then
  15104. soname=conftest
  15105. lib=conftest
  15106. libobjs=conftest.$ac_objext
  15107. deplibs=
  15108. wl=$lt_prog_compiler_wl_GCJ
  15109. pic_flag=$lt_prog_compiler_pic_GCJ
  15110. compiler_flags=-v
  15111. linker_flags=-v
  15112. verstring=
  15113. output_objdir=.
  15114. libname=conftest
  15115. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  15116. allow_undefined_flag_GCJ=
  15117. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  15118. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  15119. ac_status=$?
  15120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15121. (exit $ac_status); }
  15122. then
  15123. archive_cmds_need_lc_GCJ=no
  15124. else
  15125. archive_cmds_need_lc_GCJ=yes
  15126. fi
  15127. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  15128. else
  15129. cat conftest.err 1>&5
  15130. fi
  15131. $rm conftest*
  15132. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  15133. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
  15134. ;;
  15135. esac
  15136. fi
  15137. ;;
  15138. esac
  15139. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  15140. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  15141. library_names_spec=
  15142. libname_spec='lib$name'
  15143. soname_spec=
  15144. shrext_cmds=".so"
  15145. postinstall_cmds=
  15146. postuninstall_cmds=
  15147. finish_cmds=
  15148. finish_eval=
  15149. shlibpath_var=
  15150. shlibpath_overrides_runpath=unknown
  15151. version_type=none
  15152. dynamic_linker="$host_os ld.so"
  15153. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15154. if test "$GCC" = yes; then
  15155. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15156. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  15157. # if the path contains ";" then we assume it to be the separator
  15158. # otherwise default to the standard path separator (i.e. ":") - it is
  15159. # assumed that no part of a normal pathname contains ";" but that should
  15160. # okay in the real world where ";" in dirpaths is itself problematic.
  15161. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15162. else
  15163. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15164. fi
  15165. else
  15166. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15167. fi
  15168. need_lib_prefix=unknown
  15169. hardcode_into_libs=no
  15170. # when you set need_version to no, make sure it does not cause -set_version
  15171. # flags to be left without arguments
  15172. need_version=unknown
  15173. case $host_os in
  15174. aix3*)
  15175. version_type=linux
  15176. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  15177. shlibpath_var=LIBPATH
  15178. # AIX 3 has no versioning support, so we append a major version to the name.
  15179. soname_spec='${libname}${release}${shared_ext}$major'
  15180. ;;
  15181. aix4* | aix5*)
  15182. version_type=linux
  15183. need_lib_prefix=no
  15184. need_version=no
  15185. hardcode_into_libs=yes
  15186. if test "$host_cpu" = ia64; then
  15187. # AIX 5 supports IA64
  15188. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  15189. shlibpath_var=LD_LIBRARY_PATH
  15190. else
  15191. # With GCC up to 2.95.x, collect2 would create an import file
  15192. # for dependence libraries. The import file would start with
  15193. # the line `#! .'. This would cause the generated library to
  15194. # depend on `.', always an invalid library. This was fixed in
  15195. # development snapshots of GCC prior to 3.0.
  15196. case $host_os in
  15197. aix4 | aix4.[01] | aix4.[01].*)
  15198. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15199. echo ' yes '
  15200. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  15201. :
  15202. else
  15203. can_build_shared=no
  15204. fi
  15205. ;;
  15206. esac
  15207. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  15208. # soname into executable. Probably we can add versioning support to
  15209. # collect2, so additional links can be useful in future.
  15210. if test "$aix_use_runtimelinking" = yes; then
  15211. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15212. # instead of lib<name>.a to let people know that these are not
  15213. # typical AIX shared libraries.
  15214. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15215. else
  15216. # We preserve .a as extension for shared libraries through AIX4.2
  15217. # and later when we are not doing run time linking.
  15218. library_names_spec='${libname}${release}.a $libname.a'
  15219. soname_spec='${libname}${release}${shared_ext}$major'
  15220. fi
  15221. shlibpath_var=LIBPATH
  15222. fi
  15223. ;;
  15224. amigaos*)
  15225. library_names_spec='$libname.ixlibrary $libname.a'
  15226. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15227. 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'
  15228. ;;
  15229. beos*)
  15230. library_names_spec='${libname}${shared_ext}'
  15231. dynamic_linker="$host_os ld.so"
  15232. shlibpath_var=LIBRARY_PATH
  15233. ;;
  15234. bsdi[45]*)
  15235. version_type=linux
  15236. need_version=no
  15237. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15238. soname_spec='${libname}${release}${shared_ext}$major'
  15239. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  15240. shlibpath_var=LD_LIBRARY_PATH
  15241. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15242. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15243. # the default ld.so.conf also contains /usr/contrib/lib and
  15244. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15245. # libtool to hard-code these into programs
  15246. ;;
  15247. cygwin* | mingw* | pw32*)
  15248. version_type=windows
  15249. shrext_cmds=".dll"
  15250. need_version=no
  15251. need_lib_prefix=no
  15252. case $GCC,$host_os in
  15253. yes,cygwin* | yes,mingw* | yes,pw32*)
  15254. library_names_spec='$libname.dll.a'
  15255. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15256. postinstall_cmds='base_file=`basename \${file}`~
  15257. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  15258. dldir=$destdir/`dirname \$dlpath`~
  15259. test -d \$dldir || mkdir -p \$dldir~
  15260. $install_prog $dir/$dlname \$dldir/$dlname~
  15261. chmod a+x \$dldir/$dlname'
  15262. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15263. dlpath=$dir/\$dldll~
  15264. $rm \$dlpath'
  15265. shlibpath_overrides_runpath=yes
  15266. case $host_os in
  15267. cygwin*)
  15268. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  15269. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15270. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  15271. ;;
  15272. mingw*)
  15273. # MinGW DLLs use traditional 'lib' prefix
  15274. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15275. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15276. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  15277. # It is most probably a Windows format PATH printed by
  15278. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  15279. # path with ; separators, and with drive letters. We can handle the
  15280. # drive letters (cygwin fileutils understands them), so leave them,
  15281. # especially as we might pass files found there to a mingw objdump,
  15282. # which wouldn't understand a cygwinified path. Ahh.
  15283. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15284. else
  15285. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15286. fi
  15287. ;;
  15288. pw32*)
  15289. # pw32 DLLs use 'pw' prefix rather than 'lib'
  15290. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15291. ;;
  15292. esac
  15293. ;;
  15294. *)
  15295. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  15296. ;;
  15297. esac
  15298. dynamic_linker='Win32 ld.exe'
  15299. # FIXME: first we should search . and the directory the executable is in
  15300. shlibpath_var=PATH
  15301. ;;
  15302. darwin* | rhapsody*)
  15303. dynamic_linker="$host_os dyld"
  15304. version_type=darwin
  15305. need_lib_prefix=no
  15306. need_version=no
  15307. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  15308. soname_spec='${libname}${release}${major}$shared_ext'
  15309. shlibpath_overrides_runpath=yes
  15310. shlibpath_var=DYLD_LIBRARY_PATH
  15311. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  15312. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  15313. if test "$GCC" = yes; then
  15314. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  15315. else
  15316. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  15317. fi
  15318. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  15319. ;;
  15320. dgux*)
  15321. version_type=linux
  15322. need_lib_prefix=no
  15323. need_version=no
  15324. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  15325. soname_spec='${libname}${release}${shared_ext}$major'
  15326. shlibpath_var=LD_LIBRARY_PATH
  15327. ;;
  15328. freebsd1*)
  15329. dynamic_linker=no
  15330. ;;
  15331. kfreebsd*-gnu)
  15332. version_type=linux
  15333. need_lib_prefix=no
  15334. need_version=no
  15335. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15336. soname_spec='${libname}${release}${shared_ext}$major'
  15337. shlibpath_var=LD_LIBRARY_PATH
  15338. shlibpath_overrides_runpath=no
  15339. hardcode_into_libs=yes
  15340. dynamic_linker='GNU ld.so'
  15341. ;;
  15342. freebsd* | dragonfly*)
  15343. # DragonFly does not have aout. When/if they implement a new
  15344. # versioning mechanism, adjust this.
  15345. if test -x /usr/bin/objformat; then
  15346. objformat=`/usr/bin/objformat`
  15347. else
  15348. case $host_os in
  15349. freebsd[123]*) objformat=aout ;;
  15350. *) objformat=elf ;;
  15351. esac
  15352. fi
  15353. version_type=freebsd-$objformat
  15354. case $version_type in
  15355. freebsd-elf*)
  15356. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15357. need_version=no
  15358. need_lib_prefix=no
  15359. ;;
  15360. freebsd-*)
  15361. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  15362. need_version=yes
  15363. ;;
  15364. esac
  15365. shlibpath_var=LD_LIBRARY_PATH
  15366. case $host_os in
  15367. freebsd2*)
  15368. shlibpath_overrides_runpath=yes
  15369. ;;
  15370. freebsd3.[01]* | freebsdelf3.[01]*)
  15371. shlibpath_overrides_runpath=yes
  15372. hardcode_into_libs=yes
  15373. ;;
  15374. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  15375. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  15376. shlibpath_overrides_runpath=no
  15377. hardcode_into_libs=yes
  15378. ;;
  15379. freebsd*) # from 4.6 on
  15380. shlibpath_overrides_runpath=yes
  15381. hardcode_into_libs=yes
  15382. ;;
  15383. esac
  15384. ;;
  15385. gnu*)
  15386. version_type=linux
  15387. need_lib_prefix=no
  15388. need_version=no
  15389. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  15390. soname_spec='${libname}${release}${shared_ext}$major'
  15391. shlibpath_var=LD_LIBRARY_PATH
  15392. hardcode_into_libs=yes
  15393. ;;
  15394. hpux9* | hpux10* | hpux11*)
  15395. # Give a soname corresponding to the major version so that dld.sl refuses to
  15396. # link against other versions.
  15397. version_type=sunos
  15398. need_lib_prefix=no
  15399. need_version=no
  15400. case $host_cpu in
  15401. ia64*)
  15402. shrext_cmds='.so'
  15403. hardcode_into_libs=yes
  15404. dynamic_linker="$host_os dld.so"
  15405. shlibpath_var=LD_LIBRARY_PATH
  15406. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15407. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15408. soname_spec='${libname}${release}${shared_ext}$major'
  15409. if test "X$HPUX_IA64_MODE" = X32; then
  15410. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15411. else
  15412. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15413. fi
  15414. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15415. ;;
  15416. hppa*64*)
  15417. shrext_cmds='.sl'
  15418. hardcode_into_libs=yes
  15419. dynamic_linker="$host_os dld.sl"
  15420. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15421. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15422. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15423. soname_spec='${libname}${release}${shared_ext}$major'
  15424. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15425. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15426. ;;
  15427. *)
  15428. shrext_cmds='.sl'
  15429. dynamic_linker="$host_os dld.sl"
  15430. shlibpath_var=SHLIB_PATH
  15431. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15432. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15433. soname_spec='${libname}${release}${shared_ext}$major'
  15434. ;;
  15435. esac
  15436. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  15437. postinstall_cmds='chmod 555 $lib'
  15438. ;;
  15439. interix3*)
  15440. version_type=linux
  15441. need_lib_prefix=no
  15442. need_version=no
  15443. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15444. soname_spec='${libname}${release}${shared_ext}$major'
  15445. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  15446. shlibpath_var=LD_LIBRARY_PATH
  15447. shlibpath_overrides_runpath=no
  15448. hardcode_into_libs=yes
  15449. ;;
  15450. irix5* | irix6* | nonstopux*)
  15451. case $host_os in
  15452. nonstopux*) version_type=nonstopux ;;
  15453. *)
  15454. if test "$lt_cv_prog_gnu_ld" = yes; then
  15455. version_type=linux
  15456. else
  15457. version_type=irix
  15458. fi ;;
  15459. esac
  15460. need_lib_prefix=no
  15461. need_version=no
  15462. soname_spec='${libname}${release}${shared_ext}$major'
  15463. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  15464. case $host_os in
  15465. irix5* | nonstopux*)
  15466. libsuff= shlibsuff=
  15467. ;;
  15468. *)
  15469. case $LD in # libtool.m4 will add one of these switches to LD
  15470. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15471. libsuff= shlibsuff= libmagic=32-bit;;
  15472. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15473. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15474. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15475. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15476. *) libsuff= shlibsuff= libmagic=never-match;;
  15477. esac
  15478. ;;
  15479. esac
  15480. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15481. shlibpath_overrides_runpath=no
  15482. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15483. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15484. hardcode_into_libs=yes
  15485. ;;
  15486. # No shared lib support for Linux oldld, aout, or coff.
  15487. linux*oldld* | linux*aout* | linux*coff*)
  15488. dynamic_linker=no
  15489. ;;
  15490. # This must be Linux ELF.
  15491. linux*)
  15492. version_type=linux
  15493. need_lib_prefix=no
  15494. need_version=no
  15495. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15496. soname_spec='${libname}${release}${shared_ext}$major'
  15497. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15498. shlibpath_var=LD_LIBRARY_PATH
  15499. shlibpath_overrides_runpath=no
  15500. # This implies no fast_install, which is unacceptable.
  15501. # Some rework will be needed to allow for fast_install
  15502. # before this can be enabled.
  15503. hardcode_into_libs=yes
  15504. # Append ld.so.conf contents to the search path
  15505. if test -f /etc/ld.so.conf; then
  15506. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  15507. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15508. fi
  15509. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15510. # powerpc, because MkLinux only supported shared libraries with the
  15511. # GNU dynamic linker. Since this was broken with cross compilers,
  15512. # most powerpc-linux boxes support dynamic linking these days and
  15513. # people can always --disable-shared, the test was removed, and we
  15514. # assume the GNU/Linux dynamic linker is in use.
  15515. dynamic_linker='GNU/Linux ld.so'
  15516. ;;
  15517. knetbsd*-gnu)
  15518. version_type=linux
  15519. need_lib_prefix=no
  15520. need_version=no
  15521. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15522. soname_spec='${libname}${release}${shared_ext}$major'
  15523. shlibpath_var=LD_LIBRARY_PATH
  15524. shlibpath_overrides_runpath=no
  15525. hardcode_into_libs=yes
  15526. dynamic_linker='GNU ld.so'
  15527. ;;
  15528. netbsd*)
  15529. version_type=sunos
  15530. need_lib_prefix=no
  15531. need_version=no
  15532. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15533. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15534. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15535. dynamic_linker='NetBSD (a.out) ld.so'
  15536. else
  15537. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15538. soname_spec='${libname}${release}${shared_ext}$major'
  15539. dynamic_linker='NetBSD ld.elf_so'
  15540. fi
  15541. shlibpath_var=LD_LIBRARY_PATH
  15542. shlibpath_overrides_runpath=yes
  15543. hardcode_into_libs=yes
  15544. ;;
  15545. newsos6)
  15546. version_type=linux
  15547. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15548. shlibpath_var=LD_LIBRARY_PATH
  15549. shlibpath_overrides_runpath=yes
  15550. ;;
  15551. nto-qnx*)
  15552. version_type=linux
  15553. need_lib_prefix=no
  15554. need_version=no
  15555. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15556. soname_spec='${libname}${release}${shared_ext}$major'
  15557. shlibpath_var=LD_LIBRARY_PATH
  15558. shlibpath_overrides_runpath=yes
  15559. ;;
  15560. openbsd*)
  15561. version_type=sunos
  15562. sys_lib_dlsearch_path_spec="/usr/lib"
  15563. need_lib_prefix=no
  15564. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  15565. case $host_os in
  15566. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  15567. *) need_version=no ;;
  15568. esac
  15569. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15570. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15571. shlibpath_var=LD_LIBRARY_PATH
  15572. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15573. case $host_os in
  15574. openbsd2.[89] | openbsd2.[89].*)
  15575. shlibpath_overrides_runpath=no
  15576. ;;
  15577. *)
  15578. shlibpath_overrides_runpath=yes
  15579. ;;
  15580. esac
  15581. else
  15582. shlibpath_overrides_runpath=yes
  15583. fi
  15584. ;;
  15585. os2*)
  15586. libname_spec='$name'
  15587. shrext_cmds=".dll"
  15588. need_lib_prefix=no
  15589. library_names_spec='$libname${shared_ext} $libname.a'
  15590. dynamic_linker='OS/2 ld.exe'
  15591. shlibpath_var=LIBPATH
  15592. ;;
  15593. osf3* | osf4* | osf5*)
  15594. version_type=osf
  15595. need_lib_prefix=no
  15596. need_version=no
  15597. soname_spec='${libname}${release}${shared_ext}$major'
  15598. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15599. shlibpath_var=LD_LIBRARY_PATH
  15600. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15601. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15602. ;;
  15603. solaris*)
  15604. version_type=linux
  15605. need_lib_prefix=no
  15606. need_version=no
  15607. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15608. soname_spec='${libname}${release}${shared_ext}$major'
  15609. shlibpath_var=LD_LIBRARY_PATH
  15610. shlibpath_overrides_runpath=yes
  15611. hardcode_into_libs=yes
  15612. # ldd complains unless libraries are executable
  15613. postinstall_cmds='chmod +x $lib'
  15614. ;;
  15615. sunos4*)
  15616. version_type=sunos
  15617. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15618. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15619. shlibpath_var=LD_LIBRARY_PATH
  15620. shlibpath_overrides_runpath=yes
  15621. if test "$with_gnu_ld" = yes; then
  15622. need_lib_prefix=no
  15623. fi
  15624. need_version=yes
  15625. ;;
  15626. sysv4 | sysv4.3*)
  15627. version_type=linux
  15628. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15629. soname_spec='${libname}${release}${shared_ext}$major'
  15630. shlibpath_var=LD_LIBRARY_PATH
  15631. case $host_vendor in
  15632. sni)
  15633. shlibpath_overrides_runpath=no
  15634. need_lib_prefix=no
  15635. export_dynamic_flag_spec='${wl}-Blargedynsym'
  15636. runpath_var=LD_RUN_PATH
  15637. ;;
  15638. siemens)
  15639. need_lib_prefix=no
  15640. ;;
  15641. motorola)
  15642. need_lib_prefix=no
  15643. need_version=no
  15644. shlibpath_overrides_runpath=no
  15645. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15646. ;;
  15647. esac
  15648. ;;
  15649. sysv4*MP*)
  15650. if test -d /usr/nec ;then
  15651. version_type=linux
  15652. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  15653. soname_spec='$libname${shared_ext}.$major'
  15654. shlibpath_var=LD_LIBRARY_PATH
  15655. fi
  15656. ;;
  15657. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15658. version_type=freebsd-elf
  15659. need_lib_prefix=no
  15660. need_version=no
  15661. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15662. soname_spec='${libname}${release}${shared_ext}$major'
  15663. shlibpath_var=LD_LIBRARY_PATH
  15664. hardcode_into_libs=yes
  15665. if test "$with_gnu_ld" = yes; then
  15666. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15667. shlibpath_overrides_runpath=no
  15668. else
  15669. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15670. shlibpath_overrides_runpath=yes
  15671. case $host_os in
  15672. sco3.2v5*)
  15673. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15674. ;;
  15675. esac
  15676. fi
  15677. sys_lib_dlsearch_path_spec='/usr/lib'
  15678. ;;
  15679. uts4*)
  15680. version_type=linux
  15681. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15682. soname_spec='${libname}${release}${shared_ext}$major'
  15683. shlibpath_var=LD_LIBRARY_PATH
  15684. ;;
  15685. *)
  15686. dynamic_linker=no
  15687. ;;
  15688. esac
  15689. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  15690. echo "${ECHO_T}$dynamic_linker" >&6
  15691. test "$dynamic_linker" = no && can_build_shared=no
  15692. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15693. if test "$GCC" = yes; then
  15694. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15695. fi
  15696. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  15697. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  15698. hardcode_action_GCJ=
  15699. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  15700. test -n "$runpath_var_GCJ" || \
  15701. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  15702. # We can hardcode non-existant directories.
  15703. if test "$hardcode_direct_GCJ" != no &&
  15704. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15705. # have to relink, otherwise we might link with an installed library
  15706. # when we should be linking with a yet-to-be-installed one
  15707. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  15708. test "$hardcode_minus_L_GCJ" != no; then
  15709. # Linking always hardcodes the temporary library directory.
  15710. hardcode_action_GCJ=relink
  15711. else
  15712. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15713. hardcode_action_GCJ=immediate
  15714. fi
  15715. else
  15716. # We cannot hardcode anything, or else we can only hardcode existing
  15717. # directories.
  15718. hardcode_action_GCJ=unsupported
  15719. fi
  15720. echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  15721. echo "${ECHO_T}$hardcode_action_GCJ" >&6
  15722. if test "$hardcode_action_GCJ" = relink; then
  15723. # Fast installation is not supported
  15724. enable_fast_install=no
  15725. elif test "$shlibpath_overrides_runpath" = yes ||
  15726. test "$enable_shared" = no; then
  15727. # Fast installation is not necessary
  15728. enable_fast_install=needless
  15729. fi
  15730. # The else clause should only fire when bootstrapping the
  15731. # libtool distribution, otherwise you forgot to ship ltmain.sh
  15732. # with your package, and you will get complaints that there are
  15733. # no rules to generate ltmain.sh.
  15734. if test -f "$ltmain"; then
  15735. # See if we are running on zsh, and set the options which allow our commands through
  15736. # without removal of \ escapes.
  15737. if test -n "${ZSH_VERSION+set}" ; then
  15738. setopt NO_GLOB_SUBST
  15739. fi
  15740. # Now quote all the things that may contain metacharacters while being
  15741. # careful not to overquote the AC_SUBSTed values. We take copies of the
  15742. # variables and quote the copies for generation of the libtool script.
  15743. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  15744. SED SHELL STRIP \
  15745. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  15746. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  15747. deplibs_check_method reload_flag reload_cmds need_locks \
  15748. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  15749. lt_cv_sys_global_symbol_to_c_name_address \
  15750. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  15751. old_postinstall_cmds old_postuninstall_cmds \
  15752. compiler_GCJ \
  15753. CC_GCJ \
  15754. LD_GCJ \
  15755. lt_prog_compiler_wl_GCJ \
  15756. lt_prog_compiler_pic_GCJ \
  15757. lt_prog_compiler_static_GCJ \
  15758. lt_prog_compiler_no_builtin_flag_GCJ \
  15759. export_dynamic_flag_spec_GCJ \
  15760. thread_safe_flag_spec_GCJ \
  15761. whole_archive_flag_spec_GCJ \
  15762. enable_shared_with_static_runtimes_GCJ \
  15763. old_archive_cmds_GCJ \
  15764. old_archive_from_new_cmds_GCJ \
  15765. predep_objects_GCJ \
  15766. postdep_objects_GCJ \
  15767. predeps_GCJ \
  15768. postdeps_GCJ \
  15769. compiler_lib_search_path_GCJ \
  15770. archive_cmds_GCJ \
  15771. archive_expsym_cmds_GCJ \
  15772. postinstall_cmds_GCJ \
  15773. postuninstall_cmds_GCJ \
  15774. old_archive_from_expsyms_cmds_GCJ \
  15775. allow_undefined_flag_GCJ \
  15776. no_undefined_flag_GCJ \
  15777. export_symbols_cmds_GCJ \
  15778. hardcode_libdir_flag_spec_GCJ \
  15779. hardcode_libdir_flag_spec_ld_GCJ \
  15780. hardcode_libdir_separator_GCJ \
  15781. hardcode_automatic_GCJ \
  15782. module_cmds_GCJ \
  15783. module_expsym_cmds_GCJ \
  15784. lt_cv_prog_compiler_c_o_GCJ \
  15785. exclude_expsyms_GCJ \
  15786. include_expsyms_GCJ; do
  15787. case $var in
  15788. old_archive_cmds_GCJ | \
  15789. old_archive_from_new_cmds_GCJ | \
  15790. archive_cmds_GCJ | \
  15791. archive_expsym_cmds_GCJ | \
  15792. module_cmds_GCJ | \
  15793. module_expsym_cmds_GCJ | \
  15794. old_archive_from_expsyms_cmds_GCJ | \
  15795. export_symbols_cmds_GCJ | \
  15796. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  15797. postinstall_cmds | postuninstall_cmds | \
  15798. old_postinstall_cmds | old_postuninstall_cmds | \
  15799. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  15800. # Double-quote double-evaled strings.
  15801. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  15802. ;;
  15803. *)
  15804. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  15805. ;;
  15806. esac
  15807. done
  15808. case $lt_echo in
  15809. *'\$0 --fallback-echo"')
  15810. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  15811. ;;
  15812. esac
  15813. cfgfile="$ofile"
  15814. cat <<__EOF__ >> "$cfgfile"
  15815. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  15816. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15817. # Shell to use when invoking shell scripts.
  15818. SHELL=$lt_SHELL
  15819. # Whether or not to build shared libraries.
  15820. build_libtool_libs=$enable_shared
  15821. # Whether or not to build static libraries.
  15822. build_old_libs=$enable_static
  15823. # Whether or not to add -lc for building shared libraries.
  15824. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  15825. # Whether or not to disallow shared libs when runtime libs are static
  15826. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  15827. # Whether or not to optimize for fast installation.
  15828. fast_install=$enable_fast_install
  15829. # The host system.
  15830. host_alias=$host_alias
  15831. host=$host
  15832. host_os=$host_os
  15833. # The build system.
  15834. build_alias=$build_alias
  15835. build=$build
  15836. build_os=$build_os
  15837. # An echo program that does not interpret backslashes.
  15838. echo=$lt_echo
  15839. # The archiver.
  15840. AR=$lt_AR
  15841. AR_FLAGS=$lt_AR_FLAGS
  15842. # A C compiler.
  15843. LTCC=$lt_LTCC
  15844. # LTCC compiler flags.
  15845. LTCFLAGS=$lt_LTCFLAGS
  15846. # A language-specific compiler.
  15847. CC=$lt_compiler_GCJ
  15848. # Is the compiler the GNU C compiler?
  15849. with_gcc=$GCC_GCJ
  15850. # An ERE matcher.
  15851. EGREP=$lt_EGREP
  15852. # The linker used to build libraries.
  15853. LD=$lt_LD_GCJ
  15854. # Whether we need hard or soft links.
  15855. LN_S=$lt_LN_S
  15856. # A BSD-compatible nm program.
  15857. NM=$lt_NM
  15858. # A symbol stripping program
  15859. STRIP=$lt_STRIP
  15860. # Used to examine libraries when file_magic_cmd begins "file"
  15861. MAGIC_CMD=$MAGIC_CMD
  15862. # Used on cygwin: DLL creation program.
  15863. DLLTOOL="$DLLTOOL"
  15864. # Used on cygwin: object dumper.
  15865. OBJDUMP="$OBJDUMP"
  15866. # Used on cygwin: assembler.
  15867. AS="$AS"
  15868. # The name of the directory that contains temporary libtool files.
  15869. objdir=$objdir
  15870. # How to create reloadable object files.
  15871. reload_flag=$lt_reload_flag
  15872. reload_cmds=$lt_reload_cmds
  15873. # How to pass a linker flag through the compiler.
  15874. wl=$lt_lt_prog_compiler_wl_GCJ
  15875. # Object file suffix (normally "o").
  15876. objext="$ac_objext"
  15877. # Old archive suffix (normally "a").
  15878. libext="$libext"
  15879. # Shared library suffix (normally ".so").
  15880. shrext_cmds='$shrext_cmds'
  15881. # Executable file suffix (normally "").
  15882. exeext="$exeext"
  15883. # Additional compiler flags for building library objects.
  15884. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  15885. pic_mode=$pic_mode
  15886. # What is the maximum length of a command?
  15887. max_cmd_len=$lt_cv_sys_max_cmd_len
  15888. # Does compiler simultaneously support -c and -o options?
  15889. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  15890. # Must we lock files when doing compilation?
  15891. need_locks=$lt_need_locks
  15892. # Do we need the lib prefix for modules?
  15893. need_lib_prefix=$need_lib_prefix
  15894. # Do we need a version for libraries?
  15895. need_version=$need_version
  15896. # Whether dlopen is supported.
  15897. dlopen_support=$enable_dlopen
  15898. # Whether dlopen of programs is supported.
  15899. dlopen_self=$enable_dlopen_self
  15900. # Whether dlopen of statically linked programs is supported.
  15901. dlopen_self_static=$enable_dlopen_self_static
  15902. # Compiler flag to prevent dynamic linking.
  15903. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  15904. # Compiler flag to turn off builtin functions.
  15905. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  15906. # Compiler flag to allow reflexive dlopens.
  15907. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  15908. # Compiler flag to generate shared objects directly from archives.
  15909. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  15910. # Compiler flag to generate thread-safe objects.
  15911. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  15912. # Library versioning type.
  15913. version_type=$version_type
  15914. # Format of library name prefix.
  15915. libname_spec=$lt_libname_spec
  15916. # List of archive names. First name is the real one, the rest are links.
  15917. # The last name is the one that the linker finds with -lNAME.
  15918. library_names_spec=$lt_library_names_spec
  15919. # The coded name of the library, if different from the real name.
  15920. soname_spec=$lt_soname_spec
  15921. # Commands used to build and install an old-style archive.
  15922. RANLIB=$lt_RANLIB
  15923. old_archive_cmds=$lt_old_archive_cmds_GCJ
  15924. old_postinstall_cmds=$lt_old_postinstall_cmds
  15925. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15926. # Create an old-style archive from a shared archive.
  15927. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  15928. # Create a temporary old-style archive to link instead of a shared archive.
  15929. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  15930. # Commands used to build and install a shared archive.
  15931. archive_cmds=$lt_archive_cmds_GCJ
  15932. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  15933. postinstall_cmds=$lt_postinstall_cmds
  15934. postuninstall_cmds=$lt_postuninstall_cmds
  15935. # Commands used to build a loadable module (assumed same as above if empty)
  15936. module_cmds=$lt_module_cmds_GCJ
  15937. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  15938. # Commands to strip libraries.
  15939. old_striplib=$lt_old_striplib
  15940. striplib=$lt_striplib
  15941. # Dependencies to place before the objects being linked to create a
  15942. # shared library.
  15943. predep_objects=$lt_predep_objects_GCJ
  15944. # Dependencies to place after the objects being linked to create a
  15945. # shared library.
  15946. postdep_objects=$lt_postdep_objects_GCJ
  15947. # Dependencies to place before the objects being linked to create a
  15948. # shared library.
  15949. predeps=$lt_predeps_GCJ
  15950. # Dependencies to place after the objects being linked to create a
  15951. # shared library.
  15952. postdeps=$lt_postdeps_GCJ
  15953. # The library search path used internally by the compiler when linking
  15954. # a shared library.
  15955. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  15956. # Method to check whether dependent libraries are shared objects.
  15957. deplibs_check_method=$lt_deplibs_check_method
  15958. # Command to use when deplibs_check_method == file_magic.
  15959. file_magic_cmd=$lt_file_magic_cmd
  15960. # Flag that allows shared libraries with undefined symbols to be built.
  15961. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  15962. # Flag that forces no undefined symbols.
  15963. no_undefined_flag=$lt_no_undefined_flag_GCJ
  15964. # Commands used to finish a libtool library installation in a directory.
  15965. finish_cmds=$lt_finish_cmds
  15966. # Same as above, but a single script fragment to be evaled but not shown.
  15967. finish_eval=$lt_finish_eval
  15968. # Take the output of nm and produce a listing of raw symbols and C names.
  15969. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15970. # Transform the output of nm in a proper C declaration
  15971. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15972. # Transform the output of nm in a C name address pair
  15973. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15974. # This is the shared library runtime path variable.
  15975. runpath_var=$runpath_var
  15976. # This is the shared library path variable.
  15977. shlibpath_var=$shlibpath_var
  15978. # Is shlibpath searched before the hard-coded library search path?
  15979. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15980. # How to hardcode a shared library path into an executable.
  15981. hardcode_action=$hardcode_action_GCJ
  15982. # Whether we should hardcode library paths into libraries.
  15983. hardcode_into_libs=$hardcode_into_libs
  15984. # Flag to hardcode \$libdir into a binary during linking.
  15985. # This must work even if \$libdir does not exist.
  15986. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  15987. # If ld is used when linking, flag to hardcode \$libdir into
  15988. # a binary during linking. This must work even if \$libdir does
  15989. # not exist.
  15990. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  15991. # Whether we need a single -rpath flag with a separated argument.
  15992. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  15993. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  15994. # resulting binary.
  15995. hardcode_direct=$hardcode_direct_GCJ
  15996. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  15997. # resulting binary.
  15998. hardcode_minus_L=$hardcode_minus_L_GCJ
  15999. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16000. # the resulting binary.
  16001. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  16002. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16003. # and all subsequent libraries and executables linked against it.
  16004. hardcode_automatic=$hardcode_automatic_GCJ
  16005. # Variables whose values should be saved in libtool wrapper scripts and
  16006. # restored at relink time.
  16007. variables_saved_for_relink="$variables_saved_for_relink"
  16008. # Whether libtool must link a program against all its dependency libraries.
  16009. link_all_deplibs=$link_all_deplibs_GCJ
  16010. # Compile-time system search path for libraries
  16011. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16012. # Run-time system search path for libraries
  16013. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16014. # Fix the shell variable \$srcfile for the compiler.
  16015. fix_srcfile_path="$fix_srcfile_path_GCJ"
  16016. # Set to yes if exported symbols are required.
  16017. always_export_symbols=$always_export_symbols_GCJ
  16018. # The commands to list exported symbols.
  16019. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  16020. # The commands to extract the exported symbol list from a shared archive.
  16021. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16022. # Symbols that should not be listed in the preloaded symbols.
  16023. exclude_expsyms=$lt_exclude_expsyms_GCJ
  16024. # Symbols that must always be exported.
  16025. include_expsyms=$lt_include_expsyms_GCJ
  16026. # ### END LIBTOOL TAG CONFIG: $tagname
  16027. __EOF__
  16028. else
  16029. # If there is no Makefile yet, we rely on a make rule to execute
  16030. # `config.status --recheck' to rerun these tests and create the
  16031. # libtool script then.
  16032. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16033. if test -f "$ltmain_in"; then
  16034. test -f Makefile && make "$ltmain"
  16035. fi
  16036. fi
  16037. ac_ext=c
  16038. ac_cpp='$CPP $CPPFLAGS'
  16039. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16040. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16041. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16042. CC="$lt_save_CC"
  16043. else
  16044. tagname=""
  16045. fi
  16046. ;;
  16047. RC)
  16048. # Source file extension for RC test sources.
  16049. ac_ext=rc
  16050. # Object file extension for compiled RC test sources.
  16051. objext=o
  16052. objext_RC=$objext
  16053. # Code to be used in simple compile tests
  16054. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  16055. # Code to be used in simple link tests
  16056. lt_simple_link_test_code="$lt_simple_compile_test_code"
  16057. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  16058. # If no C compiler was specified, use CC.
  16059. LTCC=${LTCC-"$CC"}
  16060. # If no C compiler flags were specified, use CFLAGS.
  16061. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  16062. # Allow CC to be a program name with arguments.
  16063. compiler=$CC
  16064. # save warnings/boilerplate of simple test code
  16065. ac_outfile=conftest.$ac_objext
  16066. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  16067. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16068. _lt_compiler_boilerplate=`cat conftest.err`
  16069. $rm conftest*
  16070. ac_outfile=conftest.$ac_objext
  16071. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  16072. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16073. _lt_linker_boilerplate=`cat conftest.err`
  16074. $rm conftest*
  16075. # Allow CC to be a program name with arguments.
  16076. lt_save_CC="$CC"
  16077. CC=${RC-"windres"}
  16078. compiler=$CC
  16079. compiler_RC=$CC
  16080. for cc_temp in $compiler""; do
  16081. case $cc_temp in
  16082. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16083. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16084. \-*) ;;
  16085. *) break;;
  16086. esac
  16087. done
  16088. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  16089. lt_cv_prog_compiler_c_o_RC=yes
  16090. # The else clause should only fire when bootstrapping the
  16091. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16092. # with your package, and you will get complaints that there are
  16093. # no rules to generate ltmain.sh.
  16094. if test -f "$ltmain"; then
  16095. # See if we are running on zsh, and set the options which allow our commands through
  16096. # without removal of \ escapes.
  16097. if test -n "${ZSH_VERSION+set}" ; then
  16098. setopt NO_GLOB_SUBST
  16099. fi
  16100. # Now quote all the things that may contain metacharacters while being
  16101. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16102. # variables and quote the copies for generation of the libtool script.
  16103. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16104. SED SHELL STRIP \
  16105. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16106. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16107. deplibs_check_method reload_flag reload_cmds need_locks \
  16108. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16109. lt_cv_sys_global_symbol_to_c_name_address \
  16110. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16111. old_postinstall_cmds old_postuninstall_cmds \
  16112. compiler_RC \
  16113. CC_RC \
  16114. LD_RC \
  16115. lt_prog_compiler_wl_RC \
  16116. lt_prog_compiler_pic_RC \
  16117. lt_prog_compiler_static_RC \
  16118. lt_prog_compiler_no_builtin_flag_RC \
  16119. export_dynamic_flag_spec_RC \
  16120. thread_safe_flag_spec_RC \
  16121. whole_archive_flag_spec_RC \
  16122. enable_shared_with_static_runtimes_RC \
  16123. old_archive_cmds_RC \
  16124. old_archive_from_new_cmds_RC \
  16125. predep_objects_RC \
  16126. postdep_objects_RC \
  16127. predeps_RC \
  16128. postdeps_RC \
  16129. compiler_lib_search_path_RC \
  16130. archive_cmds_RC \
  16131. archive_expsym_cmds_RC \
  16132. postinstall_cmds_RC \
  16133. postuninstall_cmds_RC \
  16134. old_archive_from_expsyms_cmds_RC \
  16135. allow_undefined_flag_RC \
  16136. no_undefined_flag_RC \
  16137. export_symbols_cmds_RC \
  16138. hardcode_libdir_flag_spec_RC \
  16139. hardcode_libdir_flag_spec_ld_RC \
  16140. hardcode_libdir_separator_RC \
  16141. hardcode_automatic_RC \
  16142. module_cmds_RC \
  16143. module_expsym_cmds_RC \
  16144. lt_cv_prog_compiler_c_o_RC \
  16145. exclude_expsyms_RC \
  16146. include_expsyms_RC; do
  16147. case $var in
  16148. old_archive_cmds_RC | \
  16149. old_archive_from_new_cmds_RC | \
  16150. archive_cmds_RC | \
  16151. archive_expsym_cmds_RC | \
  16152. module_cmds_RC | \
  16153. module_expsym_cmds_RC | \
  16154. old_archive_from_expsyms_cmds_RC | \
  16155. export_symbols_cmds_RC | \
  16156. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16157. postinstall_cmds | postuninstall_cmds | \
  16158. old_postinstall_cmds | old_postuninstall_cmds | \
  16159. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16160. # Double-quote double-evaled strings.
  16161. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16162. ;;
  16163. *)
  16164. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16165. ;;
  16166. esac
  16167. done
  16168. case $lt_echo in
  16169. *'\$0 --fallback-echo"')
  16170. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16171. ;;
  16172. esac
  16173. cfgfile="$ofile"
  16174. cat <<__EOF__ >> "$cfgfile"
  16175. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16176. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16177. # Shell to use when invoking shell scripts.
  16178. SHELL=$lt_SHELL
  16179. # Whether or not to build shared libraries.
  16180. build_libtool_libs=$enable_shared
  16181. # Whether or not to build static libraries.
  16182. build_old_libs=$enable_static
  16183. # Whether or not to add -lc for building shared libraries.
  16184. build_libtool_need_lc=$archive_cmds_need_lc_RC
  16185. # Whether or not to disallow shared libs when runtime libs are static
  16186. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  16187. # Whether or not to optimize for fast installation.
  16188. fast_install=$enable_fast_install
  16189. # The host system.
  16190. host_alias=$host_alias
  16191. host=$host
  16192. host_os=$host_os
  16193. # The build system.
  16194. build_alias=$build_alias
  16195. build=$build
  16196. build_os=$build_os
  16197. # An echo program that does not interpret backslashes.
  16198. echo=$lt_echo
  16199. # The archiver.
  16200. AR=$lt_AR
  16201. AR_FLAGS=$lt_AR_FLAGS
  16202. # A C compiler.
  16203. LTCC=$lt_LTCC
  16204. # LTCC compiler flags.
  16205. LTCFLAGS=$lt_LTCFLAGS
  16206. # A language-specific compiler.
  16207. CC=$lt_compiler_RC
  16208. # Is the compiler the GNU C compiler?
  16209. with_gcc=$GCC_RC
  16210. # An ERE matcher.
  16211. EGREP=$lt_EGREP
  16212. # The linker used to build libraries.
  16213. LD=$lt_LD_RC
  16214. # Whether we need hard or soft links.
  16215. LN_S=$lt_LN_S
  16216. # A BSD-compatible nm program.
  16217. NM=$lt_NM
  16218. # A symbol stripping program
  16219. STRIP=$lt_STRIP
  16220. # Used to examine libraries when file_magic_cmd begins "file"
  16221. MAGIC_CMD=$MAGIC_CMD
  16222. # Used on cygwin: DLL creation program.
  16223. DLLTOOL="$DLLTOOL"
  16224. # Used on cygwin: object dumper.
  16225. OBJDUMP="$OBJDUMP"
  16226. # Used on cygwin: assembler.
  16227. AS="$AS"
  16228. # The name of the directory that contains temporary libtool files.
  16229. objdir=$objdir
  16230. # How to create reloadable object files.
  16231. reload_flag=$lt_reload_flag
  16232. reload_cmds=$lt_reload_cmds
  16233. # How to pass a linker flag through the compiler.
  16234. wl=$lt_lt_prog_compiler_wl_RC
  16235. # Object file suffix (normally "o").
  16236. objext="$ac_objext"
  16237. # Old archive suffix (normally "a").
  16238. libext="$libext"
  16239. # Shared library suffix (normally ".so").
  16240. shrext_cmds='$shrext_cmds'
  16241. # Executable file suffix (normally "").
  16242. exeext="$exeext"
  16243. # Additional compiler flags for building library objects.
  16244. pic_flag=$lt_lt_prog_compiler_pic_RC
  16245. pic_mode=$pic_mode
  16246. # What is the maximum length of a command?
  16247. max_cmd_len=$lt_cv_sys_max_cmd_len
  16248. # Does compiler simultaneously support -c and -o options?
  16249. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  16250. # Must we lock files when doing compilation?
  16251. need_locks=$lt_need_locks
  16252. # Do we need the lib prefix for modules?
  16253. need_lib_prefix=$need_lib_prefix
  16254. # Do we need a version for libraries?
  16255. need_version=$need_version
  16256. # Whether dlopen is supported.
  16257. dlopen_support=$enable_dlopen
  16258. # Whether dlopen of programs is supported.
  16259. dlopen_self=$enable_dlopen_self
  16260. # Whether dlopen of statically linked programs is supported.
  16261. dlopen_self_static=$enable_dlopen_self_static
  16262. # Compiler flag to prevent dynamic linking.
  16263. link_static_flag=$lt_lt_prog_compiler_static_RC
  16264. # Compiler flag to turn off builtin functions.
  16265. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  16266. # Compiler flag to allow reflexive dlopens.
  16267. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  16268. # Compiler flag to generate shared objects directly from archives.
  16269. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  16270. # Compiler flag to generate thread-safe objects.
  16271. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  16272. # Library versioning type.
  16273. version_type=$version_type
  16274. # Format of library name prefix.
  16275. libname_spec=$lt_libname_spec
  16276. # List of archive names. First name is the real one, the rest are links.
  16277. # The last name is the one that the linker finds with -lNAME.
  16278. library_names_spec=$lt_library_names_spec
  16279. # The coded name of the library, if different from the real name.
  16280. soname_spec=$lt_soname_spec
  16281. # Commands used to build and install an old-style archive.
  16282. RANLIB=$lt_RANLIB
  16283. old_archive_cmds=$lt_old_archive_cmds_RC
  16284. old_postinstall_cmds=$lt_old_postinstall_cmds
  16285. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16286. # Create an old-style archive from a shared archive.
  16287. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  16288. # Create a temporary old-style archive to link instead of a shared archive.
  16289. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  16290. # Commands used to build and install a shared archive.
  16291. archive_cmds=$lt_archive_cmds_RC
  16292. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  16293. postinstall_cmds=$lt_postinstall_cmds
  16294. postuninstall_cmds=$lt_postuninstall_cmds
  16295. # Commands used to build a loadable module (assumed same as above if empty)
  16296. module_cmds=$lt_module_cmds_RC
  16297. module_expsym_cmds=$lt_module_expsym_cmds_RC
  16298. # Commands to strip libraries.
  16299. old_striplib=$lt_old_striplib
  16300. striplib=$lt_striplib
  16301. # Dependencies to place before the objects being linked to create a
  16302. # shared library.
  16303. predep_objects=$lt_predep_objects_RC
  16304. # Dependencies to place after the objects being linked to create a
  16305. # shared library.
  16306. postdep_objects=$lt_postdep_objects_RC
  16307. # Dependencies to place before the objects being linked to create a
  16308. # shared library.
  16309. predeps=$lt_predeps_RC
  16310. # Dependencies to place after the objects being linked to create a
  16311. # shared library.
  16312. postdeps=$lt_postdeps_RC
  16313. # The library search path used internally by the compiler when linking
  16314. # a shared library.
  16315. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  16316. # Method to check whether dependent libraries are shared objects.
  16317. deplibs_check_method=$lt_deplibs_check_method
  16318. # Command to use when deplibs_check_method == file_magic.
  16319. file_magic_cmd=$lt_file_magic_cmd
  16320. # Flag that allows shared libraries with undefined symbols to be built.
  16321. allow_undefined_flag=$lt_allow_undefined_flag_RC
  16322. # Flag that forces no undefined symbols.
  16323. no_undefined_flag=$lt_no_undefined_flag_RC
  16324. # Commands used to finish a libtool library installation in a directory.
  16325. finish_cmds=$lt_finish_cmds
  16326. # Same as above, but a single script fragment to be evaled but not shown.
  16327. finish_eval=$lt_finish_eval
  16328. # Take the output of nm and produce a listing of raw symbols and C names.
  16329. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16330. # Transform the output of nm in a proper C declaration
  16331. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16332. # Transform the output of nm in a C name address pair
  16333. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16334. # This is the shared library runtime path variable.
  16335. runpath_var=$runpath_var
  16336. # This is the shared library path variable.
  16337. shlibpath_var=$shlibpath_var
  16338. # Is shlibpath searched before the hard-coded library search path?
  16339. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16340. # How to hardcode a shared library path into an executable.
  16341. hardcode_action=$hardcode_action_RC
  16342. # Whether we should hardcode library paths into libraries.
  16343. hardcode_into_libs=$hardcode_into_libs
  16344. # Flag to hardcode \$libdir into a binary during linking.
  16345. # This must work even if \$libdir does not exist.
  16346. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  16347. # If ld is used when linking, flag to hardcode \$libdir into
  16348. # a binary during linking. This must work even if \$libdir does
  16349. # not exist.
  16350. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  16351. # Whether we need a single -rpath flag with a separated argument.
  16352. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  16353. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16354. # resulting binary.
  16355. hardcode_direct=$hardcode_direct_RC
  16356. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16357. # resulting binary.
  16358. hardcode_minus_L=$hardcode_minus_L_RC
  16359. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16360. # the resulting binary.
  16361. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  16362. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16363. # and all subsequent libraries and executables linked against it.
  16364. hardcode_automatic=$hardcode_automatic_RC
  16365. # Variables whose values should be saved in libtool wrapper scripts and
  16366. # restored at relink time.
  16367. variables_saved_for_relink="$variables_saved_for_relink"
  16368. # Whether libtool must link a program against all its dependency libraries.
  16369. link_all_deplibs=$link_all_deplibs_RC
  16370. # Compile-time system search path for libraries
  16371. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16372. # Run-time system search path for libraries
  16373. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16374. # Fix the shell variable \$srcfile for the compiler.
  16375. fix_srcfile_path="$fix_srcfile_path_RC"
  16376. # Set to yes if exported symbols are required.
  16377. always_export_symbols=$always_export_symbols_RC
  16378. # The commands to list exported symbols.
  16379. export_symbols_cmds=$lt_export_symbols_cmds_RC
  16380. # The commands to extract the exported symbol list from a shared archive.
  16381. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16382. # Symbols that should not be listed in the preloaded symbols.
  16383. exclude_expsyms=$lt_exclude_expsyms_RC
  16384. # Symbols that must always be exported.
  16385. include_expsyms=$lt_include_expsyms_RC
  16386. # ### END LIBTOOL TAG CONFIG: $tagname
  16387. __EOF__
  16388. else
  16389. # If there is no Makefile yet, we rely on a make rule to execute
  16390. # `config.status --recheck' to rerun these tests and create the
  16391. # libtool script then.
  16392. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16393. if test -f "$ltmain_in"; then
  16394. test -f Makefile && make "$ltmain"
  16395. fi
  16396. fi
  16397. ac_ext=c
  16398. ac_cpp='$CPP $CPPFLAGS'
  16399. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16400. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16401. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16402. CC="$lt_save_CC"
  16403. ;;
  16404. *)
  16405. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  16406. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  16407. { (exit 1); exit 1; }; }
  16408. ;;
  16409. esac
  16410. # Append the new tag name to the list of available tags.
  16411. if test -n "$tagname" ; then
  16412. available_tags="$available_tags $tagname"
  16413. fi
  16414. fi
  16415. done
  16416. IFS="$lt_save_ifs"
  16417. # Now substitute the updated list of available tags.
  16418. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  16419. mv "${ofile}T" "$ofile"
  16420. chmod +x "$ofile"
  16421. else
  16422. rm -f "${ofile}T"
  16423. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  16424. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  16425. { (exit 1); exit 1; }; }
  16426. fi
  16427. fi
  16428. # This can be used to rebuild libtool when needed
  16429. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  16430. # Always use our own libtool.
  16431. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  16432. # Prevent multiple expansion
  16433. ac_ext=c
  16434. ac_cpp='$CPP $CPPFLAGS'
  16435. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16436. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16437. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16438. if test -n "$ac_tool_prefix"; then
  16439. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  16440. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  16441. echo "$as_me:$LINENO: checking for $ac_word" >&5
  16442. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  16443. if test "${ac_cv_prog_CC+set}" = set; then
  16444. echo $ECHO_N "(cached) $ECHO_C" >&6
  16445. else
  16446. if test -n "$CC"; then
  16447. ac_cv_prog_CC="$CC" # Let the user override the test.
  16448. else
  16449. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16450. for as_dir in $PATH
  16451. do
  16452. IFS=$as_save_IFS
  16453. test -z "$as_dir" && as_dir=.
  16454. for ac_exec_ext in '' $ac_executable_extensions; do
  16455. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16456. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  16457. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16458. break 2
  16459. fi
  16460. done
  16461. done
  16462. fi
  16463. fi
  16464. CC=$ac_cv_prog_CC
  16465. if test -n "$CC"; then
  16466. echo "$as_me:$LINENO: result: $CC" >&5
  16467. echo "${ECHO_T}$CC" >&6
  16468. else
  16469. echo "$as_me:$LINENO: result: no" >&5
  16470. echo "${ECHO_T}no" >&6
  16471. fi
  16472. fi
  16473. if test -z "$ac_cv_prog_CC"; then
  16474. ac_ct_CC=$CC
  16475. # Extract the first word of "gcc", so it can be a program name with args.
  16476. set dummy gcc; ac_word=$2
  16477. echo "$as_me:$LINENO: checking for $ac_word" >&5
  16478. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  16479. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  16480. echo $ECHO_N "(cached) $ECHO_C" >&6
  16481. else
  16482. if test -n "$ac_ct_CC"; then
  16483. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  16484. else
  16485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16486. for as_dir in $PATH
  16487. do
  16488. IFS=$as_save_IFS
  16489. test -z "$as_dir" && as_dir=.
  16490. for ac_exec_ext in '' $ac_executable_extensions; do
  16491. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16492. ac_cv_prog_ac_ct_CC="gcc"
  16493. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16494. break 2
  16495. fi
  16496. done
  16497. done
  16498. fi
  16499. fi
  16500. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  16501. if test -n "$ac_ct_CC"; then
  16502. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  16503. echo "${ECHO_T}$ac_ct_CC" >&6
  16504. else
  16505. echo "$as_me:$LINENO: result: no" >&5
  16506. echo "${ECHO_T}no" >&6
  16507. fi
  16508. CC=$ac_ct_CC
  16509. else
  16510. CC="$ac_cv_prog_CC"
  16511. fi
  16512. if test -z "$CC"; then
  16513. if test -n "$ac_tool_prefix"; then
  16514. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  16515. set dummy ${ac_tool_prefix}cc; ac_word=$2
  16516. echo "$as_me:$LINENO: checking for $ac_word" >&5
  16517. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  16518. if test "${ac_cv_prog_CC+set}" = set; then
  16519. echo $ECHO_N "(cached) $ECHO_C" >&6
  16520. else
  16521. if test -n "$CC"; then
  16522. ac_cv_prog_CC="$CC" # Let the user override the test.
  16523. else
  16524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16525. for as_dir in $PATH
  16526. do
  16527. IFS=$as_save_IFS
  16528. test -z "$as_dir" && as_dir=.
  16529. for ac_exec_ext in '' $ac_executable_extensions; do
  16530. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16531. ac_cv_prog_CC="${ac_tool_prefix}cc"
  16532. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16533. break 2
  16534. fi
  16535. done
  16536. done
  16537. fi
  16538. fi
  16539. CC=$ac_cv_prog_CC
  16540. if test -n "$CC"; then
  16541. echo "$as_me:$LINENO: result: $CC" >&5
  16542. echo "${ECHO_T}$CC" >&6
  16543. else
  16544. echo "$as_me:$LINENO: result: no" >&5
  16545. echo "${ECHO_T}no" >&6
  16546. fi
  16547. fi
  16548. if test -z "$ac_cv_prog_CC"; then
  16549. ac_ct_CC=$CC
  16550. # Extract the first word of "cc", so it can be a program name with args.
  16551. set dummy cc; ac_word=$2
  16552. echo "$as_me:$LINENO: checking for $ac_word" >&5
  16553. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  16554. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  16555. echo $ECHO_N "(cached) $ECHO_C" >&6
  16556. else
  16557. if test -n "$ac_ct_CC"; then
  16558. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  16559. else
  16560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16561. for as_dir in $PATH
  16562. do
  16563. IFS=$as_save_IFS
  16564. test -z "$as_dir" && as_dir=.
  16565. for ac_exec_ext in '' $ac_executable_extensions; do
  16566. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16567. ac_cv_prog_ac_ct_CC="cc"
  16568. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16569. break 2
  16570. fi
  16571. done
  16572. done
  16573. fi
  16574. fi
  16575. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  16576. if test -n "$ac_ct_CC"; then
  16577. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  16578. echo "${ECHO_T}$ac_ct_CC" >&6
  16579. else
  16580. echo "$as_me:$LINENO: result: no" >&5
  16581. echo "${ECHO_T}no" >&6
  16582. fi
  16583. CC=$ac_ct_CC
  16584. else
  16585. CC="$ac_cv_prog_CC"
  16586. fi
  16587. fi
  16588. if test -z "$CC"; then
  16589. # Extract the first word of "cc", so it can be a program name with args.
  16590. set dummy cc; ac_word=$2
  16591. echo "$as_me:$LINENO: checking for $ac_word" >&5
  16592. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  16593. if test "${ac_cv_prog_CC+set}" = set; then
  16594. echo $ECHO_N "(cached) $ECHO_C" >&6
  16595. else
  16596. if test -n "$CC"; then
  16597. ac_cv_prog_CC="$CC" # Let the user override the test.
  16598. else
  16599. ac_prog_rejected=no
  16600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16601. for as_dir in $PATH
  16602. do
  16603. IFS=$as_save_IFS
  16604. test -z "$as_dir" && as_dir=.
  16605. for ac_exec_ext in '' $ac_executable_extensions; do
  16606. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16607. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  16608. ac_prog_rejected=yes
  16609. continue
  16610. fi
  16611. ac_cv_prog_CC="cc"
  16612. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16613. break 2
  16614. fi
  16615. done
  16616. done
  16617. if test $ac_prog_rejected = yes; then
  16618. # We found a bogon in the path, so make sure we never use it.
  16619. set dummy $ac_cv_prog_CC
  16620. shift
  16621. if test $# != 0; then
  16622. # We chose a different compiler from the bogus one.
  16623. # However, it has the same basename, so the bogon will be chosen
  16624. # first if we set CC to just the basename; use the full file name.
  16625. shift
  16626. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  16627. fi
  16628. fi
  16629. fi
  16630. fi
  16631. CC=$ac_cv_prog_CC
  16632. if test -n "$CC"; then
  16633. echo "$as_me:$LINENO: result: $CC" >&5
  16634. echo "${ECHO_T}$CC" >&6
  16635. else
  16636. echo "$as_me:$LINENO: result: no" >&5
  16637. echo "${ECHO_T}no" >&6
  16638. fi
  16639. fi
  16640. if test -z "$CC"; then
  16641. if test -n "$ac_tool_prefix"; then
  16642. for ac_prog in cl
  16643. do
  16644. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  16645. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  16646. echo "$as_me:$LINENO: checking for $ac_word" >&5
  16647. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  16648. if test "${ac_cv_prog_CC+set}" = set; then
  16649. echo $ECHO_N "(cached) $ECHO_C" >&6
  16650. else
  16651. if test -n "$CC"; then
  16652. ac_cv_prog_CC="$CC" # Let the user override the test.
  16653. else
  16654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16655. for as_dir in $PATH
  16656. do
  16657. IFS=$as_save_IFS
  16658. test -z "$as_dir" && as_dir=.
  16659. for ac_exec_ext in '' $ac_executable_extensions; do
  16660. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16661. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  16662. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16663. break 2
  16664. fi
  16665. done
  16666. done
  16667. fi
  16668. fi
  16669. CC=$ac_cv_prog_CC
  16670. if test -n "$CC"; then
  16671. echo "$as_me:$LINENO: result: $CC" >&5
  16672. echo "${ECHO_T}$CC" >&6
  16673. else
  16674. echo "$as_me:$LINENO: result: no" >&5
  16675. echo "${ECHO_T}no" >&6
  16676. fi
  16677. test -n "$CC" && break
  16678. done
  16679. fi
  16680. if test -z "$CC"; then
  16681. ac_ct_CC=$CC
  16682. for ac_prog in cl
  16683. do
  16684. # Extract the first word of "$ac_prog", so it can be a program name with args.
  16685. set dummy $ac_prog; ac_word=$2
  16686. echo "$as_me:$LINENO: checking for $ac_word" >&5
  16687. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  16688. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  16689. echo $ECHO_N "(cached) $ECHO_C" >&6
  16690. else
  16691. if test -n "$ac_ct_CC"; then
  16692. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  16693. else
  16694. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16695. for as_dir in $PATH
  16696. do
  16697. IFS=$as_save_IFS
  16698. test -z "$as_dir" && as_dir=.
  16699. for ac_exec_ext in '' $ac_executable_extensions; do
  16700. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16701. ac_cv_prog_ac_ct_CC="$ac_prog"
  16702. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16703. break 2
  16704. fi
  16705. done
  16706. done
  16707. fi
  16708. fi
  16709. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  16710. if test -n "$ac_ct_CC"; then
  16711. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  16712. echo "${ECHO_T}$ac_ct_CC" >&6
  16713. else
  16714. echo "$as_me:$LINENO: result: no" >&5
  16715. echo "${ECHO_T}no" >&6
  16716. fi
  16717. test -n "$ac_ct_CC" && break
  16718. done
  16719. CC=$ac_ct_CC
  16720. fi
  16721. fi
  16722. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  16723. See \`config.log' for more details." >&5
  16724. echo "$as_me: error: no acceptable C compiler found in \$PATH
  16725. See \`config.log' for more details." >&2;}
  16726. { (exit 1); exit 1; }; }
  16727. # Provide some information about the compiler.
  16728. echo "$as_me:$LINENO:" \
  16729. "checking for C compiler version" >&5
  16730. ac_compiler=`set X $ac_compile; echo $2`
  16731. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  16732. (eval $ac_compiler --version </dev/null >&5) 2>&5
  16733. ac_status=$?
  16734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16735. (exit $ac_status); }
  16736. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  16737. (eval $ac_compiler -v </dev/null >&5) 2>&5
  16738. ac_status=$?
  16739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16740. (exit $ac_status); }
  16741. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  16742. (eval $ac_compiler -V </dev/null >&5) 2>&5
  16743. ac_status=$?
  16744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16745. (exit $ac_status); }
  16746. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  16747. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  16748. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  16749. echo $ECHO_N "(cached) $ECHO_C" >&6
  16750. else
  16751. cat >conftest.$ac_ext <<_ACEOF
  16752. /* confdefs.h. */
  16753. _ACEOF
  16754. cat confdefs.h >>conftest.$ac_ext
  16755. cat >>conftest.$ac_ext <<_ACEOF
  16756. /* end confdefs.h. */
  16757. int
  16758. main ()
  16759. {
  16760. #ifndef __GNUC__
  16761. choke me
  16762. #endif
  16763. ;
  16764. return 0;
  16765. }
  16766. _ACEOF
  16767. rm -f conftest.$ac_objext
  16768. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16769. (eval $ac_compile) 2>conftest.er1
  16770. ac_status=$?
  16771. grep -v '^ *+' conftest.er1 >conftest.err
  16772. rm -f conftest.er1
  16773. cat conftest.err >&5
  16774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16775. (exit $ac_status); } &&
  16776. { ac_try='test -z "$ac_c_werror_flag"
  16777. || test ! -s conftest.err'
  16778. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16779. (eval $ac_try) 2>&5
  16780. ac_status=$?
  16781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16782. (exit $ac_status); }; } &&
  16783. { ac_try='test -s conftest.$ac_objext'
  16784. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16785. (eval $ac_try) 2>&5
  16786. ac_status=$?
  16787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16788. (exit $ac_status); }; }; then
  16789. ac_compiler_gnu=yes
  16790. else
  16791. echo "$as_me: failed program was:" >&5
  16792. sed 's/^/| /' conftest.$ac_ext >&5
  16793. ac_compiler_gnu=no
  16794. fi
  16795. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  16796. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  16797. fi
  16798. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  16799. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  16800. GCC=`test $ac_compiler_gnu = yes && echo yes`
  16801. ac_test_CFLAGS=${CFLAGS+set}
  16802. ac_save_CFLAGS=$CFLAGS
  16803. CFLAGS="-g"
  16804. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  16805. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  16806. if test "${ac_cv_prog_cc_g+set}" = set; then
  16807. echo $ECHO_N "(cached) $ECHO_C" >&6
  16808. else
  16809. cat >conftest.$ac_ext <<_ACEOF
  16810. /* confdefs.h. */
  16811. _ACEOF
  16812. cat confdefs.h >>conftest.$ac_ext
  16813. cat >>conftest.$ac_ext <<_ACEOF
  16814. /* end confdefs.h. */
  16815. int
  16816. main ()
  16817. {
  16818. ;
  16819. return 0;
  16820. }
  16821. _ACEOF
  16822. rm -f conftest.$ac_objext
  16823. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16824. (eval $ac_compile) 2>conftest.er1
  16825. ac_status=$?
  16826. grep -v '^ *+' conftest.er1 >conftest.err
  16827. rm -f conftest.er1
  16828. cat conftest.err >&5
  16829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16830. (exit $ac_status); } &&
  16831. { ac_try='test -z "$ac_c_werror_flag"
  16832. || test ! -s conftest.err'
  16833. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16834. (eval $ac_try) 2>&5
  16835. ac_status=$?
  16836. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16837. (exit $ac_status); }; } &&
  16838. { ac_try='test -s conftest.$ac_objext'
  16839. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16840. (eval $ac_try) 2>&5
  16841. ac_status=$?
  16842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16843. (exit $ac_status); }; }; then
  16844. ac_cv_prog_cc_g=yes
  16845. else
  16846. echo "$as_me: failed program was:" >&5
  16847. sed 's/^/| /' conftest.$ac_ext >&5
  16848. ac_cv_prog_cc_g=no
  16849. fi
  16850. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  16851. fi
  16852. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  16853. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  16854. if test "$ac_test_CFLAGS" = set; then
  16855. CFLAGS=$ac_save_CFLAGS
  16856. elif test $ac_cv_prog_cc_g = yes; then
  16857. if test "$GCC" = yes; then
  16858. CFLAGS="-g -O2"
  16859. else
  16860. CFLAGS="-g"
  16861. fi
  16862. else
  16863. if test "$GCC" = yes; then
  16864. CFLAGS="-O2"
  16865. else
  16866. CFLAGS=
  16867. fi
  16868. fi
  16869. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  16870. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  16871. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  16872. echo $ECHO_N "(cached) $ECHO_C" >&6
  16873. else
  16874. ac_cv_prog_cc_stdc=no
  16875. ac_save_CC=$CC
  16876. cat >conftest.$ac_ext <<_ACEOF
  16877. /* confdefs.h. */
  16878. _ACEOF
  16879. cat confdefs.h >>conftest.$ac_ext
  16880. cat >>conftest.$ac_ext <<_ACEOF
  16881. /* end confdefs.h. */
  16882. #include <stdarg.h>
  16883. #include <stdio.h>
  16884. #include <sys/types.h>
  16885. #include <sys/stat.h>
  16886. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  16887. struct buf { int x; };
  16888. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  16889. static char *e (p, i)
  16890. char **p;
  16891. int i;
  16892. {
  16893. return p[i];
  16894. }
  16895. static char *f (char * (*g) (char **, int), char **p, ...)
  16896. {
  16897. char *s;
  16898. va_list v;
  16899. va_start (v,p);
  16900. s = g (p, va_arg (v,int));
  16901. va_end (v);
  16902. return s;
  16903. }
  16904. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  16905. function prototypes and stuff, but not '\xHH' hex character constants.
  16906. These don't provoke an error unfortunately, instead are silently treated
  16907. as 'x'. The following induces an error, until -std1 is added to get
  16908. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  16909. array size at least. It's necessary to write '\x00'==0 to get something
  16910. that's true only with -std1. */
  16911. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  16912. int test (int i, double x);
  16913. struct s1 {int (*f) (int a);};
  16914. struct s2 {int (*f) (double a);};
  16915. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  16916. int argc;
  16917. char **argv;
  16918. int
  16919. main ()
  16920. {
  16921. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  16922. ;
  16923. return 0;
  16924. }
  16925. _ACEOF
  16926. # Don't try gcc -ansi; that turns off useful extensions and
  16927. # breaks some systems' header files.
  16928. # AIX -qlanglvl=ansi
  16929. # Ultrix and OSF/1 -std1
  16930. # HP-UX 10.20 and later -Ae
  16931. # HP-UX older versions -Aa -D_HPUX_SOURCE
  16932. # SVR4 -Xc -D__EXTENSIONS__
  16933. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  16934. do
  16935. CC="$ac_save_CC $ac_arg"
  16936. rm -f conftest.$ac_objext
  16937. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16938. (eval $ac_compile) 2>conftest.er1
  16939. ac_status=$?
  16940. grep -v '^ *+' conftest.er1 >conftest.err
  16941. rm -f conftest.er1
  16942. cat conftest.err >&5
  16943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16944. (exit $ac_status); } &&
  16945. { ac_try='test -z "$ac_c_werror_flag"
  16946. || test ! -s conftest.err'
  16947. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16948. (eval $ac_try) 2>&5
  16949. ac_status=$?
  16950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16951. (exit $ac_status); }; } &&
  16952. { ac_try='test -s conftest.$ac_objext'
  16953. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16954. (eval $ac_try) 2>&5
  16955. ac_status=$?
  16956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16957. (exit $ac_status); }; }; then
  16958. ac_cv_prog_cc_stdc=$ac_arg
  16959. break
  16960. else
  16961. echo "$as_me: failed program was:" >&5
  16962. sed 's/^/| /' conftest.$ac_ext >&5
  16963. fi
  16964. rm -f conftest.err conftest.$ac_objext
  16965. done
  16966. rm -f conftest.$ac_ext conftest.$ac_objext
  16967. CC=$ac_save_CC
  16968. fi
  16969. case "x$ac_cv_prog_cc_stdc" in
  16970. x|xno)
  16971. echo "$as_me:$LINENO: result: none needed" >&5
  16972. echo "${ECHO_T}none needed" >&6 ;;
  16973. *)
  16974. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  16975. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  16976. CC="$CC $ac_cv_prog_cc_stdc" ;;
  16977. esac
  16978. # Some people use a C++ compiler to compile C. Since we use `exit',
  16979. # in C++ we need to declare it. In case someone uses the same compiler
  16980. # for both compiling C and C++ we need to have the C++ compiler decide
  16981. # the declaration of exit, since it's the most demanding environment.
  16982. cat >conftest.$ac_ext <<_ACEOF
  16983. #ifndef __cplusplus
  16984. choke me
  16985. #endif
  16986. _ACEOF
  16987. rm -f conftest.$ac_objext
  16988. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16989. (eval $ac_compile) 2>conftest.er1
  16990. ac_status=$?
  16991. grep -v '^ *+' conftest.er1 >conftest.err
  16992. rm -f conftest.er1
  16993. cat conftest.err >&5
  16994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16995. (exit $ac_status); } &&
  16996. { ac_try='test -z "$ac_c_werror_flag"
  16997. || test ! -s conftest.err'
  16998. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16999. (eval $ac_try) 2>&5
  17000. ac_status=$?
  17001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17002. (exit $ac_status); }; } &&
  17003. { ac_try='test -s conftest.$ac_objext'
  17004. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17005. (eval $ac_try) 2>&5
  17006. ac_status=$?
  17007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17008. (exit $ac_status); }; }; then
  17009. for ac_declaration in \
  17010. '' \
  17011. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  17012. 'extern "C" void std::exit (int); using std::exit;' \
  17013. 'extern "C" void exit (int) throw ();' \
  17014. 'extern "C" void exit (int);' \
  17015. 'void exit (int);'
  17016. do
  17017. cat >conftest.$ac_ext <<_ACEOF
  17018. /* confdefs.h. */
  17019. _ACEOF
  17020. cat confdefs.h >>conftest.$ac_ext
  17021. cat >>conftest.$ac_ext <<_ACEOF
  17022. /* end confdefs.h. */
  17023. $ac_declaration
  17024. #include <stdlib.h>
  17025. int
  17026. main ()
  17027. {
  17028. exit (42);
  17029. ;
  17030. return 0;
  17031. }
  17032. _ACEOF
  17033. rm -f conftest.$ac_objext
  17034. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17035. (eval $ac_compile) 2>conftest.er1
  17036. ac_status=$?
  17037. grep -v '^ *+' conftest.er1 >conftest.err
  17038. rm -f conftest.er1
  17039. cat conftest.err >&5
  17040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17041. (exit $ac_status); } &&
  17042. { ac_try='test -z "$ac_c_werror_flag"
  17043. || test ! -s conftest.err'
  17044. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17045. (eval $ac_try) 2>&5
  17046. ac_status=$?
  17047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17048. (exit $ac_status); }; } &&
  17049. { ac_try='test -s conftest.$ac_objext'
  17050. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17051. (eval $ac_try) 2>&5
  17052. ac_status=$?
  17053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17054. (exit $ac_status); }; }; then
  17055. :
  17056. else
  17057. echo "$as_me: failed program was:" >&5
  17058. sed 's/^/| /' conftest.$ac_ext >&5
  17059. continue
  17060. fi
  17061. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17062. cat >conftest.$ac_ext <<_ACEOF
  17063. /* confdefs.h. */
  17064. _ACEOF
  17065. cat confdefs.h >>conftest.$ac_ext
  17066. cat >>conftest.$ac_ext <<_ACEOF
  17067. /* end confdefs.h. */
  17068. $ac_declaration
  17069. int
  17070. main ()
  17071. {
  17072. exit (42);
  17073. ;
  17074. return 0;
  17075. }
  17076. _ACEOF
  17077. rm -f conftest.$ac_objext
  17078. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17079. (eval $ac_compile) 2>conftest.er1
  17080. ac_status=$?
  17081. grep -v '^ *+' conftest.er1 >conftest.err
  17082. rm -f conftest.er1
  17083. cat conftest.err >&5
  17084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17085. (exit $ac_status); } &&
  17086. { ac_try='test -z "$ac_c_werror_flag"
  17087. || test ! -s conftest.err'
  17088. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17089. (eval $ac_try) 2>&5
  17090. ac_status=$?
  17091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17092. (exit $ac_status); }; } &&
  17093. { ac_try='test -s conftest.$ac_objext'
  17094. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17095. (eval $ac_try) 2>&5
  17096. ac_status=$?
  17097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17098. (exit $ac_status); }; }; then
  17099. break
  17100. else
  17101. echo "$as_me: failed program was:" >&5
  17102. sed 's/^/| /' conftest.$ac_ext >&5
  17103. fi
  17104. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17105. done
  17106. rm -f conftest*
  17107. if test -n "$ac_declaration"; then
  17108. echo '#ifdef __cplusplus' >>confdefs.h
  17109. echo $ac_declaration >>confdefs.h
  17110. echo '#endif' >>confdefs.h
  17111. fi
  17112. else
  17113. echo "$as_me: failed program was:" >&5
  17114. sed 's/^/| /' conftest.$ac_ext >&5
  17115. fi
  17116. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17117. ac_ext=c
  17118. ac_cpp='$CPP $CPPFLAGS'
  17119. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17120. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17121. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17122. # Find a good install program. We prefer a C program (faster),
  17123. # so one script is as good as another. But avoid the broken or
  17124. # incompatible versions:
  17125. # SysV /etc/install, /usr/sbin/install
  17126. # SunOS /usr/etc/install
  17127. # IRIX /sbin/install
  17128. # AIX /bin/install
  17129. # AmigaOS /C/install, which installs bootblocks on floppy discs
  17130. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  17131. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  17132. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  17133. # OS/2's system install, which has a completely different semantic
  17134. # ./install, which can be erroneously created by make from ./install.sh.
  17135. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  17136. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  17137. if test -z "$INSTALL"; then
  17138. if test "${ac_cv_path_install+set}" = set; then
  17139. echo $ECHO_N "(cached) $ECHO_C" >&6
  17140. else
  17141. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17142. for as_dir in $PATH
  17143. do
  17144. IFS=$as_save_IFS
  17145. test -z "$as_dir" && as_dir=.
  17146. # Account for people who put trailing slashes in PATH elements.
  17147. case $as_dir/ in
  17148. ./ | .// | /cC/* | \
  17149. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  17150. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  17151. /usr/ucb/* ) ;;
  17152. *)
  17153. # OSF1 and SCO ODT 3.0 have their own names for install.
  17154. # Don't use installbsd from OSF since it installs stuff as root
  17155. # by default.
  17156. for ac_prog in ginstall scoinst install; do
  17157. for ac_exec_ext in '' $ac_executable_extensions; do
  17158. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  17159. if test $ac_prog = install &&
  17160. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  17161. # AIX install. It has an incompatible calling convention.
  17162. :
  17163. elif test $ac_prog = install &&
  17164. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  17165. # program-specific install script used by HP pwplus--don't use.
  17166. :
  17167. else
  17168. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  17169. break 3
  17170. fi
  17171. fi
  17172. done
  17173. done
  17174. ;;
  17175. esac
  17176. done
  17177. fi
  17178. if test "${ac_cv_path_install+set}" = set; then
  17179. INSTALL=$ac_cv_path_install
  17180. else
  17181. # As a last resort, use the slow shell script. We don't cache a
  17182. # path for INSTALL within a source directory, because that will
  17183. # break other packages using the cache if that directory is
  17184. # removed, or if the path is relative.
  17185. INSTALL=$ac_install_sh
  17186. fi
  17187. fi
  17188. echo "$as_me:$LINENO: result: $INSTALL" >&5
  17189. echo "${ECHO_T}$INSTALL" >&6
  17190. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  17191. # It thinks the first close brace ends the variable substitution.
  17192. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  17193. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  17194. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  17195. if test "$GCC" = yes ; then
  17196. OLDCFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes"
  17197. CFLAGS="$OLDCFLAGS -fexceptions"
  17198. echo "$as_me:$LINENO: checking whether $CC accepts -fexceptions" >&5
  17199. echo $ECHO_N "checking whether $CC accepts -fexceptions... $ECHO_C" >&6
  17200. cat >conftest.$ac_ext <<_ACEOF
  17201. /* confdefs.h. */
  17202. _ACEOF
  17203. cat confdefs.h >>conftest.$ac_ext
  17204. cat >>conftest.$ac_ext <<_ACEOF
  17205. /* end confdefs.h. */
  17206. int
  17207. main ()
  17208. {
  17209. ;
  17210. return 0;
  17211. }
  17212. _ACEOF
  17213. rm -f conftest.$ac_objext conftest$ac_exeext
  17214. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17215. (eval $ac_link) 2>conftest.er1
  17216. ac_status=$?
  17217. grep -v '^ *+' conftest.er1 >conftest.err
  17218. rm -f conftest.er1
  17219. cat conftest.err >&5
  17220. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17221. (exit $ac_status); } &&
  17222. { ac_try='test -z "$ac_c_werror_flag"
  17223. || test ! -s conftest.err'
  17224. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17225. (eval $ac_try) 2>&5
  17226. ac_status=$?
  17227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17228. (exit $ac_status); }; } &&
  17229. { ac_try='test -s conftest$ac_exeext'
  17230. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17231. (eval $ac_try) 2>&5
  17232. ac_status=$?
  17233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17234. (exit $ac_status); }; }; then
  17235. echo "$as_me:$LINENO: result: yes" >&5
  17236. echo "${ECHO_T}yes" >&6
  17237. else
  17238. echo "$as_me: failed program was:" >&5
  17239. sed 's/^/| /' conftest.$ac_ext >&5
  17240. echo "$as_me:$LINENO: result: no" >&5
  17241. echo "${ECHO_T}no" >&6; CFLAGS="$OLDCFLAGS"
  17242. fi
  17243. rm -f conftest.err conftest.$ac_objext \
  17244. conftest$ac_exeext conftest.$ac_ext
  17245. CXXFLAGS=`echo "$CFLAGS" | sed 's/ -Wmissing-prototypes -Wstrict-prototypes//'`
  17246. fi
  17247. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  17248. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  17249. if test "${ac_cv_header_stdc+set}" = set; then
  17250. echo $ECHO_N "(cached) $ECHO_C" >&6
  17251. else
  17252. cat >conftest.$ac_ext <<_ACEOF
  17253. /* confdefs.h. */
  17254. _ACEOF
  17255. cat confdefs.h >>conftest.$ac_ext
  17256. cat >>conftest.$ac_ext <<_ACEOF
  17257. /* end confdefs.h. */
  17258. #include <stdlib.h>
  17259. #include <stdarg.h>
  17260. #include <string.h>
  17261. #include <float.h>
  17262. int
  17263. main ()
  17264. {
  17265. ;
  17266. return 0;
  17267. }
  17268. _ACEOF
  17269. rm -f conftest.$ac_objext
  17270. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17271. (eval $ac_compile) 2>conftest.er1
  17272. ac_status=$?
  17273. grep -v '^ *+' conftest.er1 >conftest.err
  17274. rm -f conftest.er1
  17275. cat conftest.err >&5
  17276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17277. (exit $ac_status); } &&
  17278. { ac_try='test -z "$ac_c_werror_flag"
  17279. || test ! -s conftest.err'
  17280. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17281. (eval $ac_try) 2>&5
  17282. ac_status=$?
  17283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17284. (exit $ac_status); }; } &&
  17285. { ac_try='test -s conftest.$ac_objext'
  17286. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17287. (eval $ac_try) 2>&5
  17288. ac_status=$?
  17289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17290. (exit $ac_status); }; }; then
  17291. ac_cv_header_stdc=yes
  17292. else
  17293. echo "$as_me: failed program was:" >&5
  17294. sed 's/^/| /' conftest.$ac_ext >&5
  17295. ac_cv_header_stdc=no
  17296. fi
  17297. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17298. if test $ac_cv_header_stdc = yes; then
  17299. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  17300. cat >conftest.$ac_ext <<_ACEOF
  17301. /* confdefs.h. */
  17302. _ACEOF
  17303. cat confdefs.h >>conftest.$ac_ext
  17304. cat >>conftest.$ac_ext <<_ACEOF
  17305. /* end confdefs.h. */
  17306. #include <string.h>
  17307. _ACEOF
  17308. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17309. $EGREP "memchr" >/dev/null 2>&1; then
  17310. :
  17311. else
  17312. ac_cv_header_stdc=no
  17313. fi
  17314. rm -f conftest*
  17315. fi
  17316. if test $ac_cv_header_stdc = yes; then
  17317. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  17318. cat >conftest.$ac_ext <<_ACEOF
  17319. /* confdefs.h. */
  17320. _ACEOF
  17321. cat confdefs.h >>conftest.$ac_ext
  17322. cat >>conftest.$ac_ext <<_ACEOF
  17323. /* end confdefs.h. */
  17324. #include <stdlib.h>
  17325. _ACEOF
  17326. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17327. $EGREP "free" >/dev/null 2>&1; then
  17328. :
  17329. else
  17330. ac_cv_header_stdc=no
  17331. fi
  17332. rm -f conftest*
  17333. fi
  17334. if test $ac_cv_header_stdc = yes; then
  17335. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  17336. if test "$cross_compiling" = yes; then
  17337. :
  17338. else
  17339. cat >conftest.$ac_ext <<_ACEOF
  17340. /* confdefs.h. */
  17341. _ACEOF
  17342. cat confdefs.h >>conftest.$ac_ext
  17343. cat >>conftest.$ac_ext <<_ACEOF
  17344. /* end confdefs.h. */
  17345. #include <ctype.h>
  17346. #if ((' ' & 0x0FF) == 0x020)
  17347. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  17348. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  17349. #else
  17350. # define ISLOWER(c) \
  17351. (('a' <= (c) && (c) <= 'i') \
  17352. || ('j' <= (c) && (c) <= 'r') \
  17353. || ('s' <= (c) && (c) <= 'z'))
  17354. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  17355. #endif
  17356. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  17357. int
  17358. main ()
  17359. {
  17360. int i;
  17361. for (i = 0; i < 256; i++)
  17362. if (XOR (islower (i), ISLOWER (i))
  17363. || toupper (i) != TOUPPER (i))
  17364. exit(2);
  17365. exit (0);
  17366. }
  17367. _ACEOF
  17368. rm -f conftest$ac_exeext
  17369. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17370. (eval $ac_link) 2>&5
  17371. ac_status=$?
  17372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17373. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17374. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17375. (eval $ac_try) 2>&5
  17376. ac_status=$?
  17377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17378. (exit $ac_status); }; }; then
  17379. :
  17380. else
  17381. echo "$as_me: program exited with status $ac_status" >&5
  17382. echo "$as_me: failed program was:" >&5
  17383. sed 's/^/| /' conftest.$ac_ext >&5
  17384. ( exit $ac_status )
  17385. ac_cv_header_stdc=no
  17386. fi
  17387. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17388. fi
  17389. fi
  17390. fi
  17391. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  17392. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  17393. if test $ac_cv_header_stdc = yes; then
  17394. cat >>confdefs.h <<\_ACEOF
  17395. #define STDC_HEADERS 1
  17396. _ACEOF
  17397. fi
  17398. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  17399. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  17400. if test "${ac_cv_c_bigendian+set}" = set; then
  17401. echo $ECHO_N "(cached) $ECHO_C" >&6
  17402. else
  17403. ac_cv_c_bigendian=unknown
  17404. # See if sys/param.h defines the BYTE_ORDER macro.
  17405. cat >conftest.$ac_ext <<_ACEOF
  17406. /* confdefs.h. */
  17407. _ACEOF
  17408. cat confdefs.h >>conftest.$ac_ext
  17409. cat >>conftest.$ac_ext <<_ACEOF
  17410. /* end confdefs.h. */
  17411. #include <sys/types.h>
  17412. #include <sys/param.h>
  17413. int
  17414. main ()
  17415. {
  17416. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  17417. bogus endian macros
  17418. #endif
  17419. ;
  17420. return 0;
  17421. }
  17422. _ACEOF
  17423. rm -f conftest.$ac_objext
  17424. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17425. (eval $ac_compile) 2>conftest.er1
  17426. ac_status=$?
  17427. grep -v '^ *+' conftest.er1 >conftest.err
  17428. rm -f conftest.er1
  17429. cat conftest.err >&5
  17430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17431. (exit $ac_status); } &&
  17432. { ac_try='test -z "$ac_c_werror_flag"
  17433. || test ! -s conftest.err'
  17434. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17435. (eval $ac_try) 2>&5
  17436. ac_status=$?
  17437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17438. (exit $ac_status); }; } &&
  17439. { ac_try='test -s conftest.$ac_objext'
  17440. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17441. (eval $ac_try) 2>&5
  17442. ac_status=$?
  17443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17444. (exit $ac_status); }; }; then
  17445. # It does; now see whether it defined to BIG_ENDIAN or not.
  17446. cat >conftest.$ac_ext <<_ACEOF
  17447. /* confdefs.h. */
  17448. _ACEOF
  17449. cat confdefs.h >>conftest.$ac_ext
  17450. cat >>conftest.$ac_ext <<_ACEOF
  17451. /* end confdefs.h. */
  17452. #include <sys/types.h>
  17453. #include <sys/param.h>
  17454. int
  17455. main ()
  17456. {
  17457. #if BYTE_ORDER != BIG_ENDIAN
  17458. not big endian
  17459. #endif
  17460. ;
  17461. return 0;
  17462. }
  17463. _ACEOF
  17464. rm -f conftest.$ac_objext
  17465. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17466. (eval $ac_compile) 2>conftest.er1
  17467. ac_status=$?
  17468. grep -v '^ *+' conftest.er1 >conftest.err
  17469. rm -f conftest.er1
  17470. cat conftest.err >&5
  17471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17472. (exit $ac_status); } &&
  17473. { ac_try='test -z "$ac_c_werror_flag"
  17474. || test ! -s conftest.err'
  17475. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17476. (eval $ac_try) 2>&5
  17477. ac_status=$?
  17478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17479. (exit $ac_status); }; } &&
  17480. { ac_try='test -s conftest.$ac_objext'
  17481. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17482. (eval $ac_try) 2>&5
  17483. ac_status=$?
  17484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17485. (exit $ac_status); }; }; then
  17486. ac_cv_c_bigendian=yes
  17487. else
  17488. echo "$as_me: failed program was:" >&5
  17489. sed 's/^/| /' conftest.$ac_ext >&5
  17490. ac_cv_c_bigendian=no
  17491. fi
  17492. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17493. else
  17494. echo "$as_me: failed program was:" >&5
  17495. sed 's/^/| /' conftest.$ac_ext >&5
  17496. fi
  17497. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17498. if test $ac_cv_c_bigendian = unknown; then
  17499. if test "$cross_compiling" = yes; then
  17500. echo $ac_n "cross-compiling... " 2>&6
  17501. else
  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. main () {
  17509. /* Are we little or big endian? From Harbison&Steele. */
  17510. union
  17511. {
  17512. long l;
  17513. char c[sizeof (long)];
  17514. } u;
  17515. u.l = 1;
  17516. exit (u.c[sizeof (long) - 1] == 1);
  17517. }
  17518. _ACEOF
  17519. rm -f conftest$ac_exeext
  17520. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17521. (eval $ac_link) 2>&5
  17522. ac_status=$?
  17523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17524. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17525. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17526. (eval $ac_try) 2>&5
  17527. ac_status=$?
  17528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17529. (exit $ac_status); }; }; then
  17530. ac_cv_c_bigendian=no
  17531. else
  17532. echo "$as_me: program exited with status $ac_status" >&5
  17533. echo "$as_me: failed program was:" >&5
  17534. sed 's/^/| /' conftest.$ac_ext >&5
  17535. ( exit $ac_status )
  17536. ac_cv_c_bigendian=yes
  17537. fi
  17538. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17539. fi
  17540. fi
  17541. fi
  17542. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  17543. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  17544. if test $ac_cv_c_bigendian = unknown; then
  17545. echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
  17546. echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
  17547. cat >conftest.c <<EOF
  17548. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  17549. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  17550. void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
  17551. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  17552. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  17553. void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
  17554. int main() { _ascii (); _ebcdic (); return 0; }
  17555. EOF
  17556. if test -f conftest.c ; then
  17557. if ${CC-cc} -c conftest.c -o conftest.o && test -f conftest.o ; then
  17558. if test `grep -l BIGenDianSyS conftest.o` ; then
  17559. echo $ac_n ' big endian probe OK, ' 1>&6
  17560. ac_cv_c_bigendian=yes
  17561. fi
  17562. if test `grep -l LiTTleEnDian conftest.o` ; then
  17563. echo $ac_n ' little endian probe OK, ' 1>&6
  17564. if test $ac_cv_c_bigendian = yes ; then
  17565. ac_cv_c_bigendian=unknown;
  17566. else
  17567. ac_cv_c_bigendian=no
  17568. fi
  17569. fi
  17570. echo $ac_n 'guessing bigendian ... ' >&6
  17571. fi
  17572. fi
  17573. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  17574. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  17575. fi
  17576. if test $ac_cv_c_bigendian = yes; then
  17577. cat >>confdefs.h <<\_ACEOF
  17578. #define WORDS_BIGENDIAN 1
  17579. _ACEOF
  17580. BYTEORDER=4321
  17581. else
  17582. BYTEORDER=1234
  17583. fi
  17584. cat >>confdefs.h <<_ACEOF
  17585. #define BYTEORDER $BYTEORDER
  17586. _ACEOF
  17587. if test $ac_cv_c_bigendian = unknown; then
  17588. { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5
  17589. echo "$as_me: error: unknown endianess - sorry" >&2;}
  17590. { (exit please pre-set ac_cv_c_bigendian); exit please pre-set ac_cv_c_bigendian; }; }
  17591. fi
  17592. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  17593. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  17594. if test "${ac_cv_c_const+set}" = set; then
  17595. echo $ECHO_N "(cached) $ECHO_C" >&6
  17596. else
  17597. cat >conftest.$ac_ext <<_ACEOF
  17598. /* confdefs.h. */
  17599. _ACEOF
  17600. cat confdefs.h >>conftest.$ac_ext
  17601. cat >>conftest.$ac_ext <<_ACEOF
  17602. /* end confdefs.h. */
  17603. int
  17604. main ()
  17605. {
  17606. /* FIXME: Include the comments suggested by Paul. */
  17607. #ifndef __cplusplus
  17608. /* Ultrix mips cc rejects this. */
  17609. typedef int charset[2];
  17610. const charset x;
  17611. /* SunOS 4.1.1 cc rejects this. */
  17612. char const *const *ccp;
  17613. char **p;
  17614. /* NEC SVR4.0.2 mips cc rejects this. */
  17615. struct point {int x, y;};
  17616. static struct point const zero = {0,0};
  17617. /* AIX XL C 1.02.0.0 rejects this.
  17618. It does not let you subtract one const X* pointer from another in
  17619. an arm of an if-expression whose if-part is not a constant
  17620. expression */
  17621. const char *g = "string";
  17622. ccp = &g + (g ? g-g : 0);
  17623. /* HPUX 7.0 cc rejects these. */
  17624. ++ccp;
  17625. p = (char**) ccp;
  17626. ccp = (char const *const *) p;
  17627. { /* SCO 3.2v4 cc rejects this. */
  17628. char *t;
  17629. char const *s = 0 ? (char *) 0 : (char const *) 0;
  17630. *t++ = 0;
  17631. }
  17632. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  17633. int x[] = {25, 17};
  17634. const int *foo = &x[0];
  17635. ++foo;
  17636. }
  17637. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  17638. typedef const int *iptr;
  17639. iptr p = 0;
  17640. ++p;
  17641. }
  17642. { /* AIX XL C 1.02.0.0 rejects this saying
  17643. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  17644. struct s { int j; const int *ap[3]; };
  17645. struct s *b; b->j = 5;
  17646. }
  17647. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  17648. const int foo = 10;
  17649. }
  17650. #endif
  17651. ;
  17652. return 0;
  17653. }
  17654. _ACEOF
  17655. rm -f conftest.$ac_objext
  17656. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17657. (eval $ac_compile) 2>conftest.er1
  17658. ac_status=$?
  17659. grep -v '^ *+' conftest.er1 >conftest.err
  17660. rm -f conftest.er1
  17661. cat conftest.err >&5
  17662. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17663. (exit $ac_status); } &&
  17664. { ac_try='test -z "$ac_c_werror_flag"
  17665. || test ! -s conftest.err'
  17666. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17667. (eval $ac_try) 2>&5
  17668. ac_status=$?
  17669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17670. (exit $ac_status); }; } &&
  17671. { ac_try='test -s conftest.$ac_objext'
  17672. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17673. (eval $ac_try) 2>&5
  17674. ac_status=$?
  17675. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17676. (exit $ac_status); }; }; then
  17677. ac_cv_c_const=yes
  17678. else
  17679. echo "$as_me: failed program was:" >&5
  17680. sed 's/^/| /' conftest.$ac_ext >&5
  17681. ac_cv_c_const=no
  17682. fi
  17683. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17684. fi
  17685. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  17686. echo "${ECHO_T}$ac_cv_c_const" >&6
  17687. if test $ac_cv_c_const = no; then
  17688. cat >>confdefs.h <<\_ACEOF
  17689. #define const
  17690. _ACEOF
  17691. fi
  17692. echo "$as_me:$LINENO: checking for size_t" >&5
  17693. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  17694. if test "${ac_cv_type_size_t+set}" = set; then
  17695. echo $ECHO_N "(cached) $ECHO_C" >&6
  17696. else
  17697. cat >conftest.$ac_ext <<_ACEOF
  17698. /* confdefs.h. */
  17699. _ACEOF
  17700. cat confdefs.h >>conftest.$ac_ext
  17701. cat >>conftest.$ac_ext <<_ACEOF
  17702. /* end confdefs.h. */
  17703. $ac_includes_default
  17704. int
  17705. main ()
  17706. {
  17707. if ((size_t *) 0)
  17708. return 0;
  17709. if (sizeof (size_t))
  17710. return 0;
  17711. ;
  17712. return 0;
  17713. }
  17714. _ACEOF
  17715. rm -f conftest.$ac_objext
  17716. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17717. (eval $ac_compile) 2>conftest.er1
  17718. ac_status=$?
  17719. grep -v '^ *+' conftest.er1 >conftest.err
  17720. rm -f conftest.er1
  17721. cat conftest.err >&5
  17722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17723. (exit $ac_status); } &&
  17724. { ac_try='test -z "$ac_c_werror_flag"
  17725. || test ! -s conftest.err'
  17726. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17727. (eval $ac_try) 2>&5
  17728. ac_status=$?
  17729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17730. (exit $ac_status); }; } &&
  17731. { ac_try='test -s conftest.$ac_objext'
  17732. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17733. (eval $ac_try) 2>&5
  17734. ac_status=$?
  17735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17736. (exit $ac_status); }; }; then
  17737. ac_cv_type_size_t=yes
  17738. else
  17739. echo "$as_me: failed program was:" >&5
  17740. sed 's/^/| /' conftest.$ac_ext >&5
  17741. ac_cv_type_size_t=no
  17742. fi
  17743. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17744. fi
  17745. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  17746. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  17747. if test $ac_cv_type_size_t = yes; then
  17748. :
  17749. else
  17750. cat >>confdefs.h <<_ACEOF
  17751. #define size_t unsigned
  17752. _ACEOF
  17753. fi
  17754. for ac_func in memmove bcopy
  17755. do
  17756. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17757. echo "$as_me:$LINENO: checking for $ac_func" >&5
  17758. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  17759. if eval "test \"\${$as_ac_var+set}\" = set"; then
  17760. echo $ECHO_N "(cached) $ECHO_C" >&6
  17761. else
  17762. cat >conftest.$ac_ext <<_ACEOF
  17763. /* confdefs.h. */
  17764. _ACEOF
  17765. cat confdefs.h >>conftest.$ac_ext
  17766. cat >>conftest.$ac_ext <<_ACEOF
  17767. /* end confdefs.h. */
  17768. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17769. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17770. #define $ac_func innocuous_$ac_func
  17771. /* System header to define __stub macros and hopefully few prototypes,
  17772. which can conflict with char $ac_func (); below.
  17773. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17774. <limits.h> exists even on freestanding compilers. */
  17775. #ifdef __STDC__
  17776. # include <limits.h>
  17777. #else
  17778. # include <assert.h>
  17779. #endif
  17780. #undef $ac_func
  17781. /* Override any gcc2 internal prototype to avoid an error. */
  17782. #ifdef __cplusplus
  17783. extern "C"
  17784. {
  17785. #endif
  17786. /* We use char because int might match the return type of a gcc2
  17787. builtin and then its argument prototype would still apply. */
  17788. char $ac_func ();
  17789. /* The GNU C library defines this for functions which it implements
  17790. to always fail with ENOSYS. Some functions are actually named
  17791. something starting with __ and the normal name is an alias. */
  17792. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  17793. choke me
  17794. #else
  17795. char (*f) () = $ac_func;
  17796. #endif
  17797. #ifdef __cplusplus
  17798. }
  17799. #endif
  17800. int
  17801. main ()
  17802. {
  17803. return f != $ac_func;
  17804. ;
  17805. return 0;
  17806. }
  17807. _ACEOF
  17808. rm -f conftest.$ac_objext conftest$ac_exeext
  17809. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17810. (eval $ac_link) 2>conftest.er1
  17811. ac_status=$?
  17812. grep -v '^ *+' conftest.er1 >conftest.err
  17813. rm -f conftest.er1
  17814. cat conftest.err >&5
  17815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17816. (exit $ac_status); } &&
  17817. { ac_try='test -z "$ac_c_werror_flag"
  17818. || test ! -s conftest.err'
  17819. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17820. (eval $ac_try) 2>&5
  17821. ac_status=$?
  17822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17823. (exit $ac_status); }; } &&
  17824. { ac_try='test -s conftest$ac_exeext'
  17825. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17826. (eval $ac_try) 2>&5
  17827. ac_status=$?
  17828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17829. (exit $ac_status); }; }; then
  17830. eval "$as_ac_var=yes"
  17831. else
  17832. echo "$as_me: failed program was:" >&5
  17833. sed 's/^/| /' conftest.$ac_ext >&5
  17834. eval "$as_ac_var=no"
  17835. fi
  17836. rm -f conftest.err conftest.$ac_objext \
  17837. conftest$ac_exeext conftest.$ac_ext
  17838. fi
  17839. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  17840. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  17841. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17842. cat >>confdefs.h <<_ACEOF
  17843. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17844. _ACEOF
  17845. fi
  17846. done
  17847. for ac_header in fcntl.h unistd.h
  17848. do
  17849. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17850. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17851. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17852. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17853. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17854. echo $ECHO_N "(cached) $ECHO_C" >&6
  17855. fi
  17856. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17857. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17858. else
  17859. # Is the header compilable?
  17860. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17861. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  17862. cat >conftest.$ac_ext <<_ACEOF
  17863. /* confdefs.h. */
  17864. _ACEOF
  17865. cat confdefs.h >>conftest.$ac_ext
  17866. cat >>conftest.$ac_ext <<_ACEOF
  17867. /* end confdefs.h. */
  17868. $ac_includes_default
  17869. #include <$ac_header>
  17870. _ACEOF
  17871. rm -f conftest.$ac_objext
  17872. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17873. (eval $ac_compile) 2>conftest.er1
  17874. ac_status=$?
  17875. grep -v '^ *+' conftest.er1 >conftest.err
  17876. rm -f conftest.er1
  17877. cat conftest.err >&5
  17878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17879. (exit $ac_status); } &&
  17880. { ac_try='test -z "$ac_c_werror_flag"
  17881. || test ! -s conftest.err'
  17882. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17883. (eval $ac_try) 2>&5
  17884. ac_status=$?
  17885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17886. (exit $ac_status); }; } &&
  17887. { ac_try='test -s conftest.$ac_objext'
  17888. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17889. (eval $ac_try) 2>&5
  17890. ac_status=$?
  17891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17892. (exit $ac_status); }; }; then
  17893. ac_header_compiler=yes
  17894. else
  17895. echo "$as_me: failed program was:" >&5
  17896. sed 's/^/| /' conftest.$ac_ext >&5
  17897. ac_header_compiler=no
  17898. fi
  17899. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17900. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17901. echo "${ECHO_T}$ac_header_compiler" >&6
  17902. # Is the header present?
  17903. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17904. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  17905. cat >conftest.$ac_ext <<_ACEOF
  17906. /* confdefs.h. */
  17907. _ACEOF
  17908. cat confdefs.h >>conftest.$ac_ext
  17909. cat >>conftest.$ac_ext <<_ACEOF
  17910. /* end confdefs.h. */
  17911. #include <$ac_header>
  17912. _ACEOF
  17913. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17914. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17915. ac_status=$?
  17916. grep -v '^ *+' conftest.er1 >conftest.err
  17917. rm -f conftest.er1
  17918. cat conftest.err >&5
  17919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17920. (exit $ac_status); } >/dev/null; then
  17921. if test -s conftest.err; then
  17922. ac_cpp_err=$ac_c_preproc_warn_flag
  17923. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17924. else
  17925. ac_cpp_err=
  17926. fi
  17927. else
  17928. ac_cpp_err=yes
  17929. fi
  17930. if test -z "$ac_cpp_err"; then
  17931. ac_header_preproc=yes
  17932. else
  17933. echo "$as_me: failed program was:" >&5
  17934. sed 's/^/| /' conftest.$ac_ext >&5
  17935. ac_header_preproc=no
  17936. fi
  17937. rm -f conftest.err conftest.$ac_ext
  17938. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17939. echo "${ECHO_T}$ac_header_preproc" >&6
  17940. # So? What about this header?
  17941. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17942. yes:no: )
  17943. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17944. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17945. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17946. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17947. ac_header_preproc=yes
  17948. ;;
  17949. no:yes:* )
  17950. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17951. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17952. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17953. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17954. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17955. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17956. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17957. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17958. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17959. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17960. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17961. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17962. (
  17963. cat <<\_ASBOX
  17964. ## -------------------------------------- ##
  17965. ## Report this to expat-bugs@libexpat.org ##
  17966. ## -------------------------------------- ##
  17967. _ASBOX
  17968. ) |
  17969. sed "s/^/$as_me: WARNING: /" >&2
  17970. ;;
  17971. esac
  17972. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17973. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17974. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17975. echo $ECHO_N "(cached) $ECHO_C" >&6
  17976. else
  17977. eval "$as_ac_Header=\$ac_header_preproc"
  17978. fi
  17979. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17980. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17981. fi
  17982. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17983. cat >>confdefs.h <<_ACEOF
  17984. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17985. _ACEOF
  17986. fi
  17987. done
  17988. echo "$as_me:$LINENO: checking for off_t" >&5
  17989. echo $ECHO_N "checking for off_t... $ECHO_C" >&6
  17990. if test "${ac_cv_type_off_t+set}" = set; then
  17991. echo $ECHO_N "(cached) $ECHO_C" >&6
  17992. else
  17993. cat >conftest.$ac_ext <<_ACEOF
  17994. /* confdefs.h. */
  17995. _ACEOF
  17996. cat confdefs.h >>conftest.$ac_ext
  17997. cat >>conftest.$ac_ext <<_ACEOF
  17998. /* end confdefs.h. */
  17999. $ac_includes_default
  18000. int
  18001. main ()
  18002. {
  18003. if ((off_t *) 0)
  18004. return 0;
  18005. if (sizeof (off_t))
  18006. return 0;
  18007. ;
  18008. return 0;
  18009. }
  18010. _ACEOF
  18011. rm -f conftest.$ac_objext
  18012. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18013. (eval $ac_compile) 2>conftest.er1
  18014. ac_status=$?
  18015. grep -v '^ *+' conftest.er1 >conftest.err
  18016. rm -f conftest.er1
  18017. cat conftest.err >&5
  18018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18019. (exit $ac_status); } &&
  18020. { ac_try='test -z "$ac_c_werror_flag"
  18021. || test ! -s conftest.err'
  18022. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18023. (eval $ac_try) 2>&5
  18024. ac_status=$?
  18025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18026. (exit $ac_status); }; } &&
  18027. { ac_try='test -s conftest.$ac_objext'
  18028. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18029. (eval $ac_try) 2>&5
  18030. ac_status=$?
  18031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18032. (exit $ac_status); }; }; then
  18033. ac_cv_type_off_t=yes
  18034. else
  18035. echo "$as_me: failed program was:" >&5
  18036. sed 's/^/| /' conftest.$ac_ext >&5
  18037. ac_cv_type_off_t=no
  18038. fi
  18039. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18040. fi
  18041. echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  18042. echo "${ECHO_T}$ac_cv_type_off_t" >&6
  18043. if test $ac_cv_type_off_t = yes; then
  18044. :
  18045. else
  18046. cat >>confdefs.h <<_ACEOF
  18047. #define off_t long
  18048. _ACEOF
  18049. fi
  18050. for ac_header in stdlib.h unistd.h
  18051. do
  18052. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18053. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18054. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18055. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18056. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18057. echo $ECHO_N "(cached) $ECHO_C" >&6
  18058. fi
  18059. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18060. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18061. else
  18062. # Is the header compilable?
  18063. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18064. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18065. cat >conftest.$ac_ext <<_ACEOF
  18066. /* confdefs.h. */
  18067. _ACEOF
  18068. cat confdefs.h >>conftest.$ac_ext
  18069. cat >>conftest.$ac_ext <<_ACEOF
  18070. /* end confdefs.h. */
  18071. $ac_includes_default
  18072. #include <$ac_header>
  18073. _ACEOF
  18074. rm -f conftest.$ac_objext
  18075. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18076. (eval $ac_compile) 2>conftest.er1
  18077. ac_status=$?
  18078. grep -v '^ *+' conftest.er1 >conftest.err
  18079. rm -f conftest.er1
  18080. cat conftest.err >&5
  18081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18082. (exit $ac_status); } &&
  18083. { ac_try='test -z "$ac_c_werror_flag"
  18084. || test ! -s conftest.err'
  18085. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18086. (eval $ac_try) 2>&5
  18087. ac_status=$?
  18088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18089. (exit $ac_status); }; } &&
  18090. { ac_try='test -s conftest.$ac_objext'
  18091. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18092. (eval $ac_try) 2>&5
  18093. ac_status=$?
  18094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18095. (exit $ac_status); }; }; then
  18096. ac_header_compiler=yes
  18097. else
  18098. echo "$as_me: failed program was:" >&5
  18099. sed 's/^/| /' conftest.$ac_ext >&5
  18100. ac_header_compiler=no
  18101. fi
  18102. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18103. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18104. echo "${ECHO_T}$ac_header_compiler" >&6
  18105. # Is the header present?
  18106. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18107. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18108. cat >conftest.$ac_ext <<_ACEOF
  18109. /* confdefs.h. */
  18110. _ACEOF
  18111. cat confdefs.h >>conftest.$ac_ext
  18112. cat >>conftest.$ac_ext <<_ACEOF
  18113. /* end confdefs.h. */
  18114. #include <$ac_header>
  18115. _ACEOF
  18116. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18117. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18118. ac_status=$?
  18119. grep -v '^ *+' conftest.er1 >conftest.err
  18120. rm -f conftest.er1
  18121. cat conftest.err >&5
  18122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18123. (exit $ac_status); } >/dev/null; then
  18124. if test -s conftest.err; then
  18125. ac_cpp_err=$ac_c_preproc_warn_flag
  18126. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18127. else
  18128. ac_cpp_err=
  18129. fi
  18130. else
  18131. ac_cpp_err=yes
  18132. fi
  18133. if test -z "$ac_cpp_err"; then
  18134. ac_header_preproc=yes
  18135. else
  18136. echo "$as_me: failed program was:" >&5
  18137. sed 's/^/| /' conftest.$ac_ext >&5
  18138. ac_header_preproc=no
  18139. fi
  18140. rm -f conftest.err conftest.$ac_ext
  18141. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18142. echo "${ECHO_T}$ac_header_preproc" >&6
  18143. # So? What about this header?
  18144. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18145. yes:no: )
  18146. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18147. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18148. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18149. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18150. ac_header_preproc=yes
  18151. ;;
  18152. no:yes:* )
  18153. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18154. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18155. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18156. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18157. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18158. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18159. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18160. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18161. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18162. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18163. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18164. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18165. (
  18166. cat <<\_ASBOX
  18167. ## -------------------------------------- ##
  18168. ## Report this to expat-bugs@libexpat.org ##
  18169. ## -------------------------------------- ##
  18170. _ASBOX
  18171. ) |
  18172. sed "s/^/$as_me: WARNING: /" >&2
  18173. ;;
  18174. esac
  18175. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18176. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18177. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18178. echo $ECHO_N "(cached) $ECHO_C" >&6
  18179. else
  18180. eval "$as_ac_Header=\$ac_header_preproc"
  18181. fi
  18182. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18183. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18184. fi
  18185. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18186. cat >>confdefs.h <<_ACEOF
  18187. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18188. _ACEOF
  18189. fi
  18190. done
  18191. for ac_func in getpagesize
  18192. do
  18193. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18194. echo "$as_me:$LINENO: checking for $ac_func" >&5
  18195. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  18196. if eval "test \"\${$as_ac_var+set}\" = set"; then
  18197. echo $ECHO_N "(cached) $ECHO_C" >&6
  18198. else
  18199. cat >conftest.$ac_ext <<_ACEOF
  18200. /* confdefs.h. */
  18201. _ACEOF
  18202. cat confdefs.h >>conftest.$ac_ext
  18203. cat >>conftest.$ac_ext <<_ACEOF
  18204. /* end confdefs.h. */
  18205. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18206. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18207. #define $ac_func innocuous_$ac_func
  18208. /* System header to define __stub macros and hopefully few prototypes,
  18209. which can conflict with char $ac_func (); below.
  18210. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18211. <limits.h> exists even on freestanding compilers. */
  18212. #ifdef __STDC__
  18213. # include <limits.h>
  18214. #else
  18215. # include <assert.h>
  18216. #endif
  18217. #undef $ac_func
  18218. /* Override any gcc2 internal prototype to avoid an error. */
  18219. #ifdef __cplusplus
  18220. extern "C"
  18221. {
  18222. #endif
  18223. /* We use char because int might match the return type of a gcc2
  18224. builtin and then its argument prototype would still apply. */
  18225. char $ac_func ();
  18226. /* The GNU C library defines this for functions which it implements
  18227. to always fail with ENOSYS. Some functions are actually named
  18228. something starting with __ and the normal name is an alias. */
  18229. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  18230. choke me
  18231. #else
  18232. char (*f) () = $ac_func;
  18233. #endif
  18234. #ifdef __cplusplus
  18235. }
  18236. #endif
  18237. int
  18238. main ()
  18239. {
  18240. return f != $ac_func;
  18241. ;
  18242. return 0;
  18243. }
  18244. _ACEOF
  18245. rm -f conftest.$ac_objext conftest$ac_exeext
  18246. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18247. (eval $ac_link) 2>conftest.er1
  18248. ac_status=$?
  18249. grep -v '^ *+' conftest.er1 >conftest.err
  18250. rm -f conftest.er1
  18251. cat conftest.err >&5
  18252. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18253. (exit $ac_status); } &&
  18254. { ac_try='test -z "$ac_c_werror_flag"
  18255. || test ! -s conftest.err'
  18256. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18257. (eval $ac_try) 2>&5
  18258. ac_status=$?
  18259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18260. (exit $ac_status); }; } &&
  18261. { ac_try='test -s conftest$ac_exeext'
  18262. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18263. (eval $ac_try) 2>&5
  18264. ac_status=$?
  18265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18266. (exit $ac_status); }; }; then
  18267. eval "$as_ac_var=yes"
  18268. else
  18269. echo "$as_me: failed program was:" >&5
  18270. sed 's/^/| /' conftest.$ac_ext >&5
  18271. eval "$as_ac_var=no"
  18272. fi
  18273. rm -f conftest.err conftest.$ac_objext \
  18274. conftest$ac_exeext conftest.$ac_ext
  18275. fi
  18276. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  18277. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  18278. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18279. cat >>confdefs.h <<_ACEOF
  18280. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18281. _ACEOF
  18282. fi
  18283. done
  18284. echo "$as_me:$LINENO: checking for working mmap" >&5
  18285. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  18286. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  18287. echo $ECHO_N "(cached) $ECHO_C" >&6
  18288. else
  18289. if test "$cross_compiling" = yes; then
  18290. ac_cv_func_mmap_fixed_mapped=no
  18291. else
  18292. cat >conftest.$ac_ext <<_ACEOF
  18293. /* confdefs.h. */
  18294. _ACEOF
  18295. cat confdefs.h >>conftest.$ac_ext
  18296. cat >>conftest.$ac_ext <<_ACEOF
  18297. /* end confdefs.h. */
  18298. $ac_includes_default
  18299. /* malloc might have been renamed as rpl_malloc. */
  18300. #undef malloc
  18301. /* Thanks to Mike Haertel and Jim Avera for this test.
  18302. Here is a matrix of mmap possibilities:
  18303. mmap private not fixed
  18304. mmap private fixed at somewhere currently unmapped
  18305. mmap private fixed at somewhere already mapped
  18306. mmap shared not fixed
  18307. mmap shared fixed at somewhere currently unmapped
  18308. mmap shared fixed at somewhere already mapped
  18309. For private mappings, we should verify that changes cannot be read()
  18310. back from the file, nor mmap's back from the file at a different
  18311. address. (There have been systems where private was not correctly
  18312. implemented like the infamous i386 svr4.0, and systems where the
  18313. VM page cache was not coherent with the file system buffer cache
  18314. like early versions of FreeBSD and possibly contemporary NetBSD.)
  18315. For shared mappings, we should conversely verify that changes get
  18316. propagated back to all the places they're supposed to be.
  18317. Grep wants private fixed already mapped.
  18318. The main things grep needs to know about mmap are:
  18319. * does it exist and is it safe to write into the mmap'd area
  18320. * how to use it (BSD variants) */
  18321. #include <fcntl.h>
  18322. #include <sys/mman.h>
  18323. #if !STDC_HEADERS && !HAVE_STDLIB_H
  18324. char *malloc ();
  18325. #endif
  18326. /* This mess was copied from the GNU getpagesize.h. */
  18327. #if !HAVE_GETPAGESIZE
  18328. /* Assume that all systems that can run configure have sys/param.h. */
  18329. # if !HAVE_SYS_PARAM_H
  18330. # define HAVE_SYS_PARAM_H 1
  18331. # endif
  18332. # ifdef _SC_PAGESIZE
  18333. # define getpagesize() sysconf(_SC_PAGESIZE)
  18334. # else /* no _SC_PAGESIZE */
  18335. # if HAVE_SYS_PARAM_H
  18336. # include <sys/param.h>
  18337. # ifdef EXEC_PAGESIZE
  18338. # define getpagesize() EXEC_PAGESIZE
  18339. # else /* no EXEC_PAGESIZE */
  18340. # ifdef NBPG
  18341. # define getpagesize() NBPG * CLSIZE
  18342. # ifndef CLSIZE
  18343. # define CLSIZE 1
  18344. # endif /* no CLSIZE */
  18345. # else /* no NBPG */
  18346. # ifdef NBPC
  18347. # define getpagesize() NBPC
  18348. # else /* no NBPC */
  18349. # ifdef PAGESIZE
  18350. # define getpagesize() PAGESIZE
  18351. # endif /* PAGESIZE */
  18352. # endif /* no NBPC */
  18353. # endif /* no NBPG */
  18354. # endif /* no EXEC_PAGESIZE */
  18355. # else /* no HAVE_SYS_PARAM_H */
  18356. # define getpagesize() 8192 /* punt totally */
  18357. # endif /* no HAVE_SYS_PARAM_H */
  18358. # endif /* no _SC_PAGESIZE */
  18359. #endif /* no HAVE_GETPAGESIZE */
  18360. int
  18361. main ()
  18362. {
  18363. char *data, *data2, *data3;
  18364. int i, pagesize;
  18365. int fd;
  18366. pagesize = getpagesize ();
  18367. /* First, make a file with some known garbage in it. */
  18368. data = (char *) malloc (pagesize);
  18369. if (!data)
  18370. exit (1);
  18371. for (i = 0; i < pagesize; ++i)
  18372. *(data + i) = rand ();
  18373. umask (0);
  18374. fd = creat ("conftest.mmap", 0600);
  18375. if (fd < 0)
  18376. exit (1);
  18377. if (write (fd, data, pagesize) != pagesize)
  18378. exit (1);
  18379. close (fd);
  18380. /* Next, try to mmap the file at a fixed address which already has
  18381. something else allocated at it. If we can, also make sure that
  18382. we see the same garbage. */
  18383. fd = open ("conftest.mmap", O_RDWR);
  18384. if (fd < 0)
  18385. exit (1);
  18386. data2 = (char *) malloc (2 * pagesize);
  18387. if (!data2)
  18388. exit (1);
  18389. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  18390. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  18391. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  18392. exit (1);
  18393. for (i = 0; i < pagesize; ++i)
  18394. if (*(data + i) != *(data2 + i))
  18395. exit (1);
  18396. /* Finally, make sure that changes to the mapped area do not
  18397. percolate back to the file as seen by read(). (This is a bug on
  18398. some variants of i386 svr4.0.) */
  18399. for (i = 0; i < pagesize; ++i)
  18400. *(data2 + i) = *(data2 + i) + 1;
  18401. data3 = (char *) malloc (pagesize);
  18402. if (!data3)
  18403. exit (1);
  18404. if (read (fd, data3, pagesize) != pagesize)
  18405. exit (1);
  18406. for (i = 0; i < pagesize; ++i)
  18407. if (*(data + i) != *(data3 + i))
  18408. exit (1);
  18409. close (fd);
  18410. exit (0);
  18411. }
  18412. _ACEOF
  18413. rm -f conftest$ac_exeext
  18414. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18415. (eval $ac_link) 2>&5
  18416. ac_status=$?
  18417. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18418. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18419. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18420. (eval $ac_try) 2>&5
  18421. ac_status=$?
  18422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18423. (exit $ac_status); }; }; then
  18424. ac_cv_func_mmap_fixed_mapped=yes
  18425. else
  18426. echo "$as_me: program exited with status $ac_status" >&5
  18427. echo "$as_me: failed program was:" >&5
  18428. sed 's/^/| /' conftest.$ac_ext >&5
  18429. ( exit $ac_status )
  18430. ac_cv_func_mmap_fixed_mapped=no
  18431. fi
  18432. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18433. fi
  18434. fi
  18435. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  18436. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  18437. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  18438. cat >>confdefs.h <<\_ACEOF
  18439. #define HAVE_MMAP 1
  18440. _ACEOF
  18441. fi
  18442. rm -f conftest.mmap
  18443. if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then
  18444. FILEMAP=unixfilemap
  18445. else
  18446. FILEMAP=readfilemap
  18447. fi
  18448. # AC_CPP_FUNC
  18449. # ------------------ #
  18450. # Checks to see if ANSI C99 CPP variable __func__ works.
  18451. # If not, perhaps __FUNCTION__ works instead.
  18452. # If not, we'll just define __func__ to "".
  18453. # AC_CPP_FUNC
  18454. echo "$as_me:$LINENO: checking for an ANSI C99-conforming __func__" >&5
  18455. echo $ECHO_N "checking for an ANSI C99-conforming __func__... $ECHO_C" >&6
  18456. if test "${ac_cv_cpp_func+set}" = set; then
  18457. echo $ECHO_N "(cached) $ECHO_C" >&6
  18458. else
  18459. cat >conftest.$ac_ext <<_ACEOF
  18460. /* confdefs.h. */
  18461. _ACEOF
  18462. cat confdefs.h >>conftest.$ac_ext
  18463. cat >>conftest.$ac_ext <<_ACEOF
  18464. /* end confdefs.h. */
  18465. int
  18466. main ()
  18467. {
  18468. char *foo = __func__;
  18469. ;
  18470. return 0;
  18471. }
  18472. _ACEOF
  18473. rm -f conftest.$ac_objext
  18474. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18475. (eval $ac_compile) 2>conftest.er1
  18476. ac_status=$?
  18477. grep -v '^ *+' conftest.er1 >conftest.err
  18478. rm -f conftest.er1
  18479. cat conftest.err >&5
  18480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18481. (exit $ac_status); } &&
  18482. { ac_try='test -z "$ac_c_werror_flag"
  18483. || test ! -s conftest.err'
  18484. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18485. (eval $ac_try) 2>&5
  18486. ac_status=$?
  18487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18488. (exit $ac_status); }; } &&
  18489. { ac_try='test -s conftest.$ac_objext'
  18490. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18491. (eval $ac_try) 2>&5
  18492. ac_status=$?
  18493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18494. (exit $ac_status); }; }; then
  18495. ac_cv_cpp_func=yes
  18496. else
  18497. echo "$as_me: failed program was:" >&5
  18498. sed 's/^/| /' conftest.$ac_ext >&5
  18499. cat >conftest.$ac_ext <<_ACEOF
  18500. /* confdefs.h. */
  18501. _ACEOF
  18502. cat confdefs.h >>conftest.$ac_ext
  18503. cat >>conftest.$ac_ext <<_ACEOF
  18504. /* end confdefs.h. */
  18505. int
  18506. main ()
  18507. {
  18508. char *foo = __FUNCTION__;
  18509. ;
  18510. return 0;
  18511. }
  18512. _ACEOF
  18513. rm -f conftest.$ac_objext
  18514. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18515. (eval $ac_compile) 2>conftest.er1
  18516. ac_status=$?
  18517. grep -v '^ *+' conftest.er1 >conftest.err
  18518. rm -f conftest.er1
  18519. cat conftest.err >&5
  18520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18521. (exit $ac_status); } &&
  18522. { ac_try='test -z "$ac_c_werror_flag"
  18523. || test ! -s conftest.err'
  18524. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18525. (eval $ac_try) 2>&5
  18526. ac_status=$?
  18527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18528. (exit $ac_status); }; } &&
  18529. { ac_try='test -s conftest.$ac_objext'
  18530. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18531. (eval $ac_try) 2>&5
  18532. ac_status=$?
  18533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18534. (exit $ac_status); }; }; then
  18535. ac_cv_cpp_func=__FUNCTION__
  18536. else
  18537. echo "$as_me: failed program was:" >&5
  18538. sed 's/^/| /' conftest.$ac_ext >&5
  18539. ac_cv_cpp_func=no
  18540. fi
  18541. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18542. fi
  18543. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18544. fi
  18545. echo "$as_me:$LINENO: result: $ac_cv_cpp_func" >&5
  18546. echo "${ECHO_T}$ac_cv_cpp_func" >&6
  18547. if test $ac_cv_cpp_func = __FUNCTION__; then
  18548. cat >>confdefs.h <<\_ACEOF
  18549. #define __func__ __FUNCTION__
  18550. _ACEOF
  18551. elif test $ac_cv_cpp_func = no; then
  18552. cat >>confdefs.h <<\_ACEOF
  18553. #define __func__ ""
  18554. _ACEOF
  18555. fi
  18556. cat >>confdefs.h <<\_ACEOF
  18557. #define XML_NS 1
  18558. _ACEOF
  18559. cat >>confdefs.h <<\_ACEOF
  18560. #define XML_DTD 1
  18561. _ACEOF
  18562. cat >>confdefs.h <<\_ACEOF
  18563. #define XML_CONTEXT_BYTES 1024
  18564. _ACEOF
  18565. ac_config_files="$ac_config_files Makefile"
  18566. cat >confcache <<\_ACEOF
  18567. # This file is a shell script that caches the results of configure
  18568. # tests run on this system so they can be shared between configure
  18569. # scripts and configure runs, see configure's option --config-cache.
  18570. # It is not useful on other systems. If it contains results you don't
  18571. # want to keep, you may remove or edit it.
  18572. #
  18573. # config.status only pays attention to the cache file if you give it
  18574. # the --recheck option to rerun configure.
  18575. #
  18576. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  18577. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  18578. # following values.
  18579. _ACEOF
  18580. # The following way of writing the cache mishandles newlines in values,
  18581. # but we know of no workaround that is simple, portable, and efficient.
  18582. # So, don't put newlines in cache variables' values.
  18583. # Ultrix sh set writes to stderr and can't be redirected directly,
  18584. # and sets the high bit in the cache file unless we assign to the vars.
  18585. {
  18586. (set) 2>&1 |
  18587. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  18588. *ac_space=\ *)
  18589. # `set' does not quote correctly, so add quotes (double-quote
  18590. # substitution turns \\\\ into \\, and sed turns \\ into \).
  18591. sed -n \
  18592. "s/'/'\\\\''/g;
  18593. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  18594. ;;
  18595. *)
  18596. # `set' quotes correctly as required by POSIX, so do not add quotes.
  18597. sed -n \
  18598. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  18599. ;;
  18600. esac;
  18601. } |
  18602. sed '
  18603. t clear
  18604. : clear
  18605. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  18606. t end
  18607. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  18608. : end' >>confcache
  18609. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  18610. if test -w $cache_file; then
  18611. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  18612. cat confcache >$cache_file
  18613. else
  18614. echo "not updating unwritable cache $cache_file"
  18615. fi
  18616. fi
  18617. rm -f confcache
  18618. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  18619. # Let make expand exec_prefix.
  18620. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  18621. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  18622. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  18623. # trailing colons and then remove the whole line if VPATH becomes empty
  18624. # (actually we leave an empty line to preserve line numbers).
  18625. if test "x$srcdir" = x.; then
  18626. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  18627. s/:*\$(srcdir):*/:/;
  18628. s/:*\${srcdir}:*/:/;
  18629. s/:*@srcdir@:*/:/;
  18630. s/^\([^=]*=[ ]*\):*/\1/;
  18631. s/:*$//;
  18632. s/^[^=]*=[ ]*$//;
  18633. }'
  18634. fi
  18635. DEFS=-DHAVE_CONFIG_H
  18636. ac_libobjs=
  18637. ac_ltlibobjs=
  18638. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  18639. # 1. Remove the extension, and $U if already installed.
  18640. ac_i=`echo "$ac_i" |
  18641. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  18642. # 2. Add them.
  18643. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  18644. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  18645. done
  18646. LIBOBJS=$ac_libobjs
  18647. LTLIBOBJS=$ac_ltlibobjs
  18648. : ${CONFIG_STATUS=./config.status}
  18649. ac_clean_files_save=$ac_clean_files
  18650. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  18651. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  18652. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  18653. cat >$CONFIG_STATUS <<_ACEOF
  18654. #! $SHELL
  18655. # Generated by $as_me.
  18656. # Run this file to recreate the current configuration.
  18657. # Compiler output produced by configure, useful for debugging
  18658. # configure, is in config.log if it exists.
  18659. debug=false
  18660. ac_cs_recheck=false
  18661. ac_cs_silent=false
  18662. SHELL=\${CONFIG_SHELL-$SHELL}
  18663. _ACEOF
  18664. cat >>$CONFIG_STATUS <<\_ACEOF
  18665. ## --------------------- ##
  18666. ## M4sh Initialization. ##
  18667. ## --------------------- ##
  18668. # Be Bourne compatible
  18669. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  18670. emulate sh
  18671. NULLCMD=:
  18672. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18673. # is contrary to our usage. Disable this feature.
  18674. alias -g '${1+"$@"}'='"$@"'
  18675. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  18676. set -o posix
  18677. fi
  18678. DUALCASE=1; export DUALCASE # for MKS sh
  18679. # Support unset when possible.
  18680. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  18681. as_unset=unset
  18682. else
  18683. as_unset=false
  18684. fi
  18685. # Work around bugs in pre-3.0 UWIN ksh.
  18686. $as_unset ENV MAIL MAILPATH
  18687. PS1='$ '
  18688. PS2='> '
  18689. PS4='+ '
  18690. # NLS nuisances.
  18691. for as_var in \
  18692. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  18693. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  18694. LC_TELEPHONE LC_TIME
  18695. do
  18696. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  18697. eval $as_var=C; export $as_var
  18698. else
  18699. $as_unset $as_var
  18700. fi
  18701. done
  18702. # Required to use basename.
  18703. if expr a : '\(a\)' >/dev/null 2>&1; then
  18704. as_expr=expr
  18705. else
  18706. as_expr=false
  18707. fi
  18708. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  18709. as_basename=basename
  18710. else
  18711. as_basename=false
  18712. fi
  18713. # Name of the executable.
  18714. as_me=`$as_basename "$0" ||
  18715. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  18716. X"$0" : 'X\(//\)$' \| \
  18717. X"$0" : 'X\(/\)$' \| \
  18718. . : '\(.\)' 2>/dev/null ||
  18719. echo X/"$0" |
  18720. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  18721. /^X\/\(\/\/\)$/{ s//\1/; q; }
  18722. /^X\/\(\/\).*/{ s//\1/; q; }
  18723. s/.*/./; q'`
  18724. # PATH needs CR, and LINENO needs CR and PATH.
  18725. # Avoid depending upon Character Ranges.
  18726. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  18727. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  18728. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  18729. as_cr_digits='0123456789'
  18730. as_cr_alnum=$as_cr_Letters$as_cr_digits
  18731. # The user is always right.
  18732. if test "${PATH_SEPARATOR+set}" != set; then
  18733. echo "#! /bin/sh" >conf$$.sh
  18734. echo "exit 0" >>conf$$.sh
  18735. chmod +x conf$$.sh
  18736. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  18737. PATH_SEPARATOR=';'
  18738. else
  18739. PATH_SEPARATOR=:
  18740. fi
  18741. rm -f conf$$.sh
  18742. fi
  18743. as_lineno_1=$LINENO
  18744. as_lineno_2=$LINENO
  18745. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  18746. test "x$as_lineno_1" != "x$as_lineno_2" &&
  18747. test "x$as_lineno_3" = "x$as_lineno_2" || {
  18748. # Find who we are. Look in the path if we contain no path at all
  18749. # relative or not.
  18750. case $0 in
  18751. *[\\/]* ) as_myself=$0 ;;
  18752. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18753. for as_dir in $PATH
  18754. do
  18755. IFS=$as_save_IFS
  18756. test -z "$as_dir" && as_dir=.
  18757. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  18758. done
  18759. ;;
  18760. esac
  18761. # We did not find ourselves, most probably we were run as `sh COMMAND'
  18762. # in which case we are not to be found in the path.
  18763. if test "x$as_myself" = x; then
  18764. as_myself=$0
  18765. fi
  18766. if test ! -f "$as_myself"; then
  18767. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  18768. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  18769. { (exit 1); exit 1; }; }
  18770. fi
  18771. case $CONFIG_SHELL in
  18772. '')
  18773. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18774. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  18775. do
  18776. IFS=$as_save_IFS
  18777. test -z "$as_dir" && as_dir=.
  18778. for as_base in sh bash ksh sh5; do
  18779. case $as_dir in
  18780. /*)
  18781. if ("$as_dir/$as_base" -c '
  18782. as_lineno_1=$LINENO
  18783. as_lineno_2=$LINENO
  18784. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  18785. test "x$as_lineno_1" != "x$as_lineno_2" &&
  18786. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  18787. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  18788. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  18789. CONFIG_SHELL=$as_dir/$as_base
  18790. export CONFIG_SHELL
  18791. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  18792. fi;;
  18793. esac
  18794. done
  18795. done
  18796. ;;
  18797. esac
  18798. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  18799. # uniformly replaced by the line number. The first 'sed' inserts a
  18800. # line-number line before each line; the second 'sed' does the real
  18801. # work. The second script uses 'N' to pair each line-number line
  18802. # with the numbered line, and appends trailing '-' during
  18803. # substitution so that $LINENO is not a special case at line end.
  18804. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  18805. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  18806. sed '=' <$as_myself |
  18807. sed '
  18808. N
  18809. s,$,-,
  18810. : loop
  18811. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  18812. t loop
  18813. s,-$,,
  18814. s,^['$as_cr_digits']*\n,,
  18815. ' >$as_me.lineno &&
  18816. chmod +x $as_me.lineno ||
  18817. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  18818. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  18819. { (exit 1); exit 1; }; }
  18820. # Don't try to exec as it changes $[0], causing all sort of problems
  18821. # (the dirname of $[0] is not the place where we might find the
  18822. # original and so on. Autoconf is especially sensible to this).
  18823. . ./$as_me.lineno
  18824. # Exit status is that of the last command.
  18825. exit
  18826. }
  18827. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  18828. *c*,-n*) ECHO_N= ECHO_C='
  18829. ' ECHO_T=' ' ;;
  18830. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  18831. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  18832. esac
  18833. if expr a : '\(a\)' >/dev/null 2>&1; then
  18834. as_expr=expr
  18835. else
  18836. as_expr=false
  18837. fi
  18838. rm -f conf$$ conf$$.exe conf$$.file
  18839. echo >conf$$.file
  18840. if ln -s conf$$.file conf$$ 2>/dev/null; then
  18841. # We could just check for DJGPP; but this test a) works b) is more generic
  18842. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  18843. if test -f conf$$.exe; then
  18844. # Don't use ln at all; we don't have any links
  18845. as_ln_s='cp -p'
  18846. else
  18847. as_ln_s='ln -s'
  18848. fi
  18849. elif ln conf$$.file conf$$ 2>/dev/null; then
  18850. as_ln_s=ln
  18851. else
  18852. as_ln_s='cp -p'
  18853. fi
  18854. rm -f conf$$ conf$$.exe conf$$.file
  18855. if mkdir -p . 2>/dev/null; then
  18856. as_mkdir_p=:
  18857. else
  18858. test -d ./-p && rmdir ./-p
  18859. as_mkdir_p=false
  18860. fi
  18861. as_executable_p="test -f"
  18862. # Sed expression to map a string onto a valid CPP name.
  18863. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  18864. # Sed expression to map a string onto a valid variable name.
  18865. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  18866. # IFS
  18867. # We need space, tab and new line, in precisely that order.
  18868. as_nl='
  18869. '
  18870. IFS=" $as_nl"
  18871. # CDPATH.
  18872. $as_unset CDPATH
  18873. exec 6>&1
  18874. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  18875. # report actual input values of CONFIG_FILES etc. instead of their
  18876. # values after options handling. Logging --version etc. is OK.
  18877. exec 5>>config.log
  18878. {
  18879. echo
  18880. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  18881. ## Running $as_me. ##
  18882. _ASBOX
  18883. } >&5
  18884. cat >&5 <<_CSEOF
  18885. This file was extended by expat $as_me 2.0.1, which was
  18886. generated by GNU Autoconf 2.59. Invocation command line was
  18887. CONFIG_FILES = $CONFIG_FILES
  18888. CONFIG_HEADERS = $CONFIG_HEADERS
  18889. CONFIG_LINKS = $CONFIG_LINKS
  18890. CONFIG_COMMANDS = $CONFIG_COMMANDS
  18891. $ $0 $@
  18892. _CSEOF
  18893. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  18894. echo >&5
  18895. _ACEOF
  18896. # Files that config.status was made for.
  18897. if test -n "$ac_config_files"; then
  18898. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  18899. fi
  18900. if test -n "$ac_config_headers"; then
  18901. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  18902. fi
  18903. if test -n "$ac_config_links"; then
  18904. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  18905. fi
  18906. if test -n "$ac_config_commands"; then
  18907. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  18908. fi
  18909. cat >>$CONFIG_STATUS <<\_ACEOF
  18910. ac_cs_usage="\
  18911. \`$as_me' instantiates files from templates according to the
  18912. current configuration.
  18913. Usage: $0 [OPTIONS] [FILE]...
  18914. -h, --help print this help, then exit
  18915. -V, --version print version number, then exit
  18916. -q, --quiet do not print progress messages
  18917. -d, --debug don't remove temporary files
  18918. --recheck update $as_me by reconfiguring in the same conditions
  18919. --file=FILE[:TEMPLATE]
  18920. instantiate the configuration file FILE
  18921. --header=FILE[:TEMPLATE]
  18922. instantiate the configuration header FILE
  18923. Configuration files:
  18924. $config_files
  18925. Configuration headers:
  18926. $config_headers
  18927. Report bugs to <bug-autoconf@gnu.org>."
  18928. _ACEOF
  18929. cat >>$CONFIG_STATUS <<_ACEOF
  18930. ac_cs_version="\\
  18931. expat config.status 2.0.1
  18932. configured by $0, generated by GNU Autoconf 2.59,
  18933. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  18934. Copyright (C) 2003 Free Software Foundation, Inc.
  18935. This config.status script is free software; the Free Software Foundation
  18936. gives unlimited permission to copy, distribute and modify it."
  18937. srcdir=$srcdir
  18938. INSTALL="$INSTALL"
  18939. _ACEOF
  18940. cat >>$CONFIG_STATUS <<\_ACEOF
  18941. # If no file are specified by the user, then we need to provide default
  18942. # value. By we need to know if files were specified by the user.
  18943. ac_need_defaults=:
  18944. while test $# != 0
  18945. do
  18946. case $1 in
  18947. --*=*)
  18948. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  18949. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  18950. ac_shift=:
  18951. ;;
  18952. -*)
  18953. ac_option=$1
  18954. ac_optarg=$2
  18955. ac_shift=shift
  18956. ;;
  18957. *) # This is not an option, so the user has probably given explicit
  18958. # arguments.
  18959. ac_option=$1
  18960. ac_need_defaults=false;;
  18961. esac
  18962. case $ac_option in
  18963. # Handling of the options.
  18964. _ACEOF
  18965. cat >>$CONFIG_STATUS <<\_ACEOF
  18966. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  18967. ac_cs_recheck=: ;;
  18968. --version | --vers* | -V )
  18969. echo "$ac_cs_version"; exit 0 ;;
  18970. --he | --h)
  18971. # Conflict between --help and --header
  18972. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  18973. Try \`$0 --help' for more information." >&5
  18974. echo "$as_me: error: ambiguous option: $1
  18975. Try \`$0 --help' for more information." >&2;}
  18976. { (exit 1); exit 1; }; };;
  18977. --help | --hel | -h )
  18978. echo "$ac_cs_usage"; exit 0 ;;
  18979. --debug | --d* | -d )
  18980. debug=: ;;
  18981. --file | --fil | --fi | --f )
  18982. $ac_shift
  18983. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  18984. ac_need_defaults=false;;
  18985. --header | --heade | --head | --hea )
  18986. $ac_shift
  18987. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  18988. ac_need_defaults=false;;
  18989. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  18990. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  18991. ac_cs_silent=: ;;
  18992. # This is an error.
  18993. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  18994. Try \`$0 --help' for more information." >&5
  18995. echo "$as_me: error: unrecognized option: $1
  18996. Try \`$0 --help' for more information." >&2;}
  18997. { (exit 1); exit 1; }; } ;;
  18998. *) ac_config_targets="$ac_config_targets $1" ;;
  18999. esac
  19000. shift
  19001. done
  19002. ac_configure_extra_args=
  19003. if $ac_cs_silent; then
  19004. exec 6>/dev/null
  19005. ac_configure_extra_args="$ac_configure_extra_args --silent"
  19006. fi
  19007. _ACEOF
  19008. cat >>$CONFIG_STATUS <<_ACEOF
  19009. if \$ac_cs_recheck; then
  19010. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  19011. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  19012. fi
  19013. _ACEOF
  19014. cat >>$CONFIG_STATUS <<\_ACEOF
  19015. for ac_config_target in $ac_config_targets
  19016. do
  19017. case "$ac_config_target" in
  19018. # Handling of arguments.
  19019. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19020. "expat_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
  19021. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  19022. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  19023. { (exit 1); exit 1; }; };;
  19024. esac
  19025. done
  19026. # If the user did not use the arguments to specify the items to instantiate,
  19027. # then the envvar interface is used. Set only those that are not.
  19028. # We use the long form for the default assignment because of an extremely
  19029. # bizarre bug on SunOS 4.1.3.
  19030. if $ac_need_defaults; then
  19031. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  19032. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  19033. fi
  19034. # Have a temporary directory for convenience. Make it in the build tree
  19035. # simply because there is no reason to put it here, and in addition,
  19036. # creating and moving files from /tmp can sometimes cause problems.
  19037. # Create a temporary directory, and hook for its removal unless debugging.
  19038. $debug ||
  19039. {
  19040. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  19041. trap '{ (exit 1); exit 1; }' 1 2 13 15
  19042. }
  19043. # Create a (secure) tmp directory for tmp files.
  19044. {
  19045. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  19046. test -n "$tmp" && test -d "$tmp"
  19047. } ||
  19048. {
  19049. tmp=./confstat$$-$RANDOM
  19050. (umask 077 && mkdir $tmp)
  19051. } ||
  19052. {
  19053. echo "$me: cannot create a temporary directory in ." >&2
  19054. { (exit 1); exit 1; }
  19055. }
  19056. _ACEOF
  19057. cat >>$CONFIG_STATUS <<_ACEOF
  19058. #
  19059. # CONFIG_FILES section.
  19060. #
  19061. # No need to generate the scripts if there are no CONFIG_FILES.
  19062. # This happens for instance when ./config.status config.h
  19063. if test -n "\$CONFIG_FILES"; then
  19064. # Protect against being on the right side of a sed subst in config.status.
  19065. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  19066. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  19067. s,@SHELL@,$SHELL,;t t
  19068. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  19069. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  19070. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  19071. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  19072. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  19073. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  19074. s,@exec_prefix@,$exec_prefix,;t t
  19075. s,@prefix@,$prefix,;t t
  19076. s,@program_transform_name@,$program_transform_name,;t t
  19077. s,@bindir@,$bindir,;t t
  19078. s,@sbindir@,$sbindir,;t t
  19079. s,@libexecdir@,$libexecdir,;t t
  19080. s,@datadir@,$datadir,;t t
  19081. s,@sysconfdir@,$sysconfdir,;t t
  19082. s,@sharedstatedir@,$sharedstatedir,;t t
  19083. s,@localstatedir@,$localstatedir,;t t
  19084. s,@libdir@,$libdir,;t t
  19085. s,@includedir@,$includedir,;t t
  19086. s,@oldincludedir@,$oldincludedir,;t t
  19087. s,@infodir@,$infodir,;t t
  19088. s,@mandir@,$mandir,;t t
  19089. s,@build_alias@,$build_alias,;t t
  19090. s,@host_alias@,$host_alias,;t t
  19091. s,@target_alias@,$target_alias,;t t
  19092. s,@DEFS@,$DEFS,;t t
  19093. s,@ECHO_C@,$ECHO_C,;t t
  19094. s,@ECHO_N@,$ECHO_N,;t t
  19095. s,@ECHO_T@,$ECHO_T,;t t
  19096. s,@LIBS@,$LIBS,;t t
  19097. s,@build@,$build,;t t
  19098. s,@build_cpu@,$build_cpu,;t t
  19099. s,@build_vendor@,$build_vendor,;t t
  19100. s,@build_os@,$build_os,;t t
  19101. s,@host@,$host,;t t
  19102. s,@host_cpu@,$host_cpu,;t t
  19103. s,@host_vendor@,$host_vendor,;t t
  19104. s,@host_os@,$host_os,;t t
  19105. s,@CC@,$CC,;t t
  19106. s,@CFLAGS@,$CFLAGS,;t t
  19107. s,@LDFLAGS@,$LDFLAGS,;t t
  19108. s,@CPPFLAGS@,$CPPFLAGS,;t t
  19109. s,@ac_ct_CC@,$ac_ct_CC,;t t
  19110. s,@EXEEXT@,$EXEEXT,;t t
  19111. s,@OBJEXT@,$OBJEXT,;t t
  19112. s,@EGREP@,$EGREP,;t t
  19113. s,@LN_S@,$LN_S,;t t
  19114. s,@ECHO@,$ECHO,;t t
  19115. s,@AR@,$AR,;t t
  19116. s,@ac_ct_AR@,$ac_ct_AR,;t t
  19117. s,@RANLIB@,$RANLIB,;t t
  19118. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  19119. s,@STRIP@,$STRIP,;t t
  19120. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  19121. s,@DLLTOOL@,$DLLTOOL,;t t
  19122. s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
  19123. s,@AS@,$AS,;t t
  19124. s,@ac_ct_AS@,$ac_ct_AS,;t t
  19125. s,@OBJDUMP@,$OBJDUMP,;t t
  19126. s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
  19127. s,@CPP@,$CPP,;t t
  19128. s,@CXX@,$CXX,;t t
  19129. s,@CXXFLAGS@,$CXXFLAGS,;t t
  19130. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  19131. s,@CXXCPP@,$CXXCPP,;t t
  19132. s,@F77@,$F77,;t t
  19133. s,@FFLAGS@,$FFLAGS,;t t
  19134. s,@ac_ct_F77@,$ac_ct_F77,;t t
  19135. s,@LIBTOOL@,$LIBTOOL,;t t
  19136. s,@LIBCURRENT@,$LIBCURRENT,;t t
  19137. s,@LIBREVISION@,$LIBREVISION,;t t
  19138. s,@LIBAGE@,$LIBAGE,;t t
  19139. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  19140. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  19141. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  19142. s,@FILEMAP@,$FILEMAP,;t t
  19143. s,@LIBOBJS@,$LIBOBJS,;t t
  19144. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  19145. CEOF
  19146. _ACEOF
  19147. cat >>$CONFIG_STATUS <<\_ACEOF
  19148. # Split the substitutions into bite-sized pieces for seds with
  19149. # small command number limits, like on Digital OSF/1 and HP-UX.
  19150. ac_max_sed_lines=48
  19151. ac_sed_frag=1 # Number of current file.
  19152. ac_beg=1 # First line for current file.
  19153. ac_end=$ac_max_sed_lines # Line after last line for current file.
  19154. ac_more_lines=:
  19155. ac_sed_cmds=
  19156. while $ac_more_lines; do
  19157. if test $ac_beg -gt 1; then
  19158. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  19159. else
  19160. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  19161. fi
  19162. if test ! -s $tmp/subs.frag; then
  19163. ac_more_lines=false
  19164. else
  19165. # The purpose of the label and of the branching condition is to
  19166. # speed up the sed processing (if there are no `@' at all, there
  19167. # is no need to browse any of the substitutions).
  19168. # These are the two extra sed commands mentioned above.
  19169. (echo ':t
  19170. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  19171. if test -z "$ac_sed_cmds"; then
  19172. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  19173. else
  19174. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  19175. fi
  19176. ac_sed_frag=`expr $ac_sed_frag + 1`
  19177. ac_beg=$ac_end
  19178. ac_end=`expr $ac_end + $ac_max_sed_lines`
  19179. fi
  19180. done
  19181. if test -z "$ac_sed_cmds"; then
  19182. ac_sed_cmds=cat
  19183. fi
  19184. fi # test -n "$CONFIG_FILES"
  19185. _ACEOF
  19186. cat >>$CONFIG_STATUS <<\_ACEOF
  19187. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  19188. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  19189. case $ac_file in
  19190. - | *:- | *:-:* ) # input from stdin
  19191. cat >$tmp/stdin
  19192. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  19193. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  19194. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  19195. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  19196. * ) ac_file_in=$ac_file.in ;;
  19197. esac
  19198. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  19199. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  19200. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19201. X"$ac_file" : 'X\(//\)[^/]' \| \
  19202. X"$ac_file" : 'X\(//\)$' \| \
  19203. X"$ac_file" : 'X\(/\)' \| \
  19204. . : '\(.\)' 2>/dev/null ||
  19205. echo X"$ac_file" |
  19206. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  19207. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  19208. /^X\(\/\/\)$/{ s//\1/; q; }
  19209. /^X\(\/\).*/{ s//\1/; q; }
  19210. s/.*/./; q'`
  19211. { if $as_mkdir_p; then
  19212. mkdir -p "$ac_dir"
  19213. else
  19214. as_dir="$ac_dir"
  19215. as_dirs=
  19216. while test ! -d "$as_dir"; do
  19217. as_dirs="$as_dir $as_dirs"
  19218. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  19219. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19220. X"$as_dir" : 'X\(//\)[^/]' \| \
  19221. X"$as_dir" : 'X\(//\)$' \| \
  19222. X"$as_dir" : 'X\(/\)' \| \
  19223. . : '\(.\)' 2>/dev/null ||
  19224. echo X"$as_dir" |
  19225. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  19226. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  19227. /^X\(\/\/\)$/{ s//\1/; q; }
  19228. /^X\(\/\).*/{ s//\1/; q; }
  19229. s/.*/./; q'`
  19230. done
  19231. test ! -n "$as_dirs" || mkdir $as_dirs
  19232. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  19233. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  19234. { (exit 1); exit 1; }; }; }
  19235. ac_builddir=.
  19236. if test "$ac_dir" != .; then
  19237. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  19238. # A "../" for each directory in $ac_dir_suffix.
  19239. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  19240. else
  19241. ac_dir_suffix= ac_top_builddir=
  19242. fi
  19243. case $srcdir in
  19244. .) # No --srcdir option. We are building in place.
  19245. ac_srcdir=.
  19246. if test -z "$ac_top_builddir"; then
  19247. ac_top_srcdir=.
  19248. else
  19249. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  19250. fi ;;
  19251. [\\/]* | ?:[\\/]* ) # Absolute path.
  19252. ac_srcdir=$srcdir$ac_dir_suffix;
  19253. ac_top_srcdir=$srcdir ;;
  19254. *) # Relative path.
  19255. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  19256. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  19257. esac
  19258. # Do not use `cd foo && pwd` to compute absolute paths, because
  19259. # the directories may not exist.
  19260. case `pwd` in
  19261. .) ac_abs_builddir="$ac_dir";;
  19262. *)
  19263. case "$ac_dir" in
  19264. .) ac_abs_builddir=`pwd`;;
  19265. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  19266. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  19267. esac;;
  19268. esac
  19269. case $ac_abs_builddir in
  19270. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  19271. *)
  19272. case ${ac_top_builddir}. in
  19273. .) ac_abs_top_builddir=$ac_abs_builddir;;
  19274. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  19275. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  19276. esac;;
  19277. esac
  19278. case $ac_abs_builddir in
  19279. .) ac_abs_srcdir=$ac_srcdir;;
  19280. *)
  19281. case $ac_srcdir in
  19282. .) ac_abs_srcdir=$ac_abs_builddir;;
  19283. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  19284. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  19285. esac;;
  19286. esac
  19287. case $ac_abs_builddir in
  19288. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  19289. *)
  19290. case $ac_top_srcdir in
  19291. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  19292. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  19293. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  19294. esac;;
  19295. esac
  19296. case $INSTALL in
  19297. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19298. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  19299. esac
  19300. if test x"$ac_file" != x-; then
  19301. { echo "$as_me:$LINENO: creating $ac_file" >&5
  19302. echo "$as_me: creating $ac_file" >&6;}
  19303. rm -f "$ac_file"
  19304. fi
  19305. # Let's still pretend it is `configure' which instantiates (i.e., don't
  19306. # use $as_me), people would be surprised to read:
  19307. # /* config.h. Generated by config.status. */
  19308. if test x"$ac_file" = x-; then
  19309. configure_input=
  19310. else
  19311. configure_input="$ac_file. "
  19312. fi
  19313. configure_input=$configure_input"Generated from `echo $ac_file_in |
  19314. sed 's,.*/,,'` by configure."
  19315. # First look for the input files in the build tree, otherwise in the
  19316. # src tree.
  19317. ac_file_inputs=`IFS=:
  19318. for f in $ac_file_in; do
  19319. case $f in
  19320. -) echo $tmp/stdin ;;
  19321. [\\/$]*)
  19322. # Absolute (can't be DOS-style, as IFS=:)
  19323. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  19324. echo "$as_me: error: cannot find input file: $f" >&2;}
  19325. { (exit 1); exit 1; }; }
  19326. echo "$f";;
  19327. *) # Relative
  19328. if test -f "$f"; then
  19329. # Build tree
  19330. echo "$f"
  19331. elif test -f "$srcdir/$f"; then
  19332. # Source tree
  19333. echo "$srcdir/$f"
  19334. else
  19335. # /dev/null tree
  19336. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  19337. echo "$as_me: error: cannot find input file: $f" >&2;}
  19338. { (exit 1); exit 1; }; }
  19339. fi;;
  19340. esac
  19341. done` || { (exit 1); exit 1; }
  19342. _ACEOF
  19343. cat >>$CONFIG_STATUS <<_ACEOF
  19344. sed "$ac_vpsub
  19345. $extrasub
  19346. _ACEOF
  19347. cat >>$CONFIG_STATUS <<\_ACEOF
  19348. :t
  19349. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19350. s,@configure_input@,$configure_input,;t t
  19351. s,@srcdir@,$ac_srcdir,;t t
  19352. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  19353. s,@top_srcdir@,$ac_top_srcdir,;t t
  19354. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  19355. s,@builddir@,$ac_builddir,;t t
  19356. s,@abs_builddir@,$ac_abs_builddir,;t t
  19357. s,@top_builddir@,$ac_top_builddir,;t t
  19358. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  19359. s,@INSTALL@,$ac_INSTALL,;t t
  19360. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  19361. rm -f $tmp/stdin
  19362. if test x"$ac_file" != x-; then
  19363. mv $tmp/out $ac_file
  19364. else
  19365. cat $tmp/out
  19366. rm -f $tmp/out
  19367. fi
  19368. done
  19369. _ACEOF
  19370. cat >>$CONFIG_STATUS <<\_ACEOF
  19371. #
  19372. # CONFIG_HEADER section.
  19373. #
  19374. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  19375. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  19376. #
  19377. # ac_d sets the value in "#define NAME VALUE" lines.
  19378. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  19379. ac_dB='[ ].*$,\1#\2'
  19380. ac_dC=' '
  19381. ac_dD=',;t'
  19382. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  19383. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  19384. ac_uB='$,\1#\2define\3'
  19385. ac_uC=' '
  19386. ac_uD=',;t'
  19387. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  19388. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  19389. case $ac_file in
  19390. - | *:- | *:-:* ) # input from stdin
  19391. cat >$tmp/stdin
  19392. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  19393. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  19394. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  19395. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  19396. * ) ac_file_in=$ac_file.in ;;
  19397. esac
  19398. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  19399. echo "$as_me: creating $ac_file" >&6;}
  19400. # First look for the input files in the build tree, otherwise in the
  19401. # src tree.
  19402. ac_file_inputs=`IFS=:
  19403. for f in $ac_file_in; do
  19404. case $f in
  19405. -) echo $tmp/stdin ;;
  19406. [\\/$]*)
  19407. # Absolute (can't be DOS-style, as IFS=:)
  19408. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  19409. echo "$as_me: error: cannot find input file: $f" >&2;}
  19410. { (exit 1); exit 1; }; }
  19411. # Do quote $f, to prevent DOS paths from being IFS'd.
  19412. echo "$f";;
  19413. *) # Relative
  19414. if test -f "$f"; then
  19415. # Build tree
  19416. echo "$f"
  19417. elif test -f "$srcdir/$f"; then
  19418. # Source tree
  19419. echo "$srcdir/$f"
  19420. else
  19421. # /dev/null tree
  19422. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  19423. echo "$as_me: error: cannot find input file: $f" >&2;}
  19424. { (exit 1); exit 1; }; }
  19425. fi;;
  19426. esac
  19427. done` || { (exit 1); exit 1; }
  19428. # Remove the trailing spaces.
  19429. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  19430. _ACEOF
  19431. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  19432. # `conftest.undefs', that substitutes the proper values into
  19433. # config.h.in to produce config.h. The first handles `#define'
  19434. # templates, and the second `#undef' templates.
  19435. # And first: Protect against being on the right side of a sed subst in
  19436. # config.status. Protect against being in an unquoted here document
  19437. # in config.status.
  19438. rm -f conftest.defines conftest.undefs
  19439. # Using a here document instead of a string reduces the quoting nightmare.
  19440. # Putting comments in sed scripts is not portable.
  19441. #
  19442. # `end' is used to avoid that the second main sed command (meant for
  19443. # 0-ary CPP macros) applies to n-ary macro definitions.
  19444. # See the Autoconf documentation for `clear'.
  19445. cat >confdef2sed.sed <<\_ACEOF
  19446. s/[\\&,]/\\&/g
  19447. s,[\\$`],\\&,g
  19448. t clear
  19449. : clear
  19450. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  19451. t end
  19452. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  19453. : end
  19454. _ACEOF
  19455. # If some macros were called several times there might be several times
  19456. # the same #defines, which is useless. Nevertheless, we may not want to
  19457. # sort them, since we want the *last* AC-DEFINE to be honored.
  19458. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  19459. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  19460. rm -f confdef2sed.sed
  19461. # This sed command replaces #undef with comments. This is necessary, for
  19462. # example, in the case of _POSIX_SOURCE, which is predefined and required
  19463. # on some systems where configure will not decide to define it.
  19464. cat >>conftest.undefs <<\_ACEOF
  19465. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  19466. _ACEOF
  19467. # Break up conftest.defines because some shells have a limit on the size
  19468. # of here documents, and old seds have small limits too (100 cmds).
  19469. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  19470. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  19471. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  19472. echo ' :' >>$CONFIG_STATUS
  19473. rm -f conftest.tail
  19474. while grep . conftest.defines >/dev/null
  19475. do
  19476. # Write a limited-size here document to $tmp/defines.sed.
  19477. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  19478. # Speed up: don't consider the non `#define' lines.
  19479. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  19480. # Work around the forget-to-reset-the-flag bug.
  19481. echo 't clr' >>$CONFIG_STATUS
  19482. echo ': clr' >>$CONFIG_STATUS
  19483. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  19484. echo 'CEOF
  19485. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  19486. rm -f $tmp/in
  19487. mv $tmp/out $tmp/in
  19488. ' >>$CONFIG_STATUS
  19489. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  19490. rm -f conftest.defines
  19491. mv conftest.tail conftest.defines
  19492. done
  19493. rm -f conftest.defines
  19494. echo ' fi # grep' >>$CONFIG_STATUS
  19495. echo >>$CONFIG_STATUS
  19496. # Break up conftest.undefs because some shells have a limit on the size
  19497. # of here documents, and old seds have small limits too (100 cmds).
  19498. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  19499. rm -f conftest.tail
  19500. while grep . conftest.undefs >/dev/null
  19501. do
  19502. # Write a limited-size here document to $tmp/undefs.sed.
  19503. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  19504. # Speed up: don't consider the non `#undef'
  19505. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  19506. # Work around the forget-to-reset-the-flag bug.
  19507. echo 't clr' >>$CONFIG_STATUS
  19508. echo ': clr' >>$CONFIG_STATUS
  19509. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  19510. echo 'CEOF
  19511. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  19512. rm -f $tmp/in
  19513. mv $tmp/out $tmp/in
  19514. ' >>$CONFIG_STATUS
  19515. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  19516. rm -f conftest.undefs
  19517. mv conftest.tail conftest.undefs
  19518. done
  19519. rm -f conftest.undefs
  19520. cat >>$CONFIG_STATUS <<\_ACEOF
  19521. # Let's still pretend it is `configure' which instantiates (i.e., don't
  19522. # use $as_me), people would be surprised to read:
  19523. # /* config.h. Generated by config.status. */
  19524. if test x"$ac_file" = x-; then
  19525. echo "/* Generated by configure. */" >$tmp/config.h
  19526. else
  19527. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  19528. fi
  19529. cat $tmp/in >>$tmp/config.h
  19530. rm -f $tmp/in
  19531. if test x"$ac_file" != x-; then
  19532. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  19533. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  19534. echo "$as_me: $ac_file is unchanged" >&6;}
  19535. else
  19536. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  19537. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19538. X"$ac_file" : 'X\(//\)[^/]' \| \
  19539. X"$ac_file" : 'X\(//\)$' \| \
  19540. X"$ac_file" : 'X\(/\)' \| \
  19541. . : '\(.\)' 2>/dev/null ||
  19542. echo X"$ac_file" |
  19543. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  19544. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  19545. /^X\(\/\/\)$/{ s//\1/; q; }
  19546. /^X\(\/\).*/{ s//\1/; q; }
  19547. s/.*/./; q'`
  19548. { if $as_mkdir_p; then
  19549. mkdir -p "$ac_dir"
  19550. else
  19551. as_dir="$ac_dir"
  19552. as_dirs=
  19553. while test ! -d "$as_dir"; do
  19554. as_dirs="$as_dir $as_dirs"
  19555. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  19556. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19557. X"$as_dir" : 'X\(//\)[^/]' \| \
  19558. X"$as_dir" : 'X\(//\)$' \| \
  19559. X"$as_dir" : 'X\(/\)' \| \
  19560. . : '\(.\)' 2>/dev/null ||
  19561. echo X"$as_dir" |
  19562. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  19563. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  19564. /^X\(\/\/\)$/{ s//\1/; q; }
  19565. /^X\(\/\).*/{ s//\1/; q; }
  19566. s/.*/./; q'`
  19567. done
  19568. test ! -n "$as_dirs" || mkdir $as_dirs
  19569. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  19570. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  19571. { (exit 1); exit 1; }; }; }
  19572. rm -f $ac_file
  19573. mv $tmp/config.h $ac_file
  19574. fi
  19575. else
  19576. cat $tmp/config.h
  19577. rm -f $tmp/config.h
  19578. fi
  19579. done
  19580. _ACEOF
  19581. cat >>$CONFIG_STATUS <<\_ACEOF
  19582. { (exit 0); exit 0; }
  19583. _ACEOF
  19584. chmod +x $CONFIG_STATUS
  19585. ac_clean_files=$ac_clean_files_save
  19586. # configure is writing to config.log, and then calls config.status.
  19587. # config.status does its own redirection, appending to config.log.
  19588. # Unfortunately, on DOS this fails, as config.log is still kept open
  19589. # by configure, so config.status won't be able to write to it; its
  19590. # output is simply discarded. So we exec the FD to /dev/null,
  19591. # effectively closing config.log, so it can be properly (re)opened and
  19592. # appended to by config.status. When coming back to configure, we
  19593. # need to make the FD available again.
  19594. if test "$no_create" != yes; then
  19595. ac_cs_success=:
  19596. ac_config_status_args=
  19597. test "$silent" = yes &&
  19598. ac_config_status_args="$ac_config_status_args --quiet"
  19599. exec 5>/dev/null
  19600. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  19601. exec 5>>config.log
  19602. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  19603. # would make configure fail if this is the last instruction.
  19604. $ac_cs_success || { (exit 1); exit 1; }
  19605. fi
  19606. abs_srcdir="`cd $srcdir && pwd`"
  19607. abs_builddir="`pwd`"
  19608. if test "$abs_srcdir" != "$abs_builddir"; then
  19609. make mkdir-init
  19610. fi