configure 758 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59.
  4. #
  5. # Copyright (C) 2003 Free Software Foundation, Inc.
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. ## --------------------- ##
  9. ## M4sh Initialization. ##
  10. ## --------------------- ##
  11. # Be Bourne compatible
  12. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  13. emulate sh
  14. NULLCMD=:
  15. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  16. # is contrary to our usage. Disable this feature.
  17. alias -g '${1+"$@"}'='"$@"'
  18. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  19. set -o posix
  20. fi
  21. DUALCASE=1; export DUALCASE # for MKS sh
  22. # Support unset when possible.
  23. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  24. as_unset=unset
  25. else
  26. as_unset=false
  27. fi
  28. # Work around bugs in pre-3.0 UWIN ksh.
  29. $as_unset ENV MAIL MAILPATH
  30. PS1='$ '
  31. PS2='> '
  32. PS4='+ '
  33. # NLS nuisances.
  34. for as_var in \
  35. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  36. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  37. LC_TELEPHONE LC_TIME
  38. do
  39. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  40. eval $as_var=C; export $as_var
  41. else
  42. $as_unset $as_var
  43. fi
  44. done
  45. # Required to use basename.
  46. if expr a : '\(a\)' >/dev/null 2>&1; then
  47. as_expr=expr
  48. else
  49. as_expr=false
  50. fi
  51. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  52. as_basename=basename
  53. else
  54. as_basename=false
  55. fi
  56. # Name of the executable.
  57. as_me=`$as_basename "$0" ||
  58. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  59. X"$0" : 'X\(//\)$' \| \
  60. X"$0" : 'X\(/\)$' \| \
  61. . : '\(.\)' 2>/dev/null ||
  62. echo X/"$0" |
  63. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  64. /^X\/\(\/\/\)$/{ s//\1/; q; }
  65. /^X\/\(\/\).*/{ s//\1/; q; }
  66. s/.*/./; q'`
  67. # PATH needs CR, and LINENO needs CR and PATH.
  68. # Avoid depending upon Character Ranges.
  69. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  70. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  71. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  72. as_cr_digits='0123456789'
  73. as_cr_alnum=$as_cr_Letters$as_cr_digits
  74. # The user is always right.
  75. if test "${PATH_SEPARATOR+set}" != set; then
  76. echo "#! /bin/sh" >conf$$.sh
  77. echo "exit 0" >>conf$$.sh
  78. chmod +x conf$$.sh
  79. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  80. PATH_SEPARATOR=';'
  81. else
  82. PATH_SEPARATOR=:
  83. fi
  84. rm -f conf$$.sh
  85. fi
  86. as_lineno_1=$LINENO
  87. as_lineno_2=$LINENO
  88. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  89. test "x$as_lineno_1" != "x$as_lineno_2" &&
  90. test "x$as_lineno_3" = "x$as_lineno_2" || {
  91. # Find who we are. Look in the path if we contain no path at all
  92. # relative or not.
  93. case $0 in
  94. *[\\/]* ) as_myself=$0 ;;
  95. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  96. for as_dir in $PATH
  97. do
  98. IFS=$as_save_IFS
  99. test -z "$as_dir" && as_dir=.
  100. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  101. done
  102. ;;
  103. esac
  104. # We did not find ourselves, most probably we were run as `sh COMMAND'
  105. # in which case we are not to be found in the path.
  106. if test "x$as_myself" = x; then
  107. as_myself=$0
  108. fi
  109. if test ! -f "$as_myself"; then
  110. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  111. { (exit 1); exit 1; }; }
  112. fi
  113. case $CONFIG_SHELL in
  114. '')
  115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  116. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  117. do
  118. IFS=$as_save_IFS
  119. test -z "$as_dir" && as_dir=.
  120. for as_base in sh bash ksh sh5; do
  121. case $as_dir in
  122. /*)
  123. if ("$as_dir/$as_base" -c '
  124. as_lineno_1=$LINENO
  125. as_lineno_2=$LINENO
  126. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  127. test "x$as_lineno_1" != "x$as_lineno_2" &&
  128. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  129. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  130. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  131. CONFIG_SHELL=$as_dir/$as_base
  132. export CONFIG_SHELL
  133. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  134. fi;;
  135. esac
  136. done
  137. done
  138. ;;
  139. esac
  140. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  141. # uniformly replaced by the line number. The first 'sed' inserts a
  142. # line-number line before each line; the second 'sed' does the real
  143. # work. The second script uses 'N' to pair each line-number line
  144. # with the numbered line, and appends trailing '-' during
  145. # substitution so that $LINENO is not a special case at line end.
  146. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  147. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  148. sed '=' <$as_myself |
  149. sed '
  150. N
  151. s,$,-,
  152. : loop
  153. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  154. t loop
  155. s,-$,,
  156. s,^['$as_cr_digits']*\n,,
  157. ' >$as_me.lineno &&
  158. chmod +x $as_me.lineno ||
  159. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  160. { (exit 1); exit 1; }; }
  161. # Don't try to exec as it changes $[0], causing all sort of problems
  162. # (the dirname of $[0] is not the place where we might find the
  163. # original and so on. Autoconf is especially sensible to this).
  164. . ./$as_me.lineno
  165. # Exit status is that of the last command.
  166. exit
  167. }
  168. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  169. *c*,-n*) ECHO_N= ECHO_C='
  170. ' ECHO_T=' ' ;;
  171. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  172. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  173. esac
  174. if expr a : '\(a\)' >/dev/null 2>&1; then
  175. as_expr=expr
  176. else
  177. as_expr=false
  178. fi
  179. rm -f conf$$ conf$$.exe conf$$.file
  180. echo >conf$$.file
  181. if ln -s conf$$.file conf$$ 2>/dev/null; then
  182. # We could just check for DJGPP; but this test a) works b) is more generic
  183. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  184. if test -f conf$$.exe; then
  185. # Don't use ln at all; we don't have any links
  186. as_ln_s='cp -p'
  187. else
  188. as_ln_s='ln -s'
  189. fi
  190. elif ln conf$$.file conf$$ 2>/dev/null; then
  191. as_ln_s=ln
  192. else
  193. as_ln_s='cp -p'
  194. fi
  195. rm -f conf$$ conf$$.exe conf$$.file
  196. if mkdir -p . 2>/dev/null; then
  197. as_mkdir_p=:
  198. else
  199. test -d ./-p && rmdir ./-p
  200. as_mkdir_p=false
  201. fi
  202. as_executable_p="test -f"
  203. # Sed expression to map a string onto a valid CPP name.
  204. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  205. # Sed expression to map a string onto a valid variable name.
  206. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  207. # IFS
  208. # We need space, tab and new line, in precisely that order.
  209. as_nl='
  210. '
  211. IFS=" $as_nl"
  212. # CDPATH.
  213. $as_unset CDPATH
  214. # Check that we are running under the correct shell.
  215. SHELL=${CONFIG_SHELL-/bin/sh}
  216. case X$ECHO in
  217. X*--fallback-echo)
  218. # Remove one level of quotation (which was required for Make).
  219. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  220. ;;
  221. esac
  222. echo=${ECHO-echo}
  223. if test "X$1" = X--no-reexec; then
  224. # Discard the --no-reexec flag, and continue.
  225. shift
  226. elif test "X$1" = X--fallback-echo; then
  227. # Avoid inline document here, it may be left over
  228. :
  229. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  230. # Yippee, $echo works!
  231. :
  232. else
  233. # Restart under the correct shell.
  234. exec $SHELL "$0" --no-reexec ${1+"$@"}
  235. fi
  236. if test "X$1" = X--fallback-echo; then
  237. # used as fallback echo
  238. shift
  239. cat <<EOF
  240. $*
  241. EOF
  242. exit 0
  243. fi
  244. # The HP-UX ksh and POSIX shell print the target directory to stdout
  245. # if CDPATH is set.
  246. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  247. if test -z "$ECHO"; then
  248. if test "X${echo_test_string+set}" != Xset; then
  249. # find a string as large as possible, as long as the shell can cope with it
  250. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  251. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  252. if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  253. echo_test_string="`eval $cmd`" &&
  254. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  255. then
  256. break
  257. fi
  258. done
  259. fi
  260. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  261. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  262. test "X$echo_testing_string" = "X$echo_test_string"; then
  263. :
  264. else
  265. # The Solaris, AIX, and Digital Unix default echo programs unquote
  266. # backslashes. This makes it impossible to quote backslashes using
  267. # echo "$something" | sed 's/\\/\\\\/g'
  268. #
  269. # So, first we look for a working echo in the user's PATH.
  270. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  271. for dir in $PATH /usr/ucb; do
  272. IFS="$lt_save_ifs"
  273. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  274. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  275. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  276. test "X$echo_testing_string" = "X$echo_test_string"; then
  277. echo="$dir/echo"
  278. break
  279. fi
  280. done
  281. IFS="$lt_save_ifs"
  282. if test "X$echo" = Xecho; then
  283. # We didn't find a better echo, so look for alternatives.
  284. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  285. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  286. test "X$echo_testing_string" = "X$echo_test_string"; then
  287. # This shell has a builtin print -r that does the trick.
  288. echo='print -r'
  289. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  290. test "X$CONFIG_SHELL" != X/bin/ksh; then
  291. # If we have ksh, try running configure again with it.
  292. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  293. export ORIGINAL_CONFIG_SHELL
  294. CONFIG_SHELL=/bin/ksh
  295. export CONFIG_SHELL
  296. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  297. else
  298. # Try using printf.
  299. echo='printf %s\n'
  300. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  301. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  302. test "X$echo_testing_string" = "X$echo_test_string"; then
  303. # Cool, printf works
  304. :
  305. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  306. test "X$echo_testing_string" = 'X\t' &&
  307. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  308. test "X$echo_testing_string" = "X$echo_test_string"; then
  309. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  310. export CONFIG_SHELL
  311. SHELL="$CONFIG_SHELL"
  312. export SHELL
  313. echo="$CONFIG_SHELL $0 --fallback-echo"
  314. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  315. test "X$echo_testing_string" = 'X\t' &&
  316. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  317. test "X$echo_testing_string" = "X$echo_test_string"; then
  318. echo="$CONFIG_SHELL $0 --fallback-echo"
  319. else
  320. # maybe with a smaller string...
  321. prev=:
  322. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  323. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  324. then
  325. break
  326. fi
  327. prev="$cmd"
  328. done
  329. if test "$prev" != 'sed 50q "$0"'; then
  330. echo_test_string=`eval $prev`
  331. export echo_test_string
  332. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  333. else
  334. # Oops. We lost completely, so just stick with echo.
  335. echo=echo
  336. fi
  337. fi
  338. fi
  339. fi
  340. fi
  341. fi
  342. # Copy echo and quote the copy suitably for passing to libtool from
  343. # the Makefile, instead of quoting the original, which is used later.
  344. ECHO=$echo
  345. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  346. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  347. fi
  348. tagnames=${tagnames+${tagnames},}CXX
  349. tagnames=${tagnames+${tagnames},}F77
  350. # Name of the host.
  351. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  352. # so uname gets run too.
  353. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  354. exec 6>&1
  355. #
  356. # Initializations.
  357. #
  358. ac_default_prefix=/usr/local
  359. ac_config_libobj_dir=.
  360. cross_compiling=no
  361. subdirs=
  362. MFLAGS=
  363. MAKEFLAGS=
  364. SHELL=${CONFIG_SHELL-/bin/sh}
  365. # Maximum number of lines to put in a shell here document.
  366. # This variable seems obsolete. It should probably be removed, and
  367. # only ac_max_sed_lines should be used.
  368. : ${ac_max_here_lines=38}
  369. # Identity of this package.
  370. PACKAGE_NAME=
  371. PACKAGE_TARNAME=
  372. PACKAGE_VERSION=
  373. PACKAGE_STRING=
  374. PACKAGE_BUGREPORT=
  375. ac_unique_file="src/file.c"
  376. # Factoring default headers for most tests.
  377. ac_includes_default="\
  378. #include <stdio.h>
  379. #if HAVE_SYS_TYPES_H
  380. # include <sys/types.h>
  381. #endif
  382. #if HAVE_SYS_STAT_H
  383. # include <sys/stat.h>
  384. #endif
  385. #if STDC_HEADERS
  386. # include <stdlib.h>
  387. # include <stddef.h>
  388. #else
  389. # if HAVE_STDLIB_H
  390. # include <stdlib.h>
  391. # endif
  392. #endif
  393. #if HAVE_STRING_H
  394. # if !STDC_HEADERS && HAVE_MEMORY_H
  395. # include <memory.h>
  396. # endif
  397. # include <string.h>
  398. #endif
  399. #if HAVE_STRINGS_H
  400. # include <strings.h>
  401. #endif
  402. #if HAVE_INTTYPES_H
  403. # include <inttypes.h>
  404. #else
  405. # if HAVE_STDINT_H
  406. # include <stdint.h>
  407. # endif
  408. #endif
  409. #if HAVE_UNISTD_H
  410. # include <unistd.h>
  411. #endif"
  412. 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT fsect FSECT5_TRUE FSECT5_FALSE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL IS_CROSS_COMPILE_TRUE IS_CROSS_COMPILE_FALSE LIBOBJS LTLIBOBJS'
  413. ac_subst_files=''
  414. # Initialize some variables set by options.
  415. ac_init_help=
  416. ac_init_version=false
  417. # The variables have the same names as the options, with
  418. # dashes changed to underlines.
  419. cache_file=/dev/null
  420. exec_prefix=NONE
  421. no_create=
  422. no_recursion=
  423. prefix=NONE
  424. program_prefix=NONE
  425. program_suffix=NONE
  426. program_transform_name=s,x,x,
  427. silent=
  428. site=
  429. srcdir=
  430. verbose=
  431. x_includes=NONE
  432. x_libraries=NONE
  433. # Installation directory options.
  434. # These are left unexpanded so users can "make install exec_prefix=/foo"
  435. # and all the variables that are supposed to be based on exec_prefix
  436. # by default will actually change.
  437. # Use braces instead of parens because sh, perl, etc. also accept them.
  438. bindir='${exec_prefix}/bin'
  439. sbindir='${exec_prefix}/sbin'
  440. libexecdir='${exec_prefix}/libexec'
  441. datadir='${prefix}/share'
  442. sysconfdir='${prefix}/etc'
  443. sharedstatedir='${prefix}/com'
  444. localstatedir='${prefix}/var'
  445. libdir='${exec_prefix}/lib'
  446. includedir='${prefix}/include'
  447. oldincludedir='/usr/include'
  448. infodir='${prefix}/info'
  449. mandir='${prefix}/man'
  450. ac_prev=
  451. for ac_option
  452. do
  453. # If the previous option needs an argument, assign it.
  454. if test -n "$ac_prev"; then
  455. eval "$ac_prev=\$ac_option"
  456. ac_prev=
  457. continue
  458. fi
  459. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  460. # Accept the important Cygnus configure options, so we can diagnose typos.
  461. case $ac_option in
  462. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  463. ac_prev=bindir ;;
  464. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  465. bindir=$ac_optarg ;;
  466. -build | --build | --buil | --bui | --bu)
  467. ac_prev=build_alias ;;
  468. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  469. build_alias=$ac_optarg ;;
  470. -cache-file | --cache-file | --cache-fil | --cache-fi \
  471. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  472. ac_prev=cache_file ;;
  473. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  474. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  475. cache_file=$ac_optarg ;;
  476. --config-cache | -C)
  477. cache_file=config.cache ;;
  478. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  479. ac_prev=datadir ;;
  480. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  481. | --da=*)
  482. datadir=$ac_optarg ;;
  483. -disable-* | --disable-*)
  484. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  485. # Reject names that are not valid shell variable names.
  486. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  487. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  488. { (exit 1); exit 1; }; }
  489. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  490. eval "enable_$ac_feature=no" ;;
  491. -enable-* | --enable-*)
  492. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  493. # Reject names that are not valid shell variable names.
  494. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  495. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  496. { (exit 1); exit 1; }; }
  497. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  498. case $ac_option in
  499. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  500. *) ac_optarg=yes ;;
  501. esac
  502. eval "enable_$ac_feature='$ac_optarg'" ;;
  503. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  504. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  505. | --exec | --exe | --ex)
  506. ac_prev=exec_prefix ;;
  507. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  508. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  509. | --exec=* | --exe=* | --ex=*)
  510. exec_prefix=$ac_optarg ;;
  511. -gas | --gas | --ga | --g)
  512. # Obsolete; use --with-gas.
  513. with_gas=yes ;;
  514. -help | --help | --hel | --he | -h)
  515. ac_init_help=long ;;
  516. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  517. ac_init_help=recursive ;;
  518. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  519. ac_init_help=short ;;
  520. -host | --host | --hos | --ho)
  521. ac_prev=host_alias ;;
  522. -host=* | --host=* | --hos=* | --ho=*)
  523. host_alias=$ac_optarg ;;
  524. -includedir | --includedir | --includedi | --included | --include \
  525. | --includ | --inclu | --incl | --inc)
  526. ac_prev=includedir ;;
  527. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  528. | --includ=* | --inclu=* | --incl=* | --inc=*)
  529. includedir=$ac_optarg ;;
  530. -infodir | --infodir | --infodi | --infod | --info | --inf)
  531. ac_prev=infodir ;;
  532. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  533. infodir=$ac_optarg ;;
  534. -libdir | --libdir | --libdi | --libd)
  535. ac_prev=libdir ;;
  536. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  537. libdir=$ac_optarg ;;
  538. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  539. | --libexe | --libex | --libe)
  540. ac_prev=libexecdir ;;
  541. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  542. | --libexe=* | --libex=* | --libe=*)
  543. libexecdir=$ac_optarg ;;
  544. -localstatedir | --localstatedir | --localstatedi | --localstated \
  545. | --localstate | --localstat | --localsta | --localst \
  546. | --locals | --local | --loca | --loc | --lo)
  547. ac_prev=localstatedir ;;
  548. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  549. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  550. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  551. localstatedir=$ac_optarg ;;
  552. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  553. ac_prev=mandir ;;
  554. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  555. mandir=$ac_optarg ;;
  556. -nfp | --nfp | --nf)
  557. # Obsolete; use --without-fp.
  558. with_fp=no ;;
  559. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  560. | --no-cr | --no-c | -n)
  561. no_create=yes ;;
  562. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  563. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  564. no_recursion=yes ;;
  565. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  566. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  567. | --oldin | --oldi | --old | --ol | --o)
  568. ac_prev=oldincludedir ;;
  569. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  570. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  571. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  572. oldincludedir=$ac_optarg ;;
  573. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  574. ac_prev=prefix ;;
  575. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  576. prefix=$ac_optarg ;;
  577. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  578. | --program-pre | --program-pr | --program-p)
  579. ac_prev=program_prefix ;;
  580. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  581. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  582. program_prefix=$ac_optarg ;;
  583. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  584. | --program-suf | --program-su | --program-s)
  585. ac_prev=program_suffix ;;
  586. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  587. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  588. program_suffix=$ac_optarg ;;
  589. -program-transform-name | --program-transform-name \
  590. | --program-transform-nam | --program-transform-na \
  591. | --program-transform-n | --program-transform- \
  592. | --program-transform | --program-transfor \
  593. | --program-transfo | --program-transf \
  594. | --program-trans | --program-tran \
  595. | --progr-tra | --program-tr | --program-t)
  596. ac_prev=program_transform_name ;;
  597. -program-transform-name=* | --program-transform-name=* \
  598. | --program-transform-nam=* | --program-transform-na=* \
  599. | --program-transform-n=* | --program-transform-=* \
  600. | --program-transform=* | --program-transfor=* \
  601. | --program-transfo=* | --program-transf=* \
  602. | --program-trans=* | --program-tran=* \
  603. | --progr-tra=* | --program-tr=* | --program-t=*)
  604. program_transform_name=$ac_optarg ;;
  605. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  606. | -silent | --silent | --silen | --sile | --sil)
  607. silent=yes ;;
  608. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  609. ac_prev=sbindir ;;
  610. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  611. | --sbi=* | --sb=*)
  612. sbindir=$ac_optarg ;;
  613. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  614. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  615. | --sharedst | --shareds | --shared | --share | --shar \
  616. | --sha | --sh)
  617. ac_prev=sharedstatedir ;;
  618. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  619. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  620. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  621. | --sha=* | --sh=*)
  622. sharedstatedir=$ac_optarg ;;
  623. -site | --site | --sit)
  624. ac_prev=site ;;
  625. -site=* | --site=* | --sit=*)
  626. site=$ac_optarg ;;
  627. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  628. ac_prev=srcdir ;;
  629. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  630. srcdir=$ac_optarg ;;
  631. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  632. | --syscon | --sysco | --sysc | --sys | --sy)
  633. ac_prev=sysconfdir ;;
  634. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  635. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  636. sysconfdir=$ac_optarg ;;
  637. -target | --target | --targe | --targ | --tar | --ta | --t)
  638. ac_prev=target_alias ;;
  639. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  640. target_alias=$ac_optarg ;;
  641. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  642. verbose=yes ;;
  643. -version | --version | --versio | --versi | --vers | -V)
  644. ac_init_version=: ;;
  645. -with-* | --with-*)
  646. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  647. # Reject names that are not valid shell variable names.
  648. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  649. { echo "$as_me: error: invalid package name: $ac_package" >&2
  650. { (exit 1); exit 1; }; }
  651. ac_package=`echo $ac_package| sed 's/-/_/g'`
  652. case $ac_option in
  653. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  654. *) ac_optarg=yes ;;
  655. esac
  656. eval "with_$ac_package='$ac_optarg'" ;;
  657. -without-* | --without-*)
  658. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  659. # Reject names that are not valid shell variable names.
  660. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  661. { echo "$as_me: error: invalid package name: $ac_package" >&2
  662. { (exit 1); exit 1; }; }
  663. ac_package=`echo $ac_package | sed 's/-/_/g'`
  664. eval "with_$ac_package=no" ;;
  665. --x)
  666. # Obsolete; use --with-x.
  667. with_x=yes ;;
  668. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  669. | --x-incl | --x-inc | --x-in | --x-i)
  670. ac_prev=x_includes ;;
  671. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  672. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  673. x_includes=$ac_optarg ;;
  674. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  675. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  676. ac_prev=x_libraries ;;
  677. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  678. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  679. x_libraries=$ac_optarg ;;
  680. -*) { echo "$as_me: error: unrecognized option: $ac_option
  681. Try \`$0 --help' for more information." >&2
  682. { (exit 1); exit 1; }; }
  683. ;;
  684. *=*)
  685. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  686. # Reject names that are not valid shell variable names.
  687. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  688. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  689. { (exit 1); exit 1; }; }
  690. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  691. eval "$ac_envvar='$ac_optarg'"
  692. export $ac_envvar ;;
  693. *)
  694. # FIXME: should be removed in autoconf 3.0.
  695. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  696. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  697. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  698. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  699. ;;
  700. esac
  701. done
  702. if test -n "$ac_prev"; then
  703. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  704. { echo "$as_me: error: missing argument to $ac_option" >&2
  705. { (exit 1); exit 1; }; }
  706. fi
  707. # Be sure to have absolute paths.
  708. for ac_var in exec_prefix prefix
  709. do
  710. eval ac_val=$`echo $ac_var`
  711. case $ac_val in
  712. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  713. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  714. { (exit 1); exit 1; }; };;
  715. esac
  716. done
  717. # Be sure to have absolute paths.
  718. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  719. localstatedir libdir includedir oldincludedir infodir mandir
  720. do
  721. eval ac_val=$`echo $ac_var`
  722. case $ac_val in
  723. [\\/$]* | ?:[\\/]* ) ;;
  724. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  725. { (exit 1); exit 1; }; };;
  726. esac
  727. done
  728. # There might be people who depend on the old broken behavior: `$host'
  729. # used to hold the argument of --host etc.
  730. # FIXME: To remove some day.
  731. build=$build_alias
  732. host=$host_alias
  733. target=$target_alias
  734. # FIXME: To remove some day.
  735. if test "x$host_alias" != x; then
  736. if test "x$build_alias" = x; then
  737. cross_compiling=maybe
  738. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  739. If a cross compiler is detected then cross compile mode will be used." >&2
  740. elif test "x$build_alias" != "x$host_alias"; then
  741. cross_compiling=yes
  742. fi
  743. fi
  744. ac_tool_prefix=
  745. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  746. test "$silent" = yes && exec 6>/dev/null
  747. # Find the source files, if location was not specified.
  748. if test -z "$srcdir"; then
  749. ac_srcdir_defaulted=yes
  750. # Try the directory containing this script, then its parent.
  751. ac_confdir=`(dirname "$0") 2>/dev/null ||
  752. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  753. X"$0" : 'X\(//\)[^/]' \| \
  754. X"$0" : 'X\(//\)$' \| \
  755. X"$0" : 'X\(/\)' \| \
  756. . : '\(.\)' 2>/dev/null ||
  757. echo X"$0" |
  758. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  759. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  760. /^X\(\/\/\)$/{ s//\1/; q; }
  761. /^X\(\/\).*/{ s//\1/; q; }
  762. s/.*/./; q'`
  763. srcdir=$ac_confdir
  764. if test ! -r $srcdir/$ac_unique_file; then
  765. srcdir=..
  766. fi
  767. else
  768. ac_srcdir_defaulted=no
  769. fi
  770. if test ! -r $srcdir/$ac_unique_file; then
  771. if test "$ac_srcdir_defaulted" = yes; then
  772. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  773. { (exit 1); exit 1; }; }
  774. else
  775. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  776. { (exit 1); exit 1; }; }
  777. fi
  778. fi
  779. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  780. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  781. { (exit 1); exit 1; }; }
  782. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  783. ac_env_build_alias_set=${build_alias+set}
  784. ac_env_build_alias_value=$build_alias
  785. ac_cv_env_build_alias_set=${build_alias+set}
  786. ac_cv_env_build_alias_value=$build_alias
  787. ac_env_host_alias_set=${host_alias+set}
  788. ac_env_host_alias_value=$host_alias
  789. ac_cv_env_host_alias_set=${host_alias+set}
  790. ac_cv_env_host_alias_value=$host_alias
  791. ac_env_target_alias_set=${target_alias+set}
  792. ac_env_target_alias_value=$target_alias
  793. ac_cv_env_target_alias_set=${target_alias+set}
  794. ac_cv_env_target_alias_value=$target_alias
  795. ac_env_CC_set=${CC+set}
  796. ac_env_CC_value=$CC
  797. ac_cv_env_CC_set=${CC+set}
  798. ac_cv_env_CC_value=$CC
  799. ac_env_CFLAGS_set=${CFLAGS+set}
  800. ac_env_CFLAGS_value=$CFLAGS
  801. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  802. ac_cv_env_CFLAGS_value=$CFLAGS
  803. ac_env_LDFLAGS_set=${LDFLAGS+set}
  804. ac_env_LDFLAGS_value=$LDFLAGS
  805. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  806. ac_cv_env_LDFLAGS_value=$LDFLAGS
  807. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  808. ac_env_CPPFLAGS_value=$CPPFLAGS
  809. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  810. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  811. ac_env_CPP_set=${CPP+set}
  812. ac_env_CPP_value=$CPP
  813. ac_cv_env_CPP_set=${CPP+set}
  814. ac_cv_env_CPP_value=$CPP
  815. ac_env_CXX_set=${CXX+set}
  816. ac_env_CXX_value=$CXX
  817. ac_cv_env_CXX_set=${CXX+set}
  818. ac_cv_env_CXX_value=$CXX
  819. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  820. ac_env_CXXFLAGS_value=$CXXFLAGS
  821. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  822. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  823. ac_env_CXXCPP_set=${CXXCPP+set}
  824. ac_env_CXXCPP_value=$CXXCPP
  825. ac_cv_env_CXXCPP_set=${CXXCPP+set}
  826. ac_cv_env_CXXCPP_value=$CXXCPP
  827. ac_env_F77_set=${F77+set}
  828. ac_env_F77_value=$F77
  829. ac_cv_env_F77_set=${F77+set}
  830. ac_cv_env_F77_value=$F77
  831. ac_env_FFLAGS_set=${FFLAGS+set}
  832. ac_env_FFLAGS_value=$FFLAGS
  833. ac_cv_env_FFLAGS_set=${FFLAGS+set}
  834. ac_cv_env_FFLAGS_value=$FFLAGS
  835. #
  836. # Report the --help message.
  837. #
  838. if test "$ac_init_help" = "long"; then
  839. # Omit some internal or obsolete options to make the list less imposing.
  840. # This message is too long to be a string in the A/UX 3.1 sh.
  841. cat <<_ACEOF
  842. \`configure' configures this package to adapt to many kinds of systems.
  843. Usage: $0 [OPTION]... [VAR=VALUE]...
  844. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  845. VAR=VALUE. See below for descriptions of some of the useful variables.
  846. Defaults for the options are specified in brackets.
  847. Configuration:
  848. -h, --help display this help and exit
  849. --help=short display options specific to this package
  850. --help=recursive display the short help of all the included packages
  851. -V, --version display version information and exit
  852. -q, --quiet, --silent do not print \`checking...' messages
  853. --cache-file=FILE cache test results in FILE [disabled]
  854. -C, --config-cache alias for \`--cache-file=config.cache'
  855. -n, --no-create do not create output files
  856. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  857. _ACEOF
  858. cat <<_ACEOF
  859. Installation directories:
  860. --prefix=PREFIX install architecture-independent files in PREFIX
  861. [$ac_default_prefix]
  862. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  863. [PREFIX]
  864. By default, \`make install' will install all the files in
  865. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  866. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  867. for instance \`--prefix=\$HOME'.
  868. For better control, use the options below.
  869. Fine tuning of the installation directories:
  870. --bindir=DIR user executables [EPREFIX/bin]
  871. --sbindir=DIR system admin executables [EPREFIX/sbin]
  872. --libexecdir=DIR program executables [EPREFIX/libexec]
  873. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  874. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  875. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  876. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  877. --libdir=DIR object code libraries [EPREFIX/lib]
  878. --includedir=DIR C header files [PREFIX/include]
  879. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  880. --infodir=DIR info documentation [PREFIX/info]
  881. --mandir=DIR man documentation [PREFIX/man]
  882. _ACEOF
  883. cat <<\_ACEOF
  884. Program names:
  885. --program-prefix=PREFIX prepend PREFIX to installed program names
  886. --program-suffix=SUFFIX append SUFFIX to installed program names
  887. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  888. System types:
  889. --build=BUILD configure for building on BUILD [guessed]
  890. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  891. _ACEOF
  892. fi
  893. if test -n "$ac_init_help"; then
  894. cat <<\_ACEOF
  895. Optional Features:
  896. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  897. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  898. --enable-maintainer-mode enable make rules and dependencies not useful
  899. (and sometimes confusing) to the casual installer
  900. --disable-elf disable builtin ELF support
  901. --disable-elf-core disable ELF core file support
  902. --enable-fsect-man5 enable file formats in man section 5
  903. --disable-dependency-tracking speeds up one-time build
  904. --enable-dependency-tracking do not reject slow dependency extractors
  905. --enable-shared[=PKGS]
  906. build shared libraries [default=yes]
  907. --enable-static[=PKGS]
  908. build static libraries [default=yes]
  909. --enable-fast-install[=PKGS]
  910. optimize for fast installation [default=yes]
  911. --disable-libtool-lock avoid locking (might break parallel builds)
  912. --disable-largefile omit support for large files
  913. Optional Packages:
  914. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  915. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  916. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  917. --with-pic try to use only PIC/non-PIC objects [default=use
  918. both]
  919. --with-tags[=TAGS]
  920. include additional configurations [automatic]
  921. Some influential environment variables:
  922. CC C compiler command
  923. CFLAGS C compiler flags
  924. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  925. nonstandard directory <lib dir>
  926. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  927. headers in a nonstandard directory <include dir>
  928. CPP C preprocessor
  929. CXX C++ compiler command
  930. CXXFLAGS C++ compiler flags
  931. CXXCPP C++ preprocessor
  932. F77 Fortran 77 compiler command
  933. FFLAGS Fortran 77 compiler flags
  934. Use these variables to override the choices made by `configure' or to help
  935. it to find libraries and programs with nonstandard names/locations.
  936. _ACEOF
  937. fi
  938. if test "$ac_init_help" = "recursive"; then
  939. # If there are subdirs, report their specific --help.
  940. ac_popdir=`pwd`
  941. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  942. test -d $ac_dir || continue
  943. ac_builddir=.
  944. if test "$ac_dir" != .; then
  945. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  946. # A "../" for each directory in $ac_dir_suffix.
  947. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  948. else
  949. ac_dir_suffix= ac_top_builddir=
  950. fi
  951. case $srcdir in
  952. .) # No --srcdir option. We are building in place.
  953. ac_srcdir=.
  954. if test -z "$ac_top_builddir"; then
  955. ac_top_srcdir=.
  956. else
  957. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  958. fi ;;
  959. [\\/]* | ?:[\\/]* ) # Absolute path.
  960. ac_srcdir=$srcdir$ac_dir_suffix;
  961. ac_top_srcdir=$srcdir ;;
  962. *) # Relative path.
  963. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  964. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  965. esac
  966. # Do not use `cd foo && pwd` to compute absolute paths, because
  967. # the directories may not exist.
  968. case `pwd` in
  969. .) ac_abs_builddir="$ac_dir";;
  970. *)
  971. case "$ac_dir" in
  972. .) ac_abs_builddir=`pwd`;;
  973. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  974. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  975. esac;;
  976. esac
  977. case $ac_abs_builddir in
  978. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  979. *)
  980. case ${ac_top_builddir}. in
  981. .) ac_abs_top_builddir=$ac_abs_builddir;;
  982. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  983. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  984. esac;;
  985. esac
  986. case $ac_abs_builddir in
  987. .) ac_abs_srcdir=$ac_srcdir;;
  988. *)
  989. case $ac_srcdir in
  990. .) ac_abs_srcdir=$ac_abs_builddir;;
  991. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  992. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  993. esac;;
  994. esac
  995. case $ac_abs_builddir in
  996. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  997. *)
  998. case $ac_top_srcdir in
  999. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  1000. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  1001. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  1002. esac;;
  1003. esac
  1004. cd $ac_dir
  1005. # Check for guested configure; otherwise get Cygnus style configure.
  1006. if test -f $ac_srcdir/configure.gnu; then
  1007. echo
  1008. $SHELL $ac_srcdir/configure.gnu --help=recursive
  1009. elif test -f $ac_srcdir/configure; then
  1010. echo
  1011. $SHELL $ac_srcdir/configure --help=recursive
  1012. elif test -f $ac_srcdir/configure.ac ||
  1013. test -f $ac_srcdir/configure.in; then
  1014. echo
  1015. $ac_configure --help
  1016. else
  1017. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1018. fi
  1019. cd $ac_popdir
  1020. done
  1021. fi
  1022. test -n "$ac_init_help" && exit 0
  1023. if $ac_init_version; then
  1024. cat <<\_ACEOF
  1025. Copyright (C) 2003 Free Software Foundation, Inc.
  1026. This configure script is free software; the Free Software Foundation
  1027. gives unlimited permission to copy, distribute and modify it.
  1028. _ACEOF
  1029. exit 0
  1030. fi
  1031. exec 5>config.log
  1032. cat >&5 <<_ACEOF
  1033. This file contains any messages produced by compilers while
  1034. running configure, to aid debugging if configure makes a mistake.
  1035. It was created by $as_me, which was
  1036. generated by GNU Autoconf 2.59. Invocation command line was
  1037. $ $0 $@
  1038. _ACEOF
  1039. {
  1040. cat <<_ASUNAME
  1041. ## --------- ##
  1042. ## Platform. ##
  1043. ## --------- ##
  1044. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1045. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1046. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1047. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1048. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1049. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1050. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1051. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1052. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1053. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1054. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1055. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1056. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1057. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1058. _ASUNAME
  1059. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1060. for as_dir in $PATH
  1061. do
  1062. IFS=$as_save_IFS
  1063. test -z "$as_dir" && as_dir=.
  1064. echo "PATH: $as_dir"
  1065. done
  1066. } >&5
  1067. cat >&5 <<_ACEOF
  1068. ## ----------- ##
  1069. ## Core tests. ##
  1070. ## ----------- ##
  1071. _ACEOF
  1072. # Keep a trace of the command line.
  1073. # Strip out --no-create and --no-recursion so they do not pile up.
  1074. # Strip out --silent because we don't want to record it for future runs.
  1075. # Also quote any args containing shell meta-characters.
  1076. # Make two passes to allow for proper duplicate-argument suppression.
  1077. ac_configure_args=
  1078. ac_configure_args0=
  1079. ac_configure_args1=
  1080. ac_sep=
  1081. ac_must_keep_next=false
  1082. for ac_pass in 1 2
  1083. do
  1084. for ac_arg
  1085. do
  1086. case $ac_arg in
  1087. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1088. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1089. | -silent | --silent | --silen | --sile | --sil)
  1090. continue ;;
  1091. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1092. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1093. esac
  1094. case $ac_pass in
  1095. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1096. 2)
  1097. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1098. if test $ac_must_keep_next = true; then
  1099. ac_must_keep_next=false # Got value, back to normal.
  1100. else
  1101. case $ac_arg in
  1102. *=* | --config-cache | -C | -disable-* | --disable-* \
  1103. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1104. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1105. | -with-* | --with-* | -without-* | --without-* | --x)
  1106. case "$ac_configure_args0 " in
  1107. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1108. esac
  1109. ;;
  1110. -* ) ac_must_keep_next=true ;;
  1111. esac
  1112. fi
  1113. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1114. # Get rid of the leading space.
  1115. ac_sep=" "
  1116. ;;
  1117. esac
  1118. done
  1119. done
  1120. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1121. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1122. # When interrupted or exit'd, cleanup temporary files, and complete
  1123. # config.log. We remove comments because anyway the quotes in there
  1124. # would cause problems or look ugly.
  1125. # WARNING: Be sure not to use single quotes in there, as some shells,
  1126. # such as our DU 5.0 friend, will then `close' the trap.
  1127. trap 'exit_status=$?
  1128. # Save into config.log some information that might help in debugging.
  1129. {
  1130. echo
  1131. cat <<\_ASBOX
  1132. ## ---------------- ##
  1133. ## Cache variables. ##
  1134. ## ---------------- ##
  1135. _ASBOX
  1136. echo
  1137. # The following way of writing the cache mishandles newlines in values,
  1138. {
  1139. (set) 2>&1 |
  1140. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1141. *ac_space=\ *)
  1142. sed -n \
  1143. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1144. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1145. ;;
  1146. *)
  1147. sed -n \
  1148. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1149. ;;
  1150. esac;
  1151. }
  1152. echo
  1153. cat <<\_ASBOX
  1154. ## ----------------- ##
  1155. ## Output variables. ##
  1156. ## ----------------- ##
  1157. _ASBOX
  1158. echo
  1159. for ac_var in $ac_subst_vars
  1160. do
  1161. eval ac_val=$`echo $ac_var`
  1162. echo "$ac_var='"'"'$ac_val'"'"'"
  1163. done | sort
  1164. echo
  1165. if test -n "$ac_subst_files"; then
  1166. cat <<\_ASBOX
  1167. ## ------------- ##
  1168. ## Output files. ##
  1169. ## ------------- ##
  1170. _ASBOX
  1171. echo
  1172. for ac_var in $ac_subst_files
  1173. do
  1174. eval ac_val=$`echo $ac_var`
  1175. echo "$ac_var='"'"'$ac_val'"'"'"
  1176. done | sort
  1177. echo
  1178. fi
  1179. if test -s confdefs.h; then
  1180. cat <<\_ASBOX
  1181. ## ----------- ##
  1182. ## confdefs.h. ##
  1183. ## ----------- ##
  1184. _ASBOX
  1185. echo
  1186. sed "/^$/d" confdefs.h | sort
  1187. echo
  1188. fi
  1189. test "$ac_signal" != 0 &&
  1190. echo "$as_me: caught signal $ac_signal"
  1191. echo "$as_me: exit $exit_status"
  1192. } >&5
  1193. rm -f core *.core &&
  1194. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1195. exit $exit_status
  1196. ' 0
  1197. for ac_signal in 1 2 13 15; do
  1198. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1199. done
  1200. ac_signal=0
  1201. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1202. rm -rf conftest* confdefs.h
  1203. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1204. echo >confdefs.h
  1205. # Predefined preprocessor variables.
  1206. cat >>confdefs.h <<_ACEOF
  1207. #define PACKAGE_NAME "$PACKAGE_NAME"
  1208. _ACEOF
  1209. cat >>confdefs.h <<_ACEOF
  1210. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1211. _ACEOF
  1212. cat >>confdefs.h <<_ACEOF
  1213. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1214. _ACEOF
  1215. cat >>confdefs.h <<_ACEOF
  1216. #define PACKAGE_STRING "$PACKAGE_STRING"
  1217. _ACEOF
  1218. cat >>confdefs.h <<_ACEOF
  1219. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1220. _ACEOF
  1221. # Let the site file select an alternate cache file if it wants to.
  1222. # Prefer explicitly selected file to automatically selected ones.
  1223. if test -z "$CONFIG_SITE"; then
  1224. if test "x$prefix" != xNONE; then
  1225. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1226. else
  1227. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1228. fi
  1229. fi
  1230. for ac_site_file in $CONFIG_SITE; do
  1231. if test -r "$ac_site_file"; then
  1232. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1233. echo "$as_me: loading site script $ac_site_file" >&6;}
  1234. sed 's/^/| /' "$ac_site_file" >&5
  1235. . "$ac_site_file"
  1236. fi
  1237. done
  1238. if test -r "$cache_file"; then
  1239. # Some versions of bash will fail to source /dev/null (special
  1240. # files actually), so we avoid doing that.
  1241. if test -f "$cache_file"; then
  1242. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1243. echo "$as_me: loading cache $cache_file" >&6;}
  1244. case $cache_file in
  1245. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1246. *) . ./$cache_file;;
  1247. esac
  1248. fi
  1249. else
  1250. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1251. echo "$as_me: creating cache $cache_file" >&6;}
  1252. >$cache_file
  1253. fi
  1254. # Check that the precious variables saved in the cache have kept the same
  1255. # value.
  1256. ac_cache_corrupted=false
  1257. for ac_var in `(set) 2>&1 |
  1258. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1259. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1260. eval ac_new_set=\$ac_env_${ac_var}_set
  1261. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1262. eval ac_new_val="\$ac_env_${ac_var}_value"
  1263. case $ac_old_set,$ac_new_set in
  1264. set,)
  1265. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1266. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1267. ac_cache_corrupted=: ;;
  1268. ,set)
  1269. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1270. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1271. ac_cache_corrupted=: ;;
  1272. ,);;
  1273. *)
  1274. if test "x$ac_old_val" != "x$ac_new_val"; then
  1275. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1276. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1277. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1278. echo "$as_me: former value: $ac_old_val" >&2;}
  1279. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1280. echo "$as_me: current value: $ac_new_val" >&2;}
  1281. ac_cache_corrupted=:
  1282. fi;;
  1283. esac
  1284. # Pass precious variables to config.status.
  1285. if test "$ac_new_set" = set; then
  1286. case $ac_new_val in
  1287. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1288. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1289. *) ac_arg=$ac_var=$ac_new_val ;;
  1290. esac
  1291. case " $ac_configure_args " in
  1292. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1293. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1294. esac
  1295. fi
  1296. done
  1297. if $ac_cache_corrupted; then
  1298. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1299. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1300. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1301. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1302. { (exit 1); exit 1; }; }
  1303. fi
  1304. ac_ext=c
  1305. ac_cpp='$CPP $CPPFLAGS'
  1306. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1307. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1308. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1309. am__api_version="1.9"
  1310. ac_aux_dir=
  1311. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1312. if test -f $ac_dir/install-sh; then
  1313. ac_aux_dir=$ac_dir
  1314. ac_install_sh="$ac_aux_dir/install-sh -c"
  1315. break
  1316. elif test -f $ac_dir/install.sh; then
  1317. ac_aux_dir=$ac_dir
  1318. ac_install_sh="$ac_aux_dir/install.sh -c"
  1319. break
  1320. elif test -f $ac_dir/shtool; then
  1321. ac_aux_dir=$ac_dir
  1322. ac_install_sh="$ac_aux_dir/shtool install -c"
  1323. break
  1324. fi
  1325. done
  1326. if test -z "$ac_aux_dir"; then
  1327. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1328. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1329. { (exit 1); exit 1; }; }
  1330. fi
  1331. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1332. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1333. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1334. # Find a good install program. We prefer a C program (faster),
  1335. # so one script is as good as another. But avoid the broken or
  1336. # incompatible versions:
  1337. # SysV /etc/install, /usr/sbin/install
  1338. # SunOS /usr/etc/install
  1339. # IRIX /sbin/install
  1340. # AIX /bin/install
  1341. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1342. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1343. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1344. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1345. # OS/2's system install, which has a completely different semantic
  1346. # ./install, which can be erroneously created by make from ./install.sh.
  1347. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1348. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1349. if test -z "$INSTALL"; then
  1350. if test "${ac_cv_path_install+set}" = set; then
  1351. echo $ECHO_N "(cached) $ECHO_C" >&6
  1352. else
  1353. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1354. for as_dir in $PATH
  1355. do
  1356. IFS=$as_save_IFS
  1357. test -z "$as_dir" && as_dir=.
  1358. # Account for people who put trailing slashes in PATH elements.
  1359. case $as_dir/ in
  1360. ./ | .// | /cC/* | \
  1361. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1362. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1363. /usr/ucb/* ) ;;
  1364. *)
  1365. # OSF1 and SCO ODT 3.0 have their own names for install.
  1366. # Don't use installbsd from OSF since it installs stuff as root
  1367. # by default.
  1368. for ac_prog in ginstall scoinst install; do
  1369. for ac_exec_ext in '' $ac_executable_extensions; do
  1370. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1371. if test $ac_prog = install &&
  1372. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1373. # AIX install. It has an incompatible calling convention.
  1374. :
  1375. elif test $ac_prog = install &&
  1376. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1377. # program-specific install script used by HP pwplus--don't use.
  1378. :
  1379. else
  1380. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1381. break 3
  1382. fi
  1383. fi
  1384. done
  1385. done
  1386. ;;
  1387. esac
  1388. done
  1389. fi
  1390. if test "${ac_cv_path_install+set}" = set; then
  1391. INSTALL=$ac_cv_path_install
  1392. else
  1393. # As a last resort, use the slow shell script. We don't cache a
  1394. # path for INSTALL within a source directory, because that will
  1395. # break other packages using the cache if that directory is
  1396. # removed, or if the path is relative.
  1397. INSTALL=$ac_install_sh
  1398. fi
  1399. fi
  1400. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1401. echo "${ECHO_T}$INSTALL" >&6
  1402. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1403. # It thinks the first close brace ends the variable substitution.
  1404. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1405. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1406. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1407. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1408. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1409. # Just in case
  1410. sleep 1
  1411. echo timestamp > conftest.file
  1412. # Do `set' in a subshell so we don't clobber the current shell's
  1413. # arguments. Must try -L first in case configure is actually a
  1414. # symlink; some systems play weird games with the mod time of symlinks
  1415. # (eg FreeBSD returns the mod time of the symlink's containing
  1416. # directory).
  1417. if (
  1418. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1419. if test "$*" = "X"; then
  1420. # -L didn't work.
  1421. set X `ls -t $srcdir/configure conftest.file`
  1422. fi
  1423. rm -f conftest.file
  1424. if test "$*" != "X $srcdir/configure conftest.file" \
  1425. && test "$*" != "X conftest.file $srcdir/configure"; then
  1426. # If neither matched, then we have a broken ls. This can happen
  1427. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1428. # broken ls alias from the environment. This has actually
  1429. # happened. Such a system could not be considered "sane".
  1430. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1431. alias in your environment" >&5
  1432. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1433. alias in your environment" >&2;}
  1434. { (exit 1); exit 1; }; }
  1435. fi
  1436. test "$2" = conftest.file
  1437. )
  1438. then
  1439. # Ok.
  1440. :
  1441. else
  1442. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1443. Check your system clock" >&5
  1444. echo "$as_me: error: newly created file is older than distributed files!
  1445. Check your system clock" >&2;}
  1446. { (exit 1); exit 1; }; }
  1447. fi
  1448. echo "$as_me:$LINENO: result: yes" >&5
  1449. echo "${ECHO_T}yes" >&6
  1450. test "$program_prefix" != NONE &&
  1451. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1452. # Use a double $ so make ignores it.
  1453. test "$program_suffix" != NONE &&
  1454. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1455. # Double any \ or $. echo might interpret backslashes.
  1456. # By default was `s,x,x', remove it if useless.
  1457. cat <<\_ACEOF >conftest.sed
  1458. s/[\\$]/&&/g;s/;s,x,x,$//
  1459. _ACEOF
  1460. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1461. rm conftest.sed
  1462. # expand $ac_aux_dir to an absolute path
  1463. am_aux_dir=`cd $ac_aux_dir && pwd`
  1464. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1465. # Use eval to expand $SHELL
  1466. if eval "$MISSING --run true"; then
  1467. am_missing_run="$MISSING --run "
  1468. else
  1469. am_missing_run=
  1470. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1471. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1472. fi
  1473. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1474. # We used to keeping the `.' as first argument, in order to
  1475. # allow $(mkdir_p) to be used without argument. As in
  1476. # $(mkdir_p) $(somedir)
  1477. # where $(somedir) is conditionally defined. However this is wrong
  1478. # for two reasons:
  1479. # 1. if the package is installed by a user who cannot write `.'
  1480. # make install will fail,
  1481. # 2. the above comment should most certainly read
  1482. # $(mkdir_p) $(DESTDIR)$(somedir)
  1483. # so it does not work when $(somedir) is undefined and
  1484. # $(DESTDIR) is not.
  1485. # To support the latter case, we have to write
  1486. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1487. # so the `.' trick is pointless.
  1488. mkdir_p='mkdir -p --'
  1489. else
  1490. # On NextStep and OpenStep, the `mkdir' command does not
  1491. # recognize any option. It will interpret all options as
  1492. # directories to create, and then abort because `.' already
  1493. # exists.
  1494. for d in ./-p ./--version;
  1495. do
  1496. test -d $d && rmdir $d
  1497. done
  1498. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1499. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1500. mkdir_p='$(mkinstalldirs)'
  1501. else
  1502. mkdir_p='$(install_sh) -d'
  1503. fi
  1504. fi
  1505. for ac_prog in gawk mawk nawk awk
  1506. do
  1507. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1508. set dummy $ac_prog; ac_word=$2
  1509. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1510. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1511. if test "${ac_cv_prog_AWK+set}" = set; then
  1512. echo $ECHO_N "(cached) $ECHO_C" >&6
  1513. else
  1514. if test -n "$AWK"; then
  1515. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1516. else
  1517. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1518. for as_dir in $PATH
  1519. do
  1520. IFS=$as_save_IFS
  1521. test -z "$as_dir" && as_dir=.
  1522. for ac_exec_ext in '' $ac_executable_extensions; do
  1523. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1524. ac_cv_prog_AWK="$ac_prog"
  1525. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1526. break 2
  1527. fi
  1528. done
  1529. done
  1530. fi
  1531. fi
  1532. AWK=$ac_cv_prog_AWK
  1533. if test -n "$AWK"; then
  1534. echo "$as_me:$LINENO: result: $AWK" >&5
  1535. echo "${ECHO_T}$AWK" >&6
  1536. else
  1537. echo "$as_me:$LINENO: result: no" >&5
  1538. echo "${ECHO_T}no" >&6
  1539. fi
  1540. test -n "$AWK" && break
  1541. done
  1542. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1543. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1544. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1545. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1546. echo $ECHO_N "(cached) $ECHO_C" >&6
  1547. else
  1548. cat >conftest.make <<\_ACEOF
  1549. all:
  1550. @echo 'ac_maketemp="$(MAKE)"'
  1551. _ACEOF
  1552. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1553. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1554. if test -n "$ac_maketemp"; then
  1555. eval ac_cv_prog_make_${ac_make}_set=yes
  1556. else
  1557. eval ac_cv_prog_make_${ac_make}_set=no
  1558. fi
  1559. rm -f conftest.make
  1560. fi
  1561. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1562. echo "$as_me:$LINENO: result: yes" >&5
  1563. echo "${ECHO_T}yes" >&6
  1564. SET_MAKE=
  1565. else
  1566. echo "$as_me:$LINENO: result: no" >&5
  1567. echo "${ECHO_T}no" >&6
  1568. SET_MAKE="MAKE=${MAKE-make}"
  1569. fi
  1570. rm -rf .tst 2>/dev/null
  1571. mkdir .tst 2>/dev/null
  1572. if test -d .tst; then
  1573. am__leading_dot=.
  1574. else
  1575. am__leading_dot=_
  1576. fi
  1577. rmdir .tst 2>/dev/null
  1578. # test to see if srcdir already configured
  1579. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1580. test -f $srcdir/config.status; then
  1581. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1582. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1583. { (exit 1); exit 1; }; }
  1584. fi
  1585. # test whether we have cygpath
  1586. if test -z "$CYGPATH_W"; then
  1587. if (cygpath --version) >/dev/null 2>/dev/null; then
  1588. CYGPATH_W='cygpath -w'
  1589. else
  1590. CYGPATH_W=echo
  1591. fi
  1592. fi
  1593. # Define the identity of the package.
  1594. PACKAGE=file
  1595. VERSION=4.20
  1596. cat >>confdefs.h <<_ACEOF
  1597. #define PACKAGE "$PACKAGE"
  1598. _ACEOF
  1599. cat >>confdefs.h <<_ACEOF
  1600. #define VERSION "$VERSION"
  1601. _ACEOF
  1602. # Some tools Automake needs.
  1603. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1604. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1605. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1606. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1607. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1608. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1609. # Installed binaries are usually stripped using `strip' when the user
  1610. # run `make install-strip'. However `strip' might not be the right
  1611. # tool to use in cross-compilation environments, therefore Automake
  1612. # will honor the `STRIP' environment variable to overrule this program.
  1613. if test "$cross_compiling" != no; then
  1614. if test -n "$ac_tool_prefix"; then
  1615. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1616. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1617. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1618. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1619. if test "${ac_cv_prog_STRIP+set}" = set; then
  1620. echo $ECHO_N "(cached) $ECHO_C" >&6
  1621. else
  1622. if test -n "$STRIP"; then
  1623. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1624. else
  1625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1626. for as_dir in $PATH
  1627. do
  1628. IFS=$as_save_IFS
  1629. test -z "$as_dir" && as_dir=.
  1630. for ac_exec_ext in '' $ac_executable_extensions; do
  1631. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1632. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1633. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1634. break 2
  1635. fi
  1636. done
  1637. done
  1638. fi
  1639. fi
  1640. STRIP=$ac_cv_prog_STRIP
  1641. if test -n "$STRIP"; then
  1642. echo "$as_me:$LINENO: result: $STRIP" >&5
  1643. echo "${ECHO_T}$STRIP" >&6
  1644. else
  1645. echo "$as_me:$LINENO: result: no" >&5
  1646. echo "${ECHO_T}no" >&6
  1647. fi
  1648. fi
  1649. if test -z "$ac_cv_prog_STRIP"; then
  1650. ac_ct_STRIP=$STRIP
  1651. # Extract the first word of "strip", so it can be a program name with args.
  1652. set dummy strip; ac_word=$2
  1653. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1654. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1655. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1656. echo $ECHO_N "(cached) $ECHO_C" >&6
  1657. else
  1658. if test -n "$ac_ct_STRIP"; then
  1659. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1660. else
  1661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1662. for as_dir in $PATH
  1663. do
  1664. IFS=$as_save_IFS
  1665. test -z "$as_dir" && as_dir=.
  1666. for ac_exec_ext in '' $ac_executable_extensions; do
  1667. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1668. ac_cv_prog_ac_ct_STRIP="strip"
  1669. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1670. break 2
  1671. fi
  1672. done
  1673. done
  1674. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1675. fi
  1676. fi
  1677. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1678. if test -n "$ac_ct_STRIP"; then
  1679. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1680. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1681. else
  1682. echo "$as_me:$LINENO: result: no" >&5
  1683. echo "${ECHO_T}no" >&6
  1684. fi
  1685. STRIP=$ac_ct_STRIP
  1686. else
  1687. STRIP="$ac_cv_prog_STRIP"
  1688. fi
  1689. fi
  1690. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1691. # We need awk for the "check" target. The system "awk" is bad on
  1692. # some platforms.
  1693. # Always define AMTAR for backward compatibility.
  1694. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1695. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1696. ac_config_headers="$ac_config_headers config.h"
  1697. echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1698. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
  1699. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  1700. if test "${enable_maintainer_mode+set}" = set; then
  1701. enableval="$enable_maintainer_mode"
  1702. USE_MAINTAINER_MODE=$enableval
  1703. else
  1704. USE_MAINTAINER_MODE=no
  1705. fi;
  1706. echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  1707. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
  1708. if test $USE_MAINTAINER_MODE = yes; then
  1709. MAINTAINER_MODE_TRUE=
  1710. MAINTAINER_MODE_FALSE='#'
  1711. else
  1712. MAINTAINER_MODE_TRUE='#'
  1713. MAINTAINER_MODE_FALSE=
  1714. fi
  1715. MAINT=$MAINTAINER_MODE_TRUE
  1716. echo "$as_me:$LINENO: checking for builtin ELF support" >&5
  1717. echo $ECHO_N "checking for builtin ELF support... $ECHO_C" >&6
  1718. # Check whether --enable-elf or --disable-elf was given.
  1719. if test "${enable_elf+set}" = set; then
  1720. enableval="$enable_elf"
  1721. if test "${enableval}" = yes; then
  1722. echo "$as_me:$LINENO: result: yes" >&5
  1723. echo "${ECHO_T}yes" >&6
  1724. cat >>confdefs.h <<\_ACEOF
  1725. #define BUILTIN_ELF 1
  1726. _ACEOF
  1727. else
  1728. echo "$as_me:$LINENO: result: no" >&5
  1729. echo "${ECHO_T}no" >&6
  1730. fi
  1731. else
  1732. # enable by default
  1733. echo "$as_me:$LINENO: result: yes" >&5
  1734. echo "${ECHO_T}yes" >&6
  1735. cat >>confdefs.h <<\_ACEOF
  1736. #define BUILTIN_ELF 1
  1737. _ACEOF
  1738. fi;
  1739. echo "$as_me:$LINENO: checking for ELF core file support" >&5
  1740. echo $ECHO_N "checking for ELF core file support... $ECHO_C" >&6
  1741. # Check whether --enable-elf-core or --disable-elf-core was given.
  1742. if test "${enable_elf_core+set}" = set; then
  1743. enableval="$enable_elf_core"
  1744. if test "${enableval}" = yes; then
  1745. echo "$as_me:$LINENO: result: yes" >&5
  1746. echo "${ECHO_T}yes" >&6
  1747. cat >>confdefs.h <<\_ACEOF
  1748. #define ELFCORE 1
  1749. _ACEOF
  1750. else
  1751. echo "$as_me:$LINENO: result: no" >&5
  1752. echo "${ECHO_T}no" >&6
  1753. fi
  1754. else
  1755. # enable by default
  1756. echo "$as_me:$LINENO: result: yes" >&5
  1757. echo "${ECHO_T}yes" >&6
  1758. cat >>confdefs.h <<\_ACEOF
  1759. #define ELFCORE 1
  1760. _ACEOF
  1761. fi;
  1762. echo "$as_me:$LINENO: checking for file formats in man section 5" >&5
  1763. echo $ECHO_N "checking for file formats in man section 5... $ECHO_C" >&6
  1764. # Check whether --enable-fsect-man5 or --disable-fsect-man5 was given.
  1765. if test "${enable_fsect_man5+set}" = set; then
  1766. enableval="$enable_fsect_man5"
  1767. if test "${enableval}" = yes; then
  1768. echo "$as_me:$LINENO: result: yes" >&5
  1769. echo "${ECHO_T}yes" >&6
  1770. fsect=5
  1771. else
  1772. echo "$as_me:$LINENO: result: no" >&5
  1773. echo "${ECHO_T}no" >&6
  1774. fsect=4
  1775. fi
  1776. else
  1777. # disable by default
  1778. echo "$as_me:$LINENO: result: no" >&5
  1779. echo "${ECHO_T}no" >&6
  1780. fsect=4
  1781. fi;
  1782. if test x$fsect = x5; then
  1783. FSECT5_TRUE=
  1784. FSECT5_FALSE='#'
  1785. else
  1786. FSECT5_TRUE='#'
  1787. FSECT5_FALSE=
  1788. fi
  1789. ac_ext=c
  1790. ac_cpp='$CPP $CPPFLAGS'
  1791. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1792. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1793. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1794. if test -n "$ac_tool_prefix"; then
  1795. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1796. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1797. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1798. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1799. if test "${ac_cv_prog_CC+set}" = set; then
  1800. echo $ECHO_N "(cached) $ECHO_C" >&6
  1801. else
  1802. if test -n "$CC"; then
  1803. ac_cv_prog_CC="$CC" # Let the user override the test.
  1804. else
  1805. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1806. for as_dir in $PATH
  1807. do
  1808. IFS=$as_save_IFS
  1809. test -z "$as_dir" && as_dir=.
  1810. for ac_exec_ext in '' $ac_executable_extensions; do
  1811. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1812. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1813. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1814. break 2
  1815. fi
  1816. done
  1817. done
  1818. fi
  1819. fi
  1820. CC=$ac_cv_prog_CC
  1821. if test -n "$CC"; then
  1822. echo "$as_me:$LINENO: result: $CC" >&5
  1823. echo "${ECHO_T}$CC" >&6
  1824. else
  1825. echo "$as_me:$LINENO: result: no" >&5
  1826. echo "${ECHO_T}no" >&6
  1827. fi
  1828. fi
  1829. if test -z "$ac_cv_prog_CC"; then
  1830. ac_ct_CC=$CC
  1831. # Extract the first word of "gcc", so it can be a program name with args.
  1832. set dummy gcc; ac_word=$2
  1833. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1834. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1835. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1836. echo $ECHO_N "(cached) $ECHO_C" >&6
  1837. else
  1838. if test -n "$ac_ct_CC"; then
  1839. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1840. else
  1841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1842. for as_dir in $PATH
  1843. do
  1844. IFS=$as_save_IFS
  1845. test -z "$as_dir" && as_dir=.
  1846. for ac_exec_ext in '' $ac_executable_extensions; do
  1847. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1848. ac_cv_prog_ac_ct_CC="gcc"
  1849. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1850. break 2
  1851. fi
  1852. done
  1853. done
  1854. fi
  1855. fi
  1856. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1857. if test -n "$ac_ct_CC"; then
  1858. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1859. echo "${ECHO_T}$ac_ct_CC" >&6
  1860. else
  1861. echo "$as_me:$LINENO: result: no" >&5
  1862. echo "${ECHO_T}no" >&6
  1863. fi
  1864. CC=$ac_ct_CC
  1865. else
  1866. CC="$ac_cv_prog_CC"
  1867. fi
  1868. if test -z "$CC"; then
  1869. if test -n "$ac_tool_prefix"; then
  1870. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1871. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1872. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1873. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1874. if test "${ac_cv_prog_CC+set}" = set; then
  1875. echo $ECHO_N "(cached) $ECHO_C" >&6
  1876. else
  1877. if test -n "$CC"; then
  1878. ac_cv_prog_CC="$CC" # Let the user override the test.
  1879. else
  1880. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1881. for as_dir in $PATH
  1882. do
  1883. IFS=$as_save_IFS
  1884. test -z "$as_dir" && as_dir=.
  1885. for ac_exec_ext in '' $ac_executable_extensions; do
  1886. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1887. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1888. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1889. break 2
  1890. fi
  1891. done
  1892. done
  1893. fi
  1894. fi
  1895. CC=$ac_cv_prog_CC
  1896. if test -n "$CC"; then
  1897. echo "$as_me:$LINENO: result: $CC" >&5
  1898. echo "${ECHO_T}$CC" >&6
  1899. else
  1900. echo "$as_me:$LINENO: result: no" >&5
  1901. echo "${ECHO_T}no" >&6
  1902. fi
  1903. fi
  1904. if test -z "$ac_cv_prog_CC"; then
  1905. ac_ct_CC=$CC
  1906. # Extract the first word of "cc", so it can be a program name with args.
  1907. set dummy cc; ac_word=$2
  1908. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1909. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1910. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1911. echo $ECHO_N "(cached) $ECHO_C" >&6
  1912. else
  1913. if test -n "$ac_ct_CC"; then
  1914. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1915. else
  1916. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1917. for as_dir in $PATH
  1918. do
  1919. IFS=$as_save_IFS
  1920. test -z "$as_dir" && as_dir=.
  1921. for ac_exec_ext in '' $ac_executable_extensions; do
  1922. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1923. ac_cv_prog_ac_ct_CC="cc"
  1924. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1925. break 2
  1926. fi
  1927. done
  1928. done
  1929. fi
  1930. fi
  1931. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1932. if test -n "$ac_ct_CC"; then
  1933. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1934. echo "${ECHO_T}$ac_ct_CC" >&6
  1935. else
  1936. echo "$as_me:$LINENO: result: no" >&5
  1937. echo "${ECHO_T}no" >&6
  1938. fi
  1939. CC=$ac_ct_CC
  1940. else
  1941. CC="$ac_cv_prog_CC"
  1942. fi
  1943. fi
  1944. if test -z "$CC"; then
  1945. # Extract the first word of "cc", so it can be a program name with args.
  1946. set dummy cc; ac_word=$2
  1947. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1948. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1949. if test "${ac_cv_prog_CC+set}" = set; then
  1950. echo $ECHO_N "(cached) $ECHO_C" >&6
  1951. else
  1952. if test -n "$CC"; then
  1953. ac_cv_prog_CC="$CC" # Let the user override the test.
  1954. else
  1955. ac_prog_rejected=no
  1956. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1957. for as_dir in $PATH
  1958. do
  1959. IFS=$as_save_IFS
  1960. test -z "$as_dir" && as_dir=.
  1961. for ac_exec_ext in '' $ac_executable_extensions; do
  1962. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1963. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1964. ac_prog_rejected=yes
  1965. continue
  1966. fi
  1967. ac_cv_prog_CC="cc"
  1968. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1969. break 2
  1970. fi
  1971. done
  1972. done
  1973. if test $ac_prog_rejected = yes; then
  1974. # We found a bogon in the path, so make sure we never use it.
  1975. set dummy $ac_cv_prog_CC
  1976. shift
  1977. if test $# != 0; then
  1978. # We chose a different compiler from the bogus one.
  1979. # However, it has the same basename, so the bogon will be chosen
  1980. # first if we set CC to just the basename; use the full file name.
  1981. shift
  1982. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1983. fi
  1984. fi
  1985. fi
  1986. fi
  1987. CC=$ac_cv_prog_CC
  1988. if test -n "$CC"; then
  1989. echo "$as_me:$LINENO: result: $CC" >&5
  1990. echo "${ECHO_T}$CC" >&6
  1991. else
  1992. echo "$as_me:$LINENO: result: no" >&5
  1993. echo "${ECHO_T}no" >&6
  1994. fi
  1995. fi
  1996. if test -z "$CC"; then
  1997. if test -n "$ac_tool_prefix"; then
  1998. for ac_prog in cl
  1999. do
  2000. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2001. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2002. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2003. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2004. if test "${ac_cv_prog_CC+set}" = set; then
  2005. echo $ECHO_N "(cached) $ECHO_C" >&6
  2006. else
  2007. if test -n "$CC"; then
  2008. ac_cv_prog_CC="$CC" # Let the user override the test.
  2009. else
  2010. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2011. for as_dir in $PATH
  2012. do
  2013. IFS=$as_save_IFS
  2014. test -z "$as_dir" && as_dir=.
  2015. for ac_exec_ext in '' $ac_executable_extensions; do
  2016. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2017. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2018. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2019. break 2
  2020. fi
  2021. done
  2022. done
  2023. fi
  2024. fi
  2025. CC=$ac_cv_prog_CC
  2026. if test -n "$CC"; then
  2027. echo "$as_me:$LINENO: result: $CC" >&5
  2028. echo "${ECHO_T}$CC" >&6
  2029. else
  2030. echo "$as_me:$LINENO: result: no" >&5
  2031. echo "${ECHO_T}no" >&6
  2032. fi
  2033. test -n "$CC" && break
  2034. done
  2035. fi
  2036. if test -z "$CC"; then
  2037. ac_ct_CC=$CC
  2038. for ac_prog in cl
  2039. do
  2040. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2041. set dummy $ac_prog; ac_word=$2
  2042. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2043. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2044. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2045. echo $ECHO_N "(cached) $ECHO_C" >&6
  2046. else
  2047. if test -n "$ac_ct_CC"; then
  2048. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2049. else
  2050. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2051. for as_dir in $PATH
  2052. do
  2053. IFS=$as_save_IFS
  2054. test -z "$as_dir" && as_dir=.
  2055. for ac_exec_ext in '' $ac_executable_extensions; do
  2056. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2057. ac_cv_prog_ac_ct_CC="$ac_prog"
  2058. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2059. break 2
  2060. fi
  2061. done
  2062. done
  2063. fi
  2064. fi
  2065. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2066. if test -n "$ac_ct_CC"; then
  2067. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2068. echo "${ECHO_T}$ac_ct_CC" >&6
  2069. else
  2070. echo "$as_me:$LINENO: result: no" >&5
  2071. echo "${ECHO_T}no" >&6
  2072. fi
  2073. test -n "$ac_ct_CC" && break
  2074. done
  2075. CC=$ac_ct_CC
  2076. fi
  2077. fi
  2078. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2079. See \`config.log' for more details." >&5
  2080. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2081. See \`config.log' for more details." >&2;}
  2082. { (exit 1); exit 1; }; }
  2083. # Provide some information about the compiler.
  2084. echo "$as_me:$LINENO:" \
  2085. "checking for C compiler version" >&5
  2086. ac_compiler=`set X $ac_compile; echo $2`
  2087. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2088. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2089. ac_status=$?
  2090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2091. (exit $ac_status); }
  2092. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2093. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2094. ac_status=$?
  2095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2096. (exit $ac_status); }
  2097. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2098. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2099. ac_status=$?
  2100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2101. (exit $ac_status); }
  2102. cat >conftest.$ac_ext <<_ACEOF
  2103. /* confdefs.h. */
  2104. _ACEOF
  2105. cat confdefs.h >>conftest.$ac_ext
  2106. cat >>conftest.$ac_ext <<_ACEOF
  2107. /* end confdefs.h. */
  2108. int
  2109. main ()
  2110. {
  2111. ;
  2112. return 0;
  2113. }
  2114. _ACEOF
  2115. ac_clean_files_save=$ac_clean_files
  2116. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2117. # Try to create an executable without -o first, disregard a.out.
  2118. # It will help us diagnose broken compilers, and finding out an intuition
  2119. # of exeext.
  2120. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2121. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  2122. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2123. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  2124. (eval $ac_link_default) 2>&5
  2125. ac_status=$?
  2126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2127. (exit $ac_status); }; then
  2128. # Find the output, starting from the most likely. This scheme is
  2129. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  2130. # resort.
  2131. # Be careful to initialize this variable, since it used to be cached.
  2132. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  2133. ac_cv_exeext=
  2134. # b.out is created by i960 compilers.
  2135. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  2136. do
  2137. test -f "$ac_file" || continue
  2138. case $ac_file in
  2139. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  2140. ;;
  2141. conftest.$ac_ext )
  2142. # This is the source file.
  2143. ;;
  2144. [ab].out )
  2145. # We found the default executable, but exeext='' is most
  2146. # certainly right.
  2147. break;;
  2148. *.* )
  2149. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2150. # FIXME: I believe we export ac_cv_exeext for Libtool,
  2151. # but it would be cool to find out if it's true. Does anybody
  2152. # maintain Libtool? --akim.
  2153. export ac_cv_exeext
  2154. break;;
  2155. * )
  2156. break;;
  2157. esac
  2158. done
  2159. else
  2160. echo "$as_me: failed program was:" >&5
  2161. sed 's/^/| /' conftest.$ac_ext >&5
  2162. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2163. See \`config.log' for more details." >&5
  2164. echo "$as_me: error: C compiler cannot create executables
  2165. See \`config.log' for more details." >&2;}
  2166. { (exit 77); exit 77; }; }
  2167. fi
  2168. ac_exeext=$ac_cv_exeext
  2169. echo "$as_me:$LINENO: result: $ac_file" >&5
  2170. echo "${ECHO_T}$ac_file" >&6
  2171. # Check the compiler produces executables we can run. If not, either
  2172. # the compiler is broken, or we cross compile.
  2173. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2174. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  2175. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2176. # If not cross compiling, check that we can run a simple program.
  2177. if test "$cross_compiling" != yes; then
  2178. if { ac_try='./$ac_file'
  2179. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2180. (eval $ac_try) 2>&5
  2181. ac_status=$?
  2182. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2183. (exit $ac_status); }; }; then
  2184. cross_compiling=no
  2185. else
  2186. if test "$cross_compiling" = maybe; then
  2187. cross_compiling=yes
  2188. else
  2189. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2190. If you meant to cross compile, use \`--host'.
  2191. See \`config.log' for more details." >&5
  2192. echo "$as_me: error: cannot run C compiled programs.
  2193. If you meant to cross compile, use \`--host'.
  2194. See \`config.log' for more details." >&2;}
  2195. { (exit 1); exit 1; }; }
  2196. fi
  2197. fi
  2198. fi
  2199. echo "$as_me:$LINENO: result: yes" >&5
  2200. echo "${ECHO_T}yes" >&6
  2201. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2202. ac_clean_files=$ac_clean_files_save
  2203. # Check the compiler produces executables we can run. If not, either
  2204. # the compiler is broken, or we cross compile.
  2205. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2206. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2207. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2208. echo "${ECHO_T}$cross_compiling" >&6
  2209. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2210. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2211. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2212. (eval $ac_link) 2>&5
  2213. ac_status=$?
  2214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2215. (exit $ac_status); }; then
  2216. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2217. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2218. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2219. # `rm'.
  2220. for ac_file in conftest.exe conftest conftest.*; do
  2221. test -f "$ac_file" || continue
  2222. case $ac_file in
  2223. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2224. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2225. export ac_cv_exeext
  2226. break;;
  2227. * ) break;;
  2228. esac
  2229. done
  2230. else
  2231. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2232. See \`config.log' for more details." >&5
  2233. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2234. See \`config.log' for more details." >&2;}
  2235. { (exit 1); exit 1; }; }
  2236. fi
  2237. rm -f conftest$ac_cv_exeext
  2238. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2239. echo "${ECHO_T}$ac_cv_exeext" >&6
  2240. rm -f conftest.$ac_ext
  2241. EXEEXT=$ac_cv_exeext
  2242. ac_exeext=$EXEEXT
  2243. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2244. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2245. if test "${ac_cv_objext+set}" = set; then
  2246. echo $ECHO_N "(cached) $ECHO_C" >&6
  2247. else
  2248. cat >conftest.$ac_ext <<_ACEOF
  2249. /* confdefs.h. */
  2250. _ACEOF
  2251. cat confdefs.h >>conftest.$ac_ext
  2252. cat >>conftest.$ac_ext <<_ACEOF
  2253. /* end confdefs.h. */
  2254. int
  2255. main ()
  2256. {
  2257. ;
  2258. return 0;
  2259. }
  2260. _ACEOF
  2261. rm -f conftest.o conftest.obj
  2262. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2263. (eval $ac_compile) 2>&5
  2264. ac_status=$?
  2265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2266. (exit $ac_status); }; then
  2267. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2268. case $ac_file in
  2269. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2270. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2271. break;;
  2272. esac
  2273. done
  2274. else
  2275. echo "$as_me: failed program was:" >&5
  2276. sed 's/^/| /' conftest.$ac_ext >&5
  2277. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2278. See \`config.log' for more details." >&5
  2279. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2280. See \`config.log' for more details." >&2;}
  2281. { (exit 1); exit 1; }; }
  2282. fi
  2283. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2284. fi
  2285. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2286. echo "${ECHO_T}$ac_cv_objext" >&6
  2287. OBJEXT=$ac_cv_objext
  2288. ac_objext=$OBJEXT
  2289. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2290. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2291. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2292. echo $ECHO_N "(cached) $ECHO_C" >&6
  2293. else
  2294. cat >conftest.$ac_ext <<_ACEOF
  2295. /* confdefs.h. */
  2296. _ACEOF
  2297. cat confdefs.h >>conftest.$ac_ext
  2298. cat >>conftest.$ac_ext <<_ACEOF
  2299. /* end confdefs.h. */
  2300. int
  2301. main ()
  2302. {
  2303. #ifndef __GNUC__
  2304. choke me
  2305. #endif
  2306. ;
  2307. return 0;
  2308. }
  2309. _ACEOF
  2310. rm -f conftest.$ac_objext
  2311. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2312. (eval $ac_compile) 2>conftest.er1
  2313. ac_status=$?
  2314. grep -v '^ *+' conftest.er1 >conftest.err
  2315. rm -f conftest.er1
  2316. cat conftest.err >&5
  2317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2318. (exit $ac_status); } &&
  2319. { ac_try='test -z "$ac_c_werror_flag"
  2320. || test ! -s conftest.err'
  2321. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2322. (eval $ac_try) 2>&5
  2323. ac_status=$?
  2324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2325. (exit $ac_status); }; } &&
  2326. { ac_try='test -s conftest.$ac_objext'
  2327. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2328. (eval $ac_try) 2>&5
  2329. ac_status=$?
  2330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2331. (exit $ac_status); }; }; then
  2332. ac_compiler_gnu=yes
  2333. else
  2334. echo "$as_me: failed program was:" >&5
  2335. sed 's/^/| /' conftest.$ac_ext >&5
  2336. ac_compiler_gnu=no
  2337. fi
  2338. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2339. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2340. fi
  2341. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2342. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2343. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2344. ac_test_CFLAGS=${CFLAGS+set}
  2345. ac_save_CFLAGS=$CFLAGS
  2346. CFLAGS="-g"
  2347. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2348. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2349. if test "${ac_cv_prog_cc_g+set}" = set; then
  2350. echo $ECHO_N "(cached) $ECHO_C" >&6
  2351. else
  2352. cat >conftest.$ac_ext <<_ACEOF
  2353. /* confdefs.h. */
  2354. _ACEOF
  2355. cat confdefs.h >>conftest.$ac_ext
  2356. cat >>conftest.$ac_ext <<_ACEOF
  2357. /* end confdefs.h. */
  2358. int
  2359. main ()
  2360. {
  2361. ;
  2362. return 0;
  2363. }
  2364. _ACEOF
  2365. rm -f conftest.$ac_objext
  2366. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2367. (eval $ac_compile) 2>conftest.er1
  2368. ac_status=$?
  2369. grep -v '^ *+' conftest.er1 >conftest.err
  2370. rm -f conftest.er1
  2371. cat conftest.err >&5
  2372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2373. (exit $ac_status); } &&
  2374. { ac_try='test -z "$ac_c_werror_flag"
  2375. || test ! -s conftest.err'
  2376. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2377. (eval $ac_try) 2>&5
  2378. ac_status=$?
  2379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2380. (exit $ac_status); }; } &&
  2381. { ac_try='test -s conftest.$ac_objext'
  2382. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2383. (eval $ac_try) 2>&5
  2384. ac_status=$?
  2385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2386. (exit $ac_status); }; }; then
  2387. ac_cv_prog_cc_g=yes
  2388. else
  2389. echo "$as_me: failed program was:" >&5
  2390. sed 's/^/| /' conftest.$ac_ext >&5
  2391. ac_cv_prog_cc_g=no
  2392. fi
  2393. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2394. fi
  2395. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2396. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2397. if test "$ac_test_CFLAGS" = set; then
  2398. CFLAGS=$ac_save_CFLAGS
  2399. elif test $ac_cv_prog_cc_g = yes; then
  2400. if test "$GCC" = yes; then
  2401. CFLAGS="-g -O2"
  2402. else
  2403. CFLAGS="-g"
  2404. fi
  2405. else
  2406. if test "$GCC" = yes; then
  2407. CFLAGS="-O2"
  2408. else
  2409. CFLAGS=
  2410. fi
  2411. fi
  2412. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2413. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2414. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2415. echo $ECHO_N "(cached) $ECHO_C" >&6
  2416. else
  2417. ac_cv_prog_cc_stdc=no
  2418. ac_save_CC=$CC
  2419. cat >conftest.$ac_ext <<_ACEOF
  2420. /* confdefs.h. */
  2421. _ACEOF
  2422. cat confdefs.h >>conftest.$ac_ext
  2423. cat >>conftest.$ac_ext <<_ACEOF
  2424. /* end confdefs.h. */
  2425. #include <stdarg.h>
  2426. #include <stdio.h>
  2427. #include <sys/types.h>
  2428. #include <sys/stat.h>
  2429. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2430. struct buf { int x; };
  2431. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2432. static char *e (p, i)
  2433. char **p;
  2434. int i;
  2435. {
  2436. return p[i];
  2437. }
  2438. static char *f (char * (*g) (char **, int), char **p, ...)
  2439. {
  2440. char *s;
  2441. va_list v;
  2442. va_start (v,p);
  2443. s = g (p, va_arg (v,int));
  2444. va_end (v);
  2445. return s;
  2446. }
  2447. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2448. function prototypes and stuff, but not '\xHH' hex character constants.
  2449. These don't provoke an error unfortunately, instead are silently treated
  2450. as 'x'. The following induces an error, until -std1 is added to get
  2451. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2452. array size at least. It's necessary to write '\x00'==0 to get something
  2453. that's true only with -std1. */
  2454. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2455. int test (int i, double x);
  2456. struct s1 {int (*f) (int a);};
  2457. struct s2 {int (*f) (double a);};
  2458. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2459. int argc;
  2460. char **argv;
  2461. int
  2462. main ()
  2463. {
  2464. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2465. ;
  2466. return 0;
  2467. }
  2468. _ACEOF
  2469. # Don't try gcc -ansi; that turns off useful extensions and
  2470. # breaks some systems' header files.
  2471. # AIX -qlanglvl=ansi
  2472. # Ultrix and OSF/1 -std1
  2473. # HP-UX 10.20 and later -Ae
  2474. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2475. # SVR4 -Xc -D__EXTENSIONS__
  2476. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2477. do
  2478. CC="$ac_save_CC $ac_arg"
  2479. rm -f conftest.$ac_objext
  2480. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2481. (eval $ac_compile) 2>conftest.er1
  2482. ac_status=$?
  2483. grep -v '^ *+' conftest.er1 >conftest.err
  2484. rm -f conftest.er1
  2485. cat conftest.err >&5
  2486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2487. (exit $ac_status); } &&
  2488. { ac_try='test -z "$ac_c_werror_flag"
  2489. || test ! -s conftest.err'
  2490. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2491. (eval $ac_try) 2>&5
  2492. ac_status=$?
  2493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2494. (exit $ac_status); }; } &&
  2495. { ac_try='test -s conftest.$ac_objext'
  2496. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2497. (eval $ac_try) 2>&5
  2498. ac_status=$?
  2499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2500. (exit $ac_status); }; }; then
  2501. ac_cv_prog_cc_stdc=$ac_arg
  2502. break
  2503. else
  2504. echo "$as_me: failed program was:" >&5
  2505. sed 's/^/| /' conftest.$ac_ext >&5
  2506. fi
  2507. rm -f conftest.err conftest.$ac_objext
  2508. done
  2509. rm -f conftest.$ac_ext conftest.$ac_objext
  2510. CC=$ac_save_CC
  2511. fi
  2512. case "x$ac_cv_prog_cc_stdc" in
  2513. x|xno)
  2514. echo "$as_me:$LINENO: result: none needed" >&5
  2515. echo "${ECHO_T}none needed" >&6 ;;
  2516. *)
  2517. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2518. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2519. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2520. esac
  2521. # Some people use a C++ compiler to compile C. Since we use `exit',
  2522. # in C++ we need to declare it. In case someone uses the same compiler
  2523. # for both compiling C and C++ we need to have the C++ compiler decide
  2524. # the declaration of exit, since it's the most demanding environment.
  2525. cat >conftest.$ac_ext <<_ACEOF
  2526. #ifndef __cplusplus
  2527. choke me
  2528. #endif
  2529. _ACEOF
  2530. rm -f conftest.$ac_objext
  2531. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2532. (eval $ac_compile) 2>conftest.er1
  2533. ac_status=$?
  2534. grep -v '^ *+' conftest.er1 >conftest.err
  2535. rm -f conftest.er1
  2536. cat conftest.err >&5
  2537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2538. (exit $ac_status); } &&
  2539. { ac_try='test -z "$ac_c_werror_flag"
  2540. || test ! -s conftest.err'
  2541. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2542. (eval $ac_try) 2>&5
  2543. ac_status=$?
  2544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2545. (exit $ac_status); }; } &&
  2546. { ac_try='test -s conftest.$ac_objext'
  2547. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2548. (eval $ac_try) 2>&5
  2549. ac_status=$?
  2550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2551. (exit $ac_status); }; }; then
  2552. for ac_declaration in \
  2553. '' \
  2554. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2555. 'extern "C" void std::exit (int); using std::exit;' \
  2556. 'extern "C" void exit (int) throw ();' \
  2557. 'extern "C" void exit (int);' \
  2558. 'void exit (int);'
  2559. do
  2560. cat >conftest.$ac_ext <<_ACEOF
  2561. /* confdefs.h. */
  2562. _ACEOF
  2563. cat confdefs.h >>conftest.$ac_ext
  2564. cat >>conftest.$ac_ext <<_ACEOF
  2565. /* end confdefs.h. */
  2566. $ac_declaration
  2567. #include <stdlib.h>
  2568. int
  2569. main ()
  2570. {
  2571. exit (42);
  2572. ;
  2573. return 0;
  2574. }
  2575. _ACEOF
  2576. rm -f conftest.$ac_objext
  2577. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2578. (eval $ac_compile) 2>conftest.er1
  2579. ac_status=$?
  2580. grep -v '^ *+' conftest.er1 >conftest.err
  2581. rm -f conftest.er1
  2582. cat conftest.err >&5
  2583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2584. (exit $ac_status); } &&
  2585. { ac_try='test -z "$ac_c_werror_flag"
  2586. || test ! -s conftest.err'
  2587. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2588. (eval $ac_try) 2>&5
  2589. ac_status=$?
  2590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2591. (exit $ac_status); }; } &&
  2592. { ac_try='test -s conftest.$ac_objext'
  2593. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2594. (eval $ac_try) 2>&5
  2595. ac_status=$?
  2596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2597. (exit $ac_status); }; }; then
  2598. :
  2599. else
  2600. echo "$as_me: failed program was:" >&5
  2601. sed 's/^/| /' conftest.$ac_ext >&5
  2602. continue
  2603. fi
  2604. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2605. cat >conftest.$ac_ext <<_ACEOF
  2606. /* confdefs.h. */
  2607. _ACEOF
  2608. cat confdefs.h >>conftest.$ac_ext
  2609. cat >>conftest.$ac_ext <<_ACEOF
  2610. /* end confdefs.h. */
  2611. $ac_declaration
  2612. int
  2613. main ()
  2614. {
  2615. exit (42);
  2616. ;
  2617. return 0;
  2618. }
  2619. _ACEOF
  2620. rm -f conftest.$ac_objext
  2621. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2622. (eval $ac_compile) 2>conftest.er1
  2623. ac_status=$?
  2624. grep -v '^ *+' conftest.er1 >conftest.err
  2625. rm -f conftest.er1
  2626. cat conftest.err >&5
  2627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2628. (exit $ac_status); } &&
  2629. { ac_try='test -z "$ac_c_werror_flag"
  2630. || test ! -s conftest.err'
  2631. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2632. (eval $ac_try) 2>&5
  2633. ac_status=$?
  2634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2635. (exit $ac_status); }; } &&
  2636. { ac_try='test -s conftest.$ac_objext'
  2637. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2638. (eval $ac_try) 2>&5
  2639. ac_status=$?
  2640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2641. (exit $ac_status); }; }; then
  2642. break
  2643. else
  2644. echo "$as_me: failed program was:" >&5
  2645. sed 's/^/| /' conftest.$ac_ext >&5
  2646. fi
  2647. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2648. done
  2649. rm -f conftest*
  2650. if test -n "$ac_declaration"; then
  2651. echo '#ifdef __cplusplus' >>confdefs.h
  2652. echo $ac_declaration >>confdefs.h
  2653. echo '#endif' >>confdefs.h
  2654. fi
  2655. else
  2656. echo "$as_me: failed program was:" >&5
  2657. sed 's/^/| /' conftest.$ac_ext >&5
  2658. fi
  2659. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2660. ac_ext=c
  2661. ac_cpp='$CPP $CPPFLAGS'
  2662. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2663. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2664. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2665. DEPDIR="${am__leading_dot}deps"
  2666. ac_config_commands="$ac_config_commands depfiles"
  2667. am_make=${MAKE-make}
  2668. cat > confinc << 'END'
  2669. am__doit:
  2670. @echo done
  2671. .PHONY: am__doit
  2672. END
  2673. # If we don't find an include directive, just comment out the code.
  2674. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2675. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2676. am__include="#"
  2677. am__quote=
  2678. _am_result=none
  2679. # First try GNU make style include.
  2680. echo "include confinc" > confmf
  2681. # We grep out `Entering directory' and `Leaving directory'
  2682. # messages which can occur if `w' ends up in MAKEFLAGS.
  2683. # In particular we don't look at `^make:' because GNU make might
  2684. # be invoked under some other name (usually "gmake"), in which
  2685. # case it prints its new name instead of `make'.
  2686. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2687. am__include=include
  2688. am__quote=
  2689. _am_result=GNU
  2690. fi
  2691. # Now try BSD make style include.
  2692. if test "$am__include" = "#"; then
  2693. echo '.include "confinc"' > confmf
  2694. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2695. am__include=.include
  2696. am__quote="\""
  2697. _am_result=BSD
  2698. fi
  2699. fi
  2700. echo "$as_me:$LINENO: result: $_am_result" >&5
  2701. echo "${ECHO_T}$_am_result" >&6
  2702. rm -f confinc confmf
  2703. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2704. if test "${enable_dependency_tracking+set}" = set; then
  2705. enableval="$enable_dependency_tracking"
  2706. fi;
  2707. if test "x$enable_dependency_tracking" != xno; then
  2708. am_depcomp="$ac_aux_dir/depcomp"
  2709. AMDEPBACKSLASH='\'
  2710. fi
  2711. if test "x$enable_dependency_tracking" != xno; then
  2712. AMDEP_TRUE=
  2713. AMDEP_FALSE='#'
  2714. else
  2715. AMDEP_TRUE='#'
  2716. AMDEP_FALSE=
  2717. fi
  2718. depcc="$CC" am_compiler_list=
  2719. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2720. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2721. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  2722. echo $ECHO_N "(cached) $ECHO_C" >&6
  2723. else
  2724. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2725. # We make a subdir and do the tests there. Otherwise we can end up
  2726. # making bogus files that we don't know about and never remove. For
  2727. # instance it was reported that on HP-UX the gcc test will end up
  2728. # making a dummy file named `D' -- because `-MD' means `put the output
  2729. # in D'.
  2730. mkdir conftest.dir
  2731. # Copy depcomp to subdir because otherwise we won't find it if we're
  2732. # using a relative directory.
  2733. cp "$am_depcomp" conftest.dir
  2734. cd conftest.dir
  2735. # We will build objects and dependencies in a subdirectory because
  2736. # it helps to detect inapplicable dependency modes. For instance
  2737. # both Tru64's cc and ICC support -MD to output dependencies as a
  2738. # side effect of compilation, but ICC will put the dependencies in
  2739. # the current directory while Tru64 will put them in the object
  2740. # directory.
  2741. mkdir sub
  2742. am_cv_CC_dependencies_compiler_type=none
  2743. if test "$am_compiler_list" = ""; then
  2744. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2745. fi
  2746. for depmode in $am_compiler_list; do
  2747. # Setup a source with many dependencies, because some compilers
  2748. # like to wrap large dependency lists on column 80 (with \), and
  2749. # we should not choose a depcomp mode which is confused by this.
  2750. #
  2751. # We need to recreate these files for each test, as the compiler may
  2752. # overwrite some of them when testing with obscure command lines.
  2753. # This happens at least with the AIX C compiler.
  2754. : > sub/conftest.c
  2755. for i in 1 2 3 4 5 6; do
  2756. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2757. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2758. # Solaris 8's {/usr,}/bin/sh.
  2759. touch sub/conftst$i.h
  2760. done
  2761. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2762. case $depmode in
  2763. nosideeffect)
  2764. # after this tag, mechanisms are not by side-effect, so they'll
  2765. # only be used when explicitly requested
  2766. if test "x$enable_dependency_tracking" = xyes; then
  2767. continue
  2768. else
  2769. break
  2770. fi
  2771. ;;
  2772. none) break ;;
  2773. esac
  2774. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2775. # mode. It turns out that the SunPro C++ compiler does not properly
  2776. # handle `-M -o', and we need to detect this.
  2777. if depmode=$depmode \
  2778. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2779. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2780. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2781. >/dev/null 2>conftest.err &&
  2782. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2783. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2784. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2785. # icc doesn't choke on unknown options, it will just issue warnings
  2786. # or remarks (even with -Werror). So we grep stderr for any message
  2787. # that says an option was ignored or not supported.
  2788. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2789. # icc: Command line warning: ignoring option '-M'; no argument required
  2790. # The diagnosis changed in icc 8.0:
  2791. # icc: Command line remark: option '-MP' not supported
  2792. if (grep 'ignoring option' conftest.err ||
  2793. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2794. am_cv_CC_dependencies_compiler_type=$depmode
  2795. break
  2796. fi
  2797. fi
  2798. done
  2799. cd ..
  2800. rm -rf conftest.dir
  2801. else
  2802. am_cv_CC_dependencies_compiler_type=none
  2803. fi
  2804. fi
  2805. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  2806. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  2807. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  2808. if
  2809. test "x$enable_dependency_tracking" != xno \
  2810. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  2811. am__fastdepCC_TRUE=
  2812. am__fastdepCC_FALSE='#'
  2813. else
  2814. am__fastdepCC_TRUE='#'
  2815. am__fastdepCC_FALSE=
  2816. fi
  2817. # Find a good install program. We prefer a C program (faster),
  2818. # so one script is as good as another. But avoid the broken or
  2819. # incompatible versions:
  2820. # SysV /etc/install, /usr/sbin/install
  2821. # SunOS /usr/etc/install
  2822. # IRIX /sbin/install
  2823. # AIX /bin/install
  2824. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2825. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2826. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2827. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2828. # OS/2's system install, which has a completely different semantic
  2829. # ./install, which can be erroneously created by make from ./install.sh.
  2830. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2831. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  2832. if test -z "$INSTALL"; then
  2833. if test "${ac_cv_path_install+set}" = set; then
  2834. echo $ECHO_N "(cached) $ECHO_C" >&6
  2835. else
  2836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2837. for as_dir in $PATH
  2838. do
  2839. IFS=$as_save_IFS
  2840. test -z "$as_dir" && as_dir=.
  2841. # Account for people who put trailing slashes in PATH elements.
  2842. case $as_dir/ in
  2843. ./ | .// | /cC/* | \
  2844. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2845. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2846. /usr/ucb/* ) ;;
  2847. *)
  2848. # OSF1 and SCO ODT 3.0 have their own names for install.
  2849. # Don't use installbsd from OSF since it installs stuff as root
  2850. # by default.
  2851. for ac_prog in ginstall scoinst install; do
  2852. for ac_exec_ext in '' $ac_executable_extensions; do
  2853. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2854. if test $ac_prog = install &&
  2855. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2856. # AIX install. It has an incompatible calling convention.
  2857. :
  2858. elif test $ac_prog = install &&
  2859. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2860. # program-specific install script used by HP pwplus--don't use.
  2861. :
  2862. else
  2863. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2864. break 3
  2865. fi
  2866. fi
  2867. done
  2868. done
  2869. ;;
  2870. esac
  2871. done
  2872. fi
  2873. if test "${ac_cv_path_install+set}" = set; then
  2874. INSTALL=$ac_cv_path_install
  2875. else
  2876. # As a last resort, use the slow shell script. We don't cache a
  2877. # path for INSTALL within a source directory, because that will
  2878. # break other packages using the cache if that directory is
  2879. # removed, or if the path is relative.
  2880. INSTALL=$ac_install_sh
  2881. fi
  2882. fi
  2883. echo "$as_me:$LINENO: result: $INSTALL" >&5
  2884. echo "${ECHO_T}$INSTALL" >&6
  2885. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2886. # It thinks the first close brace ends the variable substitution.
  2887. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2888. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2889. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2890. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  2891. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  2892. LN_S=$as_ln_s
  2893. if test "$LN_S" = "ln -s"; then
  2894. echo "$as_me:$LINENO: result: yes" >&5
  2895. echo "${ECHO_T}yes" >&6
  2896. else
  2897. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  2898. echo "${ECHO_T}no, using $LN_S" >&6
  2899. fi
  2900. # Check whether --enable-shared or --disable-shared was given.
  2901. if test "${enable_shared+set}" = set; then
  2902. enableval="$enable_shared"
  2903. p=${PACKAGE-default}
  2904. case $enableval in
  2905. yes) enable_shared=yes ;;
  2906. no) enable_shared=no ;;
  2907. *)
  2908. enable_shared=no
  2909. # Look at the argument we got. We use all the common list separators.
  2910. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2911. for pkg in $enableval; do
  2912. IFS="$lt_save_ifs"
  2913. if test "X$pkg" = "X$p"; then
  2914. enable_shared=yes
  2915. fi
  2916. done
  2917. IFS="$lt_save_ifs"
  2918. ;;
  2919. esac
  2920. else
  2921. enable_shared=yes
  2922. fi;
  2923. # Check whether --enable-static or --disable-static was given.
  2924. if test "${enable_static+set}" = set; then
  2925. enableval="$enable_static"
  2926. p=${PACKAGE-default}
  2927. case $enableval in
  2928. yes) enable_static=yes ;;
  2929. no) enable_static=no ;;
  2930. *)
  2931. enable_static=no
  2932. # Look at the argument we got. We use all the common list separators.
  2933. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2934. for pkg in $enableval; do
  2935. IFS="$lt_save_ifs"
  2936. if test "X$pkg" = "X$p"; then
  2937. enable_static=yes
  2938. fi
  2939. done
  2940. IFS="$lt_save_ifs"
  2941. ;;
  2942. esac
  2943. else
  2944. enable_static=yes
  2945. fi;
  2946. # Check whether --enable-fast-install or --disable-fast-install was given.
  2947. if test "${enable_fast_install+set}" = set; then
  2948. enableval="$enable_fast_install"
  2949. p=${PACKAGE-default}
  2950. case $enableval in
  2951. yes) enable_fast_install=yes ;;
  2952. no) enable_fast_install=no ;;
  2953. *)
  2954. enable_fast_install=no
  2955. # Look at the argument we got. We use all the common list separators.
  2956. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2957. for pkg in $enableval; do
  2958. IFS="$lt_save_ifs"
  2959. if test "X$pkg" = "X$p"; then
  2960. enable_fast_install=yes
  2961. fi
  2962. done
  2963. IFS="$lt_save_ifs"
  2964. ;;
  2965. esac
  2966. else
  2967. enable_fast_install=yes
  2968. fi;
  2969. # Make sure we can run config.sub.
  2970. $ac_config_sub sun4 >/dev/null 2>&1 ||
  2971. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  2972. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  2973. { (exit 1); exit 1; }; }
  2974. echo "$as_me:$LINENO: checking build system type" >&5
  2975. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  2976. if test "${ac_cv_build+set}" = set; then
  2977. echo $ECHO_N "(cached) $ECHO_C" >&6
  2978. else
  2979. ac_cv_build_alias=$build_alias
  2980. test -z "$ac_cv_build_alias" &&
  2981. ac_cv_build_alias=`$ac_config_guess`
  2982. test -z "$ac_cv_build_alias" &&
  2983. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2984. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2985. { (exit 1); exit 1; }; }
  2986. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  2987. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  2988. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  2989. { (exit 1); exit 1; }; }
  2990. fi
  2991. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2992. echo "${ECHO_T}$ac_cv_build" >&6
  2993. build=$ac_cv_build
  2994. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  2995. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  2996. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  2997. echo "$as_me:$LINENO: checking host system type" >&5
  2998. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  2999. if test "${ac_cv_host+set}" = set; then
  3000. echo $ECHO_N "(cached) $ECHO_C" >&6
  3001. else
  3002. ac_cv_host_alias=$host_alias
  3003. test -z "$ac_cv_host_alias" &&
  3004. ac_cv_host_alias=$ac_cv_build_alias
  3005. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  3006. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  3007. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  3008. { (exit 1); exit 1; }; }
  3009. fi
  3010. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  3011. echo "${ECHO_T}$ac_cv_host" >&6
  3012. host=$ac_cv_host
  3013. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  3014. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  3015. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  3016. echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3017. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  3018. if test "${lt_cv_path_SED+set}" = set; then
  3019. echo $ECHO_N "(cached) $ECHO_C" >&6
  3020. else
  3021. # Loop through the user's path and test for sed and gsed.
  3022. # Then use that list of sed's as ones to test for truncation.
  3023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3024. for as_dir in $PATH
  3025. do
  3026. IFS=$as_save_IFS
  3027. test -z "$as_dir" && as_dir=.
  3028. for lt_ac_prog in sed gsed; do
  3029. for ac_exec_ext in '' $ac_executable_extensions; do
  3030. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  3031. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3032. fi
  3033. done
  3034. done
  3035. done
  3036. lt_ac_max=0
  3037. lt_ac_count=0
  3038. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3039. # along with /bin/sed that truncates output.
  3040. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3041. test ! -f $lt_ac_sed && continue
  3042. cat /dev/null > conftest.in
  3043. lt_ac_count=0
  3044. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3045. # Check for GNU sed and select it if it is found.
  3046. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3047. lt_cv_path_SED=$lt_ac_sed
  3048. break
  3049. fi
  3050. while true; do
  3051. cat conftest.in conftest.in >conftest.tmp
  3052. mv conftest.tmp conftest.in
  3053. cp conftest.in conftest.nl
  3054. echo >>conftest.nl
  3055. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3056. cmp -s conftest.out conftest.nl || break
  3057. # 10000 chars as input seems more than enough
  3058. test $lt_ac_count -gt 10 && break
  3059. lt_ac_count=`expr $lt_ac_count + 1`
  3060. if test $lt_ac_count -gt $lt_ac_max; then
  3061. lt_ac_max=$lt_ac_count
  3062. lt_cv_path_SED=$lt_ac_sed
  3063. fi
  3064. done
  3065. done
  3066. fi
  3067. SED=$lt_cv_path_SED
  3068. echo "$as_me:$LINENO: result: $SED" >&5
  3069. echo "${ECHO_T}$SED" >&6
  3070. echo "$as_me:$LINENO: checking for egrep" >&5
  3071. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3072. if test "${ac_cv_prog_egrep+set}" = set; then
  3073. echo $ECHO_N "(cached) $ECHO_C" >&6
  3074. else
  3075. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3076. then ac_cv_prog_egrep='grep -E'
  3077. else ac_cv_prog_egrep='egrep'
  3078. fi
  3079. fi
  3080. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3081. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3082. EGREP=$ac_cv_prog_egrep
  3083. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  3084. if test "${with_gnu_ld+set}" = set; then
  3085. withval="$with_gnu_ld"
  3086. test "$withval" = no || with_gnu_ld=yes
  3087. else
  3088. with_gnu_ld=no
  3089. fi;
  3090. ac_prog=ld
  3091. if test "$GCC" = yes; then
  3092. # Check if gcc -print-prog-name=ld gives a path.
  3093. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3094. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  3095. case $host in
  3096. *-*-mingw*)
  3097. # gcc leaves a trailing carriage return which upsets mingw
  3098. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3099. *)
  3100. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3101. esac
  3102. case $ac_prog in
  3103. # Accept absolute paths.
  3104. [\\/]* | ?:[\\/]*)
  3105. re_direlt='/[^/][^/]*/\.\./'
  3106. # Canonicalize the pathname of ld
  3107. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3108. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3109. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3110. done
  3111. test -z "$LD" && LD="$ac_prog"
  3112. ;;
  3113. "")
  3114. # If it fails, then pretend we aren't using GCC.
  3115. ac_prog=ld
  3116. ;;
  3117. *)
  3118. # If it is relative, then search for the first ld in PATH.
  3119. with_gnu_ld=unknown
  3120. ;;
  3121. esac
  3122. elif test "$with_gnu_ld" = yes; then
  3123. echo "$as_me:$LINENO: checking for GNU ld" >&5
  3124. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  3125. else
  3126. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3127. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  3128. fi
  3129. if test "${lt_cv_path_LD+set}" = set; then
  3130. echo $ECHO_N "(cached) $ECHO_C" >&6
  3131. else
  3132. if test -z "$LD"; then
  3133. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3134. for ac_dir in $PATH; do
  3135. IFS="$lt_save_ifs"
  3136. test -z "$ac_dir" && ac_dir=.
  3137. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3138. lt_cv_path_LD="$ac_dir/$ac_prog"
  3139. # Check to see if the program is GNU ld. I'd rather use --version,
  3140. # but apparently some GNU ld's only accept -v.
  3141. # Break only if it was the GNU/non-GNU ld that we prefer.
  3142. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3143. *GNU* | *'with BFD'*)
  3144. test "$with_gnu_ld" != no && break
  3145. ;;
  3146. *)
  3147. test "$with_gnu_ld" != yes && break
  3148. ;;
  3149. esac
  3150. fi
  3151. done
  3152. IFS="$lt_save_ifs"
  3153. else
  3154. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3155. fi
  3156. fi
  3157. LD="$lt_cv_path_LD"
  3158. if test -n "$LD"; then
  3159. echo "$as_me:$LINENO: result: $LD" >&5
  3160. echo "${ECHO_T}$LD" >&6
  3161. else
  3162. echo "$as_me:$LINENO: result: no" >&5
  3163. echo "${ECHO_T}no" >&6
  3164. fi
  3165. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3166. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3167. { (exit 1); exit 1; }; }
  3168. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3169. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  3170. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3171. echo $ECHO_N "(cached) $ECHO_C" >&6
  3172. else
  3173. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  3174. case `$LD -v 2>&1 </dev/null` in
  3175. *GNU* | *'with BFD'*)
  3176. lt_cv_prog_gnu_ld=yes
  3177. ;;
  3178. *)
  3179. lt_cv_prog_gnu_ld=no
  3180. ;;
  3181. esac
  3182. fi
  3183. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3184. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  3185. with_gnu_ld=$lt_cv_prog_gnu_ld
  3186. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3187. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  3188. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3189. echo $ECHO_N "(cached) $ECHO_C" >&6
  3190. else
  3191. lt_cv_ld_reload_flag='-r'
  3192. fi
  3193. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3194. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  3195. reload_flag=$lt_cv_ld_reload_flag
  3196. case $reload_flag in
  3197. "" | " "*) ;;
  3198. *) reload_flag=" $reload_flag" ;;
  3199. esac
  3200. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3201. case $host_os in
  3202. darwin*)
  3203. if test "$GCC" = yes; then
  3204. reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
  3205. else
  3206. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3207. fi
  3208. ;;
  3209. esac
  3210. echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3211. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  3212. if test "${lt_cv_path_NM+set}" = set; then
  3213. echo $ECHO_N "(cached) $ECHO_C" >&6
  3214. else
  3215. if test -n "$NM"; then
  3216. # Let the user override the test.
  3217. lt_cv_path_NM="$NM"
  3218. else
  3219. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3220. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  3221. IFS="$lt_save_ifs"
  3222. test -z "$ac_dir" && ac_dir=.
  3223. tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  3224. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3225. # Check to see if the nm accepts a BSD-compat flag.
  3226. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3227. # nm: unknown option "B" ignored
  3228. # Tru64's nm complains that /dev/null is an invalid object file
  3229. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3230. */dev/null* | *'Invalid file or object type'*)
  3231. lt_cv_path_NM="$tmp_nm -B"
  3232. break
  3233. ;;
  3234. *)
  3235. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3236. */dev/null*)
  3237. lt_cv_path_NM="$tmp_nm -p"
  3238. break
  3239. ;;
  3240. *)
  3241. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3242. continue # so that we can try to find one that supports BSD flags
  3243. ;;
  3244. esac
  3245. esac
  3246. fi
  3247. done
  3248. IFS="$lt_save_ifs"
  3249. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3250. fi
  3251. fi
  3252. echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3253. echo "${ECHO_T}$lt_cv_path_NM" >&6
  3254. NM="$lt_cv_path_NM"
  3255. echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  3256. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  3257. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3258. echo $ECHO_N "(cached) $ECHO_C" >&6
  3259. else
  3260. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3261. lt_cv_file_magic_test_file=
  3262. lt_cv_deplibs_check_method='unknown'
  3263. # Need to set the preceding variable on all platforms that support
  3264. # interlibrary dependencies.
  3265. # 'none' -- dependencies not supported.
  3266. # `unknown' -- same as none, but documents that we really don't know.
  3267. # 'pass_all' -- all dependencies passed with no checks.
  3268. # 'test_compile' -- check by making test program.
  3269. # 'file_magic [[regex]]' -- check by looking for files in library path
  3270. # which responds to the $file_magic_cmd with a given extended regex.
  3271. # If you have `file' or equivalent on your system and you're not sure
  3272. # whether `pass_all' will *always* work, you probably want this one.
  3273. case $host_os in
  3274. aix4* | aix5*)
  3275. lt_cv_deplibs_check_method=pass_all
  3276. ;;
  3277. beos*)
  3278. lt_cv_deplibs_check_method=pass_all
  3279. ;;
  3280. bsdi[45]*)
  3281. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3282. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3283. lt_cv_file_magic_test_file=/shlib/libc.so
  3284. ;;
  3285. cygwin*)
  3286. # func_win32_libid is a shell function defined in ltmain.sh
  3287. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3288. lt_cv_file_magic_cmd='func_win32_libid'
  3289. ;;
  3290. mingw* | pw32*)
  3291. # Base MSYS/MinGW do not provide the 'file' command needed by
  3292. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  3293. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3294. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3295. ;;
  3296. darwin* | rhapsody*)
  3297. lt_cv_deplibs_check_method=pass_all
  3298. ;;
  3299. freebsd* | kfreebsd*-gnu | dragonfly*)
  3300. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3301. case $host_cpu in
  3302. i*86 )
  3303. # Not sure whether the presence of OpenBSD here was a mistake.
  3304. # Let's accept both of them until this is cleared up.
  3305. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  3306. lt_cv_file_magic_cmd=/usr/bin/file
  3307. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3308. ;;
  3309. esac
  3310. else
  3311. lt_cv_deplibs_check_method=pass_all
  3312. fi
  3313. ;;
  3314. gnu*)
  3315. lt_cv_deplibs_check_method=pass_all
  3316. ;;
  3317. hpux10.20* | hpux11*)
  3318. lt_cv_file_magic_cmd=/usr/bin/file
  3319. case "$host_cpu" in
  3320. ia64*)
  3321. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3322. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3323. ;;
  3324. hppa*64*)
  3325. 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]'
  3326. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3327. ;;
  3328. *)
  3329. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3330. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3331. ;;
  3332. esac
  3333. ;;
  3334. irix5* | irix6* | nonstopux*)
  3335. case $LD in
  3336. *-32|*"-32 ") libmagic=32-bit;;
  3337. *-n32|*"-n32 ") libmagic=N32;;
  3338. *-64|*"-64 ") libmagic=64-bit;;
  3339. *) libmagic=never-match;;
  3340. esac
  3341. lt_cv_deplibs_check_method=pass_all
  3342. ;;
  3343. # This must be Linux ELF.
  3344. linux*)
  3345. lt_cv_deplibs_check_method=pass_all
  3346. ;;
  3347. netbsd*)
  3348. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3349. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3350. else
  3351. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3352. fi
  3353. ;;
  3354. newos6*)
  3355. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3356. lt_cv_file_magic_cmd=/usr/bin/file
  3357. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3358. ;;
  3359. nto-qnx*)
  3360. lt_cv_deplibs_check_method=unknown
  3361. ;;
  3362. openbsd*)
  3363. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3364. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  3365. else
  3366. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3367. fi
  3368. ;;
  3369. osf3* | osf4* | osf5*)
  3370. lt_cv_deplibs_check_method=pass_all
  3371. ;;
  3372. sco3.2v5*)
  3373. lt_cv_deplibs_check_method=pass_all
  3374. ;;
  3375. solaris*)
  3376. lt_cv_deplibs_check_method=pass_all
  3377. ;;
  3378. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  3379. case $host_vendor in
  3380. motorola)
  3381. 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]'
  3382. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3383. ;;
  3384. ncr)
  3385. lt_cv_deplibs_check_method=pass_all
  3386. ;;
  3387. sequent)
  3388. lt_cv_file_magic_cmd='/bin/file'
  3389. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  3390. ;;
  3391. sni)
  3392. lt_cv_file_magic_cmd='/bin/file'
  3393. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  3394. lt_cv_file_magic_test_file=/lib/libc.so
  3395. ;;
  3396. siemens)
  3397. lt_cv_deplibs_check_method=pass_all
  3398. ;;
  3399. esac
  3400. ;;
  3401. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
  3402. lt_cv_deplibs_check_method=pass_all
  3403. ;;
  3404. esac
  3405. fi
  3406. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  3407. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  3408. file_magic_cmd=$lt_cv_file_magic_cmd
  3409. deplibs_check_method=$lt_cv_deplibs_check_method
  3410. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3411. # If no C compiler was specified, use CC.
  3412. LTCC=${LTCC-"$CC"}
  3413. # Allow CC to be a program name with arguments.
  3414. compiler=$CC
  3415. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  3416. if test "${enable_libtool_lock+set}" = set; then
  3417. enableval="$enable_libtool_lock"
  3418. fi;
  3419. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  3420. # Some flags need to be propagated to the compiler or linker for good
  3421. # libtool support.
  3422. case $host in
  3423. ia64-*-hpux*)
  3424. # Find out which ABI we are using.
  3425. echo 'int i;' > conftest.$ac_ext
  3426. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3427. (eval $ac_compile) 2>&5
  3428. ac_status=$?
  3429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3430. (exit $ac_status); }; then
  3431. case `/usr/bin/file conftest.$ac_objext` in
  3432. *ELF-32*)
  3433. HPUX_IA64_MODE="32"
  3434. ;;
  3435. *ELF-64*)
  3436. HPUX_IA64_MODE="64"
  3437. ;;
  3438. esac
  3439. fi
  3440. rm -rf conftest*
  3441. ;;
  3442. *-*-irix6*)
  3443. # Find out which ABI we are using.
  3444. echo '#line 3847 "configure"' > conftest.$ac_ext
  3445. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3446. (eval $ac_compile) 2>&5
  3447. ac_status=$?
  3448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3449. (exit $ac_status); }; then
  3450. if test "$lt_cv_prog_gnu_ld" = yes; then
  3451. case `/usr/bin/file conftest.$ac_objext` in
  3452. *32-bit*)
  3453. LD="${LD-ld} -melf32bsmip"
  3454. ;;
  3455. *N32*)
  3456. LD="${LD-ld} -melf32bmipn32"
  3457. ;;
  3458. *64-bit*)
  3459. LD="${LD-ld} -melf64bmip"
  3460. ;;
  3461. esac
  3462. else
  3463. case `/usr/bin/file conftest.$ac_objext` in
  3464. *32-bit*)
  3465. LD="${LD-ld} -32"
  3466. ;;
  3467. *N32*)
  3468. LD="${LD-ld} -n32"
  3469. ;;
  3470. *64-bit*)
  3471. LD="${LD-ld} -64"
  3472. ;;
  3473. esac
  3474. fi
  3475. fi
  3476. rm -rf conftest*
  3477. ;;
  3478. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  3479. # Find out which ABI we are using.
  3480. echo 'int i;' > conftest.$ac_ext
  3481. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3482. (eval $ac_compile) 2>&5
  3483. ac_status=$?
  3484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3485. (exit $ac_status); }; then
  3486. case "`/usr/bin/file conftest.o`" in
  3487. *32-bit*)
  3488. case $host in
  3489. x86_64-*linux*)
  3490. LD="${LD-ld} -m elf_i386"
  3491. ;;
  3492. ppc64-*linux*|powerpc64-*linux*)
  3493. LD="${LD-ld} -m elf32ppclinux"
  3494. ;;
  3495. s390x-*linux*)
  3496. LD="${LD-ld} -m elf_s390"
  3497. ;;
  3498. sparc64-*linux*)
  3499. LD="${LD-ld} -m elf32_sparc"
  3500. ;;
  3501. esac
  3502. ;;
  3503. *64-bit*)
  3504. case $host in
  3505. x86_64-*linux*)
  3506. LD="${LD-ld} -m elf_x86_64"
  3507. ;;
  3508. ppc*-*linux*|powerpc*-*linux*)
  3509. LD="${LD-ld} -m elf64ppc"
  3510. ;;
  3511. s390*-*linux*)
  3512. LD="${LD-ld} -m elf64_s390"
  3513. ;;
  3514. sparc*-*linux*)
  3515. LD="${LD-ld} -m elf64_sparc"
  3516. ;;
  3517. esac
  3518. ;;
  3519. esac
  3520. fi
  3521. rm -rf conftest*
  3522. ;;
  3523. *-*-sco3.2v5*)
  3524. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  3525. SAVE_CFLAGS="$CFLAGS"
  3526. CFLAGS="$CFLAGS -belf"
  3527. echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  3528. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  3529. if test "${lt_cv_cc_needs_belf+set}" = set; then
  3530. echo $ECHO_N "(cached) $ECHO_C" >&6
  3531. else
  3532. ac_ext=c
  3533. ac_cpp='$CPP $CPPFLAGS'
  3534. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3535. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3536. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3537. cat >conftest.$ac_ext <<_ACEOF
  3538. /* confdefs.h. */
  3539. _ACEOF
  3540. cat confdefs.h >>conftest.$ac_ext
  3541. cat >>conftest.$ac_ext <<_ACEOF
  3542. /* end confdefs.h. */
  3543. int
  3544. main ()
  3545. {
  3546. ;
  3547. return 0;
  3548. }
  3549. _ACEOF
  3550. rm -f conftest.$ac_objext conftest$ac_exeext
  3551. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3552. (eval $ac_link) 2>conftest.er1
  3553. ac_status=$?
  3554. grep -v '^ *+' conftest.er1 >conftest.err
  3555. rm -f conftest.er1
  3556. cat conftest.err >&5
  3557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3558. (exit $ac_status); } &&
  3559. { ac_try='test -z "$ac_c_werror_flag"
  3560. || test ! -s conftest.err'
  3561. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3562. (eval $ac_try) 2>&5
  3563. ac_status=$?
  3564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3565. (exit $ac_status); }; } &&
  3566. { ac_try='test -s conftest$ac_exeext'
  3567. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3568. (eval $ac_try) 2>&5
  3569. ac_status=$?
  3570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3571. (exit $ac_status); }; }; then
  3572. lt_cv_cc_needs_belf=yes
  3573. else
  3574. echo "$as_me: failed program was:" >&5
  3575. sed 's/^/| /' conftest.$ac_ext >&5
  3576. lt_cv_cc_needs_belf=no
  3577. fi
  3578. rm -f conftest.err conftest.$ac_objext \
  3579. conftest$ac_exeext conftest.$ac_ext
  3580. ac_ext=c
  3581. ac_cpp='$CPP $CPPFLAGS'
  3582. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3583. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3584. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3585. fi
  3586. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  3587. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  3588. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  3589. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  3590. CFLAGS="$SAVE_CFLAGS"
  3591. fi
  3592. ;;
  3593. esac
  3594. need_locks="$enable_libtool_lock"
  3595. ac_ext=c
  3596. ac_cpp='$CPP $CPPFLAGS'
  3597. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3598. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3599. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3600. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3601. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  3602. # On Suns, sometimes $CPP names a directory.
  3603. if test -n "$CPP" && test -d "$CPP"; then
  3604. CPP=
  3605. fi
  3606. if test -z "$CPP"; then
  3607. if test "${ac_cv_prog_CPP+set}" = set; then
  3608. echo $ECHO_N "(cached) $ECHO_C" >&6
  3609. else
  3610. # Double quotes because CPP needs to be expanded
  3611. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3612. do
  3613. ac_preproc_ok=false
  3614. for ac_c_preproc_warn_flag in '' yes
  3615. do
  3616. # Use a header file that comes with gcc, so configuring glibc
  3617. # with a fresh cross-compiler works.
  3618. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3619. # <limits.h> exists even on freestanding compilers.
  3620. # On the NeXT, cc -E runs the code through the compiler's parser,
  3621. # not just through cpp. "Syntax error" is here to catch this case.
  3622. cat >conftest.$ac_ext <<_ACEOF
  3623. /* confdefs.h. */
  3624. _ACEOF
  3625. cat confdefs.h >>conftest.$ac_ext
  3626. cat >>conftest.$ac_ext <<_ACEOF
  3627. /* end confdefs.h. */
  3628. #ifdef __STDC__
  3629. # include <limits.h>
  3630. #else
  3631. # include <assert.h>
  3632. #endif
  3633. Syntax error
  3634. _ACEOF
  3635. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3636. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3637. ac_status=$?
  3638. grep -v '^ *+' conftest.er1 >conftest.err
  3639. rm -f conftest.er1
  3640. cat conftest.err >&5
  3641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3642. (exit $ac_status); } >/dev/null; then
  3643. if test -s conftest.err; then
  3644. ac_cpp_err=$ac_c_preproc_warn_flag
  3645. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3646. else
  3647. ac_cpp_err=
  3648. fi
  3649. else
  3650. ac_cpp_err=yes
  3651. fi
  3652. if test -z "$ac_cpp_err"; then
  3653. :
  3654. else
  3655. echo "$as_me: failed program was:" >&5
  3656. sed 's/^/| /' conftest.$ac_ext >&5
  3657. # Broken: fails on valid input.
  3658. continue
  3659. fi
  3660. rm -f conftest.err conftest.$ac_ext
  3661. # OK, works on sane cases. Now check whether non-existent headers
  3662. # can be detected and how.
  3663. cat >conftest.$ac_ext <<_ACEOF
  3664. /* confdefs.h. */
  3665. _ACEOF
  3666. cat confdefs.h >>conftest.$ac_ext
  3667. cat >>conftest.$ac_ext <<_ACEOF
  3668. /* end confdefs.h. */
  3669. #include <ac_nonexistent.h>
  3670. _ACEOF
  3671. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3672. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3673. ac_status=$?
  3674. grep -v '^ *+' conftest.er1 >conftest.err
  3675. rm -f conftest.er1
  3676. cat conftest.err >&5
  3677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3678. (exit $ac_status); } >/dev/null; then
  3679. if test -s conftest.err; then
  3680. ac_cpp_err=$ac_c_preproc_warn_flag
  3681. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3682. else
  3683. ac_cpp_err=
  3684. fi
  3685. else
  3686. ac_cpp_err=yes
  3687. fi
  3688. if test -z "$ac_cpp_err"; then
  3689. # Broken: success on invalid input.
  3690. continue
  3691. else
  3692. echo "$as_me: failed program was:" >&5
  3693. sed 's/^/| /' conftest.$ac_ext >&5
  3694. # Passes both tests.
  3695. ac_preproc_ok=:
  3696. break
  3697. fi
  3698. rm -f conftest.err conftest.$ac_ext
  3699. done
  3700. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3701. rm -f conftest.err conftest.$ac_ext
  3702. if $ac_preproc_ok; then
  3703. break
  3704. fi
  3705. done
  3706. ac_cv_prog_CPP=$CPP
  3707. fi
  3708. CPP=$ac_cv_prog_CPP
  3709. else
  3710. ac_cv_prog_CPP=$CPP
  3711. fi
  3712. echo "$as_me:$LINENO: result: $CPP" >&5
  3713. echo "${ECHO_T}$CPP" >&6
  3714. ac_preproc_ok=false
  3715. for ac_c_preproc_warn_flag in '' yes
  3716. do
  3717. # Use a header file that comes with gcc, so configuring glibc
  3718. # with a fresh cross-compiler works.
  3719. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3720. # <limits.h> exists even on freestanding compilers.
  3721. # On the NeXT, cc -E runs the code through the compiler's parser,
  3722. # not just through cpp. "Syntax error" is here to catch this case.
  3723. cat >conftest.$ac_ext <<_ACEOF
  3724. /* confdefs.h. */
  3725. _ACEOF
  3726. cat confdefs.h >>conftest.$ac_ext
  3727. cat >>conftest.$ac_ext <<_ACEOF
  3728. /* end confdefs.h. */
  3729. #ifdef __STDC__
  3730. # include <limits.h>
  3731. #else
  3732. # include <assert.h>
  3733. #endif
  3734. Syntax error
  3735. _ACEOF
  3736. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3737. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3738. ac_status=$?
  3739. grep -v '^ *+' conftest.er1 >conftest.err
  3740. rm -f conftest.er1
  3741. cat conftest.err >&5
  3742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3743. (exit $ac_status); } >/dev/null; then
  3744. if test -s conftest.err; then
  3745. ac_cpp_err=$ac_c_preproc_warn_flag
  3746. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3747. else
  3748. ac_cpp_err=
  3749. fi
  3750. else
  3751. ac_cpp_err=yes
  3752. fi
  3753. if test -z "$ac_cpp_err"; then
  3754. :
  3755. else
  3756. echo "$as_me: failed program was:" >&5
  3757. sed 's/^/| /' conftest.$ac_ext >&5
  3758. # Broken: fails on valid input.
  3759. continue
  3760. fi
  3761. rm -f conftest.err conftest.$ac_ext
  3762. # OK, works on sane cases. Now check whether non-existent headers
  3763. # can be detected and how.
  3764. cat >conftest.$ac_ext <<_ACEOF
  3765. /* confdefs.h. */
  3766. _ACEOF
  3767. cat confdefs.h >>conftest.$ac_ext
  3768. cat >>conftest.$ac_ext <<_ACEOF
  3769. /* end confdefs.h. */
  3770. #include <ac_nonexistent.h>
  3771. _ACEOF
  3772. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3773. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3774. ac_status=$?
  3775. grep -v '^ *+' conftest.er1 >conftest.err
  3776. rm -f conftest.er1
  3777. cat conftest.err >&5
  3778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3779. (exit $ac_status); } >/dev/null; then
  3780. if test -s conftest.err; then
  3781. ac_cpp_err=$ac_c_preproc_warn_flag
  3782. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3783. else
  3784. ac_cpp_err=
  3785. fi
  3786. else
  3787. ac_cpp_err=yes
  3788. fi
  3789. if test -z "$ac_cpp_err"; then
  3790. # Broken: success on invalid input.
  3791. continue
  3792. else
  3793. echo "$as_me: failed program was:" >&5
  3794. sed 's/^/| /' conftest.$ac_ext >&5
  3795. # Passes both tests.
  3796. ac_preproc_ok=:
  3797. break
  3798. fi
  3799. rm -f conftest.err conftest.$ac_ext
  3800. done
  3801. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3802. rm -f conftest.err conftest.$ac_ext
  3803. if $ac_preproc_ok; then
  3804. :
  3805. else
  3806. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3807. See \`config.log' for more details." >&5
  3808. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3809. See \`config.log' for more details." >&2;}
  3810. { (exit 1); exit 1; }; }
  3811. fi
  3812. ac_ext=c
  3813. ac_cpp='$CPP $CPPFLAGS'
  3814. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3815. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3816. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3817. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3818. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3819. if test "${ac_cv_header_stdc+set}" = set; then
  3820. echo $ECHO_N "(cached) $ECHO_C" >&6
  3821. else
  3822. cat >conftest.$ac_ext <<_ACEOF
  3823. /* confdefs.h. */
  3824. _ACEOF
  3825. cat confdefs.h >>conftest.$ac_ext
  3826. cat >>conftest.$ac_ext <<_ACEOF
  3827. /* end confdefs.h. */
  3828. #include <stdlib.h>
  3829. #include <stdarg.h>
  3830. #include <string.h>
  3831. #include <float.h>
  3832. int
  3833. main ()
  3834. {
  3835. ;
  3836. return 0;
  3837. }
  3838. _ACEOF
  3839. rm -f conftest.$ac_objext
  3840. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3841. (eval $ac_compile) 2>conftest.er1
  3842. ac_status=$?
  3843. grep -v '^ *+' conftest.er1 >conftest.err
  3844. rm -f conftest.er1
  3845. cat conftest.err >&5
  3846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3847. (exit $ac_status); } &&
  3848. { ac_try='test -z "$ac_c_werror_flag"
  3849. || test ! -s conftest.err'
  3850. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3851. (eval $ac_try) 2>&5
  3852. ac_status=$?
  3853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3854. (exit $ac_status); }; } &&
  3855. { ac_try='test -s conftest.$ac_objext'
  3856. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3857. (eval $ac_try) 2>&5
  3858. ac_status=$?
  3859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3860. (exit $ac_status); }; }; then
  3861. ac_cv_header_stdc=yes
  3862. else
  3863. echo "$as_me: failed program was:" >&5
  3864. sed 's/^/| /' conftest.$ac_ext >&5
  3865. ac_cv_header_stdc=no
  3866. fi
  3867. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3868. if test $ac_cv_header_stdc = yes; then
  3869. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3870. cat >conftest.$ac_ext <<_ACEOF
  3871. /* confdefs.h. */
  3872. _ACEOF
  3873. cat confdefs.h >>conftest.$ac_ext
  3874. cat >>conftest.$ac_ext <<_ACEOF
  3875. /* end confdefs.h. */
  3876. #include <string.h>
  3877. _ACEOF
  3878. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3879. $EGREP "memchr" >/dev/null 2>&1; then
  3880. :
  3881. else
  3882. ac_cv_header_stdc=no
  3883. fi
  3884. rm -f conftest*
  3885. fi
  3886. if test $ac_cv_header_stdc = yes; then
  3887. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3888. cat >conftest.$ac_ext <<_ACEOF
  3889. /* confdefs.h. */
  3890. _ACEOF
  3891. cat confdefs.h >>conftest.$ac_ext
  3892. cat >>conftest.$ac_ext <<_ACEOF
  3893. /* end confdefs.h. */
  3894. #include <stdlib.h>
  3895. _ACEOF
  3896. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3897. $EGREP "free" >/dev/null 2>&1; then
  3898. :
  3899. else
  3900. ac_cv_header_stdc=no
  3901. fi
  3902. rm -f conftest*
  3903. fi
  3904. if test $ac_cv_header_stdc = yes; then
  3905. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3906. if test "$cross_compiling" = yes; then
  3907. :
  3908. else
  3909. cat >conftest.$ac_ext <<_ACEOF
  3910. /* confdefs.h. */
  3911. _ACEOF
  3912. cat confdefs.h >>conftest.$ac_ext
  3913. cat >>conftest.$ac_ext <<_ACEOF
  3914. /* end confdefs.h. */
  3915. #include <ctype.h>
  3916. #if ((' ' & 0x0FF) == 0x020)
  3917. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3918. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3919. #else
  3920. # define ISLOWER(c) \
  3921. (('a' <= (c) && (c) <= 'i') \
  3922. || ('j' <= (c) && (c) <= 'r') \
  3923. || ('s' <= (c) && (c) <= 'z'))
  3924. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3925. #endif
  3926. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3927. int
  3928. main ()
  3929. {
  3930. int i;
  3931. for (i = 0; i < 256; i++)
  3932. if (XOR (islower (i), ISLOWER (i))
  3933. || toupper (i) != TOUPPER (i))
  3934. exit(2);
  3935. exit (0);
  3936. }
  3937. _ACEOF
  3938. rm -f conftest$ac_exeext
  3939. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3940. (eval $ac_link) 2>&5
  3941. ac_status=$?
  3942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3943. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3944. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3945. (eval $ac_try) 2>&5
  3946. ac_status=$?
  3947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3948. (exit $ac_status); }; }; then
  3949. :
  3950. else
  3951. echo "$as_me: program exited with status $ac_status" >&5
  3952. echo "$as_me: failed program was:" >&5
  3953. sed 's/^/| /' conftest.$ac_ext >&5
  3954. ( exit $ac_status )
  3955. ac_cv_header_stdc=no
  3956. fi
  3957. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3958. fi
  3959. fi
  3960. fi
  3961. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3962. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3963. if test $ac_cv_header_stdc = yes; then
  3964. cat >>confdefs.h <<\_ACEOF
  3965. #define STDC_HEADERS 1
  3966. _ACEOF
  3967. fi
  3968. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3969. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3970. inttypes.h stdint.h unistd.h
  3971. do
  3972. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3973. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3974. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3975. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3976. echo $ECHO_N "(cached) $ECHO_C" >&6
  3977. else
  3978. cat >conftest.$ac_ext <<_ACEOF
  3979. /* confdefs.h. */
  3980. _ACEOF
  3981. cat confdefs.h >>conftest.$ac_ext
  3982. cat >>conftest.$ac_ext <<_ACEOF
  3983. /* end confdefs.h. */
  3984. $ac_includes_default
  3985. #include <$ac_header>
  3986. _ACEOF
  3987. rm -f conftest.$ac_objext
  3988. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3989. (eval $ac_compile) 2>conftest.er1
  3990. ac_status=$?
  3991. grep -v '^ *+' conftest.er1 >conftest.err
  3992. rm -f conftest.er1
  3993. cat conftest.err >&5
  3994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3995. (exit $ac_status); } &&
  3996. { ac_try='test -z "$ac_c_werror_flag"
  3997. || test ! -s conftest.err'
  3998. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3999. (eval $ac_try) 2>&5
  4000. ac_status=$?
  4001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4002. (exit $ac_status); }; } &&
  4003. { ac_try='test -s conftest.$ac_objext'
  4004. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4005. (eval $ac_try) 2>&5
  4006. ac_status=$?
  4007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4008. (exit $ac_status); }; }; then
  4009. eval "$as_ac_Header=yes"
  4010. else
  4011. echo "$as_me: failed program was:" >&5
  4012. sed 's/^/| /' conftest.$ac_ext >&5
  4013. eval "$as_ac_Header=no"
  4014. fi
  4015. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4016. fi
  4017. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4018. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4019. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4020. cat >>confdefs.h <<_ACEOF
  4021. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4022. _ACEOF
  4023. fi
  4024. done
  4025. for ac_header in dlfcn.h
  4026. do
  4027. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4028. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4029. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4030. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4031. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4032. echo $ECHO_N "(cached) $ECHO_C" >&6
  4033. fi
  4034. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4035. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4036. else
  4037. # Is the header compilable?
  4038. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4039. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4040. cat >conftest.$ac_ext <<_ACEOF
  4041. /* confdefs.h. */
  4042. _ACEOF
  4043. cat confdefs.h >>conftest.$ac_ext
  4044. cat >>conftest.$ac_ext <<_ACEOF
  4045. /* end confdefs.h. */
  4046. $ac_includes_default
  4047. #include <$ac_header>
  4048. _ACEOF
  4049. rm -f conftest.$ac_objext
  4050. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4051. (eval $ac_compile) 2>conftest.er1
  4052. ac_status=$?
  4053. grep -v '^ *+' conftest.er1 >conftest.err
  4054. rm -f conftest.er1
  4055. cat conftest.err >&5
  4056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4057. (exit $ac_status); } &&
  4058. { ac_try='test -z "$ac_c_werror_flag"
  4059. || test ! -s conftest.err'
  4060. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4061. (eval $ac_try) 2>&5
  4062. ac_status=$?
  4063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4064. (exit $ac_status); }; } &&
  4065. { ac_try='test -s conftest.$ac_objext'
  4066. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4067. (eval $ac_try) 2>&5
  4068. ac_status=$?
  4069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4070. (exit $ac_status); }; }; then
  4071. ac_header_compiler=yes
  4072. else
  4073. echo "$as_me: failed program was:" >&5
  4074. sed 's/^/| /' conftest.$ac_ext >&5
  4075. ac_header_compiler=no
  4076. fi
  4077. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4078. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4079. echo "${ECHO_T}$ac_header_compiler" >&6
  4080. # Is the header present?
  4081. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4082. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4083. cat >conftest.$ac_ext <<_ACEOF
  4084. /* confdefs.h. */
  4085. _ACEOF
  4086. cat confdefs.h >>conftest.$ac_ext
  4087. cat >>conftest.$ac_ext <<_ACEOF
  4088. /* end confdefs.h. */
  4089. #include <$ac_header>
  4090. _ACEOF
  4091. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4092. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4093. ac_status=$?
  4094. grep -v '^ *+' conftest.er1 >conftest.err
  4095. rm -f conftest.er1
  4096. cat conftest.err >&5
  4097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4098. (exit $ac_status); } >/dev/null; then
  4099. if test -s conftest.err; then
  4100. ac_cpp_err=$ac_c_preproc_warn_flag
  4101. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4102. else
  4103. ac_cpp_err=
  4104. fi
  4105. else
  4106. ac_cpp_err=yes
  4107. fi
  4108. if test -z "$ac_cpp_err"; then
  4109. ac_header_preproc=yes
  4110. else
  4111. echo "$as_me: failed program was:" >&5
  4112. sed 's/^/| /' conftest.$ac_ext >&5
  4113. ac_header_preproc=no
  4114. fi
  4115. rm -f conftest.err conftest.$ac_ext
  4116. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4117. echo "${ECHO_T}$ac_header_preproc" >&6
  4118. # So? What about this header?
  4119. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4120. yes:no: )
  4121. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4122. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4123. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4124. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4125. ac_header_preproc=yes
  4126. ;;
  4127. no:yes:* )
  4128. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4129. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4130. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4131. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4132. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4133. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4134. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4135. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4136. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4137. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4138. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4139. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4140. (
  4141. cat <<\_ASBOX
  4142. ## ------------------------------------------ ##
  4143. ## Report this to the AC_PACKAGE_NAME lists. ##
  4144. ## ------------------------------------------ ##
  4145. _ASBOX
  4146. ) |
  4147. sed "s/^/$as_me: WARNING: /" >&2
  4148. ;;
  4149. esac
  4150. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4151. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4152. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4153. echo $ECHO_N "(cached) $ECHO_C" >&6
  4154. else
  4155. eval "$as_ac_Header=\$ac_header_preproc"
  4156. fi
  4157. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4158. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4159. fi
  4160. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4161. cat >>confdefs.h <<_ACEOF
  4162. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4163. _ACEOF
  4164. fi
  4165. done
  4166. ac_ext=cc
  4167. ac_cpp='$CXXCPP $CPPFLAGS'
  4168. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4169. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4170. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4171. if test -n "$ac_tool_prefix"; then
  4172. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  4173. do
  4174. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4175. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4176. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4177. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4178. if test "${ac_cv_prog_CXX+set}" = set; then
  4179. echo $ECHO_N "(cached) $ECHO_C" >&6
  4180. else
  4181. if test -n "$CXX"; then
  4182. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4183. else
  4184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4185. for as_dir in $PATH
  4186. do
  4187. IFS=$as_save_IFS
  4188. test -z "$as_dir" && as_dir=.
  4189. for ac_exec_ext in '' $ac_executable_extensions; do
  4190. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4191. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4192. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4193. break 2
  4194. fi
  4195. done
  4196. done
  4197. fi
  4198. fi
  4199. CXX=$ac_cv_prog_CXX
  4200. if test -n "$CXX"; then
  4201. echo "$as_me:$LINENO: result: $CXX" >&5
  4202. echo "${ECHO_T}$CXX" >&6
  4203. else
  4204. echo "$as_me:$LINENO: result: no" >&5
  4205. echo "${ECHO_T}no" >&6
  4206. fi
  4207. test -n "$CXX" && break
  4208. done
  4209. fi
  4210. if test -z "$CXX"; then
  4211. ac_ct_CXX=$CXX
  4212. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  4213. do
  4214. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4215. set dummy $ac_prog; ac_word=$2
  4216. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4217. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4218. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  4219. echo $ECHO_N "(cached) $ECHO_C" >&6
  4220. else
  4221. if test -n "$ac_ct_CXX"; then
  4222. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4223. else
  4224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4225. for as_dir in $PATH
  4226. do
  4227. IFS=$as_save_IFS
  4228. test -z "$as_dir" && as_dir=.
  4229. for ac_exec_ext in '' $ac_executable_extensions; do
  4230. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4231. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4232. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4233. break 2
  4234. fi
  4235. done
  4236. done
  4237. fi
  4238. fi
  4239. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4240. if test -n "$ac_ct_CXX"; then
  4241. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  4242. echo "${ECHO_T}$ac_ct_CXX" >&6
  4243. else
  4244. echo "$as_me:$LINENO: result: no" >&5
  4245. echo "${ECHO_T}no" >&6
  4246. fi
  4247. test -n "$ac_ct_CXX" && break
  4248. done
  4249. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  4250. CXX=$ac_ct_CXX
  4251. fi
  4252. # Provide some information about the compiler.
  4253. echo "$as_me:$LINENO:" \
  4254. "checking for C++ compiler version" >&5
  4255. ac_compiler=`set X $ac_compile; echo $2`
  4256. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  4257. (eval $ac_compiler --version </dev/null >&5) 2>&5
  4258. ac_status=$?
  4259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4260. (exit $ac_status); }
  4261. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  4262. (eval $ac_compiler -v </dev/null >&5) 2>&5
  4263. ac_status=$?
  4264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4265. (exit $ac_status); }
  4266. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  4267. (eval $ac_compiler -V </dev/null >&5) 2>&5
  4268. ac_status=$?
  4269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4270. (exit $ac_status); }
  4271. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  4272. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  4273. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  4274. echo $ECHO_N "(cached) $ECHO_C" >&6
  4275. else
  4276. cat >conftest.$ac_ext <<_ACEOF
  4277. /* confdefs.h. */
  4278. _ACEOF
  4279. cat confdefs.h >>conftest.$ac_ext
  4280. cat >>conftest.$ac_ext <<_ACEOF
  4281. /* end confdefs.h. */
  4282. int
  4283. main ()
  4284. {
  4285. #ifndef __GNUC__
  4286. choke me
  4287. #endif
  4288. ;
  4289. return 0;
  4290. }
  4291. _ACEOF
  4292. rm -f conftest.$ac_objext
  4293. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4294. (eval $ac_compile) 2>conftest.er1
  4295. ac_status=$?
  4296. grep -v '^ *+' conftest.er1 >conftest.err
  4297. rm -f conftest.er1
  4298. cat conftest.err >&5
  4299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4300. (exit $ac_status); } &&
  4301. { ac_try='test -z "$ac_cxx_werror_flag"
  4302. || test ! -s conftest.err'
  4303. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4304. (eval $ac_try) 2>&5
  4305. ac_status=$?
  4306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4307. (exit $ac_status); }; } &&
  4308. { ac_try='test -s conftest.$ac_objext'
  4309. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4310. (eval $ac_try) 2>&5
  4311. ac_status=$?
  4312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4313. (exit $ac_status); }; }; then
  4314. ac_compiler_gnu=yes
  4315. else
  4316. echo "$as_me: failed program was:" >&5
  4317. sed 's/^/| /' conftest.$ac_ext >&5
  4318. ac_compiler_gnu=no
  4319. fi
  4320. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4321. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4322. fi
  4323. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  4324. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  4325. GXX=`test $ac_compiler_gnu = yes && echo yes`
  4326. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4327. ac_save_CXXFLAGS=$CXXFLAGS
  4328. CXXFLAGS="-g"
  4329. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  4330. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  4331. if test "${ac_cv_prog_cxx_g+set}" = set; then
  4332. echo $ECHO_N "(cached) $ECHO_C" >&6
  4333. else
  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. int
  4341. main ()
  4342. {
  4343. ;
  4344. return 0;
  4345. }
  4346. _ACEOF
  4347. rm -f conftest.$ac_objext
  4348. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4349. (eval $ac_compile) 2>conftest.er1
  4350. ac_status=$?
  4351. grep -v '^ *+' conftest.er1 >conftest.err
  4352. rm -f conftest.er1
  4353. cat conftest.err >&5
  4354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4355. (exit $ac_status); } &&
  4356. { ac_try='test -z "$ac_cxx_werror_flag"
  4357. || test ! -s conftest.err'
  4358. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4359. (eval $ac_try) 2>&5
  4360. ac_status=$?
  4361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4362. (exit $ac_status); }; } &&
  4363. { ac_try='test -s conftest.$ac_objext'
  4364. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4365. (eval $ac_try) 2>&5
  4366. ac_status=$?
  4367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4368. (exit $ac_status); }; }; then
  4369. ac_cv_prog_cxx_g=yes
  4370. else
  4371. echo "$as_me: failed program was:" >&5
  4372. sed 's/^/| /' conftest.$ac_ext >&5
  4373. ac_cv_prog_cxx_g=no
  4374. fi
  4375. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4376. fi
  4377. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  4378. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  4379. if test "$ac_test_CXXFLAGS" = set; then
  4380. CXXFLAGS=$ac_save_CXXFLAGS
  4381. elif test $ac_cv_prog_cxx_g = yes; then
  4382. if test "$GXX" = yes; then
  4383. CXXFLAGS="-g -O2"
  4384. else
  4385. CXXFLAGS="-g"
  4386. fi
  4387. else
  4388. if test "$GXX" = yes; then
  4389. CXXFLAGS="-O2"
  4390. else
  4391. CXXFLAGS=
  4392. fi
  4393. fi
  4394. for ac_declaration in \
  4395. '' \
  4396. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  4397. 'extern "C" void std::exit (int); using std::exit;' \
  4398. 'extern "C" void exit (int) throw ();' \
  4399. 'extern "C" void exit (int);' \
  4400. 'void exit (int);'
  4401. do
  4402. cat >conftest.$ac_ext <<_ACEOF
  4403. /* confdefs.h. */
  4404. _ACEOF
  4405. cat confdefs.h >>conftest.$ac_ext
  4406. cat >>conftest.$ac_ext <<_ACEOF
  4407. /* end confdefs.h. */
  4408. $ac_declaration
  4409. #include <stdlib.h>
  4410. int
  4411. main ()
  4412. {
  4413. exit (42);
  4414. ;
  4415. return 0;
  4416. }
  4417. _ACEOF
  4418. rm -f conftest.$ac_objext
  4419. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4420. (eval $ac_compile) 2>conftest.er1
  4421. ac_status=$?
  4422. grep -v '^ *+' conftest.er1 >conftest.err
  4423. rm -f conftest.er1
  4424. cat conftest.err >&5
  4425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4426. (exit $ac_status); } &&
  4427. { ac_try='test -z "$ac_cxx_werror_flag"
  4428. || test ! -s conftest.err'
  4429. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4430. (eval $ac_try) 2>&5
  4431. ac_status=$?
  4432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4433. (exit $ac_status); }; } &&
  4434. { ac_try='test -s conftest.$ac_objext'
  4435. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4436. (eval $ac_try) 2>&5
  4437. ac_status=$?
  4438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4439. (exit $ac_status); }; }; then
  4440. :
  4441. else
  4442. echo "$as_me: failed program was:" >&5
  4443. sed 's/^/| /' conftest.$ac_ext >&5
  4444. continue
  4445. fi
  4446. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4447. cat >conftest.$ac_ext <<_ACEOF
  4448. /* confdefs.h. */
  4449. _ACEOF
  4450. cat confdefs.h >>conftest.$ac_ext
  4451. cat >>conftest.$ac_ext <<_ACEOF
  4452. /* end confdefs.h. */
  4453. $ac_declaration
  4454. int
  4455. main ()
  4456. {
  4457. exit (42);
  4458. ;
  4459. return 0;
  4460. }
  4461. _ACEOF
  4462. rm -f conftest.$ac_objext
  4463. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4464. (eval $ac_compile) 2>conftest.er1
  4465. ac_status=$?
  4466. grep -v '^ *+' conftest.er1 >conftest.err
  4467. rm -f conftest.er1
  4468. cat conftest.err >&5
  4469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4470. (exit $ac_status); } &&
  4471. { ac_try='test -z "$ac_cxx_werror_flag"
  4472. || test ! -s conftest.err'
  4473. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4474. (eval $ac_try) 2>&5
  4475. ac_status=$?
  4476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4477. (exit $ac_status); }; } &&
  4478. { ac_try='test -s conftest.$ac_objext'
  4479. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4480. (eval $ac_try) 2>&5
  4481. ac_status=$?
  4482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4483. (exit $ac_status); }; }; then
  4484. break
  4485. else
  4486. echo "$as_me: failed program was:" >&5
  4487. sed 's/^/| /' conftest.$ac_ext >&5
  4488. fi
  4489. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4490. done
  4491. rm -f conftest*
  4492. if test -n "$ac_declaration"; then
  4493. echo '#ifdef __cplusplus' >>confdefs.h
  4494. echo $ac_declaration >>confdefs.h
  4495. echo '#endif' >>confdefs.h
  4496. fi
  4497. ac_ext=cc
  4498. ac_cpp='$CXXCPP $CPPFLAGS'
  4499. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4500. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4501. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4502. depcc="$CXX" am_compiler_list=
  4503. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4504. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  4505. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  4506. echo $ECHO_N "(cached) $ECHO_C" >&6
  4507. else
  4508. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4509. # We make a subdir and do the tests there. Otherwise we can end up
  4510. # making bogus files that we don't know about and never remove. For
  4511. # instance it was reported that on HP-UX the gcc test will end up
  4512. # making a dummy file named `D' -- because `-MD' means `put the output
  4513. # in D'.
  4514. mkdir conftest.dir
  4515. # Copy depcomp to subdir because otherwise we won't find it if we're
  4516. # using a relative directory.
  4517. cp "$am_depcomp" conftest.dir
  4518. cd conftest.dir
  4519. # We will build objects and dependencies in a subdirectory because
  4520. # it helps to detect inapplicable dependency modes. For instance
  4521. # both Tru64's cc and ICC support -MD to output dependencies as a
  4522. # side effect of compilation, but ICC will put the dependencies in
  4523. # the current directory while Tru64 will put them in the object
  4524. # directory.
  4525. mkdir sub
  4526. am_cv_CXX_dependencies_compiler_type=none
  4527. if test "$am_compiler_list" = ""; then
  4528. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4529. fi
  4530. for depmode in $am_compiler_list; do
  4531. # Setup a source with many dependencies, because some compilers
  4532. # like to wrap large dependency lists on column 80 (with \), and
  4533. # we should not choose a depcomp mode which is confused by this.
  4534. #
  4535. # We need to recreate these files for each test, as the compiler may
  4536. # overwrite some of them when testing with obscure command lines.
  4537. # This happens at least with the AIX C compiler.
  4538. : > sub/conftest.c
  4539. for i in 1 2 3 4 5 6; do
  4540. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4541. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4542. # Solaris 8's {/usr,}/bin/sh.
  4543. touch sub/conftst$i.h
  4544. done
  4545. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4546. case $depmode in
  4547. nosideeffect)
  4548. # after this tag, mechanisms are not by side-effect, so they'll
  4549. # only be used when explicitly requested
  4550. if test "x$enable_dependency_tracking" = xyes; then
  4551. continue
  4552. else
  4553. break
  4554. fi
  4555. ;;
  4556. none) break ;;
  4557. esac
  4558. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4559. # mode. It turns out that the SunPro C++ compiler does not properly
  4560. # handle `-M -o', and we need to detect this.
  4561. if depmode=$depmode \
  4562. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4563. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4564. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4565. >/dev/null 2>conftest.err &&
  4566. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4567. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4568. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4569. # icc doesn't choke on unknown options, it will just issue warnings
  4570. # or remarks (even with -Werror). So we grep stderr for any message
  4571. # that says an option was ignored or not supported.
  4572. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4573. # icc: Command line warning: ignoring option '-M'; no argument required
  4574. # The diagnosis changed in icc 8.0:
  4575. # icc: Command line remark: option '-MP' not supported
  4576. if (grep 'ignoring option' conftest.err ||
  4577. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4578. am_cv_CXX_dependencies_compiler_type=$depmode
  4579. break
  4580. fi
  4581. fi
  4582. done
  4583. cd ..
  4584. rm -rf conftest.dir
  4585. else
  4586. am_cv_CXX_dependencies_compiler_type=none
  4587. fi
  4588. fi
  4589. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4590. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  4591. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4592. if
  4593. test "x$enable_dependency_tracking" != xno \
  4594. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4595. am__fastdepCXX_TRUE=
  4596. am__fastdepCXX_FALSE='#'
  4597. else
  4598. am__fastdepCXX_TRUE='#'
  4599. am__fastdepCXX_FALSE=
  4600. fi
  4601. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  4602. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  4603. (test "X$CXX" != "Xg++"))) ; then
  4604. ac_ext=cc
  4605. ac_cpp='$CXXCPP $CPPFLAGS'
  4606. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4607. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4608. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4609. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4610. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  4611. if test -z "$CXXCPP"; then
  4612. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4613. echo $ECHO_N "(cached) $ECHO_C" >&6
  4614. else
  4615. # Double quotes because CXXCPP needs to be expanded
  4616. for CXXCPP in "$CXX -E" "/lib/cpp"
  4617. do
  4618. ac_preproc_ok=false
  4619. for ac_cxx_preproc_warn_flag in '' yes
  4620. do
  4621. # Use a header file that comes with gcc, so configuring glibc
  4622. # with a fresh cross-compiler works.
  4623. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4624. # <limits.h> exists even on freestanding compilers.
  4625. # On the NeXT, cc -E runs the code through the compiler's parser,
  4626. # not just through cpp. "Syntax error" is here to catch this case.
  4627. cat >conftest.$ac_ext <<_ACEOF
  4628. /* confdefs.h. */
  4629. _ACEOF
  4630. cat confdefs.h >>conftest.$ac_ext
  4631. cat >>conftest.$ac_ext <<_ACEOF
  4632. /* end confdefs.h. */
  4633. #ifdef __STDC__
  4634. # include <limits.h>
  4635. #else
  4636. # include <assert.h>
  4637. #endif
  4638. Syntax error
  4639. _ACEOF
  4640. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4641. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4642. ac_status=$?
  4643. grep -v '^ *+' conftest.er1 >conftest.err
  4644. rm -f conftest.er1
  4645. cat conftest.err >&5
  4646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4647. (exit $ac_status); } >/dev/null; then
  4648. if test -s conftest.err; then
  4649. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4650. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4651. else
  4652. ac_cpp_err=
  4653. fi
  4654. else
  4655. ac_cpp_err=yes
  4656. fi
  4657. if test -z "$ac_cpp_err"; then
  4658. :
  4659. else
  4660. echo "$as_me: failed program was:" >&5
  4661. sed 's/^/| /' conftest.$ac_ext >&5
  4662. # Broken: fails on valid input.
  4663. continue
  4664. fi
  4665. rm -f conftest.err conftest.$ac_ext
  4666. # OK, works on sane cases. Now check whether non-existent headers
  4667. # can be detected and how.
  4668. cat >conftest.$ac_ext <<_ACEOF
  4669. /* confdefs.h. */
  4670. _ACEOF
  4671. cat confdefs.h >>conftest.$ac_ext
  4672. cat >>conftest.$ac_ext <<_ACEOF
  4673. /* end confdefs.h. */
  4674. #include <ac_nonexistent.h>
  4675. _ACEOF
  4676. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4677. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4678. ac_status=$?
  4679. grep -v '^ *+' conftest.er1 >conftest.err
  4680. rm -f conftest.er1
  4681. cat conftest.err >&5
  4682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4683. (exit $ac_status); } >/dev/null; then
  4684. if test -s conftest.err; then
  4685. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4686. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4687. else
  4688. ac_cpp_err=
  4689. fi
  4690. else
  4691. ac_cpp_err=yes
  4692. fi
  4693. if test -z "$ac_cpp_err"; then
  4694. # Broken: success on invalid input.
  4695. continue
  4696. else
  4697. echo "$as_me: failed program was:" >&5
  4698. sed 's/^/| /' conftest.$ac_ext >&5
  4699. # Passes both tests.
  4700. ac_preproc_ok=:
  4701. break
  4702. fi
  4703. rm -f conftest.err conftest.$ac_ext
  4704. done
  4705. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4706. rm -f conftest.err conftest.$ac_ext
  4707. if $ac_preproc_ok; then
  4708. break
  4709. fi
  4710. done
  4711. ac_cv_prog_CXXCPP=$CXXCPP
  4712. fi
  4713. CXXCPP=$ac_cv_prog_CXXCPP
  4714. else
  4715. ac_cv_prog_CXXCPP=$CXXCPP
  4716. fi
  4717. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4718. echo "${ECHO_T}$CXXCPP" >&6
  4719. ac_preproc_ok=false
  4720. for ac_cxx_preproc_warn_flag in '' yes
  4721. do
  4722. # Use a header file that comes with gcc, so configuring glibc
  4723. # with a fresh cross-compiler works.
  4724. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4725. # <limits.h> exists even on freestanding compilers.
  4726. # On the NeXT, cc -E runs the code through the compiler's parser,
  4727. # not just through cpp. "Syntax error" is here to catch this case.
  4728. cat >conftest.$ac_ext <<_ACEOF
  4729. /* confdefs.h. */
  4730. _ACEOF
  4731. cat confdefs.h >>conftest.$ac_ext
  4732. cat >>conftest.$ac_ext <<_ACEOF
  4733. /* end confdefs.h. */
  4734. #ifdef __STDC__
  4735. # include <limits.h>
  4736. #else
  4737. # include <assert.h>
  4738. #endif
  4739. Syntax error
  4740. _ACEOF
  4741. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4742. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4743. ac_status=$?
  4744. grep -v '^ *+' conftest.er1 >conftest.err
  4745. rm -f conftest.er1
  4746. cat conftest.err >&5
  4747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4748. (exit $ac_status); } >/dev/null; then
  4749. if test -s conftest.err; then
  4750. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4751. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4752. else
  4753. ac_cpp_err=
  4754. fi
  4755. else
  4756. ac_cpp_err=yes
  4757. fi
  4758. if test -z "$ac_cpp_err"; then
  4759. :
  4760. else
  4761. echo "$as_me: failed program was:" >&5
  4762. sed 's/^/| /' conftest.$ac_ext >&5
  4763. # Broken: fails on valid input.
  4764. continue
  4765. fi
  4766. rm -f conftest.err conftest.$ac_ext
  4767. # OK, works on sane cases. Now check whether non-existent headers
  4768. # can be detected and how.
  4769. cat >conftest.$ac_ext <<_ACEOF
  4770. /* confdefs.h. */
  4771. _ACEOF
  4772. cat confdefs.h >>conftest.$ac_ext
  4773. cat >>conftest.$ac_ext <<_ACEOF
  4774. /* end confdefs.h. */
  4775. #include <ac_nonexistent.h>
  4776. _ACEOF
  4777. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4778. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4779. ac_status=$?
  4780. grep -v '^ *+' conftest.er1 >conftest.err
  4781. rm -f conftest.er1
  4782. cat conftest.err >&5
  4783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4784. (exit $ac_status); } >/dev/null; then
  4785. if test -s conftest.err; then
  4786. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4787. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4788. else
  4789. ac_cpp_err=
  4790. fi
  4791. else
  4792. ac_cpp_err=yes
  4793. fi
  4794. if test -z "$ac_cpp_err"; then
  4795. # Broken: success on invalid input.
  4796. continue
  4797. else
  4798. echo "$as_me: failed program was:" >&5
  4799. sed 's/^/| /' conftest.$ac_ext >&5
  4800. # Passes both tests.
  4801. ac_preproc_ok=:
  4802. break
  4803. fi
  4804. rm -f conftest.err conftest.$ac_ext
  4805. done
  4806. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4807. rm -f conftest.err conftest.$ac_ext
  4808. if $ac_preproc_ok; then
  4809. :
  4810. else
  4811. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4812. See \`config.log' for more details." >&5
  4813. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4814. See \`config.log' for more details." >&2;}
  4815. { (exit 1); exit 1; }; }
  4816. fi
  4817. ac_ext=cc
  4818. ac_cpp='$CXXCPP $CPPFLAGS'
  4819. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4820. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4821. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4822. fi
  4823. ac_ext=f
  4824. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  4825. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4826. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  4827. if test -n "$ac_tool_prefix"; then
  4828. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4829. do
  4830. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4831. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4832. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4833. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4834. if test "${ac_cv_prog_F77+set}" = set; then
  4835. echo $ECHO_N "(cached) $ECHO_C" >&6
  4836. else
  4837. if test -n "$F77"; then
  4838. ac_cv_prog_F77="$F77" # Let the user override the test.
  4839. else
  4840. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4841. for as_dir in $PATH
  4842. do
  4843. IFS=$as_save_IFS
  4844. test -z "$as_dir" && as_dir=.
  4845. for ac_exec_ext in '' $ac_executable_extensions; do
  4846. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4847. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  4848. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4849. break 2
  4850. fi
  4851. done
  4852. done
  4853. fi
  4854. fi
  4855. F77=$ac_cv_prog_F77
  4856. if test -n "$F77"; then
  4857. echo "$as_me:$LINENO: result: $F77" >&5
  4858. echo "${ECHO_T}$F77" >&6
  4859. else
  4860. echo "$as_me:$LINENO: result: no" >&5
  4861. echo "${ECHO_T}no" >&6
  4862. fi
  4863. test -n "$F77" && break
  4864. done
  4865. fi
  4866. if test -z "$F77"; then
  4867. ac_ct_F77=$F77
  4868. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4869. do
  4870. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4871. set dummy $ac_prog; ac_word=$2
  4872. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4873. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4874. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  4875. echo $ECHO_N "(cached) $ECHO_C" >&6
  4876. else
  4877. if test -n "$ac_ct_F77"; then
  4878. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  4879. else
  4880. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4881. for as_dir in $PATH
  4882. do
  4883. IFS=$as_save_IFS
  4884. test -z "$as_dir" && as_dir=.
  4885. for ac_exec_ext in '' $ac_executable_extensions; do
  4886. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4887. ac_cv_prog_ac_ct_F77="$ac_prog"
  4888. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4889. break 2
  4890. fi
  4891. done
  4892. done
  4893. fi
  4894. fi
  4895. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  4896. if test -n "$ac_ct_F77"; then
  4897. echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  4898. echo "${ECHO_T}$ac_ct_F77" >&6
  4899. else
  4900. echo "$as_me:$LINENO: result: no" >&5
  4901. echo "${ECHO_T}no" >&6
  4902. fi
  4903. test -n "$ac_ct_F77" && break
  4904. done
  4905. F77=$ac_ct_F77
  4906. fi
  4907. # Provide some information about the compiler.
  4908. echo "$as_me:5426:" \
  4909. "checking for Fortran 77 compiler version" >&5
  4910. ac_compiler=`set X $ac_compile; echo $2`
  4911. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  4912. (eval $ac_compiler --version </dev/null >&5) 2>&5
  4913. ac_status=$?
  4914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4915. (exit $ac_status); }
  4916. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  4917. (eval $ac_compiler -v </dev/null >&5) 2>&5
  4918. ac_status=$?
  4919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4920. (exit $ac_status); }
  4921. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  4922. (eval $ac_compiler -V </dev/null >&5) 2>&5
  4923. ac_status=$?
  4924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4925. (exit $ac_status); }
  4926. rm -f a.out
  4927. # If we don't use `.F' as extension, the preprocessor is not run on the
  4928. # input file. (Note that this only needs to work for GNU compilers.)
  4929. ac_save_ext=$ac_ext
  4930. ac_ext=F
  4931. echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  4932. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
  4933. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  4934. echo $ECHO_N "(cached) $ECHO_C" >&6
  4935. else
  4936. cat >conftest.$ac_ext <<_ACEOF
  4937. program main
  4938. #ifndef __GNUC__
  4939. choke me
  4940. #endif
  4941. end
  4942. _ACEOF
  4943. rm -f conftest.$ac_objext
  4944. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4945. (eval $ac_compile) 2>conftest.er1
  4946. ac_status=$?
  4947. grep -v '^ *+' conftest.er1 >conftest.err
  4948. rm -f conftest.er1
  4949. cat conftest.err >&5
  4950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4951. (exit $ac_status); } &&
  4952. { ac_try='test -z "$ac_f77_werror_flag"
  4953. || test ! -s conftest.err'
  4954. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4955. (eval $ac_try) 2>&5
  4956. ac_status=$?
  4957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4958. (exit $ac_status); }; } &&
  4959. { ac_try='test -s conftest.$ac_objext'
  4960. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4961. (eval $ac_try) 2>&5
  4962. ac_status=$?
  4963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4964. (exit $ac_status); }; }; then
  4965. ac_compiler_gnu=yes
  4966. else
  4967. echo "$as_me: failed program was:" >&5
  4968. sed 's/^/| /' conftest.$ac_ext >&5
  4969. ac_compiler_gnu=no
  4970. fi
  4971. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4972. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  4973. fi
  4974. echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  4975. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
  4976. ac_ext=$ac_save_ext
  4977. ac_test_FFLAGS=${FFLAGS+set}
  4978. ac_save_FFLAGS=$FFLAGS
  4979. FFLAGS=
  4980. echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  4981. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
  4982. if test "${ac_cv_prog_f77_g+set}" = set; then
  4983. echo $ECHO_N "(cached) $ECHO_C" >&6
  4984. else
  4985. FFLAGS=-g
  4986. cat >conftest.$ac_ext <<_ACEOF
  4987. program main
  4988. end
  4989. _ACEOF
  4990. rm -f conftest.$ac_objext
  4991. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4992. (eval $ac_compile) 2>conftest.er1
  4993. ac_status=$?
  4994. grep -v '^ *+' conftest.er1 >conftest.err
  4995. rm -f conftest.er1
  4996. cat conftest.err >&5
  4997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4998. (exit $ac_status); } &&
  4999. { ac_try='test -z "$ac_f77_werror_flag"
  5000. || test ! -s conftest.err'
  5001. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5002. (eval $ac_try) 2>&5
  5003. ac_status=$?
  5004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5005. (exit $ac_status); }; } &&
  5006. { ac_try='test -s conftest.$ac_objext'
  5007. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5008. (eval $ac_try) 2>&5
  5009. ac_status=$?
  5010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5011. (exit $ac_status); }; }; then
  5012. ac_cv_prog_f77_g=yes
  5013. else
  5014. echo "$as_me: failed program was:" >&5
  5015. sed 's/^/| /' conftest.$ac_ext >&5
  5016. ac_cv_prog_f77_g=no
  5017. fi
  5018. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5019. fi
  5020. echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5021. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
  5022. if test "$ac_test_FFLAGS" = set; then
  5023. FFLAGS=$ac_save_FFLAGS
  5024. elif test $ac_cv_prog_f77_g = yes; then
  5025. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5026. FFLAGS="-g -O2"
  5027. else
  5028. FFLAGS="-g"
  5029. fi
  5030. else
  5031. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5032. FFLAGS="-O2"
  5033. else
  5034. FFLAGS=
  5035. fi
  5036. fi
  5037. G77=`test $ac_compiler_gnu = yes && echo yes`
  5038. ac_ext=c
  5039. ac_cpp='$CPP $CPPFLAGS'
  5040. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5041. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5042. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5043. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5044. # find the maximum length of command line arguments
  5045. echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5046. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  5047. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5048. echo $ECHO_N "(cached) $ECHO_C" >&6
  5049. else
  5050. i=0
  5051. teststring="ABCD"
  5052. case $build_os in
  5053. msdosdjgpp*)
  5054. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5055. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5056. # during glob expansion). Even if it were fixed, the result of this
  5057. # check would be larger than it should be.
  5058. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5059. ;;
  5060. gnu*)
  5061. # Under GNU Hurd, this test is not required because there is
  5062. # no limit to the length of command line arguments.
  5063. # Libtool will interpret -1 as no limit whatsoever
  5064. lt_cv_sys_max_cmd_len=-1;
  5065. ;;
  5066. cygwin* | mingw*)
  5067. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5068. # about 5 minutes as the teststring grows exponentially.
  5069. # Worse, since 9x/ME are not pre-emptively multitasking,
  5070. # you end up with a "frozen" computer, even though with patience
  5071. # the test eventually succeeds (with a max line length of 256k).
  5072. # Instead, let's just punt: use the minimum linelength reported by
  5073. # all of the supported platforms: 8192 (on NT/2K/XP).
  5074. lt_cv_sys_max_cmd_len=8192;
  5075. ;;
  5076. amigaos*)
  5077. # On AmigaOS with pdksh, this test takes hours, literally.
  5078. # So we just punt and use a minimum line length of 8192.
  5079. lt_cv_sys_max_cmd_len=8192;
  5080. ;;
  5081. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5082. # This has been around since 386BSD, at least. Likely further.
  5083. if test -x /sbin/sysctl; then
  5084. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5085. elif test -x /usr/sbin/sysctl; then
  5086. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5087. else
  5088. lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
  5089. fi
  5090. # And add a safety zone
  5091. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5092. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5093. ;;
  5094. osf*)
  5095. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5096. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5097. # nice to cause kernel panics so lets avoid the loop below.
  5098. # First set a reasonable default.
  5099. lt_cv_sys_max_cmd_len=16384
  5100. #
  5101. if test -x /sbin/sysconfig; then
  5102. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5103. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5104. esac
  5105. fi
  5106. ;;
  5107. *)
  5108. # If test is not a shell built-in, we'll probably end up computing a
  5109. # maximum length that is only half of the actual maximum length, but
  5110. # we can't tell.
  5111. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5112. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5113. = "XX$teststring") >/dev/null 2>&1 &&
  5114. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5115. lt_cv_sys_max_cmd_len=$new_result &&
  5116. test $i != 17 # 1/2 MB should be enough
  5117. do
  5118. i=`expr $i + 1`
  5119. teststring=$teststring$teststring
  5120. done
  5121. teststring=
  5122. # Add a significant safety factor because C++ compilers can tack on massive
  5123. # amounts of additional arguments before passing them to the linker.
  5124. # It appears as though 1/2 is a usable value.
  5125. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5126. ;;
  5127. esac
  5128. fi
  5129. if test -n $lt_cv_sys_max_cmd_len ; then
  5130. echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5131. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  5132. else
  5133. echo "$as_me:$LINENO: result: none" >&5
  5134. echo "${ECHO_T}none" >&6
  5135. fi
  5136. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5137. echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5138. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  5139. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5140. echo $ECHO_N "(cached) $ECHO_C" >&6
  5141. else
  5142. # These are sane defaults that work on at least a few old systems.
  5143. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5144. # Character class describing NM global symbol codes.
  5145. symcode='[BCDEGRST]'
  5146. # Regexp to match symbols that can be accessed directly from C.
  5147. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5148. # Transform an extracted symbol line into a proper C declaration
  5149. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5150. # Transform an extracted symbol line into symbol name and symbol address
  5151. 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'"
  5152. # Define system-specific variables.
  5153. case $host_os in
  5154. aix*)
  5155. symcode='[BCDT]'
  5156. ;;
  5157. cygwin* | mingw* | pw32*)
  5158. symcode='[ABCDGISTW]'
  5159. ;;
  5160. hpux*) # Its linker distinguishes data from code symbols
  5161. if test "$host_cpu" = ia64; then
  5162. symcode='[ABCDEGRST]'
  5163. fi
  5164. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5165. 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'"
  5166. ;;
  5167. linux*)
  5168. if test "$host_cpu" = ia64; then
  5169. symcode='[ABCDGIRSTW]'
  5170. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5171. 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'"
  5172. fi
  5173. ;;
  5174. irix* | nonstopux*)
  5175. symcode='[BCDEGRST]'
  5176. ;;
  5177. osf*)
  5178. symcode='[BCDEGQRST]'
  5179. ;;
  5180. solaris* | sysv5*)
  5181. symcode='[BDRT]'
  5182. ;;
  5183. sysv4)
  5184. symcode='[DFNSTU]'
  5185. ;;
  5186. esac
  5187. # Handle CRLF in mingw tool chain
  5188. opt_cr=
  5189. case $build_os in
  5190. mingw*)
  5191. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5192. ;;
  5193. esac
  5194. # If we're using GNU nm, then use its standard symbol codes.
  5195. case `$NM -V 2>&1` in
  5196. *GNU* | *'with BFD'*)
  5197. symcode='[ABCDGIRSTW]' ;;
  5198. esac
  5199. # Try without a prefix undercore, then with it.
  5200. for ac_symprfx in "" "_"; do
  5201. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5202. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5203. # Write the raw and C identifiers.
  5204. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5205. # Check to see that the pipe works correctly.
  5206. pipe_works=no
  5207. rm -f conftest*
  5208. cat > conftest.$ac_ext <<EOF
  5209. #ifdef __cplusplus
  5210. extern "C" {
  5211. #endif
  5212. char nm_test_var;
  5213. void nm_test_func(){}
  5214. #ifdef __cplusplus
  5215. }
  5216. #endif
  5217. int main(){nm_test_var='a';nm_test_func();return(0);}
  5218. EOF
  5219. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5220. (eval $ac_compile) 2>&5
  5221. ac_status=$?
  5222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5223. (exit $ac_status); }; then
  5224. # Now try to grab the symbols.
  5225. nlist=conftest.nm
  5226. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5227. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5228. ac_status=$?
  5229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5230. (exit $ac_status); } && test -s "$nlist"; then
  5231. # Try sorting and uniquifying the output.
  5232. if sort "$nlist" | uniq > "$nlist"T; then
  5233. mv -f "$nlist"T "$nlist"
  5234. else
  5235. rm -f "$nlist"T
  5236. fi
  5237. # Make sure that we snagged all the symbols we need.
  5238. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5239. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5240. cat <<EOF > conftest.$ac_ext
  5241. #ifdef __cplusplus
  5242. extern "C" {
  5243. #endif
  5244. EOF
  5245. # Now generate the symbol file.
  5246. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5247. cat <<EOF >> conftest.$ac_ext
  5248. #if defined (__STDC__) && __STDC__
  5249. # define lt_ptr_t void *
  5250. #else
  5251. # define lt_ptr_t char *
  5252. # define const
  5253. #endif
  5254. /* The mapping between symbol names and symbols. */
  5255. const struct {
  5256. const char *name;
  5257. lt_ptr_t address;
  5258. }
  5259. lt_preloaded_symbols[] =
  5260. {
  5261. EOF
  5262. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5263. cat <<\EOF >> conftest.$ac_ext
  5264. {0, (lt_ptr_t) 0}
  5265. };
  5266. #ifdef __cplusplus
  5267. }
  5268. #endif
  5269. EOF
  5270. # Now try linking the two files.
  5271. mv conftest.$ac_objext conftstm.$ac_objext
  5272. lt_save_LIBS="$LIBS"
  5273. lt_save_CFLAGS="$CFLAGS"
  5274. LIBS="conftstm.$ac_objext"
  5275. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5276. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5277. (eval $ac_link) 2>&5
  5278. ac_status=$?
  5279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5280. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5281. pipe_works=yes
  5282. fi
  5283. LIBS="$lt_save_LIBS"
  5284. CFLAGS="$lt_save_CFLAGS"
  5285. else
  5286. echo "cannot find nm_test_func in $nlist" >&5
  5287. fi
  5288. else
  5289. echo "cannot find nm_test_var in $nlist" >&5
  5290. fi
  5291. else
  5292. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5293. fi
  5294. else
  5295. echo "$progname: failed program was:" >&5
  5296. cat conftest.$ac_ext >&5
  5297. fi
  5298. rm -f conftest* conftst*
  5299. # Do not use the global_symbol_pipe unless it works.
  5300. if test "$pipe_works" = yes; then
  5301. break
  5302. else
  5303. lt_cv_sys_global_symbol_pipe=
  5304. fi
  5305. done
  5306. fi
  5307. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5308. lt_cv_sys_global_symbol_to_cdecl=
  5309. fi
  5310. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5311. echo "$as_me:$LINENO: result: failed" >&5
  5312. echo "${ECHO_T}failed" >&6
  5313. else
  5314. echo "$as_me:$LINENO: result: ok" >&5
  5315. echo "${ECHO_T}ok" >&6
  5316. fi
  5317. echo "$as_me:$LINENO: checking for objdir" >&5
  5318. echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  5319. if test "${lt_cv_objdir+set}" = set; then
  5320. echo $ECHO_N "(cached) $ECHO_C" >&6
  5321. else
  5322. rm -f .libs 2>/dev/null
  5323. mkdir .libs 2>/dev/null
  5324. if test -d .libs; then
  5325. lt_cv_objdir=.libs
  5326. else
  5327. # MS-DOS does not allow filenames that begin with a dot.
  5328. lt_cv_objdir=_libs
  5329. fi
  5330. rmdir .libs 2>/dev/null
  5331. fi
  5332. echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  5333. echo "${ECHO_T}$lt_cv_objdir" >&6
  5334. objdir=$lt_cv_objdir
  5335. case $host_os in
  5336. aix3*)
  5337. # AIX sometimes has problems with the GCC collect2 program. For some
  5338. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5339. # vanish in a puff of smoke.
  5340. if test "X${COLLECT_NAMES+set}" != Xset; then
  5341. COLLECT_NAMES=
  5342. export COLLECT_NAMES
  5343. fi
  5344. ;;
  5345. esac
  5346. # Sed substitution that helps us do robust quoting. It backslashifies
  5347. # metacharacters that are still active within double-quoted strings.
  5348. Xsed='sed -e 1s/^X//'
  5349. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  5350. # Same as above, but do not quote variable references.
  5351. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  5352. # Sed substitution to delay expansion of an escaped shell variable in a
  5353. # double_quote_subst'ed string.
  5354. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5355. # Sed substitution to avoid accidental globbing in evaled expressions
  5356. no_glob_subst='s/\*/\\\*/g'
  5357. # Constants:
  5358. rm="rm -f"
  5359. # Global variables:
  5360. default_ofile=libtool
  5361. can_build_shared=yes
  5362. # All known linkers require a `.a' archive for static linking (except M$VC,
  5363. # which needs '.lib').
  5364. libext=a
  5365. ltmain="$ac_aux_dir/ltmain.sh"
  5366. ofile="$default_ofile"
  5367. with_gnu_ld="$lt_cv_prog_gnu_ld"
  5368. if test -n "$ac_tool_prefix"; then
  5369. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5370. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5371. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5372. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5373. if test "${ac_cv_prog_AR+set}" = set; then
  5374. echo $ECHO_N "(cached) $ECHO_C" >&6
  5375. else
  5376. if test -n "$AR"; then
  5377. ac_cv_prog_AR="$AR" # Let the user override the test.
  5378. else
  5379. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5380. for as_dir in $PATH
  5381. do
  5382. IFS=$as_save_IFS
  5383. test -z "$as_dir" && as_dir=.
  5384. for ac_exec_ext in '' $ac_executable_extensions; do
  5385. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5386. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5387. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5388. break 2
  5389. fi
  5390. done
  5391. done
  5392. fi
  5393. fi
  5394. AR=$ac_cv_prog_AR
  5395. if test -n "$AR"; then
  5396. echo "$as_me:$LINENO: result: $AR" >&5
  5397. echo "${ECHO_T}$AR" >&6
  5398. else
  5399. echo "$as_me:$LINENO: result: no" >&5
  5400. echo "${ECHO_T}no" >&6
  5401. fi
  5402. fi
  5403. if test -z "$ac_cv_prog_AR"; then
  5404. ac_ct_AR=$AR
  5405. # Extract the first word of "ar", so it can be a program name with args.
  5406. set dummy ar; ac_word=$2
  5407. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5408. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5409. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  5410. echo $ECHO_N "(cached) $ECHO_C" >&6
  5411. else
  5412. if test -n "$ac_ct_AR"; then
  5413. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5414. else
  5415. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5416. for as_dir in $PATH
  5417. do
  5418. IFS=$as_save_IFS
  5419. test -z "$as_dir" && as_dir=.
  5420. for ac_exec_ext in '' $ac_executable_extensions; do
  5421. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5422. ac_cv_prog_ac_ct_AR="ar"
  5423. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5424. break 2
  5425. fi
  5426. done
  5427. done
  5428. test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  5429. fi
  5430. fi
  5431. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5432. if test -n "$ac_ct_AR"; then
  5433. echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  5434. echo "${ECHO_T}$ac_ct_AR" >&6
  5435. else
  5436. echo "$as_me:$LINENO: result: no" >&5
  5437. echo "${ECHO_T}no" >&6
  5438. fi
  5439. AR=$ac_ct_AR
  5440. else
  5441. AR="$ac_cv_prog_AR"
  5442. fi
  5443. if test -n "$ac_tool_prefix"; then
  5444. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5445. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5446. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5447. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5448. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5449. echo $ECHO_N "(cached) $ECHO_C" >&6
  5450. else
  5451. if test -n "$RANLIB"; then
  5452. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5453. else
  5454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5455. for as_dir in $PATH
  5456. do
  5457. IFS=$as_save_IFS
  5458. test -z "$as_dir" && as_dir=.
  5459. for ac_exec_ext in '' $ac_executable_extensions; do
  5460. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5461. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5462. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5463. break 2
  5464. fi
  5465. done
  5466. done
  5467. fi
  5468. fi
  5469. RANLIB=$ac_cv_prog_RANLIB
  5470. if test -n "$RANLIB"; then
  5471. echo "$as_me:$LINENO: result: $RANLIB" >&5
  5472. echo "${ECHO_T}$RANLIB" >&6
  5473. else
  5474. echo "$as_me:$LINENO: result: no" >&5
  5475. echo "${ECHO_T}no" >&6
  5476. fi
  5477. fi
  5478. if test -z "$ac_cv_prog_RANLIB"; then
  5479. ac_ct_RANLIB=$RANLIB
  5480. # Extract the first word of "ranlib", so it can be a program name with args.
  5481. set dummy ranlib; ac_word=$2
  5482. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5483. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5484. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5485. echo $ECHO_N "(cached) $ECHO_C" >&6
  5486. else
  5487. if test -n "$ac_ct_RANLIB"; then
  5488. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5489. else
  5490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5491. for as_dir in $PATH
  5492. do
  5493. IFS=$as_save_IFS
  5494. test -z "$as_dir" && as_dir=.
  5495. for ac_exec_ext in '' $ac_executable_extensions; do
  5496. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5497. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5498. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5499. break 2
  5500. fi
  5501. done
  5502. done
  5503. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  5504. fi
  5505. fi
  5506. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5507. if test -n "$ac_ct_RANLIB"; then
  5508. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5509. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  5510. else
  5511. echo "$as_me:$LINENO: result: no" >&5
  5512. echo "${ECHO_T}no" >&6
  5513. fi
  5514. RANLIB=$ac_ct_RANLIB
  5515. else
  5516. RANLIB="$ac_cv_prog_RANLIB"
  5517. fi
  5518. if test -n "$ac_tool_prefix"; then
  5519. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5520. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5521. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5522. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5523. if test "${ac_cv_prog_STRIP+set}" = set; then
  5524. echo $ECHO_N "(cached) $ECHO_C" >&6
  5525. else
  5526. if test -n "$STRIP"; then
  5527. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5528. else
  5529. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5530. for as_dir in $PATH
  5531. do
  5532. IFS=$as_save_IFS
  5533. test -z "$as_dir" && as_dir=.
  5534. for ac_exec_ext in '' $ac_executable_extensions; do
  5535. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5536. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5537. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5538. break 2
  5539. fi
  5540. done
  5541. done
  5542. fi
  5543. fi
  5544. STRIP=$ac_cv_prog_STRIP
  5545. if test -n "$STRIP"; then
  5546. echo "$as_me:$LINENO: result: $STRIP" >&5
  5547. echo "${ECHO_T}$STRIP" >&6
  5548. else
  5549. echo "$as_me:$LINENO: result: no" >&5
  5550. echo "${ECHO_T}no" >&6
  5551. fi
  5552. fi
  5553. if test -z "$ac_cv_prog_STRIP"; then
  5554. ac_ct_STRIP=$STRIP
  5555. # Extract the first word of "strip", so it can be a program name with args.
  5556. set dummy strip; ac_word=$2
  5557. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5558. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5559. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  5560. echo $ECHO_N "(cached) $ECHO_C" >&6
  5561. else
  5562. if test -n "$ac_ct_STRIP"; then
  5563. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5564. else
  5565. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5566. for as_dir in $PATH
  5567. do
  5568. IFS=$as_save_IFS
  5569. test -z "$as_dir" && as_dir=.
  5570. for ac_exec_ext in '' $ac_executable_extensions; do
  5571. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5572. ac_cv_prog_ac_ct_STRIP="strip"
  5573. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5574. break 2
  5575. fi
  5576. done
  5577. done
  5578. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  5579. fi
  5580. fi
  5581. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5582. if test -n "$ac_ct_STRIP"; then
  5583. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  5584. echo "${ECHO_T}$ac_ct_STRIP" >&6
  5585. else
  5586. echo "$as_me:$LINENO: result: no" >&5
  5587. echo "${ECHO_T}no" >&6
  5588. fi
  5589. STRIP=$ac_ct_STRIP
  5590. else
  5591. STRIP="$ac_cv_prog_STRIP"
  5592. fi
  5593. old_CC="$CC"
  5594. old_CFLAGS="$CFLAGS"
  5595. # Set sane defaults for various variables
  5596. test -z "$AR" && AR=ar
  5597. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5598. test -z "$AS" && AS=as
  5599. test -z "$CC" && CC=cc
  5600. test -z "$LTCC" && LTCC=$CC
  5601. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5602. test -z "$LD" && LD=ld
  5603. test -z "$LN_S" && LN_S="ln -s"
  5604. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  5605. test -z "$NM" && NM=nm
  5606. test -z "$SED" && SED=sed
  5607. test -z "$OBJDUMP" && OBJDUMP=objdump
  5608. test -z "$RANLIB" && RANLIB=:
  5609. test -z "$STRIP" && STRIP=:
  5610. test -z "$ac_objext" && ac_objext=o
  5611. # Determine commands to create old-style static archives.
  5612. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  5613. old_postinstall_cmds='chmod 644 $oldlib'
  5614. old_postuninstall_cmds=
  5615. if test -n "$RANLIB"; then
  5616. case $host_os in
  5617. openbsd*)
  5618. old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  5619. ;;
  5620. *)
  5621. old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  5622. ;;
  5623. esac
  5624. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5625. fi
  5626. for cc_temp in $compiler""; do
  5627. case $cc_temp in
  5628. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5629. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5630. \-*) ;;
  5631. *) break;;
  5632. esac
  5633. done
  5634. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  5635. # Only perform the check for file, if the check method requires it
  5636. case $deplibs_check_method in
  5637. file_magic*)
  5638. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  5639. echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  5640. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  5641. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5642. echo $ECHO_N "(cached) $ECHO_C" >&6
  5643. else
  5644. case $MAGIC_CMD in
  5645. [\\/*] | ?:[\\/]*)
  5646. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5647. ;;
  5648. *)
  5649. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5650. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5651. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5652. for ac_dir in $ac_dummy; do
  5653. IFS="$lt_save_ifs"
  5654. test -z "$ac_dir" && ac_dir=.
  5655. if test -f $ac_dir/${ac_tool_prefix}file; then
  5656. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  5657. if test -n "$file_magic_test_file"; then
  5658. case $deplibs_check_method in
  5659. "file_magic "*)
  5660. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  5661. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5662. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5663. $EGREP "$file_magic_regex" > /dev/null; then
  5664. :
  5665. else
  5666. cat <<EOF 1>&2
  5667. *** Warning: the command libtool uses to detect shared libraries,
  5668. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5669. *** The result is that libtool may fail to recognize shared libraries
  5670. *** as such. This will affect the creation of libtool libraries that
  5671. *** depend on shared libraries, but programs linked with such libtool
  5672. *** libraries will work regardless of this problem. Nevertheless, you
  5673. *** may want to report the problem to your system manager and/or to
  5674. *** bug-libtool@gnu.org
  5675. EOF
  5676. fi ;;
  5677. esac
  5678. fi
  5679. break
  5680. fi
  5681. done
  5682. IFS="$lt_save_ifs"
  5683. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5684. ;;
  5685. esac
  5686. fi
  5687. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5688. if test -n "$MAGIC_CMD"; then
  5689. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5690. echo "${ECHO_T}$MAGIC_CMD" >&6
  5691. else
  5692. echo "$as_me:$LINENO: result: no" >&5
  5693. echo "${ECHO_T}no" >&6
  5694. fi
  5695. if test -z "$lt_cv_path_MAGIC_CMD"; then
  5696. if test -n "$ac_tool_prefix"; then
  5697. echo "$as_me:$LINENO: checking for file" >&5
  5698. echo $ECHO_N "checking for file... $ECHO_C" >&6
  5699. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5700. echo $ECHO_N "(cached) $ECHO_C" >&6
  5701. else
  5702. case $MAGIC_CMD in
  5703. [\\/*] | ?:[\\/]*)
  5704. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5705. ;;
  5706. *)
  5707. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5708. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5709. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5710. for ac_dir in $ac_dummy; do
  5711. IFS="$lt_save_ifs"
  5712. test -z "$ac_dir" && ac_dir=.
  5713. if test -f $ac_dir/file; then
  5714. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  5715. if test -n "$file_magic_test_file"; then
  5716. case $deplibs_check_method in
  5717. "file_magic "*)
  5718. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  5719. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5720. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5721. $EGREP "$file_magic_regex" > /dev/null; then
  5722. :
  5723. else
  5724. cat <<EOF 1>&2
  5725. *** Warning: the command libtool uses to detect shared libraries,
  5726. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5727. *** The result is that libtool may fail to recognize shared libraries
  5728. *** as such. This will affect the creation of libtool libraries that
  5729. *** depend on shared libraries, but programs linked with such libtool
  5730. *** libraries will work regardless of this problem. Nevertheless, you
  5731. *** may want to report the problem to your system manager and/or to
  5732. *** bug-libtool@gnu.org
  5733. EOF
  5734. fi ;;
  5735. esac
  5736. fi
  5737. break
  5738. fi
  5739. done
  5740. IFS="$lt_save_ifs"
  5741. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5742. ;;
  5743. esac
  5744. fi
  5745. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5746. if test -n "$MAGIC_CMD"; then
  5747. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5748. echo "${ECHO_T}$MAGIC_CMD" >&6
  5749. else
  5750. echo "$as_me:$LINENO: result: no" >&5
  5751. echo "${ECHO_T}no" >&6
  5752. fi
  5753. else
  5754. MAGIC_CMD=:
  5755. fi
  5756. fi
  5757. fi
  5758. ;;
  5759. esac
  5760. enable_dlopen=no
  5761. enable_win32_dll=no
  5762. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  5763. if test "${enable_libtool_lock+set}" = set; then
  5764. enableval="$enable_libtool_lock"
  5765. fi;
  5766. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5767. # Check whether --with-pic or --without-pic was given.
  5768. if test "${with_pic+set}" = set; then
  5769. withval="$with_pic"
  5770. pic_mode="$withval"
  5771. else
  5772. pic_mode=default
  5773. fi;
  5774. test -z "$pic_mode" && pic_mode=default
  5775. # Use C for the default configuration in the libtool script
  5776. tagname=
  5777. lt_save_CC="$CC"
  5778. ac_ext=c
  5779. ac_cpp='$CPP $CPPFLAGS'
  5780. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5781. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5782. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5783. # Source file extension for C test sources.
  5784. ac_ext=c
  5785. # Object file extension for compiled C test sources.
  5786. objext=o
  5787. objext=$objext
  5788. # Code to be used in simple compile tests
  5789. lt_simple_compile_test_code="int some_variable = 0;\n"
  5790. # Code to be used in simple link tests
  5791. lt_simple_link_test_code='int main(){return(0);}\n'
  5792. # If no C compiler was specified, use CC.
  5793. LTCC=${LTCC-"$CC"}
  5794. # Allow CC to be a program name with arguments.
  5795. compiler=$CC
  5796. # save warnings/boilerplate of simple test code
  5797. ac_outfile=conftest.$ac_objext
  5798. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  5799. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  5800. _lt_compiler_boilerplate=`cat conftest.err`
  5801. $rm conftest*
  5802. ac_outfile=conftest.$ac_objext
  5803. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  5804. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  5805. _lt_linker_boilerplate=`cat conftest.err`
  5806. $rm conftest*
  5807. #
  5808. # Check for any special shared library compilation flags.
  5809. #
  5810. lt_prog_cc_shlib=
  5811. if test "$GCC" = no; then
  5812. case $host_os in
  5813. sco3.2v5*)
  5814. lt_prog_cc_shlib='-belf'
  5815. ;;
  5816. esac
  5817. fi
  5818. if test -n "$lt_prog_cc_shlib"; then
  5819. { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
  5820. echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
  5821. if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
  5822. else
  5823. { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  5824. echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  5825. lt_cv_prog_cc_can_build_shared=no
  5826. fi
  5827. fi
  5828. #
  5829. # Check to make sure the static flag actually works.
  5830. #
  5831. echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
  5832. echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
  5833. if test "${lt_prog_compiler_static_works+set}" = set; then
  5834. echo $ECHO_N "(cached) $ECHO_C" >&6
  5835. else
  5836. lt_prog_compiler_static_works=no
  5837. save_LDFLAGS="$LDFLAGS"
  5838. LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
  5839. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  5840. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  5841. # The compiler can only warn and ignore the option if not recognized
  5842. # So say no if there are warnings
  5843. if test -s conftest.err; then
  5844. # Append any errors to the config.log.
  5845. cat conftest.err 1>&5
  5846. $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
  5847. $SED '/^$/d' conftest.err >conftest.er2
  5848. if diff conftest.exp conftest.er2 >/dev/null; then
  5849. lt_prog_compiler_static_works=yes
  5850. fi
  5851. else
  5852. lt_prog_compiler_static_works=yes
  5853. fi
  5854. fi
  5855. $rm conftest*
  5856. LDFLAGS="$save_LDFLAGS"
  5857. fi
  5858. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  5859. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  5860. if test x"$lt_prog_compiler_static_works" = xyes; then
  5861. :
  5862. else
  5863. lt_prog_compiler_static=
  5864. fi
  5865. lt_prog_compiler_no_builtin_flag=
  5866. if test "$GCC" = yes; then
  5867. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  5868. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  5869. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  5870. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  5871. echo $ECHO_N "(cached) $ECHO_C" >&6
  5872. else
  5873. lt_cv_prog_compiler_rtti_exceptions=no
  5874. ac_outfile=conftest.$ac_objext
  5875. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5876. lt_compiler_flag="-fno-rtti -fno-exceptions"
  5877. # Insert the option either (1) after the last *FLAGS variable, or
  5878. # (2) before a word containing "conftest.", or (3) at the end.
  5879. # Note that $ac_compile itself does not contain backslashes and begins
  5880. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5881. # The option is referenced via a variable to avoid confusing sed.
  5882. lt_compile=`echo "$ac_compile" | $SED \
  5883. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  5884. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5885. -e 's:$: $lt_compiler_flag:'`
  5886. (eval echo "\"\$as_me:6524: $lt_compile\"" >&5)
  5887. (eval "$lt_compile" 2>conftest.err)
  5888. ac_status=$?
  5889. cat conftest.err >&5
  5890. echo "$as_me:6528: \$? = $ac_status" >&5
  5891. if (exit $ac_status) && test -s "$ac_outfile"; then
  5892. # The compiler can only warn and ignore the option if not recognized
  5893. # So say no if there are warnings other than the usual output.
  5894. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  5895. $SED '/^$/d' conftest.err >conftest.er2
  5896. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  5897. lt_cv_prog_compiler_rtti_exceptions=yes
  5898. fi
  5899. fi
  5900. $rm conftest*
  5901. fi
  5902. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  5903. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  5904. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  5905. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  5906. else
  5907. :
  5908. fi
  5909. fi
  5910. lt_prog_compiler_wl=
  5911. lt_prog_compiler_pic=
  5912. lt_prog_compiler_static=
  5913. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  5914. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  5915. if test "$GCC" = yes; then
  5916. lt_prog_compiler_wl='-Wl,'
  5917. lt_prog_compiler_static='-static'
  5918. case $host_os in
  5919. aix*)
  5920. # All AIX code is PIC.
  5921. if test "$host_cpu" = ia64; then
  5922. # AIX 5 now supports IA64 processor
  5923. lt_prog_compiler_static='-Bstatic'
  5924. fi
  5925. ;;
  5926. amigaos*)
  5927. # FIXME: we need at least 68020 code to build shared libraries, but
  5928. # adding the `-m68020' flag to GCC prevents building anything better,
  5929. # like `-m68040'.
  5930. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  5931. ;;
  5932. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5933. # PIC is the default for these OSes.
  5934. ;;
  5935. mingw* | pw32* | os2*)
  5936. # This hack is so that the source file can tell whether it is being
  5937. # built for inclusion in a dll (and should export symbols for example).
  5938. lt_prog_compiler_pic='-DDLL_EXPORT'
  5939. ;;
  5940. darwin* | rhapsody*)
  5941. # PIC is the default on this platform
  5942. # Common symbols not allowed in MH_DYLIB files
  5943. lt_prog_compiler_pic='-fno-common'
  5944. ;;
  5945. msdosdjgpp*)
  5946. # Just because we use GCC doesn't mean we suddenly get shared libraries
  5947. # on systems that don't support them.
  5948. lt_prog_compiler_can_build_shared=no
  5949. enable_shared=no
  5950. ;;
  5951. sysv4*MP*)
  5952. if test -d /usr/nec; then
  5953. lt_prog_compiler_pic=-Kconform_pic
  5954. fi
  5955. ;;
  5956. hpux*)
  5957. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5958. # not for PA HP-UX.
  5959. case "$host_cpu" in
  5960. hppa*64*|ia64*)
  5961. # +Z the default
  5962. ;;
  5963. *)
  5964. lt_prog_compiler_pic='-fPIC'
  5965. ;;
  5966. esac
  5967. ;;
  5968. *)
  5969. lt_prog_compiler_pic='-fPIC'
  5970. ;;
  5971. esac
  5972. else
  5973. # PORTME Check for flag to pass linker flags through the system compiler.
  5974. case $host_os in
  5975. aix*)
  5976. lt_prog_compiler_wl='-Wl,'
  5977. if test "$host_cpu" = ia64; then
  5978. # AIX 5 now supports IA64 processor
  5979. lt_prog_compiler_static='-Bstatic'
  5980. else
  5981. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  5982. fi
  5983. ;;
  5984. darwin*)
  5985. # PIC is the default on this platform
  5986. # Common symbols not allowed in MH_DYLIB files
  5987. case $cc_basename in
  5988. xlc*)
  5989. lt_prog_compiler_pic='-qnocommon'
  5990. lt_prog_compiler_wl='-Wl,'
  5991. ;;
  5992. esac
  5993. ;;
  5994. mingw* | pw32* | os2*)
  5995. # This hack is so that the source file can tell whether it is being
  5996. # built for inclusion in a dll (and should export symbols for example).
  5997. lt_prog_compiler_pic='-DDLL_EXPORT'
  5998. ;;
  5999. hpux9* | hpux10* | hpux11*)
  6000. lt_prog_compiler_wl='-Wl,'
  6001. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6002. # not for PA HP-UX.
  6003. case "$host_cpu" in
  6004. hppa*64*|ia64*)
  6005. # +Z the default
  6006. ;;
  6007. *)
  6008. lt_prog_compiler_pic='+Z'
  6009. ;;
  6010. esac
  6011. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6012. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6013. ;;
  6014. irix5* | irix6* | nonstopux*)
  6015. lt_prog_compiler_wl='-Wl,'
  6016. # PIC (with -KPIC) is the default.
  6017. lt_prog_compiler_static='-non_shared'
  6018. ;;
  6019. newsos6)
  6020. lt_prog_compiler_pic='-KPIC'
  6021. lt_prog_compiler_static='-Bstatic'
  6022. ;;
  6023. linux*)
  6024. case $cc_basename in
  6025. icc* | ecc*)
  6026. lt_prog_compiler_wl='-Wl,'
  6027. lt_prog_compiler_pic='-KPIC'
  6028. lt_prog_compiler_static='-static'
  6029. ;;
  6030. pgcc* | pgf77* | pgf90*)
  6031. # Portland Group compilers (*not* the Pentium gcc compiler,
  6032. # which looks to be a dead project)
  6033. lt_prog_compiler_wl='-Wl,'
  6034. lt_prog_compiler_pic='-fpic'
  6035. lt_prog_compiler_static='-static'
  6036. ;;
  6037. ccc*)
  6038. lt_prog_compiler_wl='-Wl,'
  6039. # All Alpha code is PIC.
  6040. lt_prog_compiler_static='-non_shared'
  6041. ;;
  6042. esac
  6043. ;;
  6044. osf3* | osf4* | osf5*)
  6045. lt_prog_compiler_wl='-Wl,'
  6046. # All OSF/1 code is PIC.
  6047. lt_prog_compiler_static='-non_shared'
  6048. ;;
  6049. sco3.2v5*)
  6050. lt_prog_compiler_pic='-Kpic'
  6051. lt_prog_compiler_static='-dn'
  6052. ;;
  6053. solaris*)
  6054. lt_prog_compiler_pic='-KPIC'
  6055. lt_prog_compiler_static='-Bstatic'
  6056. case $cc_basename in
  6057. f77* | f90* | f95*)
  6058. lt_prog_compiler_wl='-Qoption ld ';;
  6059. *)
  6060. lt_prog_compiler_wl='-Wl,';;
  6061. esac
  6062. ;;
  6063. sunos4*)
  6064. lt_prog_compiler_wl='-Qoption ld '
  6065. lt_prog_compiler_pic='-PIC'
  6066. lt_prog_compiler_static='-Bstatic'
  6067. ;;
  6068. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  6069. lt_prog_compiler_wl='-Wl,'
  6070. lt_prog_compiler_pic='-KPIC'
  6071. lt_prog_compiler_static='-Bstatic'
  6072. ;;
  6073. sysv4*MP*)
  6074. if test -d /usr/nec ;then
  6075. lt_prog_compiler_pic='-Kconform_pic'
  6076. lt_prog_compiler_static='-Bstatic'
  6077. fi
  6078. ;;
  6079. unicos*)
  6080. lt_prog_compiler_wl='-Wl,'
  6081. lt_prog_compiler_can_build_shared=no
  6082. ;;
  6083. uts4*)
  6084. lt_prog_compiler_pic='-pic'
  6085. lt_prog_compiler_static='-Bstatic'
  6086. ;;
  6087. *)
  6088. lt_prog_compiler_can_build_shared=no
  6089. ;;
  6090. esac
  6091. fi
  6092. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6093. echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  6094. #
  6095. # Check to make sure the PIC flag actually works.
  6096. #
  6097. if test -n "$lt_prog_compiler_pic"; then
  6098. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6099. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  6100. if test "${lt_prog_compiler_pic_works+set}" = set; then
  6101. echo $ECHO_N "(cached) $ECHO_C" >&6
  6102. else
  6103. lt_prog_compiler_pic_works=no
  6104. ac_outfile=conftest.$ac_objext
  6105. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6106. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6107. # Insert the option either (1) after the last *FLAGS variable, or
  6108. # (2) before a word containing "conftest.", or (3) at the end.
  6109. # Note that $ac_compile itself does not contain backslashes and begins
  6110. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6111. # The option is referenced via a variable to avoid confusing sed.
  6112. lt_compile=`echo "$ac_compile" | $SED \
  6113. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  6114. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6115. -e 's:$: $lt_compiler_flag:'`
  6116. (eval echo "\"\$as_me:6786: $lt_compile\"" >&5)
  6117. (eval "$lt_compile" 2>conftest.err)
  6118. ac_status=$?
  6119. cat conftest.err >&5
  6120. echo "$as_me:6790: \$? = $ac_status" >&5
  6121. if (exit $ac_status) && test -s "$ac_outfile"; then
  6122. # The compiler can only warn and ignore the option if not recognized
  6123. # So say no if there are warnings other than the usual output.
  6124. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  6125. $SED '/^$/d' conftest.err >conftest.er2
  6126. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  6127. lt_prog_compiler_pic_works=yes
  6128. fi
  6129. fi
  6130. $rm conftest*
  6131. fi
  6132. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  6133. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  6134. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6135. case $lt_prog_compiler_pic in
  6136. "" | " "*) ;;
  6137. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6138. esac
  6139. else
  6140. lt_prog_compiler_pic=
  6141. lt_prog_compiler_can_build_shared=no
  6142. fi
  6143. fi
  6144. case "$host_os" in
  6145. # For platforms which do not support PIC, -DPIC is meaningless:
  6146. *djgpp*)
  6147. lt_prog_compiler_pic=
  6148. ;;
  6149. *)
  6150. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6151. ;;
  6152. esac
  6153. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6154. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  6155. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6156. echo $ECHO_N "(cached) $ECHO_C" >&6
  6157. else
  6158. lt_cv_prog_compiler_c_o=no
  6159. $rm -r conftest 2>/dev/null
  6160. mkdir conftest
  6161. cd conftest
  6162. mkdir out
  6163. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6164. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6165. # Insert the option either (1) after the last *FLAGS variable, or
  6166. # (2) before a word containing "conftest.", or (3) at the end.
  6167. # Note that $ac_compile itself does not contain backslashes and begins
  6168. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6169. lt_compile=`echo "$ac_compile" | $SED \
  6170. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  6171. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6172. -e 's:$: $lt_compiler_flag:'`
  6173. (eval echo "\"\$as_me:6848: $lt_compile\"" >&5)
  6174. (eval "$lt_compile" 2>out/conftest.err)
  6175. ac_status=$?
  6176. cat out/conftest.err >&5
  6177. echo "$as_me:6852: \$? = $ac_status" >&5
  6178. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6179. then
  6180. # The compiler can only warn and ignore the option if not recognized
  6181. # So say no if there are warnings
  6182. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  6183. $SED '/^$/d' out/conftest.err >out/conftest.er2
  6184. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6185. lt_cv_prog_compiler_c_o=yes
  6186. fi
  6187. fi
  6188. chmod u+w .
  6189. $rm conftest*
  6190. # SGI C++ compiler will create directory out/ii_files/ for
  6191. # template instantiation
  6192. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  6193. $rm out/* && rmdir out
  6194. cd ..
  6195. rmdir conftest
  6196. $rm conftest*
  6197. fi
  6198. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6199. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  6200. hard_links="nottested"
  6201. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6202. # do not overwrite the value of need_locks provided by the user
  6203. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6204. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  6205. hard_links=yes
  6206. $rm conftest*
  6207. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6208. touch conftest.a
  6209. ln conftest.a conftest.b 2>&5 || hard_links=no
  6210. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6211. echo "$as_me:$LINENO: result: $hard_links" >&5
  6212. echo "${ECHO_T}$hard_links" >&6
  6213. if test "$hard_links" = no; then
  6214. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6215. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6216. need_locks=warn
  6217. fi
  6218. else
  6219. need_locks=no
  6220. fi
  6221. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6222. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  6223. runpath_var=
  6224. allow_undefined_flag=
  6225. enable_shared_with_static_runtimes=no
  6226. archive_cmds=
  6227. archive_expsym_cmds=
  6228. old_archive_From_new_cmds=
  6229. old_archive_from_expsyms_cmds=
  6230. export_dynamic_flag_spec=
  6231. whole_archive_flag_spec=
  6232. thread_safe_flag_spec=
  6233. hardcode_libdir_flag_spec=
  6234. hardcode_libdir_flag_spec_ld=
  6235. hardcode_libdir_separator=
  6236. hardcode_direct=no
  6237. hardcode_minus_L=no
  6238. hardcode_shlibpath_var=unsupported
  6239. link_all_deplibs=unknown
  6240. hardcode_automatic=no
  6241. module_cmds=
  6242. module_expsym_cmds=
  6243. always_export_symbols=no
  6244. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6245. # include_expsyms should be a list of space-separated symbols to be *always*
  6246. # included in the symbol list
  6247. include_expsyms=
  6248. # exclude_expsyms can be an extended regexp of symbols to exclude
  6249. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6250. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6251. # as well as any symbol that contains `d'.
  6252. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  6253. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6254. # platforms (ab)use it in PIC code, but their linkers get confused if
  6255. # the symbol is explicitly referenced. Since portable code cannot
  6256. # rely on this symbol name, it's probably fine to never include it in
  6257. # preloaded symbol tables.
  6258. extract_expsyms_cmds=
  6259. # Just being paranoid about ensuring that cc_basename is set.
  6260. for cc_temp in $compiler""; do
  6261. case $cc_temp in
  6262. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6263. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6264. \-*) ;;
  6265. *) break;;
  6266. esac
  6267. done
  6268. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6269. case $host_os in
  6270. cygwin* | mingw* | pw32*)
  6271. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6272. # When not using gcc, we currently assume that we are using
  6273. # Microsoft Visual C++.
  6274. if test "$GCC" != yes; then
  6275. with_gnu_ld=no
  6276. fi
  6277. ;;
  6278. openbsd*)
  6279. with_gnu_ld=no
  6280. ;;
  6281. esac
  6282. ld_shlibs=yes
  6283. if test "$with_gnu_ld" = yes; then
  6284. # If archive_cmds runs LD, not CC, wlarc should be empty
  6285. wlarc='${wl}'
  6286. # Set some defaults for GNU ld with shared library support. These
  6287. # are reset later if shared libraries are not supported. Putting them
  6288. # here allows them to be overridden if necessary.
  6289. runpath_var=LD_RUN_PATH
  6290. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  6291. export_dynamic_flag_spec='${wl}--export-dynamic'
  6292. # ancient GNU ld didn't support --whole-archive et. al.
  6293. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  6294. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6295. else
  6296. whole_archive_flag_spec=
  6297. fi
  6298. supports_anon_versioning=no
  6299. case `$LD -v 2>/dev/null` in
  6300. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6301. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6302. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6303. *\ 2.11.*) ;; # other 2.11 versions
  6304. *) supports_anon_versioning=yes ;;
  6305. esac
  6306. # See if GNU ld supports shared libraries.
  6307. case $host_os in
  6308. aix3* | aix4* | aix5*)
  6309. # On AIX/PPC, the GNU linker is very broken
  6310. if test "$host_cpu" != ia64; then
  6311. ld_shlibs=no
  6312. cat <<EOF 1>&2
  6313. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6314. *** to be unable to reliably create shared libraries on AIX.
  6315. *** Therefore, libtool is disabling shared libraries support. If you
  6316. *** really care for shared libraries, you may want to modify your PATH
  6317. *** so that a non-GNU linker is found, and then restart.
  6318. EOF
  6319. fi
  6320. ;;
  6321. amigaos*)
  6322. 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)'
  6323. hardcode_libdir_flag_spec='-L$libdir'
  6324. hardcode_minus_L=yes
  6325. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  6326. # that the semantics of dynamic libraries on AmigaOS, at least up
  6327. # to version 4, is to share data among multiple programs linked
  6328. # with the same dynamic library. Since this doesn't match the
  6329. # behavior of shared libraries on other platforms, we can't use
  6330. # them.
  6331. ld_shlibs=no
  6332. ;;
  6333. beos*)
  6334. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6335. allow_undefined_flag=unsupported
  6336. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  6337. # support --undefined. This deserves some investigation. FIXME
  6338. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6339. else
  6340. ld_shlibs=no
  6341. fi
  6342. ;;
  6343. cygwin* | mingw* | pw32*)
  6344. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6345. # as there is no search path for DLLs.
  6346. hardcode_libdir_flag_spec='-L$libdir'
  6347. allow_undefined_flag=unsupported
  6348. always_export_symbols=no
  6349. enable_shared_with_static_runtimes=yes
  6350. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  6351. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  6352. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  6353. # If the export-symbols file already is a .def file (1st line
  6354. # is EXPORTS), use it as is; otherwise, prepend...
  6355. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6356. cp $export_symbols $output_objdir/$soname.def;
  6357. else
  6358. echo EXPORTS > $output_objdir/$soname.def;
  6359. cat $export_symbols >> $output_objdir/$soname.def;
  6360. fi~
  6361. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  6362. else
  6363. ld_shlibs=no
  6364. fi
  6365. ;;
  6366. linux*)
  6367. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6368. tmp_addflag=
  6369. case $cc_basename,$host_cpu in
  6370. pgcc*) # Portland Group C compiler
  6371. 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'
  6372. tmp_addflag=' $pic_flag'
  6373. ;;
  6374. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  6375. 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'
  6376. tmp_addflag=' $pic_flag -Mnomain' ;;
  6377. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  6378. tmp_addflag=' -i_dynamic' ;;
  6379. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  6380. tmp_addflag=' -i_dynamic -nofor_main' ;;
  6381. ifc* | ifort*) # Intel Fortran compiler
  6382. tmp_addflag=' -nofor_main' ;;
  6383. esac
  6384. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6385. if test $supports_anon_versioning = yes; then
  6386. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  6387. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6388. $echo "local: *; };" >> $output_objdir/$libname.ver~
  6389. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6390. fi
  6391. else
  6392. ld_shlibs=no
  6393. fi
  6394. ;;
  6395. netbsd*)
  6396. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6397. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6398. wlarc=
  6399. else
  6400. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6401. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6402. fi
  6403. ;;
  6404. solaris* | sysv5*)
  6405. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  6406. ld_shlibs=no
  6407. cat <<EOF 1>&2
  6408. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6409. *** create shared libraries on Solaris systems. Therefore, libtool
  6410. *** is disabling shared libraries support. We urge you to upgrade GNU
  6411. *** binutils to release 2.9.1 or newer. Another option is to modify
  6412. *** your PATH or compiler configuration so that the native linker is
  6413. *** used, and then restart.
  6414. EOF
  6415. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6416. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6417. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6418. else
  6419. ld_shlibs=no
  6420. fi
  6421. ;;
  6422. sunos4*)
  6423. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6424. wlarc=
  6425. hardcode_direct=yes
  6426. hardcode_shlibpath_var=no
  6427. ;;
  6428. *)
  6429. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6430. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6431. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6432. else
  6433. ld_shlibs=no
  6434. fi
  6435. ;;
  6436. esac
  6437. if test "$ld_shlibs" = no; then
  6438. runpath_var=
  6439. hardcode_libdir_flag_spec=
  6440. export_dynamic_flag_spec=
  6441. whole_archive_flag_spec=
  6442. fi
  6443. else
  6444. # PORTME fill in a description of your system's linker (not GNU ld)
  6445. case $host_os in
  6446. aix3*)
  6447. allow_undefined_flag=unsupported
  6448. always_export_symbols=yes
  6449. 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'
  6450. # Note: this linker hardcodes the directories in LIBPATH if there
  6451. # are no directories specified by -L.
  6452. hardcode_minus_L=yes
  6453. if test "$GCC" = yes && test -z "$link_static_flag"; then
  6454. # Neither direct hardcoding nor static linking is supported with a
  6455. # broken collect2.
  6456. hardcode_direct=unsupported
  6457. fi
  6458. ;;
  6459. aix4* | aix5*)
  6460. if test "$host_cpu" = ia64; then
  6461. # On IA64, the linker does run time linking by default, so we don't
  6462. # have to do anything special.
  6463. aix_use_runtimelinking=no
  6464. exp_sym_flag='-Bexport'
  6465. no_entry_flag=""
  6466. else
  6467. # If we're using GNU nm, then we don't want the "-C" option.
  6468. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6469. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  6470. 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'
  6471. else
  6472. 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'
  6473. fi
  6474. aix_use_runtimelinking=no
  6475. # Test if we are trying to use run time linking or normal
  6476. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6477. # need to do runtime linking.
  6478. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  6479. for ld_flag in $LDFLAGS; do
  6480. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  6481. aix_use_runtimelinking=yes
  6482. break
  6483. fi
  6484. done
  6485. esac
  6486. exp_sym_flag='-bexport'
  6487. no_entry_flag='-bnoentry'
  6488. fi
  6489. # When large executables or shared objects are built, AIX ld can
  6490. # have problems creating the table of contents. If linking a library
  6491. # or program results in "error TOC overflow" add -mminimal-toc to
  6492. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6493. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6494. archive_cmds=''
  6495. hardcode_direct=yes
  6496. hardcode_libdir_separator=':'
  6497. link_all_deplibs=yes
  6498. if test "$GCC" = yes; then
  6499. case $host_os in aix4.[012]|aix4.[012].*)
  6500. # We only want to do this on AIX 4.2 and lower, the check
  6501. # below for broken collect2 doesn't work under 4.3+
  6502. collect2name=`${CC} -print-prog-name=collect2`
  6503. if test -f "$collect2name" && \
  6504. strings "$collect2name" | grep resolve_lib_name >/dev/null
  6505. then
  6506. # We have reworked collect2
  6507. hardcode_direct=yes
  6508. else
  6509. # We have old collect2
  6510. hardcode_direct=unsupported
  6511. # It fails to find uninstalled libraries when the uninstalled
  6512. # path is not listed in the libpath. Setting hardcode_minus_L
  6513. # to unsupported forces relinking
  6514. hardcode_minus_L=yes
  6515. hardcode_libdir_flag_spec='-L$libdir'
  6516. hardcode_libdir_separator=
  6517. fi
  6518. esac
  6519. shared_flag='-shared'
  6520. if test "$aix_use_runtimelinking" = yes; then
  6521. shared_flag="$shared_flag "'${wl}-G'
  6522. fi
  6523. else
  6524. # not using gcc
  6525. if test "$host_cpu" = ia64; then
  6526. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6527. # chokes on -Wl,-G. The following line is correct:
  6528. shared_flag='-G'
  6529. else
  6530. if test "$aix_use_runtimelinking" = yes; then
  6531. shared_flag='${wl}-G'
  6532. else
  6533. shared_flag='${wl}-bM:SRE'
  6534. fi
  6535. fi
  6536. fi
  6537. # It seems that -bexpall does not export symbols beginning with
  6538. # underscore (_), so it is better to generate a list of symbols to export.
  6539. always_export_symbols=yes
  6540. if test "$aix_use_runtimelinking" = yes; then
  6541. # Warning - without using the other runtime loading flags (-brtl),
  6542. # -berok will link without error, but may produce a broken library.
  6543. allow_undefined_flag='-berok'
  6544. # Determine the default libpath from the value encoded in an empty executable.
  6545. cat >conftest.$ac_ext <<_ACEOF
  6546. /* confdefs.h. */
  6547. _ACEOF
  6548. cat confdefs.h >>conftest.$ac_ext
  6549. cat >>conftest.$ac_ext <<_ACEOF
  6550. /* end confdefs.h. */
  6551. int
  6552. main ()
  6553. {
  6554. ;
  6555. return 0;
  6556. }
  6557. _ACEOF
  6558. rm -f conftest.$ac_objext conftest$ac_exeext
  6559. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6560. (eval $ac_link) 2>conftest.er1
  6561. ac_status=$?
  6562. grep -v '^ *+' conftest.er1 >conftest.err
  6563. rm -f conftest.er1
  6564. cat conftest.err >&5
  6565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6566. (exit $ac_status); } &&
  6567. { ac_try='test -z "$ac_c_werror_flag"
  6568. || test ! -s conftest.err'
  6569. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6570. (eval $ac_try) 2>&5
  6571. ac_status=$?
  6572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6573. (exit $ac_status); }; } &&
  6574. { ac_try='test -s conftest$ac_exeext'
  6575. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6576. (eval $ac_try) 2>&5
  6577. ac_status=$?
  6578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6579. (exit $ac_status); }; }; then
  6580. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6581. }'`
  6582. # Check for a 64-bit object if we didn't find anything.
  6583. 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; }
  6584. }'`; fi
  6585. else
  6586. echo "$as_me: failed program was:" >&5
  6587. sed 's/^/| /' conftest.$ac_ext >&5
  6588. fi
  6589. rm -f conftest.err conftest.$ac_objext \
  6590. conftest$ac_exeext conftest.$ac_ext
  6591. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6592. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6593. archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  6594. else
  6595. if test "$host_cpu" = ia64; then
  6596. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  6597. allow_undefined_flag="-z nodefs"
  6598. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  6599. else
  6600. # Determine the default libpath from the value encoded in an empty executable.
  6601. cat >conftest.$ac_ext <<_ACEOF
  6602. /* confdefs.h. */
  6603. _ACEOF
  6604. cat confdefs.h >>conftest.$ac_ext
  6605. cat >>conftest.$ac_ext <<_ACEOF
  6606. /* end confdefs.h. */
  6607. int
  6608. main ()
  6609. {
  6610. ;
  6611. return 0;
  6612. }
  6613. _ACEOF
  6614. rm -f conftest.$ac_objext conftest$ac_exeext
  6615. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6616. (eval $ac_link) 2>conftest.er1
  6617. ac_status=$?
  6618. grep -v '^ *+' conftest.er1 >conftest.err
  6619. rm -f conftest.er1
  6620. cat conftest.err >&5
  6621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6622. (exit $ac_status); } &&
  6623. { ac_try='test -z "$ac_c_werror_flag"
  6624. || test ! -s conftest.err'
  6625. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6626. (eval $ac_try) 2>&5
  6627. ac_status=$?
  6628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6629. (exit $ac_status); }; } &&
  6630. { ac_try='test -s conftest$ac_exeext'
  6631. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6632. (eval $ac_try) 2>&5
  6633. ac_status=$?
  6634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6635. (exit $ac_status); }; }; then
  6636. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6637. }'`
  6638. # Check for a 64-bit object if we didn't find anything.
  6639. 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; }
  6640. }'`; fi
  6641. else
  6642. echo "$as_me: failed program was:" >&5
  6643. sed 's/^/| /' conftest.$ac_ext >&5
  6644. fi
  6645. rm -f conftest.err conftest.$ac_objext \
  6646. conftest$ac_exeext conftest.$ac_ext
  6647. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6648. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6649. # Warning - without using the other run time loading flags,
  6650. # -berok will link without error, but may produce a broken library.
  6651. no_undefined_flag=' ${wl}-bernotok'
  6652. allow_undefined_flag=' ${wl}-berok'
  6653. # -bexpall does not export symbols beginning with underscore (_)
  6654. always_export_symbols=yes
  6655. # Exported symbols can be pulled into shared objects from archives
  6656. whole_archive_flag_spec=' '
  6657. archive_cmds_need_lc=yes
  6658. # This is similar to how AIX traditionally builds it's shared libraries.
  6659. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  6660. fi
  6661. fi
  6662. ;;
  6663. amigaos*)
  6664. 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)'
  6665. hardcode_libdir_flag_spec='-L$libdir'
  6666. hardcode_minus_L=yes
  6667. # see comment about different semantics on the GNU ld section
  6668. ld_shlibs=no
  6669. ;;
  6670. bsdi[45]*)
  6671. export_dynamic_flag_spec=-rdynamic
  6672. ;;
  6673. cygwin* | mingw* | pw32*)
  6674. # When not using gcc, we currently assume that we are using
  6675. # Microsoft Visual C++.
  6676. # hardcode_libdir_flag_spec is actually meaningless, as there is
  6677. # no search path for DLLs.
  6678. hardcode_libdir_flag_spec=' '
  6679. allow_undefined_flag=unsupported
  6680. # Tell ltmain to make .lib files, not .a files.
  6681. libext=lib
  6682. # Tell ltmain to make .dll files, not .so files.
  6683. shrext_cmds=".dll"
  6684. # FIXME: Setting linknames here is a bad hack.
  6685. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6686. # The linker will automatically build a .lib file if we build a DLL.
  6687. old_archive_From_new_cmds='true'
  6688. # FIXME: Should let the user specify the lib program.
  6689. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  6690. fix_srcfile_path='`cygpath -w "$srcfile"`'
  6691. enable_shared_with_static_runtimes=yes
  6692. ;;
  6693. darwin* | rhapsody*)
  6694. case "$host_os" in
  6695. rhapsody* | darwin1.[012])
  6696. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  6697. ;;
  6698. *) # Darwin 1.3 on
  6699. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  6700. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6701. else
  6702. case ${MACOSX_DEPLOYMENT_TARGET} in
  6703. 10.[012])
  6704. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6705. ;;
  6706. 10.*)
  6707. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  6708. ;;
  6709. esac
  6710. fi
  6711. ;;
  6712. esac
  6713. archive_cmds_need_lc=no
  6714. hardcode_direct=no
  6715. hardcode_automatic=yes
  6716. hardcode_shlibpath_var=unsupported
  6717. whole_archive_flag_spec=''
  6718. link_all_deplibs=yes
  6719. if test "$GCC" = yes ; then
  6720. output_verbose_link_cmd='echo'
  6721. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  6722. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6723. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  6724. 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}'
  6725. 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}'
  6726. else
  6727. case $cc_basename in
  6728. xlc*)
  6729. output_verbose_link_cmd='echo'
  6730. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  6731. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6732. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  6733. 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}'
  6734. 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}'
  6735. ;;
  6736. *)
  6737. ld_shlibs=no
  6738. ;;
  6739. esac
  6740. fi
  6741. ;;
  6742. dgux*)
  6743. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6744. hardcode_libdir_flag_spec='-L$libdir'
  6745. hardcode_shlibpath_var=no
  6746. ;;
  6747. freebsd1*)
  6748. ld_shlibs=no
  6749. ;;
  6750. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6751. # support. Future versions do this automatically, but an explicit c++rt0.o
  6752. # does not break anything, and helps significantly (at the cost of a little
  6753. # extra space).
  6754. freebsd2.2*)
  6755. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6756. hardcode_libdir_flag_spec='-R$libdir'
  6757. hardcode_direct=yes
  6758. hardcode_shlibpath_var=no
  6759. ;;
  6760. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6761. freebsd2*)
  6762. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6763. hardcode_direct=yes
  6764. hardcode_minus_L=yes
  6765. hardcode_shlibpath_var=no
  6766. ;;
  6767. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6768. freebsd* | kfreebsd*-gnu | dragonfly*)
  6769. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6770. hardcode_libdir_flag_spec='-R$libdir'
  6771. hardcode_direct=yes
  6772. hardcode_shlibpath_var=no
  6773. ;;
  6774. hpux9*)
  6775. if test "$GCC" = yes; then
  6776. 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'
  6777. else
  6778. 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'
  6779. fi
  6780. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6781. hardcode_libdir_separator=:
  6782. hardcode_direct=yes
  6783. # hardcode_minus_L: Not really in the search PATH,
  6784. # but as the default location of the library.
  6785. hardcode_minus_L=yes
  6786. export_dynamic_flag_spec='${wl}-E'
  6787. ;;
  6788. hpux10* | hpux11*)
  6789. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6790. case "$host_cpu" in
  6791. hppa*64*|ia64*)
  6792. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6793. ;;
  6794. *)
  6795. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6796. ;;
  6797. esac
  6798. else
  6799. case "$host_cpu" in
  6800. hppa*64*|ia64*)
  6801. archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  6802. ;;
  6803. *)
  6804. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6805. ;;
  6806. esac
  6807. fi
  6808. if test "$with_gnu_ld" = no; then
  6809. case "$host_cpu" in
  6810. hppa*64*)
  6811. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6812. hardcode_libdir_flag_spec_ld='+b $libdir'
  6813. hardcode_libdir_separator=:
  6814. hardcode_direct=no
  6815. hardcode_shlibpath_var=no
  6816. ;;
  6817. ia64*)
  6818. hardcode_libdir_flag_spec='-L$libdir'
  6819. hardcode_direct=no
  6820. hardcode_shlibpath_var=no
  6821. # hardcode_minus_L: Not really in the search PATH,
  6822. # but as the default location of the library.
  6823. hardcode_minus_L=yes
  6824. ;;
  6825. *)
  6826. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6827. hardcode_libdir_separator=:
  6828. hardcode_direct=yes
  6829. export_dynamic_flag_spec='${wl}-E'
  6830. # hardcode_minus_L: Not really in the search PATH,
  6831. # but as the default location of the library.
  6832. hardcode_minus_L=yes
  6833. ;;
  6834. esac
  6835. fi
  6836. ;;
  6837. irix5* | irix6* | nonstopux*)
  6838. if test "$GCC" = yes; then
  6839. 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'
  6840. else
  6841. 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'
  6842. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  6843. fi
  6844. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6845. hardcode_libdir_separator=:
  6846. link_all_deplibs=yes
  6847. ;;
  6848. netbsd*)
  6849. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6850. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6851. else
  6852. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6853. fi
  6854. hardcode_libdir_flag_spec='-R$libdir'
  6855. hardcode_direct=yes
  6856. hardcode_shlibpath_var=no
  6857. ;;
  6858. newsos6)
  6859. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6860. hardcode_direct=yes
  6861. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6862. hardcode_libdir_separator=:
  6863. hardcode_shlibpath_var=no
  6864. ;;
  6865. openbsd*)
  6866. hardcode_direct=yes
  6867. hardcode_shlibpath_var=no
  6868. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6869. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6870. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  6871. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6872. export_dynamic_flag_spec='${wl}-E'
  6873. else
  6874. case $host_os in
  6875. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  6876. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6877. hardcode_libdir_flag_spec='-R$libdir'
  6878. ;;
  6879. *)
  6880. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6881. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6882. ;;
  6883. esac
  6884. fi
  6885. ;;
  6886. os2*)
  6887. hardcode_libdir_flag_spec='-L$libdir'
  6888. hardcode_minus_L=yes
  6889. allow_undefined_flag=unsupported
  6890. 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'
  6891. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6892. ;;
  6893. osf3*)
  6894. if test "$GCC" = yes; then
  6895. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6896. 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'
  6897. else
  6898. allow_undefined_flag=' -expect_unresolved \*'
  6899. 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'
  6900. fi
  6901. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6902. hardcode_libdir_separator=:
  6903. ;;
  6904. osf4* | osf5*) # as osf3* with the addition of -msym flag
  6905. if test "$GCC" = yes; then
  6906. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6907. 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'
  6908. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6909. else
  6910. allow_undefined_flag=' -expect_unresolved \*'
  6911. 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'
  6912. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  6913. $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'
  6914. # Both c and cxx compiler support -rpath directly
  6915. hardcode_libdir_flag_spec='-rpath $libdir'
  6916. fi
  6917. hardcode_libdir_separator=:
  6918. ;;
  6919. sco3.2v5*)
  6920. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6921. hardcode_shlibpath_var=no
  6922. export_dynamic_flag_spec='${wl}-Bexport'
  6923. runpath_var=LD_RUN_PATH
  6924. hardcode_runpath_var=yes
  6925. ;;
  6926. solaris*)
  6927. no_undefined_flag=' -z text'
  6928. if test "$GCC" = yes; then
  6929. wlarc='${wl}'
  6930. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6931. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6932. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  6933. else
  6934. wlarc=''
  6935. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6936. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6937. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  6938. fi
  6939. hardcode_libdir_flag_spec='-R$libdir'
  6940. hardcode_shlibpath_var=no
  6941. case $host_os in
  6942. solaris2.[0-5] | solaris2.[0-5].*) ;;
  6943. *)
  6944. # The compiler driver will combine linker options so we
  6945. # cannot just pass the convience library names through
  6946. # without $wl, iff we do not link with $LD.
  6947. # Luckily, gcc supports the same syntax we need for Sun Studio.
  6948. # Supported since Solaris 2.6 (maybe 2.5.1?)
  6949. case $wlarc in
  6950. '')
  6951. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  6952. *)
  6953. 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' ;;
  6954. esac ;;
  6955. esac
  6956. link_all_deplibs=yes
  6957. ;;
  6958. sunos4*)
  6959. if test "x$host_vendor" = xsequent; then
  6960. # Use $CC to link under sequent, because it throws in some extra .o
  6961. # files that make .init and .fini sections work.
  6962. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6963. else
  6964. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  6965. fi
  6966. hardcode_libdir_flag_spec='-L$libdir'
  6967. hardcode_direct=yes
  6968. hardcode_minus_L=yes
  6969. hardcode_shlibpath_var=no
  6970. ;;
  6971. sysv4)
  6972. case $host_vendor in
  6973. sni)
  6974. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6975. hardcode_direct=yes # is this really true???
  6976. ;;
  6977. siemens)
  6978. ## LD is ld it makes a PLAMLIB
  6979. ## CC just makes a GrossModule.
  6980. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6981. reload_cmds='$CC -r -o $output$reload_objs'
  6982. hardcode_direct=no
  6983. ;;
  6984. motorola)
  6985. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6986. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  6987. ;;
  6988. esac
  6989. runpath_var='LD_RUN_PATH'
  6990. hardcode_shlibpath_var=no
  6991. ;;
  6992. sysv4.3*)
  6993. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6994. hardcode_shlibpath_var=no
  6995. export_dynamic_flag_spec='-Bexport'
  6996. ;;
  6997. sysv4*MP*)
  6998. if test -d /usr/nec; then
  6999. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7000. hardcode_shlibpath_var=no
  7001. runpath_var=LD_RUN_PATH
  7002. hardcode_runpath_var=yes
  7003. ld_shlibs=yes
  7004. fi
  7005. ;;
  7006. sysv4.2uw2*)
  7007. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7008. hardcode_direct=yes
  7009. hardcode_minus_L=no
  7010. hardcode_shlibpath_var=no
  7011. hardcode_runpath_var=yes
  7012. runpath_var=LD_RUN_PATH
  7013. ;;
  7014. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  7015. no_undefined_flag='${wl}-z ${wl}text'
  7016. if test "$GCC" = yes; then
  7017. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7018. else
  7019. archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7020. fi
  7021. runpath_var='LD_RUN_PATH'
  7022. hardcode_shlibpath_var=no
  7023. ;;
  7024. sysv5*)
  7025. no_undefined_flag=' -z text'
  7026. # $CC -shared without GNU ld will not create a library from C++
  7027. # object files and a static libstdc++, better avoid it by now
  7028. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7029. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7030. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7031. hardcode_libdir_flag_spec=
  7032. hardcode_shlibpath_var=no
  7033. runpath_var='LD_RUN_PATH'
  7034. ;;
  7035. uts4*)
  7036. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7037. hardcode_libdir_flag_spec='-L$libdir'
  7038. hardcode_shlibpath_var=no
  7039. ;;
  7040. *)
  7041. ld_shlibs=no
  7042. ;;
  7043. esac
  7044. fi
  7045. echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7046. echo "${ECHO_T}$ld_shlibs" >&6
  7047. test "$ld_shlibs" = no && can_build_shared=no
  7048. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  7049. if test "$GCC" = yes; then
  7050. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  7051. fi
  7052. #
  7053. # Do we need to explicitly link libc?
  7054. #
  7055. case "x$archive_cmds_need_lc" in
  7056. x|xyes)
  7057. # Assume -lc should be added
  7058. archive_cmds_need_lc=yes
  7059. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7060. case $archive_cmds in
  7061. *'~'*)
  7062. # FIXME: we may have to deal with multi-command sequences.
  7063. ;;
  7064. '$CC '*)
  7065. # Test whether the compiler implicitly links with -lc since on some
  7066. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7067. # to ld, don't add -lc before -lgcc.
  7068. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7069. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  7070. $rm conftest*
  7071. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7072. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7073. (eval $ac_compile) 2>&5
  7074. ac_status=$?
  7075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7076. (exit $ac_status); } 2>conftest.err; then
  7077. soname=conftest
  7078. lib=conftest
  7079. libobjs=conftest.$ac_objext
  7080. deplibs=
  7081. wl=$lt_prog_compiler_wl
  7082. compiler_flags=-v
  7083. linker_flags=-v
  7084. verstring=
  7085. output_objdir=.
  7086. libname=conftest
  7087. lt_save_allow_undefined_flag=$allow_undefined_flag
  7088. allow_undefined_flag=
  7089. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7090. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7091. ac_status=$?
  7092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7093. (exit $ac_status); }
  7094. then
  7095. archive_cmds_need_lc=no
  7096. else
  7097. archive_cmds_need_lc=yes
  7098. fi
  7099. allow_undefined_flag=$lt_save_allow_undefined_flag
  7100. else
  7101. cat conftest.err 1>&5
  7102. fi
  7103. $rm conftest*
  7104. echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7105. echo "${ECHO_T}$archive_cmds_need_lc" >&6
  7106. ;;
  7107. esac
  7108. fi
  7109. ;;
  7110. esac
  7111. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7112. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  7113. library_names_spec=
  7114. libname_spec='lib$name'
  7115. soname_spec=
  7116. shrext_cmds=".so"
  7117. postinstall_cmds=
  7118. postuninstall_cmds=
  7119. finish_cmds=
  7120. finish_eval=
  7121. shlibpath_var=
  7122. shlibpath_overrides_runpath=unknown
  7123. version_type=none
  7124. dynamic_linker="$host_os ld.so"
  7125. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7126. if test "$GCC" = yes; then
  7127. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7128. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  7129. # if the path contains ";" then we assume it to be the separator
  7130. # otherwise default to the standard path separator (i.e. ":") - it is
  7131. # assumed that no part of a normal pathname contains ";" but that should
  7132. # okay in the real world where ";" in dirpaths is itself problematic.
  7133. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7134. else
  7135. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7136. fi
  7137. else
  7138. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7139. fi
  7140. need_lib_prefix=unknown
  7141. hardcode_into_libs=no
  7142. # when you set need_version to no, make sure it does not cause -set_version
  7143. # flags to be left without arguments
  7144. need_version=unknown
  7145. case $host_os in
  7146. aix3*)
  7147. version_type=linux
  7148. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7149. shlibpath_var=LIBPATH
  7150. # AIX 3 has no versioning support, so we append a major version to the name.
  7151. soname_spec='${libname}${release}${shared_ext}$major'
  7152. ;;
  7153. aix4* | aix5*)
  7154. version_type=linux
  7155. need_lib_prefix=no
  7156. need_version=no
  7157. hardcode_into_libs=yes
  7158. if test "$host_cpu" = ia64; then
  7159. # AIX 5 supports IA64
  7160. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7161. shlibpath_var=LD_LIBRARY_PATH
  7162. else
  7163. # With GCC up to 2.95.x, collect2 would create an import file
  7164. # for dependence libraries. The import file would start with
  7165. # the line `#! .'. This would cause the generated library to
  7166. # depend on `.', always an invalid library. This was fixed in
  7167. # development snapshots of GCC prior to 3.0.
  7168. case $host_os in
  7169. aix4 | aix4.[01] | aix4.[01].*)
  7170. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7171. echo ' yes '
  7172. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  7173. :
  7174. else
  7175. can_build_shared=no
  7176. fi
  7177. ;;
  7178. esac
  7179. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7180. # soname into executable. Probably we can add versioning support to
  7181. # collect2, so additional links can be useful in future.
  7182. if test "$aix_use_runtimelinking" = yes; then
  7183. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7184. # instead of lib<name>.a to let people know that these are not
  7185. # typical AIX shared libraries.
  7186. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7187. else
  7188. # We preserve .a as extension for shared libraries through AIX4.2
  7189. # and later when we are not doing run time linking.
  7190. library_names_spec='${libname}${release}.a $libname.a'
  7191. soname_spec='${libname}${release}${shared_ext}$major'
  7192. fi
  7193. shlibpath_var=LIBPATH
  7194. fi
  7195. ;;
  7196. amigaos*)
  7197. library_names_spec='$libname.ixlibrary $libname.a'
  7198. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7199. 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'
  7200. ;;
  7201. beos*)
  7202. library_names_spec='${libname}${shared_ext}'
  7203. dynamic_linker="$host_os ld.so"
  7204. shlibpath_var=LIBRARY_PATH
  7205. ;;
  7206. bsdi[45]*)
  7207. version_type=linux
  7208. need_version=no
  7209. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7210. soname_spec='${libname}${release}${shared_ext}$major'
  7211. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7212. shlibpath_var=LD_LIBRARY_PATH
  7213. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7214. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7215. # the default ld.so.conf also contains /usr/contrib/lib and
  7216. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7217. # libtool to hard-code these into programs
  7218. ;;
  7219. cygwin* | mingw* | pw32*)
  7220. version_type=windows
  7221. shrext_cmds=".dll"
  7222. need_version=no
  7223. need_lib_prefix=no
  7224. case $GCC,$host_os in
  7225. yes,cygwin* | yes,mingw* | yes,pw32*)
  7226. library_names_spec='$libname.dll.a'
  7227. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7228. postinstall_cmds='base_file=`basename \${file}`~
  7229. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  7230. dldir=$destdir/`dirname \$dlpath`~
  7231. test -d \$dldir || mkdir -p \$dldir~
  7232. $install_prog $dir/$dlname \$dldir/$dlname'
  7233. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7234. dlpath=$dir/\$dldll~
  7235. $rm \$dlpath'
  7236. shlibpath_overrides_runpath=yes
  7237. case $host_os in
  7238. cygwin*)
  7239. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7240. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7241. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7242. ;;
  7243. mingw*)
  7244. # MinGW DLLs use traditional 'lib' prefix
  7245. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7246. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7247. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  7248. # It is most probably a Windows format PATH printed by
  7249. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7250. # path with ; separators, and with drive letters. We can handle the
  7251. # drive letters (cygwin fileutils understands them), so leave them,
  7252. # especially as we might pass files found there to a mingw objdump,
  7253. # which wouldn't understand a cygwinified path. Ahh.
  7254. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7255. else
  7256. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7257. fi
  7258. ;;
  7259. pw32*)
  7260. # pw32 DLLs use 'pw' prefix rather than 'lib'
  7261. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7262. ;;
  7263. esac
  7264. ;;
  7265. *)
  7266. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  7267. ;;
  7268. esac
  7269. dynamic_linker='Win32 ld.exe'
  7270. # FIXME: first we should search . and the directory the executable is in
  7271. shlibpath_var=PATH
  7272. ;;
  7273. darwin* | rhapsody*)
  7274. dynamic_linker="$host_os dyld"
  7275. version_type=darwin
  7276. need_lib_prefix=no
  7277. need_version=no
  7278. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  7279. soname_spec='${libname}${release}${major}$shared_ext'
  7280. shlibpath_overrides_runpath=yes
  7281. shlibpath_var=DYLD_LIBRARY_PATH
  7282. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  7283. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  7284. if test "$GCC" = yes; then
  7285. 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"`
  7286. else
  7287. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  7288. fi
  7289. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  7290. ;;
  7291. dgux*)
  7292. version_type=linux
  7293. need_lib_prefix=no
  7294. need_version=no
  7295. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  7296. soname_spec='${libname}${release}${shared_ext}$major'
  7297. shlibpath_var=LD_LIBRARY_PATH
  7298. ;;
  7299. freebsd1*)
  7300. dynamic_linker=no
  7301. ;;
  7302. kfreebsd*-gnu)
  7303. version_type=linux
  7304. need_lib_prefix=no
  7305. need_version=no
  7306. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7307. soname_spec='${libname}${release}${shared_ext}$major'
  7308. shlibpath_var=LD_LIBRARY_PATH
  7309. shlibpath_overrides_runpath=no
  7310. hardcode_into_libs=yes
  7311. dynamic_linker='GNU ld.so'
  7312. ;;
  7313. freebsd* | dragonfly*)
  7314. # DragonFly does not have aout. When/if they implement a new
  7315. # versioning mechanism, adjust this.
  7316. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  7317. version_type=freebsd-$objformat
  7318. case $version_type in
  7319. freebsd-elf*)
  7320. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7321. need_version=no
  7322. need_lib_prefix=no
  7323. ;;
  7324. freebsd-*)
  7325. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  7326. need_version=yes
  7327. ;;
  7328. esac
  7329. shlibpath_var=LD_LIBRARY_PATH
  7330. case $host_os in
  7331. freebsd2*)
  7332. shlibpath_overrides_runpath=yes
  7333. ;;
  7334. freebsd3.[01]* | freebsdelf3.[01]*)
  7335. shlibpath_overrides_runpath=yes
  7336. hardcode_into_libs=yes
  7337. ;;
  7338. *) # from 3.2 on
  7339. shlibpath_overrides_runpath=no
  7340. hardcode_into_libs=yes
  7341. ;;
  7342. esac
  7343. ;;
  7344. gnu*)
  7345. version_type=linux
  7346. need_lib_prefix=no
  7347. need_version=no
  7348. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  7349. soname_spec='${libname}${release}${shared_ext}$major'
  7350. shlibpath_var=LD_LIBRARY_PATH
  7351. hardcode_into_libs=yes
  7352. ;;
  7353. hpux9* | hpux10* | hpux11*)
  7354. # Give a soname corresponding to the major version so that dld.sl refuses to
  7355. # link against other versions.
  7356. version_type=sunos
  7357. need_lib_prefix=no
  7358. need_version=no
  7359. case "$host_cpu" in
  7360. ia64*)
  7361. shrext_cmds='.so'
  7362. hardcode_into_libs=yes
  7363. dynamic_linker="$host_os dld.so"
  7364. shlibpath_var=LD_LIBRARY_PATH
  7365. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7366. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7367. soname_spec='${libname}${release}${shared_ext}$major'
  7368. if test "X$HPUX_IA64_MODE" = X32; then
  7369. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  7370. else
  7371. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  7372. fi
  7373. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7374. ;;
  7375. hppa*64*)
  7376. shrext_cmds='.sl'
  7377. hardcode_into_libs=yes
  7378. dynamic_linker="$host_os dld.sl"
  7379. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  7380. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7381. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7382. soname_spec='${libname}${release}${shared_ext}$major'
  7383. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  7384. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7385. ;;
  7386. *)
  7387. shrext_cmds='.sl'
  7388. dynamic_linker="$host_os dld.sl"
  7389. shlibpath_var=SHLIB_PATH
  7390. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  7391. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7392. soname_spec='${libname}${release}${shared_ext}$major'
  7393. ;;
  7394. esac
  7395. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  7396. postinstall_cmds='chmod 555 $lib'
  7397. ;;
  7398. irix5* | irix6* | nonstopux*)
  7399. case $host_os in
  7400. nonstopux*) version_type=nonstopux ;;
  7401. *)
  7402. if test "$lt_cv_prog_gnu_ld" = yes; then
  7403. version_type=linux
  7404. else
  7405. version_type=irix
  7406. fi ;;
  7407. esac
  7408. need_lib_prefix=no
  7409. need_version=no
  7410. soname_spec='${libname}${release}${shared_ext}$major'
  7411. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  7412. case $host_os in
  7413. irix5* | nonstopux*)
  7414. libsuff= shlibsuff=
  7415. ;;
  7416. *)
  7417. case $LD in # libtool.m4 will add one of these switches to LD
  7418. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  7419. libsuff= shlibsuff= libmagic=32-bit;;
  7420. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  7421. libsuff=32 shlibsuff=N32 libmagic=N32;;
  7422. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  7423. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  7424. *) libsuff= shlibsuff= libmagic=never-match;;
  7425. esac
  7426. ;;
  7427. esac
  7428. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  7429. shlibpath_overrides_runpath=no
  7430. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  7431. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  7432. hardcode_into_libs=yes
  7433. ;;
  7434. # No shared lib support for Linux oldld, aout, or coff.
  7435. linux*oldld* | linux*aout* | linux*coff*)
  7436. dynamic_linker=no
  7437. ;;
  7438. # This must be Linux ELF.
  7439. linux*)
  7440. version_type=linux
  7441. need_lib_prefix=no
  7442. need_version=no
  7443. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7444. soname_spec='${libname}${release}${shared_ext}$major'
  7445. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  7446. shlibpath_var=LD_LIBRARY_PATH
  7447. shlibpath_overrides_runpath=no
  7448. # This implies no fast_install, which is unacceptable.
  7449. # Some rework will be needed to allow for fast_install
  7450. # before this can be enabled.
  7451. hardcode_into_libs=yes
  7452. # Append ld.so.conf contents to the search path
  7453. if test -f /etc/ld.so.conf; then
  7454. 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' ' '`
  7455. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  7456. fi
  7457. # We used to test for /lib/ld.so.1 and disable shared libraries on
  7458. # powerpc, because MkLinux only supported shared libraries with the
  7459. # GNU dynamic linker. Since this was broken with cross compilers,
  7460. # most powerpc-linux boxes support dynamic linking these days and
  7461. # people can always --disable-shared, the test was removed, and we
  7462. # assume the GNU/Linux dynamic linker is in use.
  7463. dynamic_linker='GNU/Linux ld.so'
  7464. ;;
  7465. knetbsd*-gnu)
  7466. version_type=linux
  7467. need_lib_prefix=no
  7468. need_version=no
  7469. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7470. soname_spec='${libname}${release}${shared_ext}$major'
  7471. shlibpath_var=LD_LIBRARY_PATH
  7472. shlibpath_overrides_runpath=no
  7473. hardcode_into_libs=yes
  7474. dynamic_linker='GNU ld.so'
  7475. ;;
  7476. netbsd*)
  7477. version_type=sunos
  7478. need_lib_prefix=no
  7479. need_version=no
  7480. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7481. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7482. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7483. dynamic_linker='NetBSD (a.out) ld.so'
  7484. else
  7485. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7486. soname_spec='${libname}${release}${shared_ext}$major'
  7487. dynamic_linker='NetBSD ld.elf_so'
  7488. fi
  7489. shlibpath_var=LD_LIBRARY_PATH
  7490. shlibpath_overrides_runpath=yes
  7491. hardcode_into_libs=yes
  7492. ;;
  7493. newsos6)
  7494. version_type=linux
  7495. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7496. shlibpath_var=LD_LIBRARY_PATH
  7497. shlibpath_overrides_runpath=yes
  7498. ;;
  7499. nto-qnx*)
  7500. version_type=linux
  7501. need_lib_prefix=no
  7502. need_version=no
  7503. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7504. soname_spec='${libname}${release}${shared_ext}$major'
  7505. shlibpath_var=LD_LIBRARY_PATH
  7506. shlibpath_overrides_runpath=yes
  7507. ;;
  7508. openbsd*)
  7509. version_type=sunos
  7510. need_lib_prefix=no
  7511. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  7512. case $host_os in
  7513. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  7514. *) need_version=no ;;
  7515. esac
  7516. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7517. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7518. shlibpath_var=LD_LIBRARY_PATH
  7519. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7520. case $host_os in
  7521. openbsd2.[89] | openbsd2.[89].*)
  7522. shlibpath_overrides_runpath=no
  7523. ;;
  7524. *)
  7525. shlibpath_overrides_runpath=yes
  7526. ;;
  7527. esac
  7528. else
  7529. shlibpath_overrides_runpath=yes
  7530. fi
  7531. ;;
  7532. os2*)
  7533. libname_spec='$name'
  7534. shrext_cmds=".dll"
  7535. need_lib_prefix=no
  7536. library_names_spec='$libname${shared_ext} $libname.a'
  7537. dynamic_linker='OS/2 ld.exe'
  7538. shlibpath_var=LIBPATH
  7539. ;;
  7540. osf3* | osf4* | osf5*)
  7541. version_type=osf
  7542. need_lib_prefix=no
  7543. need_version=no
  7544. soname_spec='${libname}${release}${shared_ext}$major'
  7545. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7546. shlibpath_var=LD_LIBRARY_PATH
  7547. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  7548. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  7549. ;;
  7550. sco3.2v5*)
  7551. version_type=osf
  7552. soname_spec='${libname}${release}${shared_ext}$major'
  7553. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7554. shlibpath_var=LD_LIBRARY_PATH
  7555. ;;
  7556. solaris*)
  7557. version_type=linux
  7558. need_lib_prefix=no
  7559. need_version=no
  7560. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7561. soname_spec='${libname}${release}${shared_ext}$major'
  7562. shlibpath_var=LD_LIBRARY_PATH
  7563. shlibpath_overrides_runpath=yes
  7564. hardcode_into_libs=yes
  7565. # ldd complains unless libraries are executable
  7566. postinstall_cmds='chmod +x $lib'
  7567. ;;
  7568. sunos4*)
  7569. version_type=sunos
  7570. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7571. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  7572. shlibpath_var=LD_LIBRARY_PATH
  7573. shlibpath_overrides_runpath=yes
  7574. if test "$with_gnu_ld" = yes; then
  7575. need_lib_prefix=no
  7576. fi
  7577. need_version=yes
  7578. ;;
  7579. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7580. version_type=linux
  7581. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7582. soname_spec='${libname}${release}${shared_ext}$major'
  7583. shlibpath_var=LD_LIBRARY_PATH
  7584. case $host_vendor in
  7585. sni)
  7586. shlibpath_overrides_runpath=no
  7587. need_lib_prefix=no
  7588. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7589. runpath_var=LD_RUN_PATH
  7590. ;;
  7591. siemens)
  7592. need_lib_prefix=no
  7593. ;;
  7594. motorola)
  7595. need_lib_prefix=no
  7596. need_version=no
  7597. shlibpath_overrides_runpath=no
  7598. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  7599. ;;
  7600. esac
  7601. ;;
  7602. sysv4*MP*)
  7603. if test -d /usr/nec ;then
  7604. version_type=linux
  7605. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  7606. soname_spec='$libname${shared_ext}.$major'
  7607. shlibpath_var=LD_LIBRARY_PATH
  7608. fi
  7609. ;;
  7610. uts4*)
  7611. version_type=linux
  7612. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7613. soname_spec='${libname}${release}${shared_ext}$major'
  7614. shlibpath_var=LD_LIBRARY_PATH
  7615. ;;
  7616. *)
  7617. dynamic_linker=no
  7618. ;;
  7619. esac
  7620. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  7621. echo "${ECHO_T}$dynamic_linker" >&6
  7622. test "$dynamic_linker" = no && can_build_shared=no
  7623. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  7624. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  7625. hardcode_action=
  7626. if test -n "$hardcode_libdir_flag_spec" || \
  7627. test -n "$runpath_var" || \
  7628. test "X$hardcode_automatic" = "Xyes" ; then
  7629. # We can hardcode non-existant directories.
  7630. if test "$hardcode_direct" != no &&
  7631. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  7632. # have to relink, otherwise we might link with an installed library
  7633. # when we should be linking with a yet-to-be-installed one
  7634. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  7635. test "$hardcode_minus_L" != no; then
  7636. # Linking always hardcodes the temporary library directory.
  7637. hardcode_action=relink
  7638. else
  7639. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  7640. hardcode_action=immediate
  7641. fi
  7642. else
  7643. # We cannot hardcode anything, or else we can only hardcode existing
  7644. # directories.
  7645. hardcode_action=unsupported
  7646. fi
  7647. echo "$as_me:$LINENO: result: $hardcode_action" >&5
  7648. echo "${ECHO_T}$hardcode_action" >&6
  7649. if test "$hardcode_action" = relink; then
  7650. # Fast installation is not supported
  7651. enable_fast_install=no
  7652. elif test "$shlibpath_overrides_runpath" = yes ||
  7653. test "$enable_shared" = no; then
  7654. # Fast installation is not necessary
  7655. enable_fast_install=needless
  7656. fi
  7657. striplib=
  7658. old_striplib=
  7659. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  7660. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  7661. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  7662. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  7663. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  7664. echo "$as_me:$LINENO: result: yes" >&5
  7665. echo "${ECHO_T}yes" >&6
  7666. else
  7667. # FIXME - insert some real tests, host_os isn't really good enough
  7668. case $host_os in
  7669. darwin*)
  7670. if test -n "$STRIP" ; then
  7671. striplib="$STRIP -x"
  7672. echo "$as_me:$LINENO: result: yes" >&5
  7673. echo "${ECHO_T}yes" >&6
  7674. else
  7675. echo "$as_me:$LINENO: result: no" >&5
  7676. echo "${ECHO_T}no" >&6
  7677. fi
  7678. ;;
  7679. *)
  7680. echo "$as_me:$LINENO: result: no" >&5
  7681. echo "${ECHO_T}no" >&6
  7682. ;;
  7683. esac
  7684. fi
  7685. if test "x$enable_dlopen" != xyes; then
  7686. enable_dlopen=unknown
  7687. enable_dlopen_self=unknown
  7688. enable_dlopen_self_static=unknown
  7689. else
  7690. lt_cv_dlopen=no
  7691. lt_cv_dlopen_libs=
  7692. case $host_os in
  7693. beos*)
  7694. lt_cv_dlopen="load_add_on"
  7695. lt_cv_dlopen_libs=
  7696. lt_cv_dlopen_self=yes
  7697. ;;
  7698. mingw* | pw32*)
  7699. lt_cv_dlopen="LoadLibrary"
  7700. lt_cv_dlopen_libs=
  7701. ;;
  7702. cygwin*)
  7703. lt_cv_dlopen="dlopen"
  7704. lt_cv_dlopen_libs=
  7705. ;;
  7706. darwin*)
  7707. # if libdl is installed we need to link against it
  7708. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  7709. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  7710. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  7711. echo $ECHO_N "(cached) $ECHO_C" >&6
  7712. else
  7713. ac_check_lib_save_LIBS=$LIBS
  7714. LIBS="-ldl $LIBS"
  7715. cat >conftest.$ac_ext <<_ACEOF
  7716. /* confdefs.h. */
  7717. _ACEOF
  7718. cat confdefs.h >>conftest.$ac_ext
  7719. cat >>conftest.$ac_ext <<_ACEOF
  7720. /* end confdefs.h. */
  7721. /* Override any gcc2 internal prototype to avoid an error. */
  7722. #ifdef __cplusplus
  7723. extern "C"
  7724. #endif
  7725. /* We use char because int might match the return type of a gcc2
  7726. builtin and then its argument prototype would still apply. */
  7727. char dlopen ();
  7728. int
  7729. main ()
  7730. {
  7731. dlopen ();
  7732. ;
  7733. return 0;
  7734. }
  7735. _ACEOF
  7736. rm -f conftest.$ac_objext conftest$ac_exeext
  7737. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7738. (eval $ac_link) 2>conftest.er1
  7739. ac_status=$?
  7740. grep -v '^ *+' conftest.er1 >conftest.err
  7741. rm -f conftest.er1
  7742. cat conftest.err >&5
  7743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7744. (exit $ac_status); } &&
  7745. { ac_try='test -z "$ac_c_werror_flag"
  7746. || test ! -s conftest.err'
  7747. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7748. (eval $ac_try) 2>&5
  7749. ac_status=$?
  7750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7751. (exit $ac_status); }; } &&
  7752. { ac_try='test -s conftest$ac_exeext'
  7753. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7754. (eval $ac_try) 2>&5
  7755. ac_status=$?
  7756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7757. (exit $ac_status); }; }; then
  7758. ac_cv_lib_dl_dlopen=yes
  7759. else
  7760. echo "$as_me: failed program was:" >&5
  7761. sed 's/^/| /' conftest.$ac_ext >&5
  7762. ac_cv_lib_dl_dlopen=no
  7763. fi
  7764. rm -f conftest.err conftest.$ac_objext \
  7765. conftest$ac_exeext conftest.$ac_ext
  7766. LIBS=$ac_check_lib_save_LIBS
  7767. fi
  7768. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  7769. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  7770. if test $ac_cv_lib_dl_dlopen = yes; then
  7771. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7772. else
  7773. lt_cv_dlopen="dyld"
  7774. lt_cv_dlopen_libs=
  7775. lt_cv_dlopen_self=yes
  7776. fi
  7777. ;;
  7778. *)
  7779. echo "$as_me:$LINENO: checking for shl_load" >&5
  7780. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  7781. if test "${ac_cv_func_shl_load+set}" = set; then
  7782. echo $ECHO_N "(cached) $ECHO_C" >&6
  7783. else
  7784. cat >conftest.$ac_ext <<_ACEOF
  7785. /* confdefs.h. */
  7786. _ACEOF
  7787. cat confdefs.h >>conftest.$ac_ext
  7788. cat >>conftest.$ac_ext <<_ACEOF
  7789. /* end confdefs.h. */
  7790. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  7791. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7792. #define shl_load innocuous_shl_load
  7793. /* System header to define __stub macros and hopefully few prototypes,
  7794. which can conflict with char shl_load (); below.
  7795. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7796. <limits.h> exists even on freestanding compilers. */
  7797. #ifdef __STDC__
  7798. # include <limits.h>
  7799. #else
  7800. # include <assert.h>
  7801. #endif
  7802. #undef shl_load
  7803. /* Override any gcc2 internal prototype to avoid an error. */
  7804. #ifdef __cplusplus
  7805. extern "C"
  7806. {
  7807. #endif
  7808. /* We use char because int might match the return type of a gcc2
  7809. builtin and then its argument prototype would still apply. */
  7810. char shl_load ();
  7811. /* The GNU C library defines this for functions which it implements
  7812. to always fail with ENOSYS. Some functions are actually named
  7813. something starting with __ and the normal name is an alias. */
  7814. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  7815. choke me
  7816. #else
  7817. char (*f) () = shl_load;
  7818. #endif
  7819. #ifdef __cplusplus
  7820. }
  7821. #endif
  7822. int
  7823. main ()
  7824. {
  7825. return f != shl_load;
  7826. ;
  7827. return 0;
  7828. }
  7829. _ACEOF
  7830. rm -f conftest.$ac_objext conftest$ac_exeext
  7831. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7832. (eval $ac_link) 2>conftest.er1
  7833. ac_status=$?
  7834. grep -v '^ *+' conftest.er1 >conftest.err
  7835. rm -f conftest.er1
  7836. cat conftest.err >&5
  7837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7838. (exit $ac_status); } &&
  7839. { ac_try='test -z "$ac_c_werror_flag"
  7840. || test ! -s conftest.err'
  7841. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7842. (eval $ac_try) 2>&5
  7843. ac_status=$?
  7844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7845. (exit $ac_status); }; } &&
  7846. { ac_try='test -s conftest$ac_exeext'
  7847. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7848. (eval $ac_try) 2>&5
  7849. ac_status=$?
  7850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7851. (exit $ac_status); }; }; then
  7852. ac_cv_func_shl_load=yes
  7853. else
  7854. echo "$as_me: failed program was:" >&5
  7855. sed 's/^/| /' conftest.$ac_ext >&5
  7856. ac_cv_func_shl_load=no
  7857. fi
  7858. rm -f conftest.err conftest.$ac_objext \
  7859. conftest$ac_exeext conftest.$ac_ext
  7860. fi
  7861. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  7862. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  7863. if test $ac_cv_func_shl_load = yes; then
  7864. lt_cv_dlopen="shl_load"
  7865. else
  7866. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  7867. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  7868. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  7869. echo $ECHO_N "(cached) $ECHO_C" >&6
  7870. else
  7871. ac_check_lib_save_LIBS=$LIBS
  7872. LIBS="-ldld $LIBS"
  7873. cat >conftest.$ac_ext <<_ACEOF
  7874. /* confdefs.h. */
  7875. _ACEOF
  7876. cat confdefs.h >>conftest.$ac_ext
  7877. cat >>conftest.$ac_ext <<_ACEOF
  7878. /* end confdefs.h. */
  7879. /* Override any gcc2 internal prototype to avoid an error. */
  7880. #ifdef __cplusplus
  7881. extern "C"
  7882. #endif
  7883. /* We use char because int might match the return type of a gcc2
  7884. builtin and then its argument prototype would still apply. */
  7885. char shl_load ();
  7886. int
  7887. main ()
  7888. {
  7889. shl_load ();
  7890. ;
  7891. return 0;
  7892. }
  7893. _ACEOF
  7894. rm -f conftest.$ac_objext conftest$ac_exeext
  7895. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7896. (eval $ac_link) 2>conftest.er1
  7897. ac_status=$?
  7898. grep -v '^ *+' conftest.er1 >conftest.err
  7899. rm -f conftest.er1
  7900. cat conftest.err >&5
  7901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7902. (exit $ac_status); } &&
  7903. { ac_try='test -z "$ac_c_werror_flag"
  7904. || test ! -s conftest.err'
  7905. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7906. (eval $ac_try) 2>&5
  7907. ac_status=$?
  7908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7909. (exit $ac_status); }; } &&
  7910. { ac_try='test -s conftest$ac_exeext'
  7911. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7912. (eval $ac_try) 2>&5
  7913. ac_status=$?
  7914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7915. (exit $ac_status); }; }; then
  7916. ac_cv_lib_dld_shl_load=yes
  7917. else
  7918. echo "$as_me: failed program was:" >&5
  7919. sed 's/^/| /' conftest.$ac_ext >&5
  7920. ac_cv_lib_dld_shl_load=no
  7921. fi
  7922. rm -f conftest.err conftest.$ac_objext \
  7923. conftest$ac_exeext conftest.$ac_ext
  7924. LIBS=$ac_check_lib_save_LIBS
  7925. fi
  7926. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  7927. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  7928. if test $ac_cv_lib_dld_shl_load = yes; then
  7929. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  7930. else
  7931. echo "$as_me:$LINENO: checking for dlopen" >&5
  7932. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  7933. if test "${ac_cv_func_dlopen+set}" = set; then
  7934. echo $ECHO_N "(cached) $ECHO_C" >&6
  7935. else
  7936. cat >conftest.$ac_ext <<_ACEOF
  7937. /* confdefs.h. */
  7938. _ACEOF
  7939. cat confdefs.h >>conftest.$ac_ext
  7940. cat >>conftest.$ac_ext <<_ACEOF
  7941. /* end confdefs.h. */
  7942. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  7943. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7944. #define dlopen innocuous_dlopen
  7945. /* System header to define __stub macros and hopefully few prototypes,
  7946. which can conflict with char dlopen (); below.
  7947. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7948. <limits.h> exists even on freestanding compilers. */
  7949. #ifdef __STDC__
  7950. # include <limits.h>
  7951. #else
  7952. # include <assert.h>
  7953. #endif
  7954. #undef dlopen
  7955. /* Override any gcc2 internal prototype to avoid an error. */
  7956. #ifdef __cplusplus
  7957. extern "C"
  7958. {
  7959. #endif
  7960. /* We use char because int might match the return type of a gcc2
  7961. builtin and then its argument prototype would still apply. */
  7962. char dlopen ();
  7963. /* The GNU C library defines this for functions which it implements
  7964. to always fail with ENOSYS. Some functions are actually named
  7965. something starting with __ and the normal name is an alias. */
  7966. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  7967. choke me
  7968. #else
  7969. char (*f) () = dlopen;
  7970. #endif
  7971. #ifdef __cplusplus
  7972. }
  7973. #endif
  7974. int
  7975. main ()
  7976. {
  7977. return f != dlopen;
  7978. ;
  7979. return 0;
  7980. }
  7981. _ACEOF
  7982. rm -f conftest.$ac_objext conftest$ac_exeext
  7983. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7984. (eval $ac_link) 2>conftest.er1
  7985. ac_status=$?
  7986. grep -v '^ *+' conftest.er1 >conftest.err
  7987. rm -f conftest.er1
  7988. cat conftest.err >&5
  7989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7990. (exit $ac_status); } &&
  7991. { ac_try='test -z "$ac_c_werror_flag"
  7992. || test ! -s conftest.err'
  7993. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7994. (eval $ac_try) 2>&5
  7995. ac_status=$?
  7996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7997. (exit $ac_status); }; } &&
  7998. { ac_try='test -s conftest$ac_exeext'
  7999. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8000. (eval $ac_try) 2>&5
  8001. ac_status=$?
  8002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8003. (exit $ac_status); }; }; then
  8004. ac_cv_func_dlopen=yes
  8005. else
  8006. echo "$as_me: failed program was:" >&5
  8007. sed 's/^/| /' conftest.$ac_ext >&5
  8008. ac_cv_func_dlopen=no
  8009. fi
  8010. rm -f conftest.err conftest.$ac_objext \
  8011. conftest$ac_exeext conftest.$ac_ext
  8012. fi
  8013. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8014. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  8015. if test $ac_cv_func_dlopen = yes; then
  8016. lt_cv_dlopen="dlopen"
  8017. else
  8018. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8019. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  8020. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8021. echo $ECHO_N "(cached) $ECHO_C" >&6
  8022. else
  8023. ac_check_lib_save_LIBS=$LIBS
  8024. LIBS="-ldl $LIBS"
  8025. cat >conftest.$ac_ext <<_ACEOF
  8026. /* confdefs.h. */
  8027. _ACEOF
  8028. cat confdefs.h >>conftest.$ac_ext
  8029. cat >>conftest.$ac_ext <<_ACEOF
  8030. /* end confdefs.h. */
  8031. /* Override any gcc2 internal prototype to avoid an error. */
  8032. #ifdef __cplusplus
  8033. extern "C"
  8034. #endif
  8035. /* We use char because int might match the return type of a gcc2
  8036. builtin and then its argument prototype would still apply. */
  8037. char dlopen ();
  8038. int
  8039. main ()
  8040. {
  8041. dlopen ();
  8042. ;
  8043. return 0;
  8044. }
  8045. _ACEOF
  8046. rm -f conftest.$ac_objext conftest$ac_exeext
  8047. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8048. (eval $ac_link) 2>conftest.er1
  8049. ac_status=$?
  8050. grep -v '^ *+' conftest.er1 >conftest.err
  8051. rm -f conftest.er1
  8052. cat conftest.err >&5
  8053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8054. (exit $ac_status); } &&
  8055. { ac_try='test -z "$ac_c_werror_flag"
  8056. || test ! -s conftest.err'
  8057. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8058. (eval $ac_try) 2>&5
  8059. ac_status=$?
  8060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8061. (exit $ac_status); }; } &&
  8062. { ac_try='test -s conftest$ac_exeext'
  8063. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8064. (eval $ac_try) 2>&5
  8065. ac_status=$?
  8066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8067. (exit $ac_status); }; }; then
  8068. ac_cv_lib_dl_dlopen=yes
  8069. else
  8070. echo "$as_me: failed program was:" >&5
  8071. sed 's/^/| /' conftest.$ac_ext >&5
  8072. ac_cv_lib_dl_dlopen=no
  8073. fi
  8074. rm -f conftest.err conftest.$ac_objext \
  8075. conftest$ac_exeext conftest.$ac_ext
  8076. LIBS=$ac_check_lib_save_LIBS
  8077. fi
  8078. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8079. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  8080. if test $ac_cv_lib_dl_dlopen = yes; then
  8081. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8082. else
  8083. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8084. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  8085. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8086. echo $ECHO_N "(cached) $ECHO_C" >&6
  8087. else
  8088. ac_check_lib_save_LIBS=$LIBS
  8089. LIBS="-lsvld $LIBS"
  8090. cat >conftest.$ac_ext <<_ACEOF
  8091. /* confdefs.h. */
  8092. _ACEOF
  8093. cat confdefs.h >>conftest.$ac_ext
  8094. cat >>conftest.$ac_ext <<_ACEOF
  8095. /* end confdefs.h. */
  8096. /* Override any gcc2 internal prototype to avoid an error. */
  8097. #ifdef __cplusplus
  8098. extern "C"
  8099. #endif
  8100. /* We use char because int might match the return type of a gcc2
  8101. builtin and then its argument prototype would still apply. */
  8102. char dlopen ();
  8103. int
  8104. main ()
  8105. {
  8106. dlopen ();
  8107. ;
  8108. return 0;
  8109. }
  8110. _ACEOF
  8111. rm -f conftest.$ac_objext conftest$ac_exeext
  8112. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8113. (eval $ac_link) 2>conftest.er1
  8114. ac_status=$?
  8115. grep -v '^ *+' conftest.er1 >conftest.err
  8116. rm -f conftest.er1
  8117. cat conftest.err >&5
  8118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8119. (exit $ac_status); } &&
  8120. { ac_try='test -z "$ac_c_werror_flag"
  8121. || test ! -s conftest.err'
  8122. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8123. (eval $ac_try) 2>&5
  8124. ac_status=$?
  8125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8126. (exit $ac_status); }; } &&
  8127. { ac_try='test -s conftest$ac_exeext'
  8128. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8129. (eval $ac_try) 2>&5
  8130. ac_status=$?
  8131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8132. (exit $ac_status); }; }; then
  8133. ac_cv_lib_svld_dlopen=yes
  8134. else
  8135. echo "$as_me: failed program was:" >&5
  8136. sed 's/^/| /' conftest.$ac_ext >&5
  8137. ac_cv_lib_svld_dlopen=no
  8138. fi
  8139. rm -f conftest.err conftest.$ac_objext \
  8140. conftest$ac_exeext conftest.$ac_ext
  8141. LIBS=$ac_check_lib_save_LIBS
  8142. fi
  8143. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8144. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  8145. if test $ac_cv_lib_svld_dlopen = yes; then
  8146. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8147. else
  8148. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8149. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  8150. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8151. echo $ECHO_N "(cached) $ECHO_C" >&6
  8152. else
  8153. ac_check_lib_save_LIBS=$LIBS
  8154. LIBS="-ldld $LIBS"
  8155. cat >conftest.$ac_ext <<_ACEOF
  8156. /* confdefs.h. */
  8157. _ACEOF
  8158. cat confdefs.h >>conftest.$ac_ext
  8159. cat >>conftest.$ac_ext <<_ACEOF
  8160. /* end confdefs.h. */
  8161. /* Override any gcc2 internal prototype to avoid an error. */
  8162. #ifdef __cplusplus
  8163. extern "C"
  8164. #endif
  8165. /* We use char because int might match the return type of a gcc2
  8166. builtin and then its argument prototype would still apply. */
  8167. char dld_link ();
  8168. int
  8169. main ()
  8170. {
  8171. dld_link ();
  8172. ;
  8173. return 0;
  8174. }
  8175. _ACEOF
  8176. rm -f conftest.$ac_objext conftest$ac_exeext
  8177. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8178. (eval $ac_link) 2>conftest.er1
  8179. ac_status=$?
  8180. grep -v '^ *+' conftest.er1 >conftest.err
  8181. rm -f conftest.er1
  8182. cat conftest.err >&5
  8183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8184. (exit $ac_status); } &&
  8185. { ac_try='test -z "$ac_c_werror_flag"
  8186. || test ! -s conftest.err'
  8187. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8188. (eval $ac_try) 2>&5
  8189. ac_status=$?
  8190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8191. (exit $ac_status); }; } &&
  8192. { ac_try='test -s conftest$ac_exeext'
  8193. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8194. (eval $ac_try) 2>&5
  8195. ac_status=$?
  8196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8197. (exit $ac_status); }; }; then
  8198. ac_cv_lib_dld_dld_link=yes
  8199. else
  8200. echo "$as_me: failed program was:" >&5
  8201. sed 's/^/| /' conftest.$ac_ext >&5
  8202. ac_cv_lib_dld_dld_link=no
  8203. fi
  8204. rm -f conftest.err conftest.$ac_objext \
  8205. conftest$ac_exeext conftest.$ac_ext
  8206. LIBS=$ac_check_lib_save_LIBS
  8207. fi
  8208. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  8209. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  8210. if test $ac_cv_lib_dld_dld_link = yes; then
  8211. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  8212. fi
  8213. fi
  8214. fi
  8215. fi
  8216. fi
  8217. fi
  8218. ;;
  8219. esac
  8220. if test "x$lt_cv_dlopen" != xno; then
  8221. enable_dlopen=yes
  8222. else
  8223. enable_dlopen=no
  8224. fi
  8225. case $lt_cv_dlopen in
  8226. dlopen)
  8227. save_CPPFLAGS="$CPPFLAGS"
  8228. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8229. save_LDFLAGS="$LDFLAGS"
  8230. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8231. save_LIBS="$LIBS"
  8232. LIBS="$lt_cv_dlopen_libs $LIBS"
  8233. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  8234. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  8235. if test "${lt_cv_dlopen_self+set}" = set; then
  8236. echo $ECHO_N "(cached) $ECHO_C" >&6
  8237. else
  8238. if test "$cross_compiling" = yes; then :
  8239. lt_cv_dlopen_self=cross
  8240. else
  8241. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8242. lt_status=$lt_dlunknown
  8243. cat > conftest.$ac_ext <<EOF
  8244. #line 9088 "configure"
  8245. #include "confdefs.h"
  8246. #if HAVE_DLFCN_H
  8247. #include <dlfcn.h>
  8248. #endif
  8249. #include <stdio.h>
  8250. #ifdef RTLD_GLOBAL
  8251. # define LT_DLGLOBAL RTLD_GLOBAL
  8252. #else
  8253. # ifdef DL_GLOBAL
  8254. # define LT_DLGLOBAL DL_GLOBAL
  8255. # else
  8256. # define LT_DLGLOBAL 0
  8257. # endif
  8258. #endif
  8259. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8260. find out it does not work in some platform. */
  8261. #ifndef LT_DLLAZY_OR_NOW
  8262. # ifdef RTLD_LAZY
  8263. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8264. # else
  8265. # ifdef DL_LAZY
  8266. # define LT_DLLAZY_OR_NOW DL_LAZY
  8267. # else
  8268. # ifdef RTLD_NOW
  8269. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8270. # else
  8271. # ifdef DL_NOW
  8272. # define LT_DLLAZY_OR_NOW DL_NOW
  8273. # else
  8274. # define LT_DLLAZY_OR_NOW 0
  8275. # endif
  8276. # endif
  8277. # endif
  8278. # endif
  8279. #endif
  8280. #ifdef __cplusplus
  8281. extern "C" void exit (int);
  8282. #endif
  8283. void fnord() { int i=42;}
  8284. int main ()
  8285. {
  8286. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8287. int status = $lt_dlunknown;
  8288. if (self)
  8289. {
  8290. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8291. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8292. /* dlclose (self); */
  8293. }
  8294. exit (status);
  8295. }
  8296. EOF
  8297. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8298. (eval $ac_link) 2>&5
  8299. ac_status=$?
  8300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8301. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8302. (./conftest; exit; ) 2>/dev/null
  8303. lt_status=$?
  8304. case x$lt_status in
  8305. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8306. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8307. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  8308. esac
  8309. else :
  8310. # compilation failed
  8311. lt_cv_dlopen_self=no
  8312. fi
  8313. fi
  8314. rm -fr conftest*
  8315. fi
  8316. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  8317. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  8318. if test "x$lt_cv_dlopen_self" = xyes; then
  8319. LDFLAGS="$LDFLAGS $link_static_flag"
  8320. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  8321. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  8322. if test "${lt_cv_dlopen_self_static+set}" = set; then
  8323. echo $ECHO_N "(cached) $ECHO_C" >&6
  8324. else
  8325. if test "$cross_compiling" = yes; then :
  8326. lt_cv_dlopen_self_static=cross
  8327. else
  8328. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8329. lt_status=$lt_dlunknown
  8330. cat > conftest.$ac_ext <<EOF
  8331. #line 9186 "configure"
  8332. #include "confdefs.h"
  8333. #if HAVE_DLFCN_H
  8334. #include <dlfcn.h>
  8335. #endif
  8336. #include <stdio.h>
  8337. #ifdef RTLD_GLOBAL
  8338. # define LT_DLGLOBAL RTLD_GLOBAL
  8339. #else
  8340. # ifdef DL_GLOBAL
  8341. # define LT_DLGLOBAL DL_GLOBAL
  8342. # else
  8343. # define LT_DLGLOBAL 0
  8344. # endif
  8345. #endif
  8346. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8347. find out it does not work in some platform. */
  8348. #ifndef LT_DLLAZY_OR_NOW
  8349. # ifdef RTLD_LAZY
  8350. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8351. # else
  8352. # ifdef DL_LAZY
  8353. # define LT_DLLAZY_OR_NOW DL_LAZY
  8354. # else
  8355. # ifdef RTLD_NOW
  8356. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8357. # else
  8358. # ifdef DL_NOW
  8359. # define LT_DLLAZY_OR_NOW DL_NOW
  8360. # else
  8361. # define LT_DLLAZY_OR_NOW 0
  8362. # endif
  8363. # endif
  8364. # endif
  8365. # endif
  8366. #endif
  8367. #ifdef __cplusplus
  8368. extern "C" void exit (int);
  8369. #endif
  8370. void fnord() { int i=42;}
  8371. int main ()
  8372. {
  8373. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8374. int status = $lt_dlunknown;
  8375. if (self)
  8376. {
  8377. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8378. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8379. /* dlclose (self); */
  8380. }
  8381. exit (status);
  8382. }
  8383. EOF
  8384. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8385. (eval $ac_link) 2>&5
  8386. ac_status=$?
  8387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8388. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8389. (./conftest; exit; ) 2>/dev/null
  8390. lt_status=$?
  8391. case x$lt_status in
  8392. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  8393. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  8394. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  8395. esac
  8396. else :
  8397. # compilation failed
  8398. lt_cv_dlopen_self_static=no
  8399. fi
  8400. fi
  8401. rm -fr conftest*
  8402. fi
  8403. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  8404. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  8405. fi
  8406. CPPFLAGS="$save_CPPFLAGS"
  8407. LDFLAGS="$save_LDFLAGS"
  8408. LIBS="$save_LIBS"
  8409. ;;
  8410. esac
  8411. case $lt_cv_dlopen_self in
  8412. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  8413. *) enable_dlopen_self=unknown ;;
  8414. esac
  8415. case $lt_cv_dlopen_self_static in
  8416. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  8417. *) enable_dlopen_self_static=unknown ;;
  8418. esac
  8419. fi
  8420. # Report which librarie types wil actually be built
  8421. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  8422. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  8423. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  8424. echo "${ECHO_T}$can_build_shared" >&6
  8425. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  8426. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  8427. test "$can_build_shared" = "no" && enable_shared=no
  8428. # On AIX, shared libraries and static libraries use the same namespace, and
  8429. # are all built from PIC.
  8430. case "$host_os" in
  8431. aix3*)
  8432. test "$enable_shared" = yes && enable_static=no
  8433. if test -n "$RANLIB"; then
  8434. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8435. postinstall_cmds='$RANLIB $lib'
  8436. fi
  8437. ;;
  8438. aix4* | aix5*)
  8439. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8440. test "$enable_shared" = yes && enable_static=no
  8441. fi
  8442. ;;
  8443. esac
  8444. echo "$as_me:$LINENO: result: $enable_shared" >&5
  8445. echo "${ECHO_T}$enable_shared" >&6
  8446. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  8447. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  8448. # Make sure either enable_shared or enable_static is yes.
  8449. test "$enable_shared" = yes || enable_static=yes
  8450. echo "$as_me:$LINENO: result: $enable_static" >&5
  8451. echo "${ECHO_T}$enable_static" >&6
  8452. # The else clause should only fire when bootstrapping the
  8453. # libtool distribution, otherwise you forgot to ship ltmain.sh
  8454. # with your package, and you will get complaints that there are
  8455. # no rules to generate ltmain.sh.
  8456. if test -f "$ltmain"; then
  8457. # See if we are running on zsh, and set the options which allow our commands through
  8458. # without removal of \ escapes.
  8459. if test -n "${ZSH_VERSION+set}" ; then
  8460. setopt NO_GLOB_SUBST
  8461. fi
  8462. # Now quote all the things that may contain metacharacters while being
  8463. # careful not to overquote the AC_SUBSTed values. We take copies of the
  8464. # variables and quote the copies for generation of the libtool script.
  8465. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  8466. SED SHELL STRIP \
  8467. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  8468. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  8469. deplibs_check_method reload_flag reload_cmds need_locks \
  8470. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  8471. lt_cv_sys_global_symbol_to_c_name_address \
  8472. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  8473. old_postinstall_cmds old_postuninstall_cmds \
  8474. compiler \
  8475. CC \
  8476. LD \
  8477. lt_prog_compiler_wl \
  8478. lt_prog_compiler_pic \
  8479. lt_prog_compiler_static \
  8480. lt_prog_compiler_no_builtin_flag \
  8481. export_dynamic_flag_spec \
  8482. thread_safe_flag_spec \
  8483. whole_archive_flag_spec \
  8484. enable_shared_with_static_runtimes \
  8485. old_archive_cmds \
  8486. old_archive_from_new_cmds \
  8487. predep_objects \
  8488. postdep_objects \
  8489. predeps \
  8490. postdeps \
  8491. compiler_lib_search_path \
  8492. archive_cmds \
  8493. archive_expsym_cmds \
  8494. postinstall_cmds \
  8495. postuninstall_cmds \
  8496. old_archive_from_expsyms_cmds \
  8497. allow_undefined_flag \
  8498. no_undefined_flag \
  8499. export_symbols_cmds \
  8500. hardcode_libdir_flag_spec \
  8501. hardcode_libdir_flag_spec_ld \
  8502. hardcode_libdir_separator \
  8503. hardcode_automatic \
  8504. module_cmds \
  8505. module_expsym_cmds \
  8506. lt_cv_prog_compiler_c_o \
  8507. exclude_expsyms \
  8508. include_expsyms; do
  8509. case $var in
  8510. old_archive_cmds | \
  8511. old_archive_from_new_cmds | \
  8512. archive_cmds | \
  8513. archive_expsym_cmds | \
  8514. module_cmds | \
  8515. module_expsym_cmds | \
  8516. old_archive_from_expsyms_cmds | \
  8517. export_symbols_cmds | \
  8518. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  8519. postinstall_cmds | postuninstall_cmds | \
  8520. old_postinstall_cmds | old_postuninstall_cmds | \
  8521. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  8522. # Double-quote double-evaled strings.
  8523. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  8524. ;;
  8525. *)
  8526. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  8527. ;;
  8528. esac
  8529. done
  8530. case $lt_echo in
  8531. *'\$0 --fallback-echo"')
  8532. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  8533. ;;
  8534. esac
  8535. cfgfile="${ofile}T"
  8536. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  8537. $rm -f "$cfgfile"
  8538. { echo "$as_me:$LINENO: creating $ofile" >&5
  8539. echo "$as_me: creating $ofile" >&6;}
  8540. cat <<__EOF__ >> "$cfgfile"
  8541. #! $SHELL
  8542. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  8543. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  8544. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  8545. #
  8546. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  8547. # Free Software Foundation, Inc.
  8548. #
  8549. # This file is part of GNU Libtool:
  8550. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  8551. #
  8552. # This program is free software; you can redistribute it and/or modify
  8553. # it under the terms of the GNU General Public License as published by
  8554. # the Free Software Foundation; either version 2 of the License, or
  8555. # (at your option) any later version.
  8556. #
  8557. # This program is distributed in the hope that it will be useful, but
  8558. # WITHOUT ANY WARRANTY; without even the implied warranty of
  8559. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  8560. # General Public License for more details.
  8561. #
  8562. # You should have received a copy of the GNU General Public License
  8563. # along with this program; if not, write to the Free Software
  8564. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  8565. #
  8566. # As a special exception to the GNU General Public License, if you
  8567. # distribute this file as part of a program that contains a
  8568. # configuration script generated by Autoconf, you may include it under
  8569. # the same distribution terms that you use for the rest of that program.
  8570. # A sed program that does not truncate output.
  8571. SED=$lt_SED
  8572. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  8573. Xsed="$SED -e 1s/^X//"
  8574. # The HP-UX ksh and POSIX shell print the target directory to stdout
  8575. # if CDPATH is set.
  8576. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8577. # The names of the tagged configurations supported by this script.
  8578. available_tags=
  8579. # ### BEGIN LIBTOOL CONFIG
  8580. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  8581. # Shell to use when invoking shell scripts.
  8582. SHELL=$lt_SHELL
  8583. # Whether or not to build shared libraries.
  8584. build_libtool_libs=$enable_shared
  8585. # Whether or not to build static libraries.
  8586. build_old_libs=$enable_static
  8587. # Whether or not to add -lc for building shared libraries.
  8588. build_libtool_need_lc=$archive_cmds_need_lc
  8589. # Whether or not to disallow shared libs when runtime libs are static
  8590. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  8591. # Whether or not to optimize for fast installation.
  8592. fast_install=$enable_fast_install
  8593. # The host system.
  8594. host_alias=$host_alias
  8595. host=$host
  8596. host_os=$host_os
  8597. # The build system.
  8598. build_alias=$build_alias
  8599. build=$build
  8600. build_os=$build_os
  8601. # An echo program that does not interpret backslashes.
  8602. echo=$lt_echo
  8603. # The archiver.
  8604. AR=$lt_AR
  8605. AR_FLAGS=$lt_AR_FLAGS
  8606. # A C compiler.
  8607. LTCC=$lt_LTCC
  8608. # A language-specific compiler.
  8609. CC=$lt_compiler
  8610. # Is the compiler the GNU C compiler?
  8611. with_gcc=$GCC
  8612. # An ERE matcher.
  8613. EGREP=$lt_EGREP
  8614. # The linker used to build libraries.
  8615. LD=$lt_LD
  8616. # Whether we need hard or soft links.
  8617. LN_S=$lt_LN_S
  8618. # A BSD-compatible nm program.
  8619. NM=$lt_NM
  8620. # A symbol stripping program
  8621. STRIP=$lt_STRIP
  8622. # Used to examine libraries when file_magic_cmd begins "file"
  8623. MAGIC_CMD=$MAGIC_CMD
  8624. # Used on cygwin: DLL creation program.
  8625. DLLTOOL="$DLLTOOL"
  8626. # Used on cygwin: object dumper.
  8627. OBJDUMP="$OBJDUMP"
  8628. # Used on cygwin: assembler.
  8629. AS="$AS"
  8630. # The name of the directory that contains temporary libtool files.
  8631. objdir=$objdir
  8632. # How to create reloadable object files.
  8633. reload_flag=$lt_reload_flag
  8634. reload_cmds=$lt_reload_cmds
  8635. # How to pass a linker flag through the compiler.
  8636. wl=$lt_lt_prog_compiler_wl
  8637. # Object file suffix (normally "o").
  8638. objext="$ac_objext"
  8639. # Old archive suffix (normally "a").
  8640. libext="$libext"
  8641. # Shared library suffix (normally ".so").
  8642. shrext_cmds='$shrext_cmds'
  8643. # Executable file suffix (normally "").
  8644. exeext="$exeext"
  8645. # Additional compiler flags for building library objects.
  8646. pic_flag=$lt_lt_prog_compiler_pic
  8647. pic_mode=$pic_mode
  8648. # What is the maximum length of a command?
  8649. max_cmd_len=$lt_cv_sys_max_cmd_len
  8650. # Does compiler simultaneously support -c and -o options?
  8651. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  8652. # Must we lock files when doing compilation?
  8653. need_locks=$lt_need_locks
  8654. # Do we need the lib prefix for modules?
  8655. need_lib_prefix=$need_lib_prefix
  8656. # Do we need a version for libraries?
  8657. need_version=$need_version
  8658. # Whether dlopen is supported.
  8659. dlopen_support=$enable_dlopen
  8660. # Whether dlopen of programs is supported.
  8661. dlopen_self=$enable_dlopen_self
  8662. # Whether dlopen of statically linked programs is supported.
  8663. dlopen_self_static=$enable_dlopen_self_static
  8664. # Compiler flag to prevent dynamic linking.
  8665. link_static_flag=$lt_lt_prog_compiler_static
  8666. # Compiler flag to turn off builtin functions.
  8667. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  8668. # Compiler flag to allow reflexive dlopens.
  8669. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  8670. # Compiler flag to generate shared objects directly from archives.
  8671. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  8672. # Compiler flag to generate thread-safe objects.
  8673. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  8674. # Library versioning type.
  8675. version_type=$version_type
  8676. # Format of library name prefix.
  8677. libname_spec=$lt_libname_spec
  8678. # List of archive names. First name is the real one, the rest are links.
  8679. # The last name is the one that the linker finds with -lNAME.
  8680. library_names_spec=$lt_library_names_spec
  8681. # The coded name of the library, if different from the real name.
  8682. soname_spec=$lt_soname_spec
  8683. # Commands used to build and install an old-style archive.
  8684. RANLIB=$lt_RANLIB
  8685. old_archive_cmds=$lt_old_archive_cmds
  8686. old_postinstall_cmds=$lt_old_postinstall_cmds
  8687. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  8688. # Create an old-style archive from a shared archive.
  8689. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  8690. # Create a temporary old-style archive to link instead of a shared archive.
  8691. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  8692. # Commands used to build and install a shared archive.
  8693. archive_cmds=$lt_archive_cmds
  8694. archive_expsym_cmds=$lt_archive_expsym_cmds
  8695. postinstall_cmds=$lt_postinstall_cmds
  8696. postuninstall_cmds=$lt_postuninstall_cmds
  8697. # Commands used to build a loadable module (assumed same as above if empty)
  8698. module_cmds=$lt_module_cmds
  8699. module_expsym_cmds=$lt_module_expsym_cmds
  8700. # Commands to strip libraries.
  8701. old_striplib=$lt_old_striplib
  8702. striplib=$lt_striplib
  8703. # Dependencies to place before the objects being linked to create a
  8704. # shared library.
  8705. predep_objects=$lt_predep_objects
  8706. # Dependencies to place after the objects being linked to create a
  8707. # shared library.
  8708. postdep_objects=$lt_postdep_objects
  8709. # Dependencies to place before the objects being linked to create a
  8710. # shared library.
  8711. predeps=$lt_predeps
  8712. # Dependencies to place after the objects being linked to create a
  8713. # shared library.
  8714. postdeps=$lt_postdeps
  8715. # The library search path used internally by the compiler when linking
  8716. # a shared library.
  8717. compiler_lib_search_path=$lt_compiler_lib_search_path
  8718. # Method to check whether dependent libraries are shared objects.
  8719. deplibs_check_method=$lt_deplibs_check_method
  8720. # Command to use when deplibs_check_method == file_magic.
  8721. file_magic_cmd=$lt_file_magic_cmd
  8722. # Flag that allows shared libraries with undefined symbols to be built.
  8723. allow_undefined_flag=$lt_allow_undefined_flag
  8724. # Flag that forces no undefined symbols.
  8725. no_undefined_flag=$lt_no_undefined_flag
  8726. # Commands used to finish a libtool library installation in a directory.
  8727. finish_cmds=$lt_finish_cmds
  8728. # Same as above, but a single script fragment to be evaled but not shown.
  8729. finish_eval=$lt_finish_eval
  8730. # Take the output of nm and produce a listing of raw symbols and C names.
  8731. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  8732. # Transform the output of nm in a proper C declaration
  8733. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8734. # Transform the output of nm in a C name address pair
  8735. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8736. # This is the shared library runtime path variable.
  8737. runpath_var=$runpath_var
  8738. # This is the shared library path variable.
  8739. shlibpath_var=$shlibpath_var
  8740. # Is shlibpath searched before the hard-coded library search path?
  8741. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8742. # How to hardcode a shared library path into an executable.
  8743. hardcode_action=$hardcode_action
  8744. # Whether we should hardcode library paths into libraries.
  8745. hardcode_into_libs=$hardcode_into_libs
  8746. # Flag to hardcode \$libdir into a binary during linking.
  8747. # This must work even if \$libdir does not exist.
  8748. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  8749. # If ld is used when linking, flag to hardcode \$libdir into
  8750. # a binary during linking. This must work even if \$libdir does
  8751. # not exist.
  8752. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  8753. # Whether we need a single -rpath flag with a separated argument.
  8754. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  8755. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  8756. # resulting binary.
  8757. hardcode_direct=$hardcode_direct
  8758. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8759. # resulting binary.
  8760. hardcode_minus_L=$hardcode_minus_L
  8761. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8762. # the resulting binary.
  8763. hardcode_shlibpath_var=$hardcode_shlibpath_var
  8764. # Set to yes if building a shared library automatically hardcodes DIR into the library
  8765. # and all subsequent libraries and executables linked against it.
  8766. hardcode_automatic=$hardcode_automatic
  8767. # Variables whose values should be saved in libtool wrapper scripts and
  8768. # restored at relink time.
  8769. variables_saved_for_relink="$variables_saved_for_relink"
  8770. # Whether libtool must link a program against all its dependency libraries.
  8771. link_all_deplibs=$link_all_deplibs
  8772. # Compile-time system search path for libraries
  8773. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  8774. # Run-time system search path for libraries
  8775. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  8776. # Fix the shell variable \$srcfile for the compiler.
  8777. fix_srcfile_path="$fix_srcfile_path"
  8778. # Set to yes if exported symbols are required.
  8779. always_export_symbols=$always_export_symbols
  8780. # The commands to list exported symbols.
  8781. export_symbols_cmds=$lt_export_symbols_cmds
  8782. # The commands to extract the exported symbol list from a shared archive.
  8783. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  8784. # Symbols that should not be listed in the preloaded symbols.
  8785. exclude_expsyms=$lt_exclude_expsyms
  8786. # Symbols that must always be exported.
  8787. include_expsyms=$lt_include_expsyms
  8788. # ### END LIBTOOL CONFIG
  8789. __EOF__
  8790. case $host_os in
  8791. aix3*)
  8792. cat <<\EOF >> "$cfgfile"
  8793. # AIX sometimes has problems with the GCC collect2 program. For some
  8794. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8795. # vanish in a puff of smoke.
  8796. if test "X${COLLECT_NAMES+set}" != Xset; then
  8797. COLLECT_NAMES=
  8798. export COLLECT_NAMES
  8799. fi
  8800. EOF
  8801. ;;
  8802. esac
  8803. # We use sed instead of cat because bash on DJGPP gets confused if
  8804. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  8805. # text mode, it properly converts lines to CR/LF. This bash problem
  8806. # is reportedly fixed, but why not run on old versions too?
  8807. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  8808. mv -f "$cfgfile" "$ofile" || \
  8809. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  8810. chmod +x "$ofile"
  8811. else
  8812. # If there is no Makefile yet, we rely on a make rule to execute
  8813. # `config.status --recheck' to rerun these tests and create the
  8814. # libtool script then.
  8815. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  8816. if test -f "$ltmain_in"; then
  8817. test -f Makefile && make "$ltmain"
  8818. fi
  8819. fi
  8820. ac_ext=c
  8821. ac_cpp='$CPP $CPPFLAGS'
  8822. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8823. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8824. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8825. CC="$lt_save_CC"
  8826. # Check whether --with-tags or --without-tags was given.
  8827. if test "${with_tags+set}" = set; then
  8828. withval="$with_tags"
  8829. tagnames="$withval"
  8830. fi;
  8831. if test -f "$ltmain" && test -n "$tagnames"; then
  8832. if test ! -f "${ofile}"; then
  8833. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  8834. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  8835. fi
  8836. if test -z "$LTCC"; then
  8837. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  8838. if test -z "$LTCC"; then
  8839. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  8840. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  8841. else
  8842. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  8843. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  8844. fi
  8845. fi
  8846. # Extract list of available tagged configurations in $ofile.
  8847. # Note that this assumes the entire list is on one line.
  8848. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  8849. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8850. for tagname in $tagnames; do
  8851. IFS="$lt_save_ifs"
  8852. # Check whether tagname contains only valid characters
  8853. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  8854. "") ;;
  8855. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  8856. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  8857. { (exit 1); exit 1; }; }
  8858. ;;
  8859. esac
  8860. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  8861. then
  8862. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  8863. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  8864. { (exit 1); exit 1; }; }
  8865. fi
  8866. # Update the list of available tags.
  8867. if test -n "$tagname"; then
  8868. echo appending configuration tag \"$tagname\" to $ofile
  8869. case $tagname in
  8870. CXX)
  8871. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  8872. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  8873. (test "X$CXX" != "Xg++"))) ; then
  8874. ac_ext=cc
  8875. ac_cpp='$CXXCPP $CPPFLAGS'
  8876. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8877. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8878. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8879. archive_cmds_need_lc_CXX=no
  8880. allow_undefined_flag_CXX=
  8881. always_export_symbols_CXX=no
  8882. archive_expsym_cmds_CXX=
  8883. export_dynamic_flag_spec_CXX=
  8884. hardcode_direct_CXX=no
  8885. hardcode_libdir_flag_spec_CXX=
  8886. hardcode_libdir_flag_spec_ld_CXX=
  8887. hardcode_libdir_separator_CXX=
  8888. hardcode_minus_L_CXX=no
  8889. hardcode_automatic_CXX=no
  8890. module_cmds_CXX=
  8891. module_expsym_cmds_CXX=
  8892. link_all_deplibs_CXX=unknown
  8893. old_archive_cmds_CXX=$old_archive_cmds
  8894. no_undefined_flag_CXX=
  8895. whole_archive_flag_spec_CXX=
  8896. enable_shared_with_static_runtimes_CXX=no
  8897. # Dependencies to place before and after the object being linked:
  8898. predep_objects_CXX=
  8899. postdep_objects_CXX=
  8900. predeps_CXX=
  8901. postdeps_CXX=
  8902. compiler_lib_search_path_CXX=
  8903. # Source file extension for C++ test sources.
  8904. ac_ext=cc
  8905. # Object file extension for compiled C++ test sources.
  8906. objext=o
  8907. objext_CXX=$objext
  8908. # Code to be used in simple compile tests
  8909. lt_simple_compile_test_code="int some_variable = 0;\n"
  8910. # Code to be used in simple link tests
  8911. lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
  8912. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8913. # If no C compiler was specified, use CC.
  8914. LTCC=${LTCC-"$CC"}
  8915. # Allow CC to be a program name with arguments.
  8916. compiler=$CC
  8917. # save warnings/boilerplate of simple test code
  8918. ac_outfile=conftest.$ac_objext
  8919. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  8920. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  8921. _lt_compiler_boilerplate=`cat conftest.err`
  8922. $rm conftest*
  8923. ac_outfile=conftest.$ac_objext
  8924. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  8925. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  8926. _lt_linker_boilerplate=`cat conftest.err`
  8927. $rm conftest*
  8928. # Allow CC to be a program name with arguments.
  8929. lt_save_CC=$CC
  8930. lt_save_LD=$LD
  8931. lt_save_GCC=$GCC
  8932. GCC=$GXX
  8933. lt_save_with_gnu_ld=$with_gnu_ld
  8934. lt_save_path_LD=$lt_cv_path_LD
  8935. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  8936. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  8937. else
  8938. unset lt_cv_prog_gnu_ld
  8939. fi
  8940. if test -n "${lt_cv_path_LDCXX+set}"; then
  8941. lt_cv_path_LD=$lt_cv_path_LDCXX
  8942. else
  8943. unset lt_cv_path_LD
  8944. fi
  8945. test -z "${LDCXX+set}" || LD=$LDCXX
  8946. CC=${CXX-"c++"}
  8947. compiler=$CC
  8948. compiler_CXX=$CC
  8949. for cc_temp in $compiler""; do
  8950. case $cc_temp in
  8951. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8952. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8953. \-*) ;;
  8954. *) break;;
  8955. esac
  8956. done
  8957. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  8958. # We don't want -fno-exception wen compiling C++ code, so set the
  8959. # no_builtin_flag separately
  8960. if test "$GXX" = yes; then
  8961. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  8962. else
  8963. lt_prog_compiler_no_builtin_flag_CXX=
  8964. fi
  8965. if test "$GXX" = yes; then
  8966. # Set up default GNU C++ configuration
  8967. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  8968. if test "${with_gnu_ld+set}" = set; then
  8969. withval="$with_gnu_ld"
  8970. test "$withval" = no || with_gnu_ld=yes
  8971. else
  8972. with_gnu_ld=no
  8973. fi;
  8974. ac_prog=ld
  8975. if test "$GCC" = yes; then
  8976. # Check if gcc -print-prog-name=ld gives a path.
  8977. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  8978. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  8979. case $host in
  8980. *-*-mingw*)
  8981. # gcc leaves a trailing carriage return which upsets mingw
  8982. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8983. *)
  8984. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8985. esac
  8986. case $ac_prog in
  8987. # Accept absolute paths.
  8988. [\\/]* | ?:[\\/]*)
  8989. re_direlt='/[^/][^/]*/\.\./'
  8990. # Canonicalize the pathname of ld
  8991. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  8992. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8993. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  8994. done
  8995. test -z "$LD" && LD="$ac_prog"
  8996. ;;
  8997. "")
  8998. # If it fails, then pretend we aren't using GCC.
  8999. ac_prog=ld
  9000. ;;
  9001. *)
  9002. # If it is relative, then search for the first ld in PATH.
  9003. with_gnu_ld=unknown
  9004. ;;
  9005. esac
  9006. elif test "$with_gnu_ld" = yes; then
  9007. echo "$as_me:$LINENO: checking for GNU ld" >&5
  9008. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  9009. else
  9010. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9011. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  9012. fi
  9013. if test "${lt_cv_path_LD+set}" = set; then
  9014. echo $ECHO_N "(cached) $ECHO_C" >&6
  9015. else
  9016. if test -z "$LD"; then
  9017. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9018. for ac_dir in $PATH; do
  9019. IFS="$lt_save_ifs"
  9020. test -z "$ac_dir" && ac_dir=.
  9021. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9022. lt_cv_path_LD="$ac_dir/$ac_prog"
  9023. # Check to see if the program is GNU ld. I'd rather use --version,
  9024. # but apparently some GNU ld's only accept -v.
  9025. # Break only if it was the GNU/non-GNU ld that we prefer.
  9026. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9027. *GNU* | *'with BFD'*)
  9028. test "$with_gnu_ld" != no && break
  9029. ;;
  9030. *)
  9031. test "$with_gnu_ld" != yes && break
  9032. ;;
  9033. esac
  9034. fi
  9035. done
  9036. IFS="$lt_save_ifs"
  9037. else
  9038. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9039. fi
  9040. fi
  9041. LD="$lt_cv_path_LD"
  9042. if test -n "$LD"; then
  9043. echo "$as_me:$LINENO: result: $LD" >&5
  9044. echo "${ECHO_T}$LD" >&6
  9045. else
  9046. echo "$as_me:$LINENO: result: no" >&5
  9047. echo "${ECHO_T}no" >&6
  9048. fi
  9049. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  9050. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  9051. { (exit 1); exit 1; }; }
  9052. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  9053. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  9054. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  9055. echo $ECHO_N "(cached) $ECHO_C" >&6
  9056. else
  9057. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  9058. case `$LD -v 2>&1 </dev/null` in
  9059. *GNU* | *'with BFD'*)
  9060. lt_cv_prog_gnu_ld=yes
  9061. ;;
  9062. *)
  9063. lt_cv_prog_gnu_ld=no
  9064. ;;
  9065. esac
  9066. fi
  9067. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  9068. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  9069. with_gnu_ld=$lt_cv_prog_gnu_ld
  9070. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9071. # archiving commands below assume that GNU ld is being used.
  9072. if test "$with_gnu_ld" = yes; then
  9073. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9074. 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'
  9075. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9076. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9077. # If archive_cmds runs LD, not CC, wlarc should be empty
  9078. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9079. # investigate it a little bit more. (MM)
  9080. wlarc='${wl}'
  9081. # ancient GNU ld didn't support --whole-archive et. al.
  9082. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  9083. grep 'no-whole-archive' > /dev/null; then
  9084. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9085. else
  9086. whole_archive_flag_spec_CXX=
  9087. fi
  9088. else
  9089. with_gnu_ld=no
  9090. wlarc=
  9091. # A generic and very simple default shared library creation
  9092. # command for GNU C++ for the case where it uses the native
  9093. # linker, instead of GNU ld. If possible, this setting should
  9094. # overridden to take advantage of the native linker features on
  9095. # the platform it is being used on.
  9096. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9097. fi
  9098. # Commands to make compiler produce verbose output that lists
  9099. # what "hidden" libraries, object files and flags are used when
  9100. # linking a shared library.
  9101. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9102. else
  9103. GXX=no
  9104. with_gnu_ld=no
  9105. wlarc=
  9106. fi
  9107. # PORTME: fill in a description of your system's C++ link characteristics
  9108. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9109. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  9110. ld_shlibs_CXX=yes
  9111. case $host_os in
  9112. aix3*)
  9113. # FIXME: insert proper C++ library support
  9114. ld_shlibs_CXX=no
  9115. ;;
  9116. aix4* | aix5*)
  9117. if test "$host_cpu" = ia64; then
  9118. # On IA64, the linker does run time linking by default, so we don't
  9119. # have to do anything special.
  9120. aix_use_runtimelinking=no
  9121. exp_sym_flag='-Bexport'
  9122. no_entry_flag=""
  9123. else
  9124. aix_use_runtimelinking=no
  9125. # Test if we are trying to use run time linking or normal
  9126. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9127. # need to do runtime linking.
  9128. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  9129. for ld_flag in $LDFLAGS; do
  9130. case $ld_flag in
  9131. *-brtl*)
  9132. aix_use_runtimelinking=yes
  9133. break
  9134. ;;
  9135. esac
  9136. done
  9137. esac
  9138. exp_sym_flag='-bexport'
  9139. no_entry_flag='-bnoentry'
  9140. fi
  9141. # When large executables or shared objects are built, AIX ld can
  9142. # have problems creating the table of contents. If linking a library
  9143. # or program results in "error TOC overflow" add -mminimal-toc to
  9144. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9145. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9146. archive_cmds_CXX=''
  9147. hardcode_direct_CXX=yes
  9148. hardcode_libdir_separator_CXX=':'
  9149. link_all_deplibs_CXX=yes
  9150. if test "$GXX" = yes; then
  9151. case $host_os in aix4.[012]|aix4.[012].*)
  9152. # We only want to do this on AIX 4.2 and lower, the check
  9153. # below for broken collect2 doesn't work under 4.3+
  9154. collect2name=`${CC} -print-prog-name=collect2`
  9155. if test -f "$collect2name" && \
  9156. strings "$collect2name" | grep resolve_lib_name >/dev/null
  9157. then
  9158. # We have reworked collect2
  9159. hardcode_direct_CXX=yes
  9160. else
  9161. # We have old collect2
  9162. hardcode_direct_CXX=unsupported
  9163. # It fails to find uninstalled libraries when the uninstalled
  9164. # path is not listed in the libpath. Setting hardcode_minus_L
  9165. # to unsupported forces relinking
  9166. hardcode_minus_L_CXX=yes
  9167. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9168. hardcode_libdir_separator_CXX=
  9169. fi
  9170. esac
  9171. shared_flag='-shared'
  9172. if test "$aix_use_runtimelinking" = yes; then
  9173. shared_flag="$shared_flag "'${wl}-G'
  9174. fi
  9175. else
  9176. # not using gcc
  9177. if test "$host_cpu" = ia64; then
  9178. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9179. # chokes on -Wl,-G. The following line is correct:
  9180. shared_flag='-G'
  9181. else
  9182. if test "$aix_use_runtimelinking" = yes; then
  9183. shared_flag='${wl}-G'
  9184. else
  9185. shared_flag='${wl}-bM:SRE'
  9186. fi
  9187. fi
  9188. fi
  9189. # It seems that -bexpall does not export symbols beginning with
  9190. # underscore (_), so it is better to generate a list of symbols to export.
  9191. always_export_symbols_CXX=yes
  9192. if test "$aix_use_runtimelinking" = yes; then
  9193. # Warning - without using the other runtime loading flags (-brtl),
  9194. # -berok will link without error, but may produce a broken library.
  9195. allow_undefined_flag_CXX='-berok'
  9196. # Determine the default libpath from the value encoded in an empty executable.
  9197. cat >conftest.$ac_ext <<_ACEOF
  9198. /* confdefs.h. */
  9199. _ACEOF
  9200. cat confdefs.h >>conftest.$ac_ext
  9201. cat >>conftest.$ac_ext <<_ACEOF
  9202. /* end confdefs.h. */
  9203. int
  9204. main ()
  9205. {
  9206. ;
  9207. return 0;
  9208. }
  9209. _ACEOF
  9210. rm -f conftest.$ac_objext conftest$ac_exeext
  9211. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9212. (eval $ac_link) 2>conftest.er1
  9213. ac_status=$?
  9214. grep -v '^ *+' conftest.er1 >conftest.err
  9215. rm -f conftest.er1
  9216. cat conftest.err >&5
  9217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9218. (exit $ac_status); } &&
  9219. { ac_try='test -z "$ac_cxx_werror_flag"
  9220. || test ! -s conftest.err'
  9221. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9222. (eval $ac_try) 2>&5
  9223. ac_status=$?
  9224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9225. (exit $ac_status); }; } &&
  9226. { ac_try='test -s conftest$ac_exeext'
  9227. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9228. (eval $ac_try) 2>&5
  9229. ac_status=$?
  9230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9231. (exit $ac_status); }; }; then
  9232. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9233. }'`
  9234. # Check for a 64-bit object if we didn't find anything.
  9235. 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; }
  9236. }'`; fi
  9237. else
  9238. echo "$as_me: failed program was:" >&5
  9239. sed 's/^/| /' conftest.$ac_ext >&5
  9240. fi
  9241. rm -f conftest.err conftest.$ac_objext \
  9242. conftest$ac_exeext conftest.$ac_ext
  9243. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9244. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9245. archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  9246. else
  9247. if test "$host_cpu" = ia64; then
  9248. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  9249. allow_undefined_flag_CXX="-z nodefs"
  9250. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  9251. else
  9252. # Determine the default libpath from the value encoded in an empty executable.
  9253. cat >conftest.$ac_ext <<_ACEOF
  9254. /* confdefs.h. */
  9255. _ACEOF
  9256. cat confdefs.h >>conftest.$ac_ext
  9257. cat >>conftest.$ac_ext <<_ACEOF
  9258. /* end confdefs.h. */
  9259. int
  9260. main ()
  9261. {
  9262. ;
  9263. return 0;
  9264. }
  9265. _ACEOF
  9266. rm -f conftest.$ac_objext conftest$ac_exeext
  9267. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9268. (eval $ac_link) 2>conftest.er1
  9269. ac_status=$?
  9270. grep -v '^ *+' conftest.er1 >conftest.err
  9271. rm -f conftest.er1
  9272. cat conftest.err >&5
  9273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9274. (exit $ac_status); } &&
  9275. { ac_try='test -z "$ac_cxx_werror_flag"
  9276. || test ! -s conftest.err'
  9277. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9278. (eval $ac_try) 2>&5
  9279. ac_status=$?
  9280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9281. (exit $ac_status); }; } &&
  9282. { ac_try='test -s conftest$ac_exeext'
  9283. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9284. (eval $ac_try) 2>&5
  9285. ac_status=$?
  9286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9287. (exit $ac_status); }; }; then
  9288. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9289. }'`
  9290. # Check for a 64-bit object if we didn't find anything.
  9291. 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; }
  9292. }'`; fi
  9293. else
  9294. echo "$as_me: failed program was:" >&5
  9295. sed 's/^/| /' conftest.$ac_ext >&5
  9296. fi
  9297. rm -f conftest.err conftest.$ac_objext \
  9298. conftest$ac_exeext conftest.$ac_ext
  9299. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9300. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9301. # Warning - without using the other run time loading flags,
  9302. # -berok will link without error, but may produce a broken library.
  9303. no_undefined_flag_CXX=' ${wl}-bernotok'
  9304. allow_undefined_flag_CXX=' ${wl}-berok'
  9305. # -bexpall does not export symbols beginning with underscore (_)
  9306. always_export_symbols_CXX=yes
  9307. # Exported symbols can be pulled into shared objects from archives
  9308. whole_archive_flag_spec_CXX=' '
  9309. archive_cmds_need_lc_CXX=yes
  9310. # This is similar to how AIX traditionally builds it's shared libraries.
  9311. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  9312. fi
  9313. fi
  9314. ;;
  9315. chorus*)
  9316. case $cc_basename in
  9317. *)
  9318. # FIXME: insert proper C++ library support
  9319. ld_shlibs_CXX=no
  9320. ;;
  9321. esac
  9322. ;;
  9323. cygwin* | mingw* | pw32*)
  9324. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  9325. # as there is no search path for DLLs.
  9326. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9327. allow_undefined_flag_CXX=unsupported
  9328. always_export_symbols_CXX=no
  9329. enable_shared_with_static_runtimes_CXX=yes
  9330. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9331. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  9332. # If the export-symbols file already is a .def file (1st line
  9333. # is EXPORTS), use it as is; otherwise, prepend...
  9334. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9335. cp $export_symbols $output_objdir/$soname.def;
  9336. else
  9337. echo EXPORTS > $output_objdir/$soname.def;
  9338. cat $export_symbols >> $output_objdir/$soname.def;
  9339. fi~
  9340. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  9341. else
  9342. ld_shlibs_CXX=no
  9343. fi
  9344. ;;
  9345. darwin* | rhapsody*)
  9346. case "$host_os" in
  9347. rhapsody* | darwin1.[012])
  9348. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  9349. ;;
  9350. *) # Darwin 1.3 on
  9351. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  9352. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9353. else
  9354. case ${MACOSX_DEPLOYMENT_TARGET} in
  9355. 10.[012])
  9356. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9357. ;;
  9358. 10.*)
  9359. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  9360. ;;
  9361. esac
  9362. fi
  9363. ;;
  9364. esac
  9365. archive_cmds_need_lc_CXX=no
  9366. hardcode_direct_CXX=no
  9367. hardcode_automatic_CXX=yes
  9368. hardcode_shlibpath_var_CXX=unsupported
  9369. whole_archive_flag_spec_CXX=''
  9370. link_all_deplibs_CXX=yes
  9371. if test "$GXX" = yes ; then
  9372. lt_int_apple_cc_single_mod=no
  9373. output_verbose_link_cmd='echo'
  9374. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  9375. lt_int_apple_cc_single_mod=yes
  9376. fi
  9377. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9378. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  9379. else
  9380. 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'
  9381. fi
  9382. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9383. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  9384. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9385. 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}'
  9386. else
  9387. 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}'
  9388. fi
  9389. 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}'
  9390. else
  9391. case $cc_basename in
  9392. xlc*)
  9393. output_verbose_link_cmd='echo'
  9394. 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'
  9395. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9396. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  9397. 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}'
  9398. 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}'
  9399. ;;
  9400. *)
  9401. ld_shlibs_CXX=no
  9402. ;;
  9403. esac
  9404. fi
  9405. ;;
  9406. dgux*)
  9407. case $cc_basename in
  9408. ec++*)
  9409. # FIXME: insert proper C++ library support
  9410. ld_shlibs_CXX=no
  9411. ;;
  9412. ghcx*)
  9413. # Green Hills C++ Compiler
  9414. # FIXME: insert proper C++ library support
  9415. ld_shlibs_CXX=no
  9416. ;;
  9417. *)
  9418. # FIXME: insert proper C++ library support
  9419. ld_shlibs_CXX=no
  9420. ;;
  9421. esac
  9422. ;;
  9423. freebsd[12]*)
  9424. # C++ shared libraries reported to be fairly broken before switch to ELF
  9425. ld_shlibs_CXX=no
  9426. ;;
  9427. freebsd-elf*)
  9428. archive_cmds_need_lc_CXX=no
  9429. ;;
  9430. freebsd* | kfreebsd*-gnu | dragonfly*)
  9431. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9432. # conventions
  9433. ld_shlibs_CXX=yes
  9434. ;;
  9435. gnu*)
  9436. ;;
  9437. hpux9*)
  9438. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9439. hardcode_libdir_separator_CXX=:
  9440. export_dynamic_flag_spec_CXX='${wl}-E'
  9441. hardcode_direct_CXX=yes
  9442. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9443. # but as the default
  9444. # location of the library.
  9445. case $cc_basename in
  9446. CC*)
  9447. # FIXME: insert proper C++ library support
  9448. ld_shlibs_CXX=no
  9449. ;;
  9450. aCC*)
  9451. 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'
  9452. # Commands to make compiler produce verbose output that lists
  9453. # what "hidden" libraries, object files and flags are used when
  9454. # linking a shared library.
  9455. #
  9456. # There doesn't appear to be a way to prevent this compiler from
  9457. # explicitly linking system object files so we need to strip them
  9458. # from the output so that they don't get included in the library
  9459. # dependencies.
  9460. 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'
  9461. ;;
  9462. *)
  9463. if test "$GXX" = yes; then
  9464. 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'
  9465. else
  9466. # FIXME: insert proper C++ library support
  9467. ld_shlibs_CXX=no
  9468. fi
  9469. ;;
  9470. esac
  9471. ;;
  9472. hpux10*|hpux11*)
  9473. if test $with_gnu_ld = no; then
  9474. case "$host_cpu" in
  9475. hppa*64*)
  9476. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9477. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  9478. hardcode_libdir_separator_CXX=:
  9479. ;;
  9480. ia64*)
  9481. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9482. ;;
  9483. *)
  9484. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9485. hardcode_libdir_separator_CXX=:
  9486. export_dynamic_flag_spec_CXX='${wl}-E'
  9487. ;;
  9488. esac
  9489. fi
  9490. case "$host_cpu" in
  9491. hppa*64*)
  9492. hardcode_direct_CXX=no
  9493. hardcode_shlibpath_var_CXX=no
  9494. ;;
  9495. ia64*)
  9496. hardcode_direct_CXX=no
  9497. hardcode_shlibpath_var_CXX=no
  9498. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9499. # but as the default
  9500. # location of the library.
  9501. ;;
  9502. *)
  9503. hardcode_direct_CXX=yes
  9504. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9505. # but as the default
  9506. # location of the library.
  9507. ;;
  9508. esac
  9509. case $cc_basename in
  9510. CC*)
  9511. # FIXME: insert proper C++ library support
  9512. ld_shlibs_CXX=no
  9513. ;;
  9514. aCC*)
  9515. case "$host_cpu" in
  9516. hppa*64*|ia64*)
  9517. archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  9518. ;;
  9519. *)
  9520. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9521. ;;
  9522. esac
  9523. # Commands to make compiler produce verbose output that lists
  9524. # what "hidden" libraries, object files and flags are used when
  9525. # linking a shared library.
  9526. #
  9527. # There doesn't appear to be a way to prevent this compiler from
  9528. # explicitly linking system object files so we need to strip them
  9529. # from the output so that they don't get included in the library
  9530. # dependencies.
  9531. 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'
  9532. ;;
  9533. *)
  9534. if test "$GXX" = yes; then
  9535. if test $with_gnu_ld = no; then
  9536. case "$host_cpu" in
  9537. ia64*|hppa*64*)
  9538. archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  9539. ;;
  9540. *)
  9541. 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'
  9542. ;;
  9543. esac
  9544. fi
  9545. else
  9546. # FIXME: insert proper C++ library support
  9547. ld_shlibs_CXX=no
  9548. fi
  9549. ;;
  9550. esac
  9551. ;;
  9552. irix5* | irix6*)
  9553. case $cc_basename in
  9554. CC*)
  9555. # SGI C++
  9556. 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'
  9557. # Archives containing C++ object files must be created using
  9558. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  9559. # necessary to make sure instantiated templates are included
  9560. # in the archive.
  9561. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  9562. ;;
  9563. *)
  9564. if test "$GXX" = yes; then
  9565. if test "$with_gnu_ld" = no; then
  9566. 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'
  9567. else
  9568. 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'
  9569. fi
  9570. fi
  9571. link_all_deplibs_CXX=yes
  9572. ;;
  9573. esac
  9574. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9575. hardcode_libdir_separator_CXX=:
  9576. ;;
  9577. linux*)
  9578. case $cc_basename in
  9579. KCC*)
  9580. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9581. # KCC will only create a shared library if the output file
  9582. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9583. # to its proper name (with version) after linking.
  9584. 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'
  9585. 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'
  9586. # Commands to make compiler produce verbose output that lists
  9587. # what "hidden" libraries, object files and flags are used when
  9588. # linking a shared library.
  9589. #
  9590. # There doesn't appear to be a way to prevent this compiler from
  9591. # explicitly linking system object files so we need to strip them
  9592. # from the output so that they don't get included in the library
  9593. # dependencies.
  9594. 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'
  9595. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  9596. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9597. # Archives containing C++ object files must be created using
  9598. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9599. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9600. ;;
  9601. icpc*)
  9602. # Intel C++
  9603. with_gnu_ld=yes
  9604. # version 8.0 and above of icpc choke on multiply defined symbols
  9605. # if we add $predep_objects and $postdep_objects, however 7.1 and
  9606. # earlier do not add the objects themselves.
  9607. case `$CC -V 2>&1` in
  9608. *"Version 7."*)
  9609. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9610. 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'
  9611. ;;
  9612. *) # Version 8.0 or newer
  9613. tmp_idyn=
  9614. case $host_cpu in
  9615. ia64*) tmp_idyn=' -i_dynamic';;
  9616. esac
  9617. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9618. 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'
  9619. ;;
  9620. esac
  9621. archive_cmds_need_lc_CXX=no
  9622. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9623. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9624. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9625. ;;
  9626. pgCC*)
  9627. # Portland Group C++ compiler
  9628. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9629. 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'
  9630. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9631. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9632. 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'
  9633. ;;
  9634. cxx*)
  9635. # Compaq C++
  9636. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9637. 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'
  9638. runpath_var=LD_RUN_PATH
  9639. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9640. hardcode_libdir_separator_CXX=:
  9641. # Commands to make compiler produce verbose output that lists
  9642. # what "hidden" libraries, object files and flags are used when
  9643. # linking a shared library.
  9644. #
  9645. # There doesn't appear to be a way to prevent this compiler from
  9646. # explicitly linking system object files so we need to strip them
  9647. # from the output so that they don't get included in the library
  9648. # dependencies.
  9649. 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'
  9650. ;;
  9651. esac
  9652. ;;
  9653. lynxos*)
  9654. # FIXME: insert proper C++ library support
  9655. ld_shlibs_CXX=no
  9656. ;;
  9657. m88k*)
  9658. # FIXME: insert proper C++ library support
  9659. ld_shlibs_CXX=no
  9660. ;;
  9661. mvs*)
  9662. case $cc_basename in
  9663. cxx*)
  9664. # FIXME: insert proper C++ library support
  9665. ld_shlibs_CXX=no
  9666. ;;
  9667. *)
  9668. # FIXME: insert proper C++ library support
  9669. ld_shlibs_CXX=no
  9670. ;;
  9671. esac
  9672. ;;
  9673. netbsd*)
  9674. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9675. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  9676. wlarc=
  9677. hardcode_libdir_flag_spec_CXX='-R$libdir'
  9678. hardcode_direct_CXX=yes
  9679. hardcode_shlibpath_var_CXX=no
  9680. fi
  9681. # Workaround some broken pre-1.5 toolchains
  9682. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  9683. ;;
  9684. openbsd2*)
  9685. # C++ shared libraries are fairly broken
  9686. ld_shlibs_CXX=no
  9687. ;;
  9688. openbsd*)
  9689. hardcode_direct_CXX=yes
  9690. hardcode_shlibpath_var_CXX=no
  9691. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9692. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9693. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9694. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  9695. export_dynamic_flag_spec_CXX='${wl}-E'
  9696. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9697. fi
  9698. output_verbose_link_cmd='echo'
  9699. ;;
  9700. osf3*)
  9701. case $cc_basename in
  9702. KCC*)
  9703. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9704. # KCC will only create a shared library if the output file
  9705. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9706. # to its proper name (with version) after linking.
  9707. 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'
  9708. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9709. hardcode_libdir_separator_CXX=:
  9710. # Archives containing C++ object files must be created using
  9711. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9712. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9713. ;;
  9714. RCC*)
  9715. # Rational C++ 2.4.1
  9716. # FIXME: insert proper C++ library support
  9717. ld_shlibs_CXX=no
  9718. ;;
  9719. cxx*)
  9720. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9721. 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'
  9722. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9723. hardcode_libdir_separator_CXX=:
  9724. # Commands to make compiler produce verbose output that lists
  9725. # what "hidden" libraries, object files and flags are used when
  9726. # linking a shared library.
  9727. #
  9728. # There doesn't appear to be a way to prevent this compiler from
  9729. # explicitly linking system object files so we need to strip them
  9730. # from the output so that they don't get included in the library
  9731. # dependencies.
  9732. 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'
  9733. ;;
  9734. *)
  9735. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9736. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9737. 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'
  9738. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9739. hardcode_libdir_separator_CXX=:
  9740. # Commands to make compiler produce verbose output that lists
  9741. # what "hidden" libraries, object files and flags are used when
  9742. # linking a shared library.
  9743. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9744. else
  9745. # FIXME: insert proper C++ library support
  9746. ld_shlibs_CXX=no
  9747. fi
  9748. ;;
  9749. esac
  9750. ;;
  9751. osf4* | osf5*)
  9752. case $cc_basename in
  9753. KCC*)
  9754. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9755. # KCC will only create a shared library if the output file
  9756. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9757. # to its proper name (with version) after linking.
  9758. 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'
  9759. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9760. hardcode_libdir_separator_CXX=:
  9761. # Archives containing C++ object files must be created using
  9762. # the KAI C++ compiler.
  9763. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  9764. ;;
  9765. RCC*)
  9766. # Rational C++ 2.4.1
  9767. # FIXME: insert proper C++ library support
  9768. ld_shlibs_CXX=no
  9769. ;;
  9770. cxx*)
  9771. allow_undefined_flag_CXX=' -expect_unresolved \*'
  9772. 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'
  9773. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  9774. echo "-hidden">> $lib.exp~
  9775. $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~
  9776. $rm $lib.exp'
  9777. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9778. hardcode_libdir_separator_CXX=:
  9779. # Commands to make compiler produce verbose output that lists
  9780. # what "hidden" libraries, object files and flags are used when
  9781. # linking a shared library.
  9782. #
  9783. # There doesn't appear to be a way to prevent this compiler from
  9784. # explicitly linking system object files so we need to strip them
  9785. # from the output so that they don't get included in the library
  9786. # dependencies.
  9787. 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'
  9788. ;;
  9789. *)
  9790. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9791. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9792. 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'
  9793. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9794. hardcode_libdir_separator_CXX=:
  9795. # Commands to make compiler produce verbose output that lists
  9796. # what "hidden" libraries, object files and flags are used when
  9797. # linking a shared library.
  9798. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9799. else
  9800. # FIXME: insert proper C++ library support
  9801. ld_shlibs_CXX=no
  9802. fi
  9803. ;;
  9804. esac
  9805. ;;
  9806. psos*)
  9807. # FIXME: insert proper C++ library support
  9808. ld_shlibs_CXX=no
  9809. ;;
  9810. sco*)
  9811. archive_cmds_need_lc_CXX=no
  9812. case $cc_basename in
  9813. CC*)
  9814. # FIXME: insert proper C++ library support
  9815. ld_shlibs_CXX=no
  9816. ;;
  9817. *)
  9818. # FIXME: insert proper C++ library support
  9819. ld_shlibs_CXX=no
  9820. ;;
  9821. esac
  9822. ;;
  9823. sunos4*)
  9824. case $cc_basename in
  9825. CC*)
  9826. # Sun C++ 4.x
  9827. # FIXME: insert proper C++ library support
  9828. ld_shlibs_CXX=no
  9829. ;;
  9830. lcc*)
  9831. # Lucid
  9832. # FIXME: insert proper C++ library support
  9833. ld_shlibs_CXX=no
  9834. ;;
  9835. *)
  9836. # FIXME: insert proper C++ library support
  9837. ld_shlibs_CXX=no
  9838. ;;
  9839. esac
  9840. ;;
  9841. solaris*)
  9842. case $cc_basename in
  9843. CC*)
  9844. # Sun C++ 4.2, 5.x and Centerline C++
  9845. no_undefined_flag_CXX=' -zdefs'
  9846. archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9847. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9848. $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9849. hardcode_libdir_flag_spec_CXX='-R$libdir'
  9850. hardcode_shlibpath_var_CXX=no
  9851. case $host_os in
  9852. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9853. *)
  9854. # The C++ compiler is used as linker so we must use $wl
  9855. # flag to pass the commands to the underlying system
  9856. # linker. We must also pass each convience library through
  9857. # to the system linker between allextract/defaultextract.
  9858. # The C++ compiler will combine linker options so we
  9859. # cannot just pass the convience library names through
  9860. # without $wl.
  9861. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9862. 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'
  9863. ;;
  9864. esac
  9865. link_all_deplibs_CXX=yes
  9866. # Commands to make compiler produce verbose output that lists
  9867. # what "hidden" libraries, object files and flags are used when
  9868. # linking a shared library.
  9869. #
  9870. # There doesn't appear to be a way to prevent this compiler from
  9871. # explicitly linking system object files so we need to strip them
  9872. # from the output so that they don't get included in the library
  9873. # dependencies.
  9874. output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  9875. # Archives containing C++ object files must be created using
  9876. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  9877. # necessary to make sure instantiated templates are included
  9878. # in the archive.
  9879. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  9880. ;;
  9881. gcx*)
  9882. # Green Hills C++ Compiler
  9883. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9884. # The C++ compiler must be used to create the archive.
  9885. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  9886. ;;
  9887. *)
  9888. # GNU C++ compiler with Solaris linker
  9889. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9890. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  9891. if $CC --version | grep -v '^2\.7' > /dev/null; then
  9892. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9893. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9894. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9895. # Commands to make compiler produce verbose output that lists
  9896. # what "hidden" libraries, object files and flags are used when
  9897. # linking a shared library.
  9898. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  9899. else
  9900. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  9901. # platform.
  9902. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9903. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9904. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9905. # Commands to make compiler produce verbose output that lists
  9906. # what "hidden" libraries, object files and flags are used when
  9907. # linking a shared library.
  9908. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  9909. fi
  9910. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  9911. fi
  9912. ;;
  9913. esac
  9914. ;;
  9915. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  9916. archive_cmds_need_lc_CXX=no
  9917. ;;
  9918. tandem*)
  9919. case $cc_basename in
  9920. NCC*)
  9921. # NonStop-UX NCC 3.20
  9922. # FIXME: insert proper C++ library support
  9923. ld_shlibs_CXX=no
  9924. ;;
  9925. *)
  9926. # FIXME: insert proper C++ library support
  9927. ld_shlibs_CXX=no
  9928. ;;
  9929. esac
  9930. ;;
  9931. vxworks*)
  9932. # FIXME: insert proper C++ library support
  9933. ld_shlibs_CXX=no
  9934. ;;
  9935. *)
  9936. # FIXME: insert proper C++ library support
  9937. ld_shlibs_CXX=no
  9938. ;;
  9939. esac
  9940. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  9941. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  9942. test "$ld_shlibs_CXX" = no && can_build_shared=no
  9943. GCC_CXX="$GXX"
  9944. LD_CXX="$LD"
  9945. cat > conftest.$ac_ext <<EOF
  9946. class Foo
  9947. {
  9948. public:
  9949. Foo (void) { a = 0; }
  9950. private:
  9951. int a;
  9952. };
  9953. EOF
  9954. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9955. (eval $ac_compile) 2>&5
  9956. ac_status=$?
  9957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9958. (exit $ac_status); }; then
  9959. # Parse the compiler output and extract the necessary
  9960. # objects, libraries and library flags.
  9961. # Sentinel used to keep track of whether or not we are before
  9962. # the conftest object file.
  9963. pre_test_object_deps_done=no
  9964. # The `*' in the case matches for architectures that use `case' in
  9965. # $output_verbose_cmd can trigger glob expansion during the loop
  9966. # eval without this substitution.
  9967. output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  9968. for p in `eval $output_verbose_link_cmd`; do
  9969. case $p in
  9970. -L* | -R* | -l*)
  9971. # Some compilers place space between "-{L,R}" and the path.
  9972. # Remove the space.
  9973. if test $p = "-L" \
  9974. || test $p = "-R"; then
  9975. prev=$p
  9976. continue
  9977. else
  9978. prev=
  9979. fi
  9980. if test "$pre_test_object_deps_done" = no; then
  9981. case $p in
  9982. -L* | -R*)
  9983. # Internal compiler library paths should come after those
  9984. # provided the user. The postdeps already come after the
  9985. # user supplied libs so there is no need to process them.
  9986. if test -z "$compiler_lib_search_path_CXX"; then
  9987. compiler_lib_search_path_CXX="${prev}${p}"
  9988. else
  9989. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  9990. fi
  9991. ;;
  9992. # The "-l" case would never come before the object being
  9993. # linked, so don't bother handling this case.
  9994. esac
  9995. else
  9996. if test -z "$postdeps_CXX"; then
  9997. postdeps_CXX="${prev}${p}"
  9998. else
  9999. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10000. fi
  10001. fi
  10002. ;;
  10003. *.$objext)
  10004. # This assumes that the test object file only shows up
  10005. # once in the compiler output.
  10006. if test "$p" = "conftest.$objext"; then
  10007. pre_test_object_deps_done=yes
  10008. continue
  10009. fi
  10010. if test "$pre_test_object_deps_done" = no; then
  10011. if test -z "$predep_objects_CXX"; then
  10012. predep_objects_CXX="$p"
  10013. else
  10014. predep_objects_CXX="$predep_objects_CXX $p"
  10015. fi
  10016. else
  10017. if test -z "$postdep_objects_CXX"; then
  10018. postdep_objects_CXX="$p"
  10019. else
  10020. postdep_objects_CXX="$postdep_objects_CXX $p"
  10021. fi
  10022. fi
  10023. ;;
  10024. *) ;; # Ignore the rest.
  10025. esac
  10026. done
  10027. # Clean up.
  10028. rm -f a.out a.exe
  10029. else
  10030. echo "libtool.m4: error: problem compiling CXX test program"
  10031. fi
  10032. $rm -f confest.$objext
  10033. case " $postdeps_CXX " in
  10034. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10035. esac
  10036. lt_prog_compiler_wl_CXX=
  10037. lt_prog_compiler_pic_CXX=
  10038. lt_prog_compiler_static_CXX=
  10039. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  10040. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  10041. # C++ specific cases for pic, static, wl, etc.
  10042. if test "$GXX" = yes; then
  10043. lt_prog_compiler_wl_CXX='-Wl,'
  10044. lt_prog_compiler_static_CXX='-static'
  10045. case $host_os in
  10046. aix*)
  10047. # All AIX code is PIC.
  10048. if test "$host_cpu" = ia64; then
  10049. # AIX 5 now supports IA64 processor
  10050. lt_prog_compiler_static_CXX='-Bstatic'
  10051. fi
  10052. ;;
  10053. amigaos*)
  10054. # FIXME: we need at least 68020 code to build shared libraries, but
  10055. # adding the `-m68020' flag to GCC prevents building anything better,
  10056. # like `-m68040'.
  10057. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  10058. ;;
  10059. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10060. # PIC is the default for these OSes.
  10061. ;;
  10062. mingw* | os2* | pw32*)
  10063. # This hack is so that the source file can tell whether it is being
  10064. # built for inclusion in a dll (and should export symbols for example).
  10065. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  10066. ;;
  10067. darwin* | rhapsody*)
  10068. # PIC is the default on this platform
  10069. # Common symbols not allowed in MH_DYLIB files
  10070. lt_prog_compiler_pic_CXX='-fno-common'
  10071. ;;
  10072. *djgpp*)
  10073. # DJGPP does not support shared libraries at all
  10074. lt_prog_compiler_pic_CXX=
  10075. ;;
  10076. sysv4*MP*)
  10077. if test -d /usr/nec; then
  10078. lt_prog_compiler_pic_CXX=-Kconform_pic
  10079. fi
  10080. ;;
  10081. hpux*)
  10082. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10083. # not for PA HP-UX.
  10084. case "$host_cpu" in
  10085. hppa*64*|ia64*)
  10086. ;;
  10087. *)
  10088. lt_prog_compiler_pic_CXX='-fPIC'
  10089. ;;
  10090. esac
  10091. ;;
  10092. *)
  10093. lt_prog_compiler_pic_CXX='-fPIC'
  10094. ;;
  10095. esac
  10096. else
  10097. case $host_os in
  10098. aix4* | aix5*)
  10099. # All AIX code is PIC.
  10100. if test "$host_cpu" = ia64; then
  10101. # AIX 5 now supports IA64 processor
  10102. lt_prog_compiler_static_CXX='-Bstatic'
  10103. else
  10104. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  10105. fi
  10106. ;;
  10107. chorus*)
  10108. case $cc_basename in
  10109. cxch68*)
  10110. # Green Hills C++ Compiler
  10111. # _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"
  10112. ;;
  10113. esac
  10114. ;;
  10115. darwin*)
  10116. # PIC is the default on this platform
  10117. # Common symbols not allowed in MH_DYLIB files
  10118. case $cc_basename in
  10119. xlc*)
  10120. lt_prog_compiler_pic_CXX='-qnocommon'
  10121. lt_prog_compiler_wl_CXX='-Wl,'
  10122. ;;
  10123. esac
  10124. ;;
  10125. dgux*)
  10126. case $cc_basename in
  10127. ec++*)
  10128. lt_prog_compiler_pic_CXX='-KPIC'
  10129. ;;
  10130. ghcx*)
  10131. # Green Hills C++ Compiler
  10132. lt_prog_compiler_pic_CXX='-pic'
  10133. ;;
  10134. *)
  10135. ;;
  10136. esac
  10137. ;;
  10138. freebsd* | kfreebsd*-gnu | dragonfly*)
  10139. # FreeBSD uses GNU C++
  10140. ;;
  10141. hpux9* | hpux10* | hpux11*)
  10142. case $cc_basename in
  10143. CC*)
  10144. lt_prog_compiler_wl_CXX='-Wl,'
  10145. lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  10146. if test "$host_cpu" != ia64; then
  10147. lt_prog_compiler_pic_CXX='+Z'
  10148. fi
  10149. ;;
  10150. aCC*)
  10151. lt_prog_compiler_wl_CXX='-Wl,'
  10152. lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  10153. case "$host_cpu" in
  10154. hppa*64*|ia64*)
  10155. # +Z the default
  10156. ;;
  10157. *)
  10158. lt_prog_compiler_pic_CXX='+Z'
  10159. ;;
  10160. esac
  10161. ;;
  10162. *)
  10163. ;;
  10164. esac
  10165. ;;
  10166. irix5* | irix6* | nonstopux*)
  10167. case $cc_basename in
  10168. CC*)
  10169. lt_prog_compiler_wl_CXX='-Wl,'
  10170. lt_prog_compiler_static_CXX='-non_shared'
  10171. # CC pic flag -KPIC is the default.
  10172. ;;
  10173. *)
  10174. ;;
  10175. esac
  10176. ;;
  10177. linux*)
  10178. case $cc_basename in
  10179. KCC*)
  10180. # KAI C++ Compiler
  10181. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10182. lt_prog_compiler_pic_CXX='-fPIC'
  10183. ;;
  10184. icpc* | ecpc*)
  10185. # Intel C++
  10186. lt_prog_compiler_wl_CXX='-Wl,'
  10187. lt_prog_compiler_pic_CXX='-KPIC'
  10188. lt_prog_compiler_static_CXX='-static'
  10189. ;;
  10190. pgCC*)
  10191. # Portland Group C++ compiler.
  10192. lt_prog_compiler_wl_CXX='-Wl,'
  10193. lt_prog_compiler_pic_CXX='-fpic'
  10194. lt_prog_compiler_static_CXX='-static'
  10195. ;;
  10196. cxx*)
  10197. # Compaq C++
  10198. # Make sure the PIC flag is empty. It appears that all Alpha
  10199. # Linux and Compaq Tru64 Unix objects are PIC.
  10200. lt_prog_compiler_pic_CXX=
  10201. lt_prog_compiler_static_CXX='-non_shared'
  10202. ;;
  10203. *)
  10204. ;;
  10205. esac
  10206. ;;
  10207. lynxos*)
  10208. ;;
  10209. m88k*)
  10210. ;;
  10211. mvs*)
  10212. case $cc_basename in
  10213. cxx*)
  10214. lt_prog_compiler_pic_CXX='-W c,exportall'
  10215. ;;
  10216. *)
  10217. ;;
  10218. esac
  10219. ;;
  10220. netbsd*)
  10221. ;;
  10222. osf3* | osf4* | osf5*)
  10223. case $cc_basename in
  10224. KCC*)
  10225. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10226. ;;
  10227. RCC*)
  10228. # Rational C++ 2.4.1
  10229. lt_prog_compiler_pic_CXX='-pic'
  10230. ;;
  10231. cxx*)
  10232. # Digital/Compaq C++
  10233. lt_prog_compiler_wl_CXX='-Wl,'
  10234. # Make sure the PIC flag is empty. It appears that all Alpha
  10235. # Linux and Compaq Tru64 Unix objects are PIC.
  10236. lt_prog_compiler_pic_CXX=
  10237. lt_prog_compiler_static_CXX='-non_shared'
  10238. ;;
  10239. *)
  10240. ;;
  10241. esac
  10242. ;;
  10243. psos*)
  10244. ;;
  10245. sco*)
  10246. case $cc_basename in
  10247. CC*)
  10248. lt_prog_compiler_pic_CXX='-fPIC'
  10249. ;;
  10250. *)
  10251. ;;
  10252. esac
  10253. ;;
  10254. solaris*)
  10255. case $cc_basename in
  10256. CC*)
  10257. # Sun C++ 4.2, 5.x and Centerline C++
  10258. lt_prog_compiler_pic_CXX='-KPIC'
  10259. lt_prog_compiler_static_CXX='-Bstatic'
  10260. lt_prog_compiler_wl_CXX='-Qoption ld '
  10261. ;;
  10262. gcx*)
  10263. # Green Hills C++ Compiler
  10264. lt_prog_compiler_pic_CXX='-PIC'
  10265. ;;
  10266. *)
  10267. ;;
  10268. esac
  10269. ;;
  10270. sunos4*)
  10271. case $cc_basename in
  10272. CC*)
  10273. # Sun C++ 4.x
  10274. lt_prog_compiler_pic_CXX='-pic'
  10275. lt_prog_compiler_static_CXX='-Bstatic'
  10276. ;;
  10277. lcc*)
  10278. # Lucid
  10279. lt_prog_compiler_pic_CXX='-pic'
  10280. ;;
  10281. *)
  10282. ;;
  10283. esac
  10284. ;;
  10285. tandem*)
  10286. case $cc_basename in
  10287. NCC*)
  10288. # NonStop-UX NCC 3.20
  10289. lt_prog_compiler_pic_CXX='-KPIC'
  10290. ;;
  10291. *)
  10292. ;;
  10293. esac
  10294. ;;
  10295. unixware*)
  10296. ;;
  10297. vxworks*)
  10298. ;;
  10299. *)
  10300. lt_prog_compiler_can_build_shared_CXX=no
  10301. ;;
  10302. esac
  10303. fi
  10304. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  10305. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
  10306. #
  10307. # Check to make sure the PIC flag actually works.
  10308. #
  10309. if test -n "$lt_prog_compiler_pic_CXX"; then
  10310. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  10311. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
  10312. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  10313. echo $ECHO_N "(cached) $ECHO_C" >&6
  10314. else
  10315. lt_prog_compiler_pic_works_CXX=no
  10316. ac_outfile=conftest.$ac_objext
  10317. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10318. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  10319. # Insert the option either (1) after the last *FLAGS variable, or
  10320. # (2) before a word containing "conftest.", or (3) at the end.
  10321. # Note that $ac_compile itself does not contain backslashes and begins
  10322. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10323. # The option is referenced via a variable to avoid confusing sed.
  10324. lt_compile=`echo "$ac_compile" | $SED \
  10325. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  10326. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10327. -e 's:$: $lt_compiler_flag:'`
  10328. (eval echo "\"\$as_me:11434: $lt_compile\"" >&5)
  10329. (eval "$lt_compile" 2>conftest.err)
  10330. ac_status=$?
  10331. cat conftest.err >&5
  10332. echo "$as_me:11438: \$? = $ac_status" >&5
  10333. if (exit $ac_status) && test -s "$ac_outfile"; then
  10334. # The compiler can only warn and ignore the option if not recognized
  10335. # So say no if there are warnings other than the usual output.
  10336. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  10337. $SED '/^$/d' conftest.err >conftest.er2
  10338. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  10339. lt_prog_compiler_pic_works_CXX=yes
  10340. fi
  10341. fi
  10342. $rm conftest*
  10343. fi
  10344. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  10345. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
  10346. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  10347. case $lt_prog_compiler_pic_CXX in
  10348. "" | " "*) ;;
  10349. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  10350. esac
  10351. else
  10352. lt_prog_compiler_pic_CXX=
  10353. lt_prog_compiler_can_build_shared_CXX=no
  10354. fi
  10355. fi
  10356. case "$host_os" in
  10357. # For platforms which do not support PIC, -DPIC is meaningless:
  10358. *djgpp*)
  10359. lt_prog_compiler_pic_CXX=
  10360. ;;
  10361. *)
  10362. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  10363. ;;
  10364. esac
  10365. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  10366. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  10367. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  10368. echo $ECHO_N "(cached) $ECHO_C" >&6
  10369. else
  10370. lt_cv_prog_compiler_c_o_CXX=no
  10371. $rm -r conftest 2>/dev/null
  10372. mkdir conftest
  10373. cd conftest
  10374. mkdir out
  10375. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10376. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10377. # Insert the option either (1) after the last *FLAGS variable, or
  10378. # (2) before a word containing "conftest.", or (3) at the end.
  10379. # Note that $ac_compile itself does not contain backslashes and begins
  10380. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10381. lt_compile=`echo "$ac_compile" | $SED \
  10382. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  10383. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10384. -e 's:$: $lt_compiler_flag:'`
  10385. (eval echo "\"\$as_me:11496: $lt_compile\"" >&5)
  10386. (eval "$lt_compile" 2>out/conftest.err)
  10387. ac_status=$?
  10388. cat out/conftest.err >&5
  10389. echo "$as_me:11500: \$? = $ac_status" >&5
  10390. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10391. then
  10392. # The compiler can only warn and ignore the option if not recognized
  10393. # So say no if there are warnings
  10394. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  10395. $SED '/^$/d' out/conftest.err >out/conftest.er2
  10396. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10397. lt_cv_prog_compiler_c_o_CXX=yes
  10398. fi
  10399. fi
  10400. chmod u+w .
  10401. $rm conftest*
  10402. # SGI C++ compiler will create directory out/ii_files/ for
  10403. # template instantiation
  10404. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  10405. $rm out/* && rmdir out
  10406. cd ..
  10407. rmdir conftest
  10408. $rm conftest*
  10409. fi
  10410. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  10411. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
  10412. hard_links="nottested"
  10413. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  10414. # do not overwrite the value of need_locks provided by the user
  10415. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  10416. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  10417. hard_links=yes
  10418. $rm conftest*
  10419. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10420. touch conftest.a
  10421. ln conftest.a conftest.b 2>&5 || hard_links=no
  10422. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10423. echo "$as_me:$LINENO: result: $hard_links" >&5
  10424. echo "${ECHO_T}$hard_links" >&6
  10425. if test "$hard_links" = no; then
  10426. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  10427. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  10428. need_locks=warn
  10429. fi
  10430. else
  10431. need_locks=no
  10432. fi
  10433. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10434. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  10435. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10436. case $host_os in
  10437. aix4* | aix5*)
  10438. # If we're using GNU nm, then we don't want the "-C" option.
  10439. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  10440. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  10441. 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'
  10442. else
  10443. 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'
  10444. fi
  10445. ;;
  10446. pw32*)
  10447. export_symbols_cmds_CXX="$ltdll_cmds"
  10448. ;;
  10449. cygwin* | mingw*)
  10450. 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'
  10451. ;;
  10452. *)
  10453. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10454. ;;
  10455. esac
  10456. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10457. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  10458. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10459. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10460. if test "$GCC" = yes; then
  10461. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10462. fi
  10463. #
  10464. # Do we need to explicitly link libc?
  10465. #
  10466. case "x$archive_cmds_need_lc_CXX" in
  10467. x|xyes)
  10468. # Assume -lc should be added
  10469. archive_cmds_need_lc_CXX=yes
  10470. if test "$enable_shared" = yes && test "$GCC" = yes; then
  10471. case $archive_cmds_CXX in
  10472. *'~'*)
  10473. # FIXME: we may have to deal with multi-command sequences.
  10474. ;;
  10475. '$CC '*)
  10476. # Test whether the compiler implicitly links with -lc since on some
  10477. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10478. # to ld, don't add -lc before -lgcc.
  10479. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  10480. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  10481. $rm conftest*
  10482. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10483. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10484. (eval $ac_compile) 2>&5
  10485. ac_status=$?
  10486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10487. (exit $ac_status); } 2>conftest.err; then
  10488. soname=conftest
  10489. lib=conftest
  10490. libobjs=conftest.$ac_objext
  10491. deplibs=
  10492. wl=$lt_prog_compiler_wl_CXX
  10493. compiler_flags=-v
  10494. linker_flags=-v
  10495. verstring=
  10496. output_objdir=.
  10497. libname=conftest
  10498. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  10499. allow_undefined_flag_CXX=
  10500. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  10501. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10502. ac_status=$?
  10503. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10504. (exit $ac_status); }
  10505. then
  10506. archive_cmds_need_lc_CXX=no
  10507. else
  10508. archive_cmds_need_lc_CXX=yes
  10509. fi
  10510. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  10511. else
  10512. cat conftest.err 1>&5
  10513. fi
  10514. $rm conftest*
  10515. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  10516. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
  10517. ;;
  10518. esac
  10519. fi
  10520. ;;
  10521. esac
  10522. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  10523. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  10524. library_names_spec=
  10525. libname_spec='lib$name'
  10526. soname_spec=
  10527. shrext_cmds=".so"
  10528. postinstall_cmds=
  10529. postuninstall_cmds=
  10530. finish_cmds=
  10531. finish_eval=
  10532. shlibpath_var=
  10533. shlibpath_overrides_runpath=unknown
  10534. version_type=none
  10535. dynamic_linker="$host_os ld.so"
  10536. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10537. if test "$GCC" = yes; then
  10538. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10539. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  10540. # if the path contains ";" then we assume it to be the separator
  10541. # otherwise default to the standard path separator (i.e. ":") - it is
  10542. # assumed that no part of a normal pathname contains ";" but that should
  10543. # okay in the real world where ";" in dirpaths is itself problematic.
  10544. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10545. else
  10546. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10547. fi
  10548. else
  10549. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10550. fi
  10551. need_lib_prefix=unknown
  10552. hardcode_into_libs=no
  10553. # when you set need_version to no, make sure it does not cause -set_version
  10554. # flags to be left without arguments
  10555. need_version=unknown
  10556. case $host_os in
  10557. aix3*)
  10558. version_type=linux
  10559. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10560. shlibpath_var=LIBPATH
  10561. # AIX 3 has no versioning support, so we append a major version to the name.
  10562. soname_spec='${libname}${release}${shared_ext}$major'
  10563. ;;
  10564. aix4* | aix5*)
  10565. version_type=linux
  10566. need_lib_prefix=no
  10567. need_version=no
  10568. hardcode_into_libs=yes
  10569. if test "$host_cpu" = ia64; then
  10570. # AIX 5 supports IA64
  10571. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10572. shlibpath_var=LD_LIBRARY_PATH
  10573. else
  10574. # With GCC up to 2.95.x, collect2 would create an import file
  10575. # for dependence libraries. The import file would start with
  10576. # the line `#! .'. This would cause the generated library to
  10577. # depend on `.', always an invalid library. This was fixed in
  10578. # development snapshots of GCC prior to 3.0.
  10579. case $host_os in
  10580. aix4 | aix4.[01] | aix4.[01].*)
  10581. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10582. echo ' yes '
  10583. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  10584. :
  10585. else
  10586. can_build_shared=no
  10587. fi
  10588. ;;
  10589. esac
  10590. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10591. # soname into executable. Probably we can add versioning support to
  10592. # collect2, so additional links can be useful in future.
  10593. if test "$aix_use_runtimelinking" = yes; then
  10594. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10595. # instead of lib<name>.a to let people know that these are not
  10596. # typical AIX shared libraries.
  10597. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10598. else
  10599. # We preserve .a as extension for shared libraries through AIX4.2
  10600. # and later when we are not doing run time linking.
  10601. library_names_spec='${libname}${release}.a $libname.a'
  10602. soname_spec='${libname}${release}${shared_ext}$major'
  10603. fi
  10604. shlibpath_var=LIBPATH
  10605. fi
  10606. ;;
  10607. amigaos*)
  10608. library_names_spec='$libname.ixlibrary $libname.a'
  10609. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10610. 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'
  10611. ;;
  10612. beos*)
  10613. library_names_spec='${libname}${shared_ext}'
  10614. dynamic_linker="$host_os ld.so"
  10615. shlibpath_var=LIBRARY_PATH
  10616. ;;
  10617. bsdi[45]*)
  10618. version_type=linux
  10619. need_version=no
  10620. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10621. soname_spec='${libname}${release}${shared_ext}$major'
  10622. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10623. shlibpath_var=LD_LIBRARY_PATH
  10624. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10625. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10626. # the default ld.so.conf also contains /usr/contrib/lib and
  10627. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10628. # libtool to hard-code these into programs
  10629. ;;
  10630. cygwin* | mingw* | pw32*)
  10631. version_type=windows
  10632. shrext_cmds=".dll"
  10633. need_version=no
  10634. need_lib_prefix=no
  10635. case $GCC,$host_os in
  10636. yes,cygwin* | yes,mingw* | yes,pw32*)
  10637. library_names_spec='$libname.dll.a'
  10638. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10639. postinstall_cmds='base_file=`basename \${file}`~
  10640. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  10641. dldir=$destdir/`dirname \$dlpath`~
  10642. test -d \$dldir || mkdir -p \$dldir~
  10643. $install_prog $dir/$dlname \$dldir/$dlname'
  10644. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10645. dlpath=$dir/\$dldll~
  10646. $rm \$dlpath'
  10647. shlibpath_overrides_runpath=yes
  10648. case $host_os in
  10649. cygwin*)
  10650. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10651. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10652. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  10653. ;;
  10654. mingw*)
  10655. # MinGW DLLs use traditional 'lib' prefix
  10656. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10657. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10658. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  10659. # It is most probably a Windows format PATH printed by
  10660. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  10661. # path with ; separators, and with drive letters. We can handle the
  10662. # drive letters (cygwin fileutils understands them), so leave them,
  10663. # especially as we might pass files found there to a mingw objdump,
  10664. # which wouldn't understand a cygwinified path. Ahh.
  10665. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10666. else
  10667. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10668. fi
  10669. ;;
  10670. pw32*)
  10671. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10672. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10673. ;;
  10674. esac
  10675. ;;
  10676. *)
  10677. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10678. ;;
  10679. esac
  10680. dynamic_linker='Win32 ld.exe'
  10681. # FIXME: first we should search . and the directory the executable is in
  10682. shlibpath_var=PATH
  10683. ;;
  10684. darwin* | rhapsody*)
  10685. dynamic_linker="$host_os dyld"
  10686. version_type=darwin
  10687. need_lib_prefix=no
  10688. need_version=no
  10689. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10690. soname_spec='${libname}${release}${major}$shared_ext'
  10691. shlibpath_overrides_runpath=yes
  10692. shlibpath_var=DYLD_LIBRARY_PATH
  10693. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  10694. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  10695. if test "$GCC" = yes; then
  10696. 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"`
  10697. else
  10698. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  10699. fi
  10700. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10701. ;;
  10702. dgux*)
  10703. version_type=linux
  10704. need_lib_prefix=no
  10705. need_version=no
  10706. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  10707. soname_spec='${libname}${release}${shared_ext}$major'
  10708. shlibpath_var=LD_LIBRARY_PATH
  10709. ;;
  10710. freebsd1*)
  10711. dynamic_linker=no
  10712. ;;
  10713. kfreebsd*-gnu)
  10714. version_type=linux
  10715. need_lib_prefix=no
  10716. need_version=no
  10717. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10718. soname_spec='${libname}${release}${shared_ext}$major'
  10719. shlibpath_var=LD_LIBRARY_PATH
  10720. shlibpath_overrides_runpath=no
  10721. hardcode_into_libs=yes
  10722. dynamic_linker='GNU ld.so'
  10723. ;;
  10724. freebsd* | dragonfly*)
  10725. # DragonFly does not have aout. When/if they implement a new
  10726. # versioning mechanism, adjust this.
  10727. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  10728. version_type=freebsd-$objformat
  10729. case $version_type in
  10730. freebsd-elf*)
  10731. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10732. need_version=no
  10733. need_lib_prefix=no
  10734. ;;
  10735. freebsd-*)
  10736. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10737. need_version=yes
  10738. ;;
  10739. esac
  10740. shlibpath_var=LD_LIBRARY_PATH
  10741. case $host_os in
  10742. freebsd2*)
  10743. shlibpath_overrides_runpath=yes
  10744. ;;
  10745. freebsd3.[01]* | freebsdelf3.[01]*)
  10746. shlibpath_overrides_runpath=yes
  10747. hardcode_into_libs=yes
  10748. ;;
  10749. *) # from 3.2 on
  10750. shlibpath_overrides_runpath=no
  10751. hardcode_into_libs=yes
  10752. ;;
  10753. esac
  10754. ;;
  10755. gnu*)
  10756. version_type=linux
  10757. need_lib_prefix=no
  10758. need_version=no
  10759. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10760. soname_spec='${libname}${release}${shared_ext}$major'
  10761. shlibpath_var=LD_LIBRARY_PATH
  10762. hardcode_into_libs=yes
  10763. ;;
  10764. hpux9* | hpux10* | hpux11*)
  10765. # Give a soname corresponding to the major version so that dld.sl refuses to
  10766. # link against other versions.
  10767. version_type=sunos
  10768. need_lib_prefix=no
  10769. need_version=no
  10770. case "$host_cpu" in
  10771. ia64*)
  10772. shrext_cmds='.so'
  10773. hardcode_into_libs=yes
  10774. dynamic_linker="$host_os dld.so"
  10775. shlibpath_var=LD_LIBRARY_PATH
  10776. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10777. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10778. soname_spec='${libname}${release}${shared_ext}$major'
  10779. if test "X$HPUX_IA64_MODE" = X32; then
  10780. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10781. else
  10782. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10783. fi
  10784. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10785. ;;
  10786. hppa*64*)
  10787. shrext_cmds='.sl'
  10788. hardcode_into_libs=yes
  10789. dynamic_linker="$host_os dld.sl"
  10790. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10791. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10792. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10793. soname_spec='${libname}${release}${shared_ext}$major'
  10794. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10795. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10796. ;;
  10797. *)
  10798. shrext_cmds='.sl'
  10799. dynamic_linker="$host_os dld.sl"
  10800. shlibpath_var=SHLIB_PATH
  10801. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10802. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10803. soname_spec='${libname}${release}${shared_ext}$major'
  10804. ;;
  10805. esac
  10806. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  10807. postinstall_cmds='chmod 555 $lib'
  10808. ;;
  10809. irix5* | irix6* | nonstopux*)
  10810. case $host_os in
  10811. nonstopux*) version_type=nonstopux ;;
  10812. *)
  10813. if test "$lt_cv_prog_gnu_ld" = yes; then
  10814. version_type=linux
  10815. else
  10816. version_type=irix
  10817. fi ;;
  10818. esac
  10819. need_lib_prefix=no
  10820. need_version=no
  10821. soname_spec='${libname}${release}${shared_ext}$major'
  10822. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10823. case $host_os in
  10824. irix5* | nonstopux*)
  10825. libsuff= shlibsuff=
  10826. ;;
  10827. *)
  10828. case $LD in # libtool.m4 will add one of these switches to LD
  10829. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10830. libsuff= shlibsuff= libmagic=32-bit;;
  10831. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10832. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10833. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10834. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10835. *) libsuff= shlibsuff= libmagic=never-match;;
  10836. esac
  10837. ;;
  10838. esac
  10839. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10840. shlibpath_overrides_runpath=no
  10841. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10842. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10843. hardcode_into_libs=yes
  10844. ;;
  10845. # No shared lib support for Linux oldld, aout, or coff.
  10846. linux*oldld* | linux*aout* | linux*coff*)
  10847. dynamic_linker=no
  10848. ;;
  10849. # This must be Linux ELF.
  10850. linux*)
  10851. version_type=linux
  10852. need_lib_prefix=no
  10853. need_version=no
  10854. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10855. soname_spec='${libname}${release}${shared_ext}$major'
  10856. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10857. shlibpath_var=LD_LIBRARY_PATH
  10858. shlibpath_overrides_runpath=no
  10859. # This implies no fast_install, which is unacceptable.
  10860. # Some rework will be needed to allow for fast_install
  10861. # before this can be enabled.
  10862. hardcode_into_libs=yes
  10863. # Append ld.so.conf contents to the search path
  10864. if test -f /etc/ld.so.conf; then
  10865. 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' ' '`
  10866. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10867. fi
  10868. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10869. # powerpc, because MkLinux only supported shared libraries with the
  10870. # GNU dynamic linker. Since this was broken with cross compilers,
  10871. # most powerpc-linux boxes support dynamic linking these days and
  10872. # people can always --disable-shared, the test was removed, and we
  10873. # assume the GNU/Linux dynamic linker is in use.
  10874. dynamic_linker='GNU/Linux ld.so'
  10875. ;;
  10876. knetbsd*-gnu)
  10877. version_type=linux
  10878. need_lib_prefix=no
  10879. need_version=no
  10880. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10881. soname_spec='${libname}${release}${shared_ext}$major'
  10882. shlibpath_var=LD_LIBRARY_PATH
  10883. shlibpath_overrides_runpath=no
  10884. hardcode_into_libs=yes
  10885. dynamic_linker='GNU ld.so'
  10886. ;;
  10887. netbsd*)
  10888. version_type=sunos
  10889. need_lib_prefix=no
  10890. need_version=no
  10891. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10892. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10893. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10894. dynamic_linker='NetBSD (a.out) ld.so'
  10895. else
  10896. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10897. soname_spec='${libname}${release}${shared_ext}$major'
  10898. dynamic_linker='NetBSD ld.elf_so'
  10899. fi
  10900. shlibpath_var=LD_LIBRARY_PATH
  10901. shlibpath_overrides_runpath=yes
  10902. hardcode_into_libs=yes
  10903. ;;
  10904. newsos6)
  10905. version_type=linux
  10906. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10907. shlibpath_var=LD_LIBRARY_PATH
  10908. shlibpath_overrides_runpath=yes
  10909. ;;
  10910. nto-qnx*)
  10911. version_type=linux
  10912. need_lib_prefix=no
  10913. need_version=no
  10914. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10915. soname_spec='${libname}${release}${shared_ext}$major'
  10916. shlibpath_var=LD_LIBRARY_PATH
  10917. shlibpath_overrides_runpath=yes
  10918. ;;
  10919. openbsd*)
  10920. version_type=sunos
  10921. need_lib_prefix=no
  10922. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10923. case $host_os in
  10924. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10925. *) need_version=no ;;
  10926. esac
  10927. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10928. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10929. shlibpath_var=LD_LIBRARY_PATH
  10930. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10931. case $host_os in
  10932. openbsd2.[89] | openbsd2.[89].*)
  10933. shlibpath_overrides_runpath=no
  10934. ;;
  10935. *)
  10936. shlibpath_overrides_runpath=yes
  10937. ;;
  10938. esac
  10939. else
  10940. shlibpath_overrides_runpath=yes
  10941. fi
  10942. ;;
  10943. os2*)
  10944. libname_spec='$name'
  10945. shrext_cmds=".dll"
  10946. need_lib_prefix=no
  10947. library_names_spec='$libname${shared_ext} $libname.a'
  10948. dynamic_linker='OS/2 ld.exe'
  10949. shlibpath_var=LIBPATH
  10950. ;;
  10951. osf3* | osf4* | osf5*)
  10952. version_type=osf
  10953. need_lib_prefix=no
  10954. need_version=no
  10955. soname_spec='${libname}${release}${shared_ext}$major'
  10956. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10957. shlibpath_var=LD_LIBRARY_PATH
  10958. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10959. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10960. ;;
  10961. sco3.2v5*)
  10962. version_type=osf
  10963. soname_spec='${libname}${release}${shared_ext}$major'
  10964. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10965. shlibpath_var=LD_LIBRARY_PATH
  10966. ;;
  10967. solaris*)
  10968. version_type=linux
  10969. need_lib_prefix=no
  10970. need_version=no
  10971. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10972. soname_spec='${libname}${release}${shared_ext}$major'
  10973. shlibpath_var=LD_LIBRARY_PATH
  10974. shlibpath_overrides_runpath=yes
  10975. hardcode_into_libs=yes
  10976. # ldd complains unless libraries are executable
  10977. postinstall_cmds='chmod +x $lib'
  10978. ;;
  10979. sunos4*)
  10980. version_type=sunos
  10981. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10982. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10983. shlibpath_var=LD_LIBRARY_PATH
  10984. shlibpath_overrides_runpath=yes
  10985. if test "$with_gnu_ld" = yes; then
  10986. need_lib_prefix=no
  10987. fi
  10988. need_version=yes
  10989. ;;
  10990. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10991. version_type=linux
  10992. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10993. soname_spec='${libname}${release}${shared_ext}$major'
  10994. shlibpath_var=LD_LIBRARY_PATH
  10995. case $host_vendor in
  10996. sni)
  10997. shlibpath_overrides_runpath=no
  10998. need_lib_prefix=no
  10999. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11000. runpath_var=LD_RUN_PATH
  11001. ;;
  11002. siemens)
  11003. need_lib_prefix=no
  11004. ;;
  11005. motorola)
  11006. need_lib_prefix=no
  11007. need_version=no
  11008. shlibpath_overrides_runpath=no
  11009. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11010. ;;
  11011. esac
  11012. ;;
  11013. sysv4*MP*)
  11014. if test -d /usr/nec ;then
  11015. version_type=linux
  11016. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11017. soname_spec='$libname${shared_ext}.$major'
  11018. shlibpath_var=LD_LIBRARY_PATH
  11019. fi
  11020. ;;
  11021. uts4*)
  11022. version_type=linux
  11023. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11024. soname_spec='${libname}${release}${shared_ext}$major'
  11025. shlibpath_var=LD_LIBRARY_PATH
  11026. ;;
  11027. *)
  11028. dynamic_linker=no
  11029. ;;
  11030. esac
  11031. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  11032. echo "${ECHO_T}$dynamic_linker" >&6
  11033. test "$dynamic_linker" = no && can_build_shared=no
  11034. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  11035. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  11036. hardcode_action_CXX=
  11037. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  11038. test -n "$runpath_var_CXX" || \
  11039. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  11040. # We can hardcode non-existant directories.
  11041. if test "$hardcode_direct_CXX" != no &&
  11042. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11043. # have to relink, otherwise we might link with an installed library
  11044. # when we should be linking with a yet-to-be-installed one
  11045. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  11046. test "$hardcode_minus_L_CXX" != no; then
  11047. # Linking always hardcodes the temporary library directory.
  11048. hardcode_action_CXX=relink
  11049. else
  11050. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11051. hardcode_action_CXX=immediate
  11052. fi
  11053. else
  11054. # We cannot hardcode anything, or else we can only hardcode existing
  11055. # directories.
  11056. hardcode_action_CXX=unsupported
  11057. fi
  11058. echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  11059. echo "${ECHO_T}$hardcode_action_CXX" >&6
  11060. if test "$hardcode_action_CXX" = relink; then
  11061. # Fast installation is not supported
  11062. enable_fast_install=no
  11063. elif test "$shlibpath_overrides_runpath" = yes ||
  11064. test "$enable_shared" = no; then
  11065. # Fast installation is not necessary
  11066. enable_fast_install=needless
  11067. fi
  11068. striplib=
  11069. old_striplib=
  11070. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  11071. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  11072. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  11073. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11074. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11075. echo "$as_me:$LINENO: result: yes" >&5
  11076. echo "${ECHO_T}yes" >&6
  11077. else
  11078. # FIXME - insert some real tests, host_os isn't really good enough
  11079. case $host_os in
  11080. darwin*)
  11081. if test -n "$STRIP" ; then
  11082. striplib="$STRIP -x"
  11083. echo "$as_me:$LINENO: result: yes" >&5
  11084. echo "${ECHO_T}yes" >&6
  11085. else
  11086. echo "$as_me:$LINENO: result: no" >&5
  11087. echo "${ECHO_T}no" >&6
  11088. fi
  11089. ;;
  11090. *)
  11091. echo "$as_me:$LINENO: result: no" >&5
  11092. echo "${ECHO_T}no" >&6
  11093. ;;
  11094. esac
  11095. fi
  11096. if test "x$enable_dlopen" != xyes; then
  11097. enable_dlopen=unknown
  11098. enable_dlopen_self=unknown
  11099. enable_dlopen_self_static=unknown
  11100. else
  11101. lt_cv_dlopen=no
  11102. lt_cv_dlopen_libs=
  11103. case $host_os in
  11104. beos*)
  11105. lt_cv_dlopen="load_add_on"
  11106. lt_cv_dlopen_libs=
  11107. lt_cv_dlopen_self=yes
  11108. ;;
  11109. mingw* | pw32*)
  11110. lt_cv_dlopen="LoadLibrary"
  11111. lt_cv_dlopen_libs=
  11112. ;;
  11113. cygwin*)
  11114. lt_cv_dlopen="dlopen"
  11115. lt_cv_dlopen_libs=
  11116. ;;
  11117. darwin*)
  11118. # if libdl is installed we need to link against it
  11119. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  11120. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  11121. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  11122. echo $ECHO_N "(cached) $ECHO_C" >&6
  11123. else
  11124. ac_check_lib_save_LIBS=$LIBS
  11125. LIBS="-ldl $LIBS"
  11126. cat >conftest.$ac_ext <<_ACEOF
  11127. /* confdefs.h. */
  11128. _ACEOF
  11129. cat confdefs.h >>conftest.$ac_ext
  11130. cat >>conftest.$ac_ext <<_ACEOF
  11131. /* end confdefs.h. */
  11132. /* Override any gcc2 internal prototype to avoid an error. */
  11133. #ifdef __cplusplus
  11134. extern "C"
  11135. #endif
  11136. /* We use char because int might match the return type of a gcc2
  11137. builtin and then its argument prototype would still apply. */
  11138. char dlopen ();
  11139. int
  11140. main ()
  11141. {
  11142. dlopen ();
  11143. ;
  11144. return 0;
  11145. }
  11146. _ACEOF
  11147. rm -f conftest.$ac_objext conftest$ac_exeext
  11148. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11149. (eval $ac_link) 2>conftest.er1
  11150. ac_status=$?
  11151. grep -v '^ *+' conftest.er1 >conftest.err
  11152. rm -f conftest.er1
  11153. cat conftest.err >&5
  11154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11155. (exit $ac_status); } &&
  11156. { ac_try='test -z "$ac_cxx_werror_flag"
  11157. || test ! -s conftest.err'
  11158. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11159. (eval $ac_try) 2>&5
  11160. ac_status=$?
  11161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11162. (exit $ac_status); }; } &&
  11163. { ac_try='test -s conftest$ac_exeext'
  11164. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11165. (eval $ac_try) 2>&5
  11166. ac_status=$?
  11167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11168. (exit $ac_status); }; }; then
  11169. ac_cv_lib_dl_dlopen=yes
  11170. else
  11171. echo "$as_me: failed program was:" >&5
  11172. sed 's/^/| /' conftest.$ac_ext >&5
  11173. ac_cv_lib_dl_dlopen=no
  11174. fi
  11175. rm -f conftest.err conftest.$ac_objext \
  11176. conftest$ac_exeext conftest.$ac_ext
  11177. LIBS=$ac_check_lib_save_LIBS
  11178. fi
  11179. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  11180. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  11181. if test $ac_cv_lib_dl_dlopen = yes; then
  11182. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11183. else
  11184. lt_cv_dlopen="dyld"
  11185. lt_cv_dlopen_libs=
  11186. lt_cv_dlopen_self=yes
  11187. fi
  11188. ;;
  11189. *)
  11190. echo "$as_me:$LINENO: checking for shl_load" >&5
  11191. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  11192. if test "${ac_cv_func_shl_load+set}" = set; then
  11193. echo $ECHO_N "(cached) $ECHO_C" >&6
  11194. else
  11195. cat >conftest.$ac_ext <<_ACEOF
  11196. /* confdefs.h. */
  11197. _ACEOF
  11198. cat confdefs.h >>conftest.$ac_ext
  11199. cat >>conftest.$ac_ext <<_ACEOF
  11200. /* end confdefs.h. */
  11201. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  11202. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11203. #define shl_load innocuous_shl_load
  11204. /* System header to define __stub macros and hopefully few prototypes,
  11205. which can conflict with char shl_load (); below.
  11206. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11207. <limits.h> exists even on freestanding compilers. */
  11208. #ifdef __STDC__
  11209. # include <limits.h>
  11210. #else
  11211. # include <assert.h>
  11212. #endif
  11213. #undef shl_load
  11214. /* Override any gcc2 internal prototype to avoid an error. */
  11215. #ifdef __cplusplus
  11216. extern "C"
  11217. {
  11218. #endif
  11219. /* We use char because int might match the return type of a gcc2
  11220. builtin and then its argument prototype would still apply. */
  11221. char shl_load ();
  11222. /* The GNU C library defines this for functions which it implements
  11223. to always fail with ENOSYS. Some functions are actually named
  11224. something starting with __ and the normal name is an alias. */
  11225. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  11226. choke me
  11227. #else
  11228. char (*f) () = shl_load;
  11229. #endif
  11230. #ifdef __cplusplus
  11231. }
  11232. #endif
  11233. int
  11234. main ()
  11235. {
  11236. return f != shl_load;
  11237. ;
  11238. return 0;
  11239. }
  11240. _ACEOF
  11241. rm -f conftest.$ac_objext conftest$ac_exeext
  11242. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11243. (eval $ac_link) 2>conftest.er1
  11244. ac_status=$?
  11245. grep -v '^ *+' conftest.er1 >conftest.err
  11246. rm -f conftest.er1
  11247. cat conftest.err >&5
  11248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11249. (exit $ac_status); } &&
  11250. { ac_try='test -z "$ac_cxx_werror_flag"
  11251. || test ! -s conftest.err'
  11252. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11253. (eval $ac_try) 2>&5
  11254. ac_status=$?
  11255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11256. (exit $ac_status); }; } &&
  11257. { ac_try='test -s conftest$ac_exeext'
  11258. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11259. (eval $ac_try) 2>&5
  11260. ac_status=$?
  11261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11262. (exit $ac_status); }; }; then
  11263. ac_cv_func_shl_load=yes
  11264. else
  11265. echo "$as_me: failed program was:" >&5
  11266. sed 's/^/| /' conftest.$ac_ext >&5
  11267. ac_cv_func_shl_load=no
  11268. fi
  11269. rm -f conftest.err conftest.$ac_objext \
  11270. conftest$ac_exeext conftest.$ac_ext
  11271. fi
  11272. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  11273. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  11274. if test $ac_cv_func_shl_load = yes; then
  11275. lt_cv_dlopen="shl_load"
  11276. else
  11277. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  11278. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  11279. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  11280. echo $ECHO_N "(cached) $ECHO_C" >&6
  11281. else
  11282. ac_check_lib_save_LIBS=$LIBS
  11283. LIBS="-ldld $LIBS"
  11284. cat >conftest.$ac_ext <<_ACEOF
  11285. /* confdefs.h. */
  11286. _ACEOF
  11287. cat confdefs.h >>conftest.$ac_ext
  11288. cat >>conftest.$ac_ext <<_ACEOF
  11289. /* end confdefs.h. */
  11290. /* Override any gcc2 internal prototype to avoid an error. */
  11291. #ifdef __cplusplus
  11292. extern "C"
  11293. #endif
  11294. /* We use char because int might match the return type of a gcc2
  11295. builtin and then its argument prototype would still apply. */
  11296. char shl_load ();
  11297. int
  11298. main ()
  11299. {
  11300. shl_load ();
  11301. ;
  11302. return 0;
  11303. }
  11304. _ACEOF
  11305. rm -f conftest.$ac_objext conftest$ac_exeext
  11306. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11307. (eval $ac_link) 2>conftest.er1
  11308. ac_status=$?
  11309. grep -v '^ *+' conftest.er1 >conftest.err
  11310. rm -f conftest.er1
  11311. cat conftest.err >&5
  11312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11313. (exit $ac_status); } &&
  11314. { ac_try='test -z "$ac_cxx_werror_flag"
  11315. || test ! -s conftest.err'
  11316. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11317. (eval $ac_try) 2>&5
  11318. ac_status=$?
  11319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11320. (exit $ac_status); }; } &&
  11321. { ac_try='test -s conftest$ac_exeext'
  11322. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11323. (eval $ac_try) 2>&5
  11324. ac_status=$?
  11325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11326. (exit $ac_status); }; }; then
  11327. ac_cv_lib_dld_shl_load=yes
  11328. else
  11329. echo "$as_me: failed program was:" >&5
  11330. sed 's/^/| /' conftest.$ac_ext >&5
  11331. ac_cv_lib_dld_shl_load=no
  11332. fi
  11333. rm -f conftest.err conftest.$ac_objext \
  11334. conftest$ac_exeext conftest.$ac_ext
  11335. LIBS=$ac_check_lib_save_LIBS
  11336. fi
  11337. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  11338. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  11339. if test $ac_cv_lib_dld_shl_load = yes; then
  11340. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  11341. else
  11342. echo "$as_me:$LINENO: checking for dlopen" >&5
  11343. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  11344. if test "${ac_cv_func_dlopen+set}" = set; then
  11345. echo $ECHO_N "(cached) $ECHO_C" >&6
  11346. else
  11347. cat >conftest.$ac_ext <<_ACEOF
  11348. /* confdefs.h. */
  11349. _ACEOF
  11350. cat confdefs.h >>conftest.$ac_ext
  11351. cat >>conftest.$ac_ext <<_ACEOF
  11352. /* end confdefs.h. */
  11353. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  11354. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11355. #define dlopen innocuous_dlopen
  11356. /* System header to define __stub macros and hopefully few prototypes,
  11357. which can conflict with char dlopen (); below.
  11358. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11359. <limits.h> exists even on freestanding compilers. */
  11360. #ifdef __STDC__
  11361. # include <limits.h>
  11362. #else
  11363. # include <assert.h>
  11364. #endif
  11365. #undef dlopen
  11366. /* Override any gcc2 internal prototype to avoid an error. */
  11367. #ifdef __cplusplus
  11368. extern "C"
  11369. {
  11370. #endif
  11371. /* We use char because int might match the return type of a gcc2
  11372. builtin and then its argument prototype would still apply. */
  11373. char dlopen ();
  11374. /* The GNU C library defines this for functions which it implements
  11375. to always fail with ENOSYS. Some functions are actually named
  11376. something starting with __ and the normal name is an alias. */
  11377. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  11378. choke me
  11379. #else
  11380. char (*f) () = dlopen;
  11381. #endif
  11382. #ifdef __cplusplus
  11383. }
  11384. #endif
  11385. int
  11386. main ()
  11387. {
  11388. return f != dlopen;
  11389. ;
  11390. return 0;
  11391. }
  11392. _ACEOF
  11393. rm -f conftest.$ac_objext conftest$ac_exeext
  11394. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11395. (eval $ac_link) 2>conftest.er1
  11396. ac_status=$?
  11397. grep -v '^ *+' conftest.er1 >conftest.err
  11398. rm -f conftest.er1
  11399. cat conftest.err >&5
  11400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11401. (exit $ac_status); } &&
  11402. { ac_try='test -z "$ac_cxx_werror_flag"
  11403. || test ! -s conftest.err'
  11404. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11405. (eval $ac_try) 2>&5
  11406. ac_status=$?
  11407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11408. (exit $ac_status); }; } &&
  11409. { ac_try='test -s conftest$ac_exeext'
  11410. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11411. (eval $ac_try) 2>&5
  11412. ac_status=$?
  11413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11414. (exit $ac_status); }; }; then
  11415. ac_cv_func_dlopen=yes
  11416. else
  11417. echo "$as_me: failed program was:" >&5
  11418. sed 's/^/| /' conftest.$ac_ext >&5
  11419. ac_cv_func_dlopen=no
  11420. fi
  11421. rm -f conftest.err conftest.$ac_objext \
  11422. conftest$ac_exeext conftest.$ac_ext
  11423. fi
  11424. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  11425. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  11426. if test $ac_cv_func_dlopen = yes; then
  11427. lt_cv_dlopen="dlopen"
  11428. else
  11429. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  11430. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  11431. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  11432. echo $ECHO_N "(cached) $ECHO_C" >&6
  11433. else
  11434. ac_check_lib_save_LIBS=$LIBS
  11435. LIBS="-ldl $LIBS"
  11436. cat >conftest.$ac_ext <<_ACEOF
  11437. /* confdefs.h. */
  11438. _ACEOF
  11439. cat confdefs.h >>conftest.$ac_ext
  11440. cat >>conftest.$ac_ext <<_ACEOF
  11441. /* end confdefs.h. */
  11442. /* Override any gcc2 internal prototype to avoid an error. */
  11443. #ifdef __cplusplus
  11444. extern "C"
  11445. #endif
  11446. /* We use char because int might match the return type of a gcc2
  11447. builtin and then its argument prototype would still apply. */
  11448. char dlopen ();
  11449. int
  11450. main ()
  11451. {
  11452. dlopen ();
  11453. ;
  11454. return 0;
  11455. }
  11456. _ACEOF
  11457. rm -f conftest.$ac_objext conftest$ac_exeext
  11458. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11459. (eval $ac_link) 2>conftest.er1
  11460. ac_status=$?
  11461. grep -v '^ *+' conftest.er1 >conftest.err
  11462. rm -f conftest.er1
  11463. cat conftest.err >&5
  11464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11465. (exit $ac_status); } &&
  11466. { ac_try='test -z "$ac_cxx_werror_flag"
  11467. || test ! -s conftest.err'
  11468. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11469. (eval $ac_try) 2>&5
  11470. ac_status=$?
  11471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11472. (exit $ac_status); }; } &&
  11473. { ac_try='test -s conftest$ac_exeext'
  11474. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11475. (eval $ac_try) 2>&5
  11476. ac_status=$?
  11477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11478. (exit $ac_status); }; }; then
  11479. ac_cv_lib_dl_dlopen=yes
  11480. else
  11481. echo "$as_me: failed program was:" >&5
  11482. sed 's/^/| /' conftest.$ac_ext >&5
  11483. ac_cv_lib_dl_dlopen=no
  11484. fi
  11485. rm -f conftest.err conftest.$ac_objext \
  11486. conftest$ac_exeext conftest.$ac_ext
  11487. LIBS=$ac_check_lib_save_LIBS
  11488. fi
  11489. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  11490. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  11491. if test $ac_cv_lib_dl_dlopen = yes; then
  11492. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11493. else
  11494. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  11495. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  11496. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  11497. echo $ECHO_N "(cached) $ECHO_C" >&6
  11498. else
  11499. ac_check_lib_save_LIBS=$LIBS
  11500. LIBS="-lsvld $LIBS"
  11501. cat >conftest.$ac_ext <<_ACEOF
  11502. /* confdefs.h. */
  11503. _ACEOF
  11504. cat confdefs.h >>conftest.$ac_ext
  11505. cat >>conftest.$ac_ext <<_ACEOF
  11506. /* end confdefs.h. */
  11507. /* Override any gcc2 internal prototype to avoid an error. */
  11508. #ifdef __cplusplus
  11509. extern "C"
  11510. #endif
  11511. /* We use char because int might match the return type of a gcc2
  11512. builtin and then its argument prototype would still apply. */
  11513. char dlopen ();
  11514. int
  11515. main ()
  11516. {
  11517. dlopen ();
  11518. ;
  11519. return 0;
  11520. }
  11521. _ACEOF
  11522. rm -f conftest.$ac_objext conftest$ac_exeext
  11523. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11524. (eval $ac_link) 2>conftest.er1
  11525. ac_status=$?
  11526. grep -v '^ *+' conftest.er1 >conftest.err
  11527. rm -f conftest.er1
  11528. cat conftest.err >&5
  11529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11530. (exit $ac_status); } &&
  11531. { ac_try='test -z "$ac_cxx_werror_flag"
  11532. || test ! -s conftest.err'
  11533. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11534. (eval $ac_try) 2>&5
  11535. ac_status=$?
  11536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11537. (exit $ac_status); }; } &&
  11538. { ac_try='test -s conftest$ac_exeext'
  11539. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11540. (eval $ac_try) 2>&5
  11541. ac_status=$?
  11542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11543. (exit $ac_status); }; }; then
  11544. ac_cv_lib_svld_dlopen=yes
  11545. else
  11546. echo "$as_me: failed program was:" >&5
  11547. sed 's/^/| /' conftest.$ac_ext >&5
  11548. ac_cv_lib_svld_dlopen=no
  11549. fi
  11550. rm -f conftest.err conftest.$ac_objext \
  11551. conftest$ac_exeext conftest.$ac_ext
  11552. LIBS=$ac_check_lib_save_LIBS
  11553. fi
  11554. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  11555. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  11556. if test $ac_cv_lib_svld_dlopen = yes; then
  11557. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  11558. else
  11559. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  11560. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  11561. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  11562. echo $ECHO_N "(cached) $ECHO_C" >&6
  11563. else
  11564. ac_check_lib_save_LIBS=$LIBS
  11565. LIBS="-ldld $LIBS"
  11566. cat >conftest.$ac_ext <<_ACEOF
  11567. /* confdefs.h. */
  11568. _ACEOF
  11569. cat confdefs.h >>conftest.$ac_ext
  11570. cat >>conftest.$ac_ext <<_ACEOF
  11571. /* end confdefs.h. */
  11572. /* Override any gcc2 internal prototype to avoid an error. */
  11573. #ifdef __cplusplus
  11574. extern "C"
  11575. #endif
  11576. /* We use char because int might match the return type of a gcc2
  11577. builtin and then its argument prototype would still apply. */
  11578. char dld_link ();
  11579. int
  11580. main ()
  11581. {
  11582. dld_link ();
  11583. ;
  11584. return 0;
  11585. }
  11586. _ACEOF
  11587. rm -f conftest.$ac_objext conftest$ac_exeext
  11588. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11589. (eval $ac_link) 2>conftest.er1
  11590. ac_status=$?
  11591. grep -v '^ *+' conftest.er1 >conftest.err
  11592. rm -f conftest.er1
  11593. cat conftest.err >&5
  11594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11595. (exit $ac_status); } &&
  11596. { ac_try='test -z "$ac_cxx_werror_flag"
  11597. || test ! -s conftest.err'
  11598. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11599. (eval $ac_try) 2>&5
  11600. ac_status=$?
  11601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11602. (exit $ac_status); }; } &&
  11603. { ac_try='test -s conftest$ac_exeext'
  11604. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11605. (eval $ac_try) 2>&5
  11606. ac_status=$?
  11607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11608. (exit $ac_status); }; }; then
  11609. ac_cv_lib_dld_dld_link=yes
  11610. else
  11611. echo "$as_me: failed program was:" >&5
  11612. sed 's/^/| /' conftest.$ac_ext >&5
  11613. ac_cv_lib_dld_dld_link=no
  11614. fi
  11615. rm -f conftest.err conftest.$ac_objext \
  11616. conftest$ac_exeext conftest.$ac_ext
  11617. LIBS=$ac_check_lib_save_LIBS
  11618. fi
  11619. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  11620. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  11621. if test $ac_cv_lib_dld_dld_link = yes; then
  11622. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  11623. fi
  11624. fi
  11625. fi
  11626. fi
  11627. fi
  11628. fi
  11629. ;;
  11630. esac
  11631. if test "x$lt_cv_dlopen" != xno; then
  11632. enable_dlopen=yes
  11633. else
  11634. enable_dlopen=no
  11635. fi
  11636. case $lt_cv_dlopen in
  11637. dlopen)
  11638. save_CPPFLAGS="$CPPFLAGS"
  11639. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11640. save_LDFLAGS="$LDFLAGS"
  11641. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11642. save_LIBS="$LIBS"
  11643. LIBS="$lt_cv_dlopen_libs $LIBS"
  11644. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  11645. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  11646. if test "${lt_cv_dlopen_self+set}" = set; then
  11647. echo $ECHO_N "(cached) $ECHO_C" >&6
  11648. else
  11649. if test "$cross_compiling" = yes; then :
  11650. lt_cv_dlopen_self=cross
  11651. else
  11652. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11653. lt_status=$lt_dlunknown
  11654. cat > conftest.$ac_ext <<EOF
  11655. #line 12865 "configure"
  11656. #include "confdefs.h"
  11657. #if HAVE_DLFCN_H
  11658. #include <dlfcn.h>
  11659. #endif
  11660. #include <stdio.h>
  11661. #ifdef RTLD_GLOBAL
  11662. # define LT_DLGLOBAL RTLD_GLOBAL
  11663. #else
  11664. # ifdef DL_GLOBAL
  11665. # define LT_DLGLOBAL DL_GLOBAL
  11666. # else
  11667. # define LT_DLGLOBAL 0
  11668. # endif
  11669. #endif
  11670. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11671. find out it does not work in some platform. */
  11672. #ifndef LT_DLLAZY_OR_NOW
  11673. # ifdef RTLD_LAZY
  11674. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11675. # else
  11676. # ifdef DL_LAZY
  11677. # define LT_DLLAZY_OR_NOW DL_LAZY
  11678. # else
  11679. # ifdef RTLD_NOW
  11680. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11681. # else
  11682. # ifdef DL_NOW
  11683. # define LT_DLLAZY_OR_NOW DL_NOW
  11684. # else
  11685. # define LT_DLLAZY_OR_NOW 0
  11686. # endif
  11687. # endif
  11688. # endif
  11689. # endif
  11690. #endif
  11691. #ifdef __cplusplus
  11692. extern "C" void exit (int);
  11693. #endif
  11694. void fnord() { int i=42;}
  11695. int main ()
  11696. {
  11697. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11698. int status = $lt_dlunknown;
  11699. if (self)
  11700. {
  11701. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11702. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11703. /* dlclose (self); */
  11704. }
  11705. exit (status);
  11706. }
  11707. EOF
  11708. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11709. (eval $ac_link) 2>&5
  11710. ac_status=$?
  11711. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11712. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  11713. (./conftest; exit; ) 2>/dev/null
  11714. lt_status=$?
  11715. case x$lt_status in
  11716. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11717. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11718. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  11719. esac
  11720. else :
  11721. # compilation failed
  11722. lt_cv_dlopen_self=no
  11723. fi
  11724. fi
  11725. rm -fr conftest*
  11726. fi
  11727. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  11728. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  11729. if test "x$lt_cv_dlopen_self" = xyes; then
  11730. LDFLAGS="$LDFLAGS $link_static_flag"
  11731. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  11732. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  11733. if test "${lt_cv_dlopen_self_static+set}" = set; then
  11734. echo $ECHO_N "(cached) $ECHO_C" >&6
  11735. else
  11736. if test "$cross_compiling" = yes; then :
  11737. lt_cv_dlopen_self_static=cross
  11738. else
  11739. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11740. lt_status=$lt_dlunknown
  11741. cat > conftest.$ac_ext <<EOF
  11742. #line 12963 "configure"
  11743. #include "confdefs.h"
  11744. #if HAVE_DLFCN_H
  11745. #include <dlfcn.h>
  11746. #endif
  11747. #include <stdio.h>
  11748. #ifdef RTLD_GLOBAL
  11749. # define LT_DLGLOBAL RTLD_GLOBAL
  11750. #else
  11751. # ifdef DL_GLOBAL
  11752. # define LT_DLGLOBAL DL_GLOBAL
  11753. # else
  11754. # define LT_DLGLOBAL 0
  11755. # endif
  11756. #endif
  11757. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11758. find out it does not work in some platform. */
  11759. #ifndef LT_DLLAZY_OR_NOW
  11760. # ifdef RTLD_LAZY
  11761. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11762. # else
  11763. # ifdef DL_LAZY
  11764. # define LT_DLLAZY_OR_NOW DL_LAZY
  11765. # else
  11766. # ifdef RTLD_NOW
  11767. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11768. # else
  11769. # ifdef DL_NOW
  11770. # define LT_DLLAZY_OR_NOW DL_NOW
  11771. # else
  11772. # define LT_DLLAZY_OR_NOW 0
  11773. # endif
  11774. # endif
  11775. # endif
  11776. # endif
  11777. #endif
  11778. #ifdef __cplusplus
  11779. extern "C" void exit (int);
  11780. #endif
  11781. void fnord() { int i=42;}
  11782. int main ()
  11783. {
  11784. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11785. int status = $lt_dlunknown;
  11786. if (self)
  11787. {
  11788. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11789. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11790. /* dlclose (self); */
  11791. }
  11792. exit (status);
  11793. }
  11794. EOF
  11795. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11796. (eval $ac_link) 2>&5
  11797. ac_status=$?
  11798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11799. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  11800. (./conftest; exit; ) 2>/dev/null
  11801. lt_status=$?
  11802. case x$lt_status in
  11803. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11804. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11805. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  11806. esac
  11807. else :
  11808. # compilation failed
  11809. lt_cv_dlopen_self_static=no
  11810. fi
  11811. fi
  11812. rm -fr conftest*
  11813. fi
  11814. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  11815. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  11816. fi
  11817. CPPFLAGS="$save_CPPFLAGS"
  11818. LDFLAGS="$save_LDFLAGS"
  11819. LIBS="$save_LIBS"
  11820. ;;
  11821. esac
  11822. case $lt_cv_dlopen_self in
  11823. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11824. *) enable_dlopen_self=unknown ;;
  11825. esac
  11826. case $lt_cv_dlopen_self_static in
  11827. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11828. *) enable_dlopen_self_static=unknown ;;
  11829. esac
  11830. fi
  11831. # The else clause should only fire when bootstrapping the
  11832. # libtool distribution, otherwise you forgot to ship ltmain.sh
  11833. # with your package, and you will get complaints that there are
  11834. # no rules to generate ltmain.sh.
  11835. if test -f "$ltmain"; then
  11836. # See if we are running on zsh, and set the options which allow our commands through
  11837. # without removal of \ escapes.
  11838. if test -n "${ZSH_VERSION+set}" ; then
  11839. setopt NO_GLOB_SUBST
  11840. fi
  11841. # Now quote all the things that may contain metacharacters while being
  11842. # careful not to overquote the AC_SUBSTed values. We take copies of the
  11843. # variables and quote the copies for generation of the libtool script.
  11844. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  11845. SED SHELL STRIP \
  11846. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  11847. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  11848. deplibs_check_method reload_flag reload_cmds need_locks \
  11849. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  11850. lt_cv_sys_global_symbol_to_c_name_address \
  11851. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  11852. old_postinstall_cmds old_postuninstall_cmds \
  11853. compiler_CXX \
  11854. CC_CXX \
  11855. LD_CXX \
  11856. lt_prog_compiler_wl_CXX \
  11857. lt_prog_compiler_pic_CXX \
  11858. lt_prog_compiler_static_CXX \
  11859. lt_prog_compiler_no_builtin_flag_CXX \
  11860. export_dynamic_flag_spec_CXX \
  11861. thread_safe_flag_spec_CXX \
  11862. whole_archive_flag_spec_CXX \
  11863. enable_shared_with_static_runtimes_CXX \
  11864. old_archive_cmds_CXX \
  11865. old_archive_from_new_cmds_CXX \
  11866. predep_objects_CXX \
  11867. postdep_objects_CXX \
  11868. predeps_CXX \
  11869. postdeps_CXX \
  11870. compiler_lib_search_path_CXX \
  11871. archive_cmds_CXX \
  11872. archive_expsym_cmds_CXX \
  11873. postinstall_cmds_CXX \
  11874. postuninstall_cmds_CXX \
  11875. old_archive_from_expsyms_cmds_CXX \
  11876. allow_undefined_flag_CXX \
  11877. no_undefined_flag_CXX \
  11878. export_symbols_cmds_CXX \
  11879. hardcode_libdir_flag_spec_CXX \
  11880. hardcode_libdir_flag_spec_ld_CXX \
  11881. hardcode_libdir_separator_CXX \
  11882. hardcode_automatic_CXX \
  11883. module_cmds_CXX \
  11884. module_expsym_cmds_CXX \
  11885. lt_cv_prog_compiler_c_o_CXX \
  11886. exclude_expsyms_CXX \
  11887. include_expsyms_CXX; do
  11888. case $var in
  11889. old_archive_cmds_CXX | \
  11890. old_archive_from_new_cmds_CXX | \
  11891. archive_cmds_CXX | \
  11892. archive_expsym_cmds_CXX | \
  11893. module_cmds_CXX | \
  11894. module_expsym_cmds_CXX | \
  11895. old_archive_from_expsyms_cmds_CXX | \
  11896. export_symbols_cmds_CXX | \
  11897. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  11898. postinstall_cmds | postuninstall_cmds | \
  11899. old_postinstall_cmds | old_postuninstall_cmds | \
  11900. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  11901. # Double-quote double-evaled strings.
  11902. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  11903. ;;
  11904. *)
  11905. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  11906. ;;
  11907. esac
  11908. done
  11909. case $lt_echo in
  11910. *'\$0 --fallback-echo"')
  11911. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  11912. ;;
  11913. esac
  11914. cfgfile="$ofile"
  11915. cat <<__EOF__ >> "$cfgfile"
  11916. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  11917. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11918. # Shell to use when invoking shell scripts.
  11919. SHELL=$lt_SHELL
  11920. # Whether or not to build shared libraries.
  11921. build_libtool_libs=$enable_shared
  11922. # Whether or not to build static libraries.
  11923. build_old_libs=$enable_static
  11924. # Whether or not to add -lc for building shared libraries.
  11925. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  11926. # Whether or not to disallow shared libs when runtime libs are static
  11927. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  11928. # Whether or not to optimize for fast installation.
  11929. fast_install=$enable_fast_install
  11930. # The host system.
  11931. host_alias=$host_alias
  11932. host=$host
  11933. host_os=$host_os
  11934. # The build system.
  11935. build_alias=$build_alias
  11936. build=$build
  11937. build_os=$build_os
  11938. # An echo program that does not interpret backslashes.
  11939. echo=$lt_echo
  11940. # The archiver.
  11941. AR=$lt_AR
  11942. AR_FLAGS=$lt_AR_FLAGS
  11943. # A C compiler.
  11944. LTCC=$lt_LTCC
  11945. # A language-specific compiler.
  11946. CC=$lt_compiler_CXX
  11947. # Is the compiler the GNU C compiler?
  11948. with_gcc=$GCC_CXX
  11949. # An ERE matcher.
  11950. EGREP=$lt_EGREP
  11951. # The linker used to build libraries.
  11952. LD=$lt_LD_CXX
  11953. # Whether we need hard or soft links.
  11954. LN_S=$lt_LN_S
  11955. # A BSD-compatible nm program.
  11956. NM=$lt_NM
  11957. # A symbol stripping program
  11958. STRIP=$lt_STRIP
  11959. # Used to examine libraries when file_magic_cmd begins "file"
  11960. MAGIC_CMD=$MAGIC_CMD
  11961. # Used on cygwin: DLL creation program.
  11962. DLLTOOL="$DLLTOOL"
  11963. # Used on cygwin: object dumper.
  11964. OBJDUMP="$OBJDUMP"
  11965. # Used on cygwin: assembler.
  11966. AS="$AS"
  11967. # The name of the directory that contains temporary libtool files.
  11968. objdir=$objdir
  11969. # How to create reloadable object files.
  11970. reload_flag=$lt_reload_flag
  11971. reload_cmds=$lt_reload_cmds
  11972. # How to pass a linker flag through the compiler.
  11973. wl=$lt_lt_prog_compiler_wl_CXX
  11974. # Object file suffix (normally "o").
  11975. objext="$ac_objext"
  11976. # Old archive suffix (normally "a").
  11977. libext="$libext"
  11978. # Shared library suffix (normally ".so").
  11979. shrext_cmds='$shrext_cmds'
  11980. # Executable file suffix (normally "").
  11981. exeext="$exeext"
  11982. # Additional compiler flags for building library objects.
  11983. pic_flag=$lt_lt_prog_compiler_pic_CXX
  11984. pic_mode=$pic_mode
  11985. # What is the maximum length of a command?
  11986. max_cmd_len=$lt_cv_sys_max_cmd_len
  11987. # Does compiler simultaneously support -c and -o options?
  11988. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  11989. # Must we lock files when doing compilation?
  11990. need_locks=$lt_need_locks
  11991. # Do we need the lib prefix for modules?
  11992. need_lib_prefix=$need_lib_prefix
  11993. # Do we need a version for libraries?
  11994. need_version=$need_version
  11995. # Whether dlopen is supported.
  11996. dlopen_support=$enable_dlopen
  11997. # Whether dlopen of programs is supported.
  11998. dlopen_self=$enable_dlopen_self
  11999. # Whether dlopen of statically linked programs is supported.
  12000. dlopen_self_static=$enable_dlopen_self_static
  12001. # Compiler flag to prevent dynamic linking.
  12002. link_static_flag=$lt_lt_prog_compiler_static_CXX
  12003. # Compiler flag to turn off builtin functions.
  12004. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  12005. # Compiler flag to allow reflexive dlopens.
  12006. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  12007. # Compiler flag to generate shared objects directly from archives.
  12008. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  12009. # Compiler flag to generate thread-safe objects.
  12010. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  12011. # Library versioning type.
  12012. version_type=$version_type
  12013. # Format of library name prefix.
  12014. libname_spec=$lt_libname_spec
  12015. # List of archive names. First name is the real one, the rest are links.
  12016. # The last name is the one that the linker finds with -lNAME.
  12017. library_names_spec=$lt_library_names_spec
  12018. # The coded name of the library, if different from the real name.
  12019. soname_spec=$lt_soname_spec
  12020. # Commands used to build and install an old-style archive.
  12021. RANLIB=$lt_RANLIB
  12022. old_archive_cmds=$lt_old_archive_cmds_CXX
  12023. old_postinstall_cmds=$lt_old_postinstall_cmds
  12024. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12025. # Create an old-style archive from a shared archive.
  12026. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  12027. # Create a temporary old-style archive to link instead of a shared archive.
  12028. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  12029. # Commands used to build and install a shared archive.
  12030. archive_cmds=$lt_archive_cmds_CXX
  12031. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  12032. postinstall_cmds=$lt_postinstall_cmds
  12033. postuninstall_cmds=$lt_postuninstall_cmds
  12034. # Commands used to build a loadable module (assumed same as above if empty)
  12035. module_cmds=$lt_module_cmds_CXX
  12036. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  12037. # Commands to strip libraries.
  12038. old_striplib=$lt_old_striplib
  12039. striplib=$lt_striplib
  12040. # Dependencies to place before the objects being linked to create a
  12041. # shared library.
  12042. predep_objects=$lt_predep_objects_CXX
  12043. # Dependencies to place after the objects being linked to create a
  12044. # shared library.
  12045. postdep_objects=$lt_postdep_objects_CXX
  12046. # Dependencies to place before the objects being linked to create a
  12047. # shared library.
  12048. predeps=$lt_predeps_CXX
  12049. # Dependencies to place after the objects being linked to create a
  12050. # shared library.
  12051. postdeps=$lt_postdeps_CXX
  12052. # The library search path used internally by the compiler when linking
  12053. # a shared library.
  12054. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  12055. # Method to check whether dependent libraries are shared objects.
  12056. deplibs_check_method=$lt_deplibs_check_method
  12057. # Command to use when deplibs_check_method == file_magic.
  12058. file_magic_cmd=$lt_file_magic_cmd
  12059. # Flag that allows shared libraries with undefined symbols to be built.
  12060. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  12061. # Flag that forces no undefined symbols.
  12062. no_undefined_flag=$lt_no_undefined_flag_CXX
  12063. # Commands used to finish a libtool library installation in a directory.
  12064. finish_cmds=$lt_finish_cmds
  12065. # Same as above, but a single script fragment to be evaled but not shown.
  12066. finish_eval=$lt_finish_eval
  12067. # Take the output of nm and produce a listing of raw symbols and C names.
  12068. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12069. # Transform the output of nm in a proper C declaration
  12070. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12071. # Transform the output of nm in a C name address pair
  12072. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12073. # This is the shared library runtime path variable.
  12074. runpath_var=$runpath_var
  12075. # This is the shared library path variable.
  12076. shlibpath_var=$shlibpath_var
  12077. # Is shlibpath searched before the hard-coded library search path?
  12078. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12079. # How to hardcode a shared library path into an executable.
  12080. hardcode_action=$hardcode_action_CXX
  12081. # Whether we should hardcode library paths into libraries.
  12082. hardcode_into_libs=$hardcode_into_libs
  12083. # Flag to hardcode \$libdir into a binary during linking.
  12084. # This must work even if \$libdir does not exist.
  12085. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  12086. # If ld is used when linking, flag to hardcode \$libdir into
  12087. # a binary during linking. This must work even if \$libdir does
  12088. # not exist.
  12089. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  12090. # Whether we need a single -rpath flag with a separated argument.
  12091. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  12092. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  12093. # resulting binary.
  12094. hardcode_direct=$hardcode_direct_CXX
  12095. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  12096. # resulting binary.
  12097. hardcode_minus_L=$hardcode_minus_L_CXX
  12098. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  12099. # the resulting binary.
  12100. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  12101. # Set to yes if building a shared library automatically hardcodes DIR into the library
  12102. # and all subsequent libraries and executables linked against it.
  12103. hardcode_automatic=$hardcode_automatic_CXX
  12104. # Variables whose values should be saved in libtool wrapper scripts and
  12105. # restored at relink time.
  12106. variables_saved_for_relink="$variables_saved_for_relink"
  12107. # Whether libtool must link a program against all its dependency libraries.
  12108. link_all_deplibs=$link_all_deplibs_CXX
  12109. # Compile-time system search path for libraries
  12110. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12111. # Run-time system search path for libraries
  12112. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12113. # Fix the shell variable \$srcfile for the compiler.
  12114. fix_srcfile_path="$fix_srcfile_path_CXX"
  12115. # Set to yes if exported symbols are required.
  12116. always_export_symbols=$always_export_symbols_CXX
  12117. # The commands to list exported symbols.
  12118. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  12119. # The commands to extract the exported symbol list from a shared archive.
  12120. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12121. # Symbols that should not be listed in the preloaded symbols.
  12122. exclude_expsyms=$lt_exclude_expsyms_CXX
  12123. # Symbols that must always be exported.
  12124. include_expsyms=$lt_include_expsyms_CXX
  12125. # ### END LIBTOOL TAG CONFIG: $tagname
  12126. __EOF__
  12127. else
  12128. # If there is no Makefile yet, we rely on a make rule to execute
  12129. # `config.status --recheck' to rerun these tests and create the
  12130. # libtool script then.
  12131. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  12132. if test -f "$ltmain_in"; then
  12133. test -f Makefile && make "$ltmain"
  12134. fi
  12135. fi
  12136. ac_ext=c
  12137. ac_cpp='$CPP $CPPFLAGS'
  12138. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12139. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12140. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12141. CC=$lt_save_CC
  12142. LDCXX=$LD
  12143. LD=$lt_save_LD
  12144. GCC=$lt_save_GCC
  12145. with_gnu_ldcxx=$with_gnu_ld
  12146. with_gnu_ld=$lt_save_with_gnu_ld
  12147. lt_cv_path_LDCXX=$lt_cv_path_LD
  12148. lt_cv_path_LD=$lt_save_path_LD
  12149. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12150. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12151. else
  12152. tagname=""
  12153. fi
  12154. ;;
  12155. F77)
  12156. if test -n "$F77" && test "X$F77" != "Xno"; then
  12157. ac_ext=f
  12158. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  12159. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12160. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  12161. archive_cmds_need_lc_F77=no
  12162. allow_undefined_flag_F77=
  12163. always_export_symbols_F77=no
  12164. archive_expsym_cmds_F77=
  12165. export_dynamic_flag_spec_F77=
  12166. hardcode_direct_F77=no
  12167. hardcode_libdir_flag_spec_F77=
  12168. hardcode_libdir_flag_spec_ld_F77=
  12169. hardcode_libdir_separator_F77=
  12170. hardcode_minus_L_F77=no
  12171. hardcode_automatic_F77=no
  12172. module_cmds_F77=
  12173. module_expsym_cmds_F77=
  12174. link_all_deplibs_F77=unknown
  12175. old_archive_cmds_F77=$old_archive_cmds
  12176. no_undefined_flag_F77=
  12177. whole_archive_flag_spec_F77=
  12178. enable_shared_with_static_runtimes_F77=no
  12179. # Source file extension for f77 test sources.
  12180. ac_ext=f
  12181. # Object file extension for compiled f77 test sources.
  12182. objext=o
  12183. objext_F77=$objext
  12184. # Code to be used in simple compile tests
  12185. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  12186. # Code to be used in simple link tests
  12187. lt_simple_link_test_code=" program t\n end\n"
  12188. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12189. # If no C compiler was specified, use CC.
  12190. LTCC=${LTCC-"$CC"}
  12191. # Allow CC to be a program name with arguments.
  12192. compiler=$CC
  12193. # save warnings/boilerplate of simple test code
  12194. ac_outfile=conftest.$ac_objext
  12195. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  12196. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  12197. _lt_compiler_boilerplate=`cat conftest.err`
  12198. $rm conftest*
  12199. ac_outfile=conftest.$ac_objext
  12200. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  12201. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  12202. _lt_linker_boilerplate=`cat conftest.err`
  12203. $rm conftest*
  12204. # Allow CC to be a program name with arguments.
  12205. lt_save_CC="$CC"
  12206. CC=${F77-"f77"}
  12207. compiler=$CC
  12208. compiler_F77=$CC
  12209. for cc_temp in $compiler""; do
  12210. case $cc_temp in
  12211. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12212. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12213. \-*) ;;
  12214. *) break;;
  12215. esac
  12216. done
  12217. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12218. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  12219. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  12220. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  12221. echo "${ECHO_T}$can_build_shared" >&6
  12222. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  12223. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  12224. test "$can_build_shared" = "no" && enable_shared=no
  12225. # On AIX, shared libraries and static libraries use the same namespace, and
  12226. # are all built from PIC.
  12227. case "$host_os" in
  12228. aix3*)
  12229. test "$enable_shared" = yes && enable_static=no
  12230. if test -n "$RANLIB"; then
  12231. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12232. postinstall_cmds='$RANLIB $lib'
  12233. fi
  12234. ;;
  12235. aix4* | aix5*)
  12236. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  12237. test "$enable_shared" = yes && enable_static=no
  12238. fi
  12239. ;;
  12240. esac
  12241. echo "$as_me:$LINENO: result: $enable_shared" >&5
  12242. echo "${ECHO_T}$enable_shared" >&6
  12243. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  12244. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  12245. # Make sure either enable_shared or enable_static is yes.
  12246. test "$enable_shared" = yes || enable_static=yes
  12247. echo "$as_me:$LINENO: result: $enable_static" >&5
  12248. echo "${ECHO_T}$enable_static" >&6
  12249. test "$ld_shlibs_F77" = no && can_build_shared=no
  12250. GCC_F77="$G77"
  12251. LD_F77="$LD"
  12252. lt_prog_compiler_wl_F77=
  12253. lt_prog_compiler_pic_F77=
  12254. lt_prog_compiler_static_F77=
  12255. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12256. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  12257. if test "$GCC" = yes; then
  12258. lt_prog_compiler_wl_F77='-Wl,'
  12259. lt_prog_compiler_static_F77='-static'
  12260. case $host_os in
  12261. aix*)
  12262. # All AIX code is PIC.
  12263. if test "$host_cpu" = ia64; then
  12264. # AIX 5 now supports IA64 processor
  12265. lt_prog_compiler_static_F77='-Bstatic'
  12266. fi
  12267. ;;
  12268. amigaos*)
  12269. # FIXME: we need at least 68020 code to build shared libraries, but
  12270. # adding the `-m68020' flag to GCC prevents building anything better,
  12271. # like `-m68040'.
  12272. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  12273. ;;
  12274. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12275. # PIC is the default for these OSes.
  12276. ;;
  12277. mingw* | pw32* | os2*)
  12278. # This hack is so that the source file can tell whether it is being
  12279. # built for inclusion in a dll (and should export symbols for example).
  12280. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12281. ;;
  12282. darwin* | rhapsody*)
  12283. # PIC is the default on this platform
  12284. # Common symbols not allowed in MH_DYLIB files
  12285. lt_prog_compiler_pic_F77='-fno-common'
  12286. ;;
  12287. msdosdjgpp*)
  12288. # Just because we use GCC doesn't mean we suddenly get shared libraries
  12289. # on systems that don't support them.
  12290. lt_prog_compiler_can_build_shared_F77=no
  12291. enable_shared=no
  12292. ;;
  12293. sysv4*MP*)
  12294. if test -d /usr/nec; then
  12295. lt_prog_compiler_pic_F77=-Kconform_pic
  12296. fi
  12297. ;;
  12298. hpux*)
  12299. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12300. # not for PA HP-UX.
  12301. case "$host_cpu" in
  12302. hppa*64*|ia64*)
  12303. # +Z the default
  12304. ;;
  12305. *)
  12306. lt_prog_compiler_pic_F77='-fPIC'
  12307. ;;
  12308. esac
  12309. ;;
  12310. *)
  12311. lt_prog_compiler_pic_F77='-fPIC'
  12312. ;;
  12313. esac
  12314. else
  12315. # PORTME Check for flag to pass linker flags through the system compiler.
  12316. case $host_os in
  12317. aix*)
  12318. lt_prog_compiler_wl_F77='-Wl,'
  12319. if test "$host_cpu" = ia64; then
  12320. # AIX 5 now supports IA64 processor
  12321. lt_prog_compiler_static_F77='-Bstatic'
  12322. else
  12323. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  12324. fi
  12325. ;;
  12326. darwin*)
  12327. # PIC is the default on this platform
  12328. # Common symbols not allowed in MH_DYLIB files
  12329. case $cc_basename in
  12330. xlc*)
  12331. lt_prog_compiler_pic_F77='-qnocommon'
  12332. lt_prog_compiler_wl_F77='-Wl,'
  12333. ;;
  12334. esac
  12335. ;;
  12336. mingw* | pw32* | os2*)
  12337. # This hack is so that the source file can tell whether it is being
  12338. # built for inclusion in a dll (and should export symbols for example).
  12339. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12340. ;;
  12341. hpux9* | hpux10* | hpux11*)
  12342. lt_prog_compiler_wl_F77='-Wl,'
  12343. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12344. # not for PA HP-UX.
  12345. case "$host_cpu" in
  12346. hppa*64*|ia64*)
  12347. # +Z the default
  12348. ;;
  12349. *)
  12350. lt_prog_compiler_pic_F77='+Z'
  12351. ;;
  12352. esac
  12353. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12354. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  12355. ;;
  12356. irix5* | irix6* | nonstopux*)
  12357. lt_prog_compiler_wl_F77='-Wl,'
  12358. # PIC (with -KPIC) is the default.
  12359. lt_prog_compiler_static_F77='-non_shared'
  12360. ;;
  12361. newsos6)
  12362. lt_prog_compiler_pic_F77='-KPIC'
  12363. lt_prog_compiler_static_F77='-Bstatic'
  12364. ;;
  12365. linux*)
  12366. case $cc_basename in
  12367. icc* | ecc*)
  12368. lt_prog_compiler_wl_F77='-Wl,'
  12369. lt_prog_compiler_pic_F77='-KPIC'
  12370. lt_prog_compiler_static_F77='-static'
  12371. ;;
  12372. pgcc* | pgf77* | pgf90*)
  12373. # Portland Group compilers (*not* the Pentium gcc compiler,
  12374. # which looks to be a dead project)
  12375. lt_prog_compiler_wl_F77='-Wl,'
  12376. lt_prog_compiler_pic_F77='-fpic'
  12377. lt_prog_compiler_static_F77='-static'
  12378. ;;
  12379. ccc*)
  12380. lt_prog_compiler_wl_F77='-Wl,'
  12381. # All Alpha code is PIC.
  12382. lt_prog_compiler_static_F77='-non_shared'
  12383. ;;
  12384. esac
  12385. ;;
  12386. osf3* | osf4* | osf5*)
  12387. lt_prog_compiler_wl_F77='-Wl,'
  12388. # All OSF/1 code is PIC.
  12389. lt_prog_compiler_static_F77='-non_shared'
  12390. ;;
  12391. sco3.2v5*)
  12392. lt_prog_compiler_pic_F77='-Kpic'
  12393. lt_prog_compiler_static_F77='-dn'
  12394. ;;
  12395. solaris*)
  12396. lt_prog_compiler_pic_F77='-KPIC'
  12397. lt_prog_compiler_static_F77='-Bstatic'
  12398. case $cc_basename in
  12399. f77* | f90* | f95*)
  12400. lt_prog_compiler_wl_F77='-Qoption ld ';;
  12401. *)
  12402. lt_prog_compiler_wl_F77='-Wl,';;
  12403. esac
  12404. ;;
  12405. sunos4*)
  12406. lt_prog_compiler_wl_F77='-Qoption ld '
  12407. lt_prog_compiler_pic_F77='-PIC'
  12408. lt_prog_compiler_static_F77='-Bstatic'
  12409. ;;
  12410. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  12411. lt_prog_compiler_wl_F77='-Wl,'
  12412. lt_prog_compiler_pic_F77='-KPIC'
  12413. lt_prog_compiler_static_F77='-Bstatic'
  12414. ;;
  12415. sysv4*MP*)
  12416. if test -d /usr/nec ;then
  12417. lt_prog_compiler_pic_F77='-Kconform_pic'
  12418. lt_prog_compiler_static_F77='-Bstatic'
  12419. fi
  12420. ;;
  12421. unicos*)
  12422. lt_prog_compiler_wl_F77='-Wl,'
  12423. lt_prog_compiler_can_build_shared_F77=no
  12424. ;;
  12425. uts4*)
  12426. lt_prog_compiler_pic_F77='-pic'
  12427. lt_prog_compiler_static_F77='-Bstatic'
  12428. ;;
  12429. *)
  12430. lt_prog_compiler_can_build_shared_F77=no
  12431. ;;
  12432. esac
  12433. fi
  12434. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  12435. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
  12436. #
  12437. # Check to make sure the PIC flag actually works.
  12438. #
  12439. if test -n "$lt_prog_compiler_pic_F77"; then
  12440. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  12441. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
  12442. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  12443. echo $ECHO_N "(cached) $ECHO_C" >&6
  12444. else
  12445. lt_prog_compiler_pic_works_F77=no
  12446. ac_outfile=conftest.$ac_objext
  12447. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12448. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  12449. # Insert the option either (1) after the last *FLAGS variable, or
  12450. # (2) before a word containing "conftest.", or (3) at the end.
  12451. # Note that $ac_compile itself does not contain backslashes and begins
  12452. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12453. # The option is referenced via a variable to avoid confusing sed.
  12454. lt_compile=`echo "$ac_compile" | $SED \
  12455. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  12456. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12457. -e 's:$: $lt_compiler_flag:'`
  12458. (eval echo "\"\$as_me:13848: $lt_compile\"" >&5)
  12459. (eval "$lt_compile" 2>conftest.err)
  12460. ac_status=$?
  12461. cat conftest.err >&5
  12462. echo "$as_me:13852: \$? = $ac_status" >&5
  12463. if (exit $ac_status) && test -s "$ac_outfile"; then
  12464. # The compiler can only warn and ignore the option if not recognized
  12465. # So say no if there are warnings other than the usual output.
  12466. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  12467. $SED '/^$/d' conftest.err >conftest.er2
  12468. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  12469. lt_prog_compiler_pic_works_F77=yes
  12470. fi
  12471. fi
  12472. $rm conftest*
  12473. fi
  12474. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  12475. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
  12476. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  12477. case $lt_prog_compiler_pic_F77 in
  12478. "" | " "*) ;;
  12479. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  12480. esac
  12481. else
  12482. lt_prog_compiler_pic_F77=
  12483. lt_prog_compiler_can_build_shared_F77=no
  12484. fi
  12485. fi
  12486. case "$host_os" in
  12487. # For platforms which do not support PIC, -DPIC is meaningless:
  12488. *djgpp*)
  12489. lt_prog_compiler_pic_F77=
  12490. ;;
  12491. *)
  12492. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  12493. ;;
  12494. esac
  12495. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12496. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  12497. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  12498. echo $ECHO_N "(cached) $ECHO_C" >&6
  12499. else
  12500. lt_cv_prog_compiler_c_o_F77=no
  12501. $rm -r conftest 2>/dev/null
  12502. mkdir conftest
  12503. cd conftest
  12504. mkdir out
  12505. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12506. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12507. # Insert the option either (1) after the last *FLAGS variable, or
  12508. # (2) before a word containing "conftest.", or (3) at the end.
  12509. # Note that $ac_compile itself does not contain backslashes and begins
  12510. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12511. lt_compile=`echo "$ac_compile" | $SED \
  12512. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  12513. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12514. -e 's:$: $lt_compiler_flag:'`
  12515. (eval echo "\"\$as_me:13910: $lt_compile\"" >&5)
  12516. (eval "$lt_compile" 2>out/conftest.err)
  12517. ac_status=$?
  12518. cat out/conftest.err >&5
  12519. echo "$as_me:13914: \$? = $ac_status" >&5
  12520. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12521. then
  12522. # The compiler can only warn and ignore the option if not recognized
  12523. # So say no if there are warnings
  12524. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  12525. $SED '/^$/d' out/conftest.err >out/conftest.er2
  12526. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12527. lt_cv_prog_compiler_c_o_F77=yes
  12528. fi
  12529. fi
  12530. chmod u+w .
  12531. $rm conftest*
  12532. # SGI C++ compiler will create directory out/ii_files/ for
  12533. # template instantiation
  12534. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  12535. $rm out/* && rmdir out
  12536. cd ..
  12537. rmdir conftest
  12538. $rm conftest*
  12539. fi
  12540. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  12541. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
  12542. hard_links="nottested"
  12543. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  12544. # do not overwrite the value of need_locks provided by the user
  12545. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12546. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  12547. hard_links=yes
  12548. $rm conftest*
  12549. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12550. touch conftest.a
  12551. ln conftest.a conftest.b 2>&5 || hard_links=no
  12552. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12553. echo "$as_me:$LINENO: result: $hard_links" >&5
  12554. echo "${ECHO_T}$hard_links" >&6
  12555. if test "$hard_links" = no; then
  12556. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12557. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12558. need_locks=warn
  12559. fi
  12560. else
  12561. need_locks=no
  12562. fi
  12563. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12564. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  12565. runpath_var=
  12566. allow_undefined_flag_F77=
  12567. enable_shared_with_static_runtimes_F77=no
  12568. archive_cmds_F77=
  12569. archive_expsym_cmds_F77=
  12570. old_archive_From_new_cmds_F77=
  12571. old_archive_from_expsyms_cmds_F77=
  12572. export_dynamic_flag_spec_F77=
  12573. whole_archive_flag_spec_F77=
  12574. thread_safe_flag_spec_F77=
  12575. hardcode_libdir_flag_spec_F77=
  12576. hardcode_libdir_flag_spec_ld_F77=
  12577. hardcode_libdir_separator_F77=
  12578. hardcode_direct_F77=no
  12579. hardcode_minus_L_F77=no
  12580. hardcode_shlibpath_var_F77=unsupported
  12581. link_all_deplibs_F77=unknown
  12582. hardcode_automatic_F77=no
  12583. module_cmds_F77=
  12584. module_expsym_cmds_F77=
  12585. always_export_symbols_F77=no
  12586. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12587. # include_expsyms should be a list of space-separated symbols to be *always*
  12588. # included in the symbol list
  12589. include_expsyms_F77=
  12590. # exclude_expsyms can be an extended regexp of symbols to exclude
  12591. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  12592. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  12593. # as well as any symbol that contains `d'.
  12594. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  12595. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12596. # platforms (ab)use it in PIC code, but their linkers get confused if
  12597. # the symbol is explicitly referenced. Since portable code cannot
  12598. # rely on this symbol name, it's probably fine to never include it in
  12599. # preloaded symbol tables.
  12600. extract_expsyms_cmds=
  12601. # Just being paranoid about ensuring that cc_basename is set.
  12602. for cc_temp in $compiler""; do
  12603. case $cc_temp in
  12604. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12605. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12606. \-*) ;;
  12607. *) break;;
  12608. esac
  12609. done
  12610. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12611. case $host_os in
  12612. cygwin* | mingw* | pw32*)
  12613. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  12614. # When not using gcc, we currently assume that we are using
  12615. # Microsoft Visual C++.
  12616. if test "$GCC" != yes; then
  12617. with_gnu_ld=no
  12618. fi
  12619. ;;
  12620. openbsd*)
  12621. with_gnu_ld=no
  12622. ;;
  12623. esac
  12624. ld_shlibs_F77=yes
  12625. if test "$with_gnu_ld" = yes; then
  12626. # If archive_cmds runs LD, not CC, wlarc should be empty
  12627. wlarc='${wl}'
  12628. # Set some defaults for GNU ld with shared library support. These
  12629. # are reset later if shared libraries are not supported. Putting them
  12630. # here allows them to be overridden if necessary.
  12631. runpath_var=LD_RUN_PATH
  12632. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  12633. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  12634. # ancient GNU ld didn't support --whole-archive et. al.
  12635. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  12636. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12637. else
  12638. whole_archive_flag_spec_F77=
  12639. fi
  12640. supports_anon_versioning=no
  12641. case `$LD -v 2>/dev/null` in
  12642. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12643. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12644. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12645. *\ 2.11.*) ;; # other 2.11 versions
  12646. *) supports_anon_versioning=yes ;;
  12647. esac
  12648. # See if GNU ld supports shared libraries.
  12649. case $host_os in
  12650. aix3* | aix4* | aix5*)
  12651. # On AIX/PPC, the GNU linker is very broken
  12652. if test "$host_cpu" != ia64; then
  12653. ld_shlibs_F77=no
  12654. cat <<EOF 1>&2
  12655. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  12656. *** to be unable to reliably create shared libraries on AIX.
  12657. *** Therefore, libtool is disabling shared libraries support. If you
  12658. *** really care for shared libraries, you may want to modify your PATH
  12659. *** so that a non-GNU linker is found, and then restart.
  12660. EOF
  12661. fi
  12662. ;;
  12663. amigaos*)
  12664. 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)'
  12665. hardcode_libdir_flag_spec_F77='-L$libdir'
  12666. hardcode_minus_L_F77=yes
  12667. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  12668. # that the semantics of dynamic libraries on AmigaOS, at least up
  12669. # to version 4, is to share data among multiple programs linked
  12670. # with the same dynamic library. Since this doesn't match the
  12671. # behavior of shared libraries on other platforms, we can't use
  12672. # them.
  12673. ld_shlibs_F77=no
  12674. ;;
  12675. beos*)
  12676. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12677. allow_undefined_flag_F77=unsupported
  12678. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12679. # support --undefined. This deserves some investigation. FIXME
  12680. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12681. else
  12682. ld_shlibs_F77=no
  12683. fi
  12684. ;;
  12685. cygwin* | mingw* | pw32*)
  12686. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  12687. # as there is no search path for DLLs.
  12688. hardcode_libdir_flag_spec_F77='-L$libdir'
  12689. allow_undefined_flag_F77=unsupported
  12690. always_export_symbols_F77=no
  12691. enable_shared_with_static_runtimes_F77=yes
  12692. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  12693. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  12694. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  12695. # If the export-symbols file already is a .def file (1st line
  12696. # is EXPORTS), use it as is; otherwise, prepend...
  12697. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12698. cp $export_symbols $output_objdir/$soname.def;
  12699. else
  12700. echo EXPORTS > $output_objdir/$soname.def;
  12701. cat $export_symbols >> $output_objdir/$soname.def;
  12702. fi~
  12703. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  12704. else
  12705. ld_shlibs_F77=no
  12706. fi
  12707. ;;
  12708. linux*)
  12709. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12710. tmp_addflag=
  12711. case $cc_basename,$host_cpu in
  12712. pgcc*) # Portland Group C compiler
  12713. 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'
  12714. tmp_addflag=' $pic_flag'
  12715. ;;
  12716. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  12717. 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'
  12718. tmp_addflag=' $pic_flag -Mnomain' ;;
  12719. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  12720. tmp_addflag=' -i_dynamic' ;;
  12721. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  12722. tmp_addflag=' -i_dynamic -nofor_main' ;;
  12723. ifc* | ifort*) # Intel Fortran compiler
  12724. tmp_addflag=' -nofor_main' ;;
  12725. esac
  12726. archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12727. if test $supports_anon_versioning = yes; then
  12728. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  12729. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12730. $echo "local: *; };" >> $output_objdir/$libname.ver~
  12731. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12732. fi
  12733. else
  12734. ld_shlibs_F77=no
  12735. fi
  12736. ;;
  12737. netbsd*)
  12738. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12739. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12740. wlarc=
  12741. else
  12742. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12743. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12744. fi
  12745. ;;
  12746. solaris* | sysv5*)
  12747. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  12748. ld_shlibs_F77=no
  12749. cat <<EOF 1>&2
  12750. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12751. *** create shared libraries on Solaris systems. Therefore, libtool
  12752. *** is disabling shared libraries support. We urge you to upgrade GNU
  12753. *** binutils to release 2.9.1 or newer. Another option is to modify
  12754. *** your PATH or compiler configuration so that the native linker is
  12755. *** used, and then restart.
  12756. EOF
  12757. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12758. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12759. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12760. else
  12761. ld_shlibs_F77=no
  12762. fi
  12763. ;;
  12764. sunos4*)
  12765. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12766. wlarc=
  12767. hardcode_direct_F77=yes
  12768. hardcode_shlibpath_var_F77=no
  12769. ;;
  12770. *)
  12771. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12772. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12773. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12774. else
  12775. ld_shlibs_F77=no
  12776. fi
  12777. ;;
  12778. esac
  12779. if test "$ld_shlibs_F77" = no; then
  12780. runpath_var=
  12781. hardcode_libdir_flag_spec_F77=
  12782. export_dynamic_flag_spec_F77=
  12783. whole_archive_flag_spec_F77=
  12784. fi
  12785. else
  12786. # PORTME fill in a description of your system's linker (not GNU ld)
  12787. case $host_os in
  12788. aix3*)
  12789. allow_undefined_flag_F77=unsupported
  12790. always_export_symbols_F77=yes
  12791. 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'
  12792. # Note: this linker hardcodes the directories in LIBPATH if there
  12793. # are no directories specified by -L.
  12794. hardcode_minus_L_F77=yes
  12795. if test "$GCC" = yes && test -z "$link_static_flag"; then
  12796. # Neither direct hardcoding nor static linking is supported with a
  12797. # broken collect2.
  12798. hardcode_direct_F77=unsupported
  12799. fi
  12800. ;;
  12801. aix4* | aix5*)
  12802. if test "$host_cpu" = ia64; then
  12803. # On IA64, the linker does run time linking by default, so we don't
  12804. # have to do anything special.
  12805. aix_use_runtimelinking=no
  12806. exp_sym_flag='-Bexport'
  12807. no_entry_flag=""
  12808. else
  12809. # If we're using GNU nm, then we don't want the "-C" option.
  12810. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12811. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  12812. 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'
  12813. else
  12814. 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'
  12815. fi
  12816. aix_use_runtimelinking=no
  12817. # Test if we are trying to use run time linking or normal
  12818. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12819. # need to do runtime linking.
  12820. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  12821. for ld_flag in $LDFLAGS; do
  12822. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  12823. aix_use_runtimelinking=yes
  12824. break
  12825. fi
  12826. done
  12827. esac
  12828. exp_sym_flag='-bexport'
  12829. no_entry_flag='-bnoentry'
  12830. fi
  12831. # When large executables or shared objects are built, AIX ld can
  12832. # have problems creating the table of contents. If linking a library
  12833. # or program results in "error TOC overflow" add -mminimal-toc to
  12834. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12835. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12836. archive_cmds_F77=''
  12837. hardcode_direct_F77=yes
  12838. hardcode_libdir_separator_F77=':'
  12839. link_all_deplibs_F77=yes
  12840. if test "$GCC" = yes; then
  12841. case $host_os in aix4.[012]|aix4.[012].*)
  12842. # We only want to do this on AIX 4.2 and lower, the check
  12843. # below for broken collect2 doesn't work under 4.3+
  12844. collect2name=`${CC} -print-prog-name=collect2`
  12845. if test -f "$collect2name" && \
  12846. strings "$collect2name" | grep resolve_lib_name >/dev/null
  12847. then
  12848. # We have reworked collect2
  12849. hardcode_direct_F77=yes
  12850. else
  12851. # We have old collect2
  12852. hardcode_direct_F77=unsupported
  12853. # It fails to find uninstalled libraries when the uninstalled
  12854. # path is not listed in the libpath. Setting hardcode_minus_L
  12855. # to unsupported forces relinking
  12856. hardcode_minus_L_F77=yes
  12857. hardcode_libdir_flag_spec_F77='-L$libdir'
  12858. hardcode_libdir_separator_F77=
  12859. fi
  12860. esac
  12861. shared_flag='-shared'
  12862. if test "$aix_use_runtimelinking" = yes; then
  12863. shared_flag="$shared_flag "'${wl}-G'
  12864. fi
  12865. else
  12866. # not using gcc
  12867. if test "$host_cpu" = ia64; then
  12868. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12869. # chokes on -Wl,-G. The following line is correct:
  12870. shared_flag='-G'
  12871. else
  12872. if test "$aix_use_runtimelinking" = yes; then
  12873. shared_flag='${wl}-G'
  12874. else
  12875. shared_flag='${wl}-bM:SRE'
  12876. fi
  12877. fi
  12878. fi
  12879. # It seems that -bexpall does not export symbols beginning with
  12880. # underscore (_), so it is better to generate a list of symbols to export.
  12881. always_export_symbols_F77=yes
  12882. if test "$aix_use_runtimelinking" = yes; then
  12883. # Warning - without using the other runtime loading flags (-brtl),
  12884. # -berok will link without error, but may produce a broken library.
  12885. allow_undefined_flag_F77='-berok'
  12886. # Determine the default libpath from the value encoded in an empty executable.
  12887. cat >conftest.$ac_ext <<_ACEOF
  12888. program main
  12889. end
  12890. _ACEOF
  12891. rm -f conftest.$ac_objext conftest$ac_exeext
  12892. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12893. (eval $ac_link) 2>conftest.er1
  12894. ac_status=$?
  12895. grep -v '^ *+' conftest.er1 >conftest.err
  12896. rm -f conftest.er1
  12897. cat conftest.err >&5
  12898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12899. (exit $ac_status); } &&
  12900. { ac_try='test -z "$ac_f77_werror_flag"
  12901. || test ! -s conftest.err'
  12902. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12903. (eval $ac_try) 2>&5
  12904. ac_status=$?
  12905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12906. (exit $ac_status); }; } &&
  12907. { ac_try='test -s conftest$ac_exeext'
  12908. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12909. (eval $ac_try) 2>&5
  12910. ac_status=$?
  12911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12912. (exit $ac_status); }; }; then
  12913. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12914. }'`
  12915. # Check for a 64-bit object if we didn't find anything.
  12916. 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; }
  12917. }'`; fi
  12918. else
  12919. echo "$as_me: failed program was:" >&5
  12920. sed 's/^/| /' conftest.$ac_ext >&5
  12921. fi
  12922. rm -f conftest.err conftest.$ac_objext \
  12923. conftest$ac_exeext conftest.$ac_ext
  12924. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12925. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12926. archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  12927. else
  12928. if test "$host_cpu" = ia64; then
  12929. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  12930. allow_undefined_flag_F77="-z nodefs"
  12931. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  12932. else
  12933. # Determine the default libpath from the value encoded in an empty executable.
  12934. cat >conftest.$ac_ext <<_ACEOF
  12935. program main
  12936. end
  12937. _ACEOF
  12938. rm -f conftest.$ac_objext conftest$ac_exeext
  12939. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12940. (eval $ac_link) 2>conftest.er1
  12941. ac_status=$?
  12942. grep -v '^ *+' conftest.er1 >conftest.err
  12943. rm -f conftest.er1
  12944. cat conftest.err >&5
  12945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12946. (exit $ac_status); } &&
  12947. { ac_try='test -z "$ac_f77_werror_flag"
  12948. || test ! -s conftest.err'
  12949. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12950. (eval $ac_try) 2>&5
  12951. ac_status=$?
  12952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12953. (exit $ac_status); }; } &&
  12954. { ac_try='test -s conftest$ac_exeext'
  12955. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12956. (eval $ac_try) 2>&5
  12957. ac_status=$?
  12958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12959. (exit $ac_status); }; }; then
  12960. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12961. }'`
  12962. # Check for a 64-bit object if we didn't find anything.
  12963. 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; }
  12964. }'`; fi
  12965. else
  12966. echo "$as_me: failed program was:" >&5
  12967. sed 's/^/| /' conftest.$ac_ext >&5
  12968. fi
  12969. rm -f conftest.err conftest.$ac_objext \
  12970. conftest$ac_exeext conftest.$ac_ext
  12971. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12972. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12973. # Warning - without using the other run time loading flags,
  12974. # -berok will link without error, but may produce a broken library.
  12975. no_undefined_flag_F77=' ${wl}-bernotok'
  12976. allow_undefined_flag_F77=' ${wl}-berok'
  12977. # -bexpall does not export symbols beginning with underscore (_)
  12978. always_export_symbols_F77=yes
  12979. # Exported symbols can be pulled into shared objects from archives
  12980. whole_archive_flag_spec_F77=' '
  12981. archive_cmds_need_lc_F77=yes
  12982. # This is similar to how AIX traditionally builds it's shared libraries.
  12983. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  12984. fi
  12985. fi
  12986. ;;
  12987. amigaos*)
  12988. 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)'
  12989. hardcode_libdir_flag_spec_F77='-L$libdir'
  12990. hardcode_minus_L_F77=yes
  12991. # see comment about different semantics on the GNU ld section
  12992. ld_shlibs_F77=no
  12993. ;;
  12994. bsdi[45]*)
  12995. export_dynamic_flag_spec_F77=-rdynamic
  12996. ;;
  12997. cygwin* | mingw* | pw32*)
  12998. # When not using gcc, we currently assume that we are using
  12999. # Microsoft Visual C++.
  13000. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13001. # no search path for DLLs.
  13002. hardcode_libdir_flag_spec_F77=' '
  13003. allow_undefined_flag_F77=unsupported
  13004. # Tell ltmain to make .lib files, not .a files.
  13005. libext=lib
  13006. # Tell ltmain to make .dll files, not .so files.
  13007. shrext_cmds=".dll"
  13008. # FIXME: Setting linknames here is a bad hack.
  13009. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  13010. # The linker will automatically build a .lib file if we build a DLL.
  13011. old_archive_From_new_cmds_F77='true'
  13012. # FIXME: Should let the user specify the lib program.
  13013. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  13014. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  13015. enable_shared_with_static_runtimes_F77=yes
  13016. ;;
  13017. darwin* | rhapsody*)
  13018. case "$host_os" in
  13019. rhapsody* | darwin1.[012])
  13020. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  13021. ;;
  13022. *) # Darwin 1.3 on
  13023. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  13024. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13025. else
  13026. case ${MACOSX_DEPLOYMENT_TARGET} in
  13027. 10.[012])
  13028. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13029. ;;
  13030. 10.*)
  13031. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  13032. ;;
  13033. esac
  13034. fi
  13035. ;;
  13036. esac
  13037. archive_cmds_need_lc_F77=no
  13038. hardcode_direct_F77=no
  13039. hardcode_automatic_F77=yes
  13040. hardcode_shlibpath_var_F77=unsupported
  13041. whole_archive_flag_spec_F77=''
  13042. link_all_deplibs_F77=yes
  13043. if test "$GCC" = yes ; then
  13044. output_verbose_link_cmd='echo'
  13045. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  13046. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13047. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  13048. 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}'
  13049. 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}'
  13050. else
  13051. case $cc_basename in
  13052. xlc*)
  13053. output_verbose_link_cmd='echo'
  13054. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  13055. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13056. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  13057. 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}'
  13058. 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}'
  13059. ;;
  13060. *)
  13061. ld_shlibs_F77=no
  13062. ;;
  13063. esac
  13064. fi
  13065. ;;
  13066. dgux*)
  13067. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13068. hardcode_libdir_flag_spec_F77='-L$libdir'
  13069. hardcode_shlibpath_var_F77=no
  13070. ;;
  13071. freebsd1*)
  13072. ld_shlibs_F77=no
  13073. ;;
  13074. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  13075. # support. Future versions do this automatically, but an explicit c++rt0.o
  13076. # does not break anything, and helps significantly (at the cost of a little
  13077. # extra space).
  13078. freebsd2.2*)
  13079. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  13080. hardcode_libdir_flag_spec_F77='-R$libdir'
  13081. hardcode_direct_F77=yes
  13082. hardcode_shlibpath_var_F77=no
  13083. ;;
  13084. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  13085. freebsd2*)
  13086. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13087. hardcode_direct_F77=yes
  13088. hardcode_minus_L_F77=yes
  13089. hardcode_shlibpath_var_F77=no
  13090. ;;
  13091. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  13092. freebsd* | kfreebsd*-gnu | dragonfly*)
  13093. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  13094. hardcode_libdir_flag_spec_F77='-R$libdir'
  13095. hardcode_direct_F77=yes
  13096. hardcode_shlibpath_var_F77=no
  13097. ;;
  13098. hpux9*)
  13099. if test "$GCC" = yes; then
  13100. 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'
  13101. else
  13102. 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'
  13103. fi
  13104. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13105. hardcode_libdir_separator_F77=:
  13106. hardcode_direct_F77=yes
  13107. # hardcode_minus_L: Not really in the search PATH,
  13108. # but as the default location of the library.
  13109. hardcode_minus_L_F77=yes
  13110. export_dynamic_flag_spec_F77='${wl}-E'
  13111. ;;
  13112. hpux10* | hpux11*)
  13113. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13114. case "$host_cpu" in
  13115. hppa*64*|ia64*)
  13116. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13117. ;;
  13118. *)
  13119. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13120. ;;
  13121. esac
  13122. else
  13123. case "$host_cpu" in
  13124. hppa*64*|ia64*)
  13125. archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  13126. ;;
  13127. *)
  13128. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13129. ;;
  13130. esac
  13131. fi
  13132. if test "$with_gnu_ld" = no; then
  13133. case "$host_cpu" in
  13134. hppa*64*)
  13135. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13136. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  13137. hardcode_libdir_separator_F77=:
  13138. hardcode_direct_F77=no
  13139. hardcode_shlibpath_var_F77=no
  13140. ;;
  13141. ia64*)
  13142. hardcode_libdir_flag_spec_F77='-L$libdir'
  13143. hardcode_direct_F77=no
  13144. hardcode_shlibpath_var_F77=no
  13145. # hardcode_minus_L: Not really in the search PATH,
  13146. # but as the default location of the library.
  13147. hardcode_minus_L_F77=yes
  13148. ;;
  13149. *)
  13150. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13151. hardcode_libdir_separator_F77=:
  13152. hardcode_direct_F77=yes
  13153. export_dynamic_flag_spec_F77='${wl}-E'
  13154. # hardcode_minus_L: Not really in the search PATH,
  13155. # but as the default location of the library.
  13156. hardcode_minus_L_F77=yes
  13157. ;;
  13158. esac
  13159. fi
  13160. ;;
  13161. irix5* | irix6* | nonstopux*)
  13162. if test "$GCC" = yes; then
  13163. 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'
  13164. else
  13165. 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'
  13166. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  13167. fi
  13168. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13169. hardcode_libdir_separator_F77=:
  13170. link_all_deplibs_F77=yes
  13171. ;;
  13172. netbsd*)
  13173. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13174. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  13175. else
  13176. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  13177. fi
  13178. hardcode_libdir_flag_spec_F77='-R$libdir'
  13179. hardcode_direct_F77=yes
  13180. hardcode_shlibpath_var_F77=no
  13181. ;;
  13182. newsos6)
  13183. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13184. hardcode_direct_F77=yes
  13185. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13186. hardcode_libdir_separator_F77=:
  13187. hardcode_shlibpath_var_F77=no
  13188. ;;
  13189. openbsd*)
  13190. hardcode_direct_F77=yes
  13191. hardcode_shlibpath_var_F77=no
  13192. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13193. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13194. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  13195. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13196. export_dynamic_flag_spec_F77='${wl}-E'
  13197. else
  13198. case $host_os in
  13199. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  13200. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13201. hardcode_libdir_flag_spec_F77='-R$libdir'
  13202. ;;
  13203. *)
  13204. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13205. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13206. ;;
  13207. esac
  13208. fi
  13209. ;;
  13210. os2*)
  13211. hardcode_libdir_flag_spec_F77='-L$libdir'
  13212. hardcode_minus_L_F77=yes
  13213. allow_undefined_flag_F77=unsupported
  13214. 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'
  13215. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  13216. ;;
  13217. osf3*)
  13218. if test "$GCC" = yes; then
  13219. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13220. 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'
  13221. else
  13222. allow_undefined_flag_F77=' -expect_unresolved \*'
  13223. 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'
  13224. fi
  13225. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13226. hardcode_libdir_separator_F77=:
  13227. ;;
  13228. osf4* | osf5*) # as osf3* with the addition of -msym flag
  13229. if test "$GCC" = yes; then
  13230. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13231. 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'
  13232. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13233. else
  13234. allow_undefined_flag_F77=' -expect_unresolved \*'
  13235. 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'
  13236. 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~
  13237. $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'
  13238. # Both c and cxx compiler support -rpath directly
  13239. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  13240. fi
  13241. hardcode_libdir_separator_F77=:
  13242. ;;
  13243. sco3.2v5*)
  13244. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13245. hardcode_shlibpath_var_F77=no
  13246. export_dynamic_flag_spec_F77='${wl}-Bexport'
  13247. runpath_var=LD_RUN_PATH
  13248. hardcode_runpath_var=yes
  13249. ;;
  13250. solaris*)
  13251. no_undefined_flag_F77=' -z text'
  13252. if test "$GCC" = yes; then
  13253. wlarc='${wl}'
  13254. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13255. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13256. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  13257. else
  13258. wlarc=''
  13259. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13260. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13261. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13262. fi
  13263. hardcode_libdir_flag_spec_F77='-R$libdir'
  13264. hardcode_shlibpath_var_F77=no
  13265. case $host_os in
  13266. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13267. *)
  13268. # The compiler driver will combine linker options so we
  13269. # cannot just pass the convience library names through
  13270. # without $wl, iff we do not link with $LD.
  13271. # Luckily, gcc supports the same syntax we need for Sun Studio.
  13272. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13273. case $wlarc in
  13274. '')
  13275. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  13276. *)
  13277. 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' ;;
  13278. esac ;;
  13279. esac
  13280. link_all_deplibs_F77=yes
  13281. ;;
  13282. sunos4*)
  13283. if test "x$host_vendor" = xsequent; then
  13284. # Use $CC to link under sequent, because it throws in some extra .o
  13285. # files that make .init and .fini sections work.
  13286. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13287. else
  13288. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13289. fi
  13290. hardcode_libdir_flag_spec_F77='-L$libdir'
  13291. hardcode_direct_F77=yes
  13292. hardcode_minus_L_F77=yes
  13293. hardcode_shlibpath_var_F77=no
  13294. ;;
  13295. sysv4)
  13296. case $host_vendor in
  13297. sni)
  13298. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13299. hardcode_direct_F77=yes # is this really true???
  13300. ;;
  13301. siemens)
  13302. ## LD is ld it makes a PLAMLIB
  13303. ## CC just makes a GrossModule.
  13304. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13305. reload_cmds_F77='$CC -r -o $output$reload_objs'
  13306. hardcode_direct_F77=no
  13307. ;;
  13308. motorola)
  13309. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13310. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  13311. ;;
  13312. esac
  13313. runpath_var='LD_RUN_PATH'
  13314. hardcode_shlibpath_var_F77=no
  13315. ;;
  13316. sysv4.3*)
  13317. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13318. hardcode_shlibpath_var_F77=no
  13319. export_dynamic_flag_spec_F77='-Bexport'
  13320. ;;
  13321. sysv4*MP*)
  13322. if test -d /usr/nec; then
  13323. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13324. hardcode_shlibpath_var_F77=no
  13325. runpath_var=LD_RUN_PATH
  13326. hardcode_runpath_var=yes
  13327. ld_shlibs_F77=yes
  13328. fi
  13329. ;;
  13330. sysv4.2uw2*)
  13331. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13332. hardcode_direct_F77=yes
  13333. hardcode_minus_L_F77=no
  13334. hardcode_shlibpath_var_F77=no
  13335. hardcode_runpath_var=yes
  13336. runpath_var=LD_RUN_PATH
  13337. ;;
  13338. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  13339. no_undefined_flag_F77='${wl}-z ${wl}text'
  13340. if test "$GCC" = yes; then
  13341. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13342. else
  13343. archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13344. fi
  13345. runpath_var='LD_RUN_PATH'
  13346. hardcode_shlibpath_var_F77=no
  13347. ;;
  13348. sysv5*)
  13349. no_undefined_flag_F77=' -z text'
  13350. # $CC -shared without GNU ld will not create a library from C++
  13351. # object files and a static libstdc++, better avoid it by now
  13352. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13353. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13354. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13355. hardcode_libdir_flag_spec_F77=
  13356. hardcode_shlibpath_var_F77=no
  13357. runpath_var='LD_RUN_PATH'
  13358. ;;
  13359. uts4*)
  13360. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13361. hardcode_libdir_flag_spec_F77='-L$libdir'
  13362. hardcode_shlibpath_var_F77=no
  13363. ;;
  13364. *)
  13365. ld_shlibs_F77=no
  13366. ;;
  13367. esac
  13368. fi
  13369. echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  13370. echo "${ECHO_T}$ld_shlibs_F77" >&6
  13371. test "$ld_shlibs_F77" = no && can_build_shared=no
  13372. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13373. if test "$GCC" = yes; then
  13374. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13375. fi
  13376. #
  13377. # Do we need to explicitly link libc?
  13378. #
  13379. case "x$archive_cmds_need_lc_F77" in
  13380. x|xyes)
  13381. # Assume -lc should be added
  13382. archive_cmds_need_lc_F77=yes
  13383. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13384. case $archive_cmds_F77 in
  13385. *'~'*)
  13386. # FIXME: we may have to deal with multi-command sequences.
  13387. ;;
  13388. '$CC '*)
  13389. # Test whether the compiler implicitly links with -lc since on some
  13390. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13391. # to ld, don't add -lc before -lgcc.
  13392. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13393. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  13394. $rm conftest*
  13395. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13396. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13397. (eval $ac_compile) 2>&5
  13398. ac_status=$?
  13399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13400. (exit $ac_status); } 2>conftest.err; then
  13401. soname=conftest
  13402. lib=conftest
  13403. libobjs=conftest.$ac_objext
  13404. deplibs=
  13405. wl=$lt_prog_compiler_wl_F77
  13406. compiler_flags=-v
  13407. linker_flags=-v
  13408. verstring=
  13409. output_objdir=.
  13410. libname=conftest
  13411. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  13412. allow_undefined_flag_F77=
  13413. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13414. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13415. ac_status=$?
  13416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13417. (exit $ac_status); }
  13418. then
  13419. archive_cmds_need_lc_F77=no
  13420. else
  13421. archive_cmds_need_lc_F77=yes
  13422. fi
  13423. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  13424. else
  13425. cat conftest.err 1>&5
  13426. fi
  13427. $rm conftest*
  13428. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  13429. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
  13430. ;;
  13431. esac
  13432. fi
  13433. ;;
  13434. esac
  13435. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  13436. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  13437. library_names_spec=
  13438. libname_spec='lib$name'
  13439. soname_spec=
  13440. shrext_cmds=".so"
  13441. postinstall_cmds=
  13442. postuninstall_cmds=
  13443. finish_cmds=
  13444. finish_eval=
  13445. shlibpath_var=
  13446. shlibpath_overrides_runpath=unknown
  13447. version_type=none
  13448. dynamic_linker="$host_os ld.so"
  13449. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13450. if test "$GCC" = yes; then
  13451. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13452. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  13453. # if the path contains ";" then we assume it to be the separator
  13454. # otherwise default to the standard path separator (i.e. ":") - it is
  13455. # assumed that no part of a normal pathname contains ";" but that should
  13456. # okay in the real world where ";" in dirpaths is itself problematic.
  13457. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13458. else
  13459. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13460. fi
  13461. else
  13462. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13463. fi
  13464. need_lib_prefix=unknown
  13465. hardcode_into_libs=no
  13466. # when you set need_version to no, make sure it does not cause -set_version
  13467. # flags to be left without arguments
  13468. need_version=unknown
  13469. case $host_os in
  13470. aix3*)
  13471. version_type=linux
  13472. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13473. shlibpath_var=LIBPATH
  13474. # AIX 3 has no versioning support, so we append a major version to the name.
  13475. soname_spec='${libname}${release}${shared_ext}$major'
  13476. ;;
  13477. aix4* | aix5*)
  13478. version_type=linux
  13479. need_lib_prefix=no
  13480. need_version=no
  13481. hardcode_into_libs=yes
  13482. if test "$host_cpu" = ia64; then
  13483. # AIX 5 supports IA64
  13484. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13485. shlibpath_var=LD_LIBRARY_PATH
  13486. else
  13487. # With GCC up to 2.95.x, collect2 would create an import file
  13488. # for dependence libraries. The import file would start with
  13489. # the line `#! .'. This would cause the generated library to
  13490. # depend on `.', always an invalid library. This was fixed in
  13491. # development snapshots of GCC prior to 3.0.
  13492. case $host_os in
  13493. aix4 | aix4.[01] | aix4.[01].*)
  13494. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13495. echo ' yes '
  13496. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  13497. :
  13498. else
  13499. can_build_shared=no
  13500. fi
  13501. ;;
  13502. esac
  13503. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13504. # soname into executable. Probably we can add versioning support to
  13505. # collect2, so additional links can be useful in future.
  13506. if test "$aix_use_runtimelinking" = yes; then
  13507. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13508. # instead of lib<name>.a to let people know that these are not
  13509. # typical AIX shared libraries.
  13510. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13511. else
  13512. # We preserve .a as extension for shared libraries through AIX4.2
  13513. # and later when we are not doing run time linking.
  13514. library_names_spec='${libname}${release}.a $libname.a'
  13515. soname_spec='${libname}${release}${shared_ext}$major'
  13516. fi
  13517. shlibpath_var=LIBPATH
  13518. fi
  13519. ;;
  13520. amigaos*)
  13521. library_names_spec='$libname.ixlibrary $libname.a'
  13522. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13523. 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'
  13524. ;;
  13525. beos*)
  13526. library_names_spec='${libname}${shared_ext}'
  13527. dynamic_linker="$host_os ld.so"
  13528. shlibpath_var=LIBRARY_PATH
  13529. ;;
  13530. bsdi[45]*)
  13531. version_type=linux
  13532. need_version=no
  13533. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13534. soname_spec='${libname}${release}${shared_ext}$major'
  13535. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13536. shlibpath_var=LD_LIBRARY_PATH
  13537. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13538. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13539. # the default ld.so.conf also contains /usr/contrib/lib and
  13540. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13541. # libtool to hard-code these into programs
  13542. ;;
  13543. cygwin* | mingw* | pw32*)
  13544. version_type=windows
  13545. shrext_cmds=".dll"
  13546. need_version=no
  13547. need_lib_prefix=no
  13548. case $GCC,$host_os in
  13549. yes,cygwin* | yes,mingw* | yes,pw32*)
  13550. library_names_spec='$libname.dll.a'
  13551. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13552. postinstall_cmds='base_file=`basename \${file}`~
  13553. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  13554. dldir=$destdir/`dirname \$dlpath`~
  13555. test -d \$dldir || mkdir -p \$dldir~
  13556. $install_prog $dir/$dlname \$dldir/$dlname'
  13557. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13558. dlpath=$dir/\$dldll~
  13559. $rm \$dlpath'
  13560. shlibpath_overrides_runpath=yes
  13561. case $host_os in
  13562. cygwin*)
  13563. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13564. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13565. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13566. ;;
  13567. mingw*)
  13568. # MinGW DLLs use traditional 'lib' prefix
  13569. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13570. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13571. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  13572. # It is most probably a Windows format PATH printed by
  13573. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13574. # path with ; separators, and with drive letters. We can handle the
  13575. # drive letters (cygwin fileutils understands them), so leave them,
  13576. # especially as we might pass files found there to a mingw objdump,
  13577. # which wouldn't understand a cygwinified path. Ahh.
  13578. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13579. else
  13580. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13581. fi
  13582. ;;
  13583. pw32*)
  13584. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13585. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13586. ;;
  13587. esac
  13588. ;;
  13589. *)
  13590. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13591. ;;
  13592. esac
  13593. dynamic_linker='Win32 ld.exe'
  13594. # FIXME: first we should search . and the directory the executable is in
  13595. shlibpath_var=PATH
  13596. ;;
  13597. darwin* | rhapsody*)
  13598. dynamic_linker="$host_os dyld"
  13599. version_type=darwin
  13600. need_lib_prefix=no
  13601. need_version=no
  13602. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13603. soname_spec='${libname}${release}${major}$shared_ext'
  13604. shlibpath_overrides_runpath=yes
  13605. shlibpath_var=DYLD_LIBRARY_PATH
  13606. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  13607. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  13608. if test "$GCC" = yes; then
  13609. 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"`
  13610. else
  13611. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  13612. fi
  13613. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13614. ;;
  13615. dgux*)
  13616. version_type=linux
  13617. need_lib_prefix=no
  13618. need_version=no
  13619. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13620. soname_spec='${libname}${release}${shared_ext}$major'
  13621. shlibpath_var=LD_LIBRARY_PATH
  13622. ;;
  13623. freebsd1*)
  13624. dynamic_linker=no
  13625. ;;
  13626. kfreebsd*-gnu)
  13627. version_type=linux
  13628. need_lib_prefix=no
  13629. need_version=no
  13630. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13631. soname_spec='${libname}${release}${shared_ext}$major'
  13632. shlibpath_var=LD_LIBRARY_PATH
  13633. shlibpath_overrides_runpath=no
  13634. hardcode_into_libs=yes
  13635. dynamic_linker='GNU ld.so'
  13636. ;;
  13637. freebsd* | dragonfly*)
  13638. # DragonFly does not have aout. When/if they implement a new
  13639. # versioning mechanism, adjust this.
  13640. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  13641. version_type=freebsd-$objformat
  13642. case $version_type in
  13643. freebsd-elf*)
  13644. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13645. need_version=no
  13646. need_lib_prefix=no
  13647. ;;
  13648. freebsd-*)
  13649. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13650. need_version=yes
  13651. ;;
  13652. esac
  13653. shlibpath_var=LD_LIBRARY_PATH
  13654. case $host_os in
  13655. freebsd2*)
  13656. shlibpath_overrides_runpath=yes
  13657. ;;
  13658. freebsd3.[01]* | freebsdelf3.[01]*)
  13659. shlibpath_overrides_runpath=yes
  13660. hardcode_into_libs=yes
  13661. ;;
  13662. *) # from 3.2 on
  13663. shlibpath_overrides_runpath=no
  13664. hardcode_into_libs=yes
  13665. ;;
  13666. esac
  13667. ;;
  13668. gnu*)
  13669. version_type=linux
  13670. need_lib_prefix=no
  13671. need_version=no
  13672. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13673. soname_spec='${libname}${release}${shared_ext}$major'
  13674. shlibpath_var=LD_LIBRARY_PATH
  13675. hardcode_into_libs=yes
  13676. ;;
  13677. hpux9* | hpux10* | hpux11*)
  13678. # Give a soname corresponding to the major version so that dld.sl refuses to
  13679. # link against other versions.
  13680. version_type=sunos
  13681. need_lib_prefix=no
  13682. need_version=no
  13683. case "$host_cpu" in
  13684. ia64*)
  13685. shrext_cmds='.so'
  13686. hardcode_into_libs=yes
  13687. dynamic_linker="$host_os dld.so"
  13688. shlibpath_var=LD_LIBRARY_PATH
  13689. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13690. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13691. soname_spec='${libname}${release}${shared_ext}$major'
  13692. if test "X$HPUX_IA64_MODE" = X32; then
  13693. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13694. else
  13695. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13696. fi
  13697. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13698. ;;
  13699. hppa*64*)
  13700. shrext_cmds='.sl'
  13701. hardcode_into_libs=yes
  13702. dynamic_linker="$host_os dld.sl"
  13703. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13704. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13705. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13706. soname_spec='${libname}${release}${shared_ext}$major'
  13707. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13708. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13709. ;;
  13710. *)
  13711. shrext_cmds='.sl'
  13712. dynamic_linker="$host_os dld.sl"
  13713. shlibpath_var=SHLIB_PATH
  13714. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13715. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13716. soname_spec='${libname}${release}${shared_ext}$major'
  13717. ;;
  13718. esac
  13719. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13720. postinstall_cmds='chmod 555 $lib'
  13721. ;;
  13722. irix5* | irix6* | nonstopux*)
  13723. case $host_os in
  13724. nonstopux*) version_type=nonstopux ;;
  13725. *)
  13726. if test "$lt_cv_prog_gnu_ld" = yes; then
  13727. version_type=linux
  13728. else
  13729. version_type=irix
  13730. fi ;;
  13731. esac
  13732. need_lib_prefix=no
  13733. need_version=no
  13734. soname_spec='${libname}${release}${shared_ext}$major'
  13735. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13736. case $host_os in
  13737. irix5* | nonstopux*)
  13738. libsuff= shlibsuff=
  13739. ;;
  13740. *)
  13741. case $LD in # libtool.m4 will add one of these switches to LD
  13742. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13743. libsuff= shlibsuff= libmagic=32-bit;;
  13744. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13745. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13746. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13747. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13748. *) libsuff= shlibsuff= libmagic=never-match;;
  13749. esac
  13750. ;;
  13751. esac
  13752. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13753. shlibpath_overrides_runpath=no
  13754. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13755. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13756. hardcode_into_libs=yes
  13757. ;;
  13758. # No shared lib support for Linux oldld, aout, or coff.
  13759. linux*oldld* | linux*aout* | linux*coff*)
  13760. dynamic_linker=no
  13761. ;;
  13762. # This must be Linux ELF.
  13763. linux*)
  13764. version_type=linux
  13765. need_lib_prefix=no
  13766. need_version=no
  13767. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13768. soname_spec='${libname}${release}${shared_ext}$major'
  13769. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13770. shlibpath_var=LD_LIBRARY_PATH
  13771. shlibpath_overrides_runpath=no
  13772. # This implies no fast_install, which is unacceptable.
  13773. # Some rework will be needed to allow for fast_install
  13774. # before this can be enabled.
  13775. hardcode_into_libs=yes
  13776. # Append ld.so.conf contents to the search path
  13777. if test -f /etc/ld.so.conf; then
  13778. 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' ' '`
  13779. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13780. fi
  13781. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13782. # powerpc, because MkLinux only supported shared libraries with the
  13783. # GNU dynamic linker. Since this was broken with cross compilers,
  13784. # most powerpc-linux boxes support dynamic linking these days and
  13785. # people can always --disable-shared, the test was removed, and we
  13786. # assume the GNU/Linux dynamic linker is in use.
  13787. dynamic_linker='GNU/Linux ld.so'
  13788. ;;
  13789. knetbsd*-gnu)
  13790. version_type=linux
  13791. need_lib_prefix=no
  13792. need_version=no
  13793. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13794. soname_spec='${libname}${release}${shared_ext}$major'
  13795. shlibpath_var=LD_LIBRARY_PATH
  13796. shlibpath_overrides_runpath=no
  13797. hardcode_into_libs=yes
  13798. dynamic_linker='GNU ld.so'
  13799. ;;
  13800. netbsd*)
  13801. version_type=sunos
  13802. need_lib_prefix=no
  13803. need_version=no
  13804. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13805. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13806. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13807. dynamic_linker='NetBSD (a.out) ld.so'
  13808. else
  13809. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13810. soname_spec='${libname}${release}${shared_ext}$major'
  13811. dynamic_linker='NetBSD ld.elf_so'
  13812. fi
  13813. shlibpath_var=LD_LIBRARY_PATH
  13814. shlibpath_overrides_runpath=yes
  13815. hardcode_into_libs=yes
  13816. ;;
  13817. newsos6)
  13818. version_type=linux
  13819. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13820. shlibpath_var=LD_LIBRARY_PATH
  13821. shlibpath_overrides_runpath=yes
  13822. ;;
  13823. nto-qnx*)
  13824. version_type=linux
  13825. need_lib_prefix=no
  13826. need_version=no
  13827. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13828. soname_spec='${libname}${release}${shared_ext}$major'
  13829. shlibpath_var=LD_LIBRARY_PATH
  13830. shlibpath_overrides_runpath=yes
  13831. ;;
  13832. openbsd*)
  13833. version_type=sunos
  13834. need_lib_prefix=no
  13835. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13836. case $host_os in
  13837. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13838. *) need_version=no ;;
  13839. esac
  13840. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13841. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13842. shlibpath_var=LD_LIBRARY_PATH
  13843. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13844. case $host_os in
  13845. openbsd2.[89] | openbsd2.[89].*)
  13846. shlibpath_overrides_runpath=no
  13847. ;;
  13848. *)
  13849. shlibpath_overrides_runpath=yes
  13850. ;;
  13851. esac
  13852. else
  13853. shlibpath_overrides_runpath=yes
  13854. fi
  13855. ;;
  13856. os2*)
  13857. libname_spec='$name'
  13858. shrext_cmds=".dll"
  13859. need_lib_prefix=no
  13860. library_names_spec='$libname${shared_ext} $libname.a'
  13861. dynamic_linker='OS/2 ld.exe'
  13862. shlibpath_var=LIBPATH
  13863. ;;
  13864. osf3* | osf4* | osf5*)
  13865. version_type=osf
  13866. need_lib_prefix=no
  13867. need_version=no
  13868. soname_spec='${libname}${release}${shared_ext}$major'
  13869. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13870. shlibpath_var=LD_LIBRARY_PATH
  13871. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13872. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13873. ;;
  13874. sco3.2v5*)
  13875. version_type=osf
  13876. soname_spec='${libname}${release}${shared_ext}$major'
  13877. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13878. shlibpath_var=LD_LIBRARY_PATH
  13879. ;;
  13880. solaris*)
  13881. version_type=linux
  13882. need_lib_prefix=no
  13883. need_version=no
  13884. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13885. soname_spec='${libname}${release}${shared_ext}$major'
  13886. shlibpath_var=LD_LIBRARY_PATH
  13887. shlibpath_overrides_runpath=yes
  13888. hardcode_into_libs=yes
  13889. # ldd complains unless libraries are executable
  13890. postinstall_cmds='chmod +x $lib'
  13891. ;;
  13892. sunos4*)
  13893. version_type=sunos
  13894. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13895. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13896. shlibpath_var=LD_LIBRARY_PATH
  13897. shlibpath_overrides_runpath=yes
  13898. if test "$with_gnu_ld" = yes; then
  13899. need_lib_prefix=no
  13900. fi
  13901. need_version=yes
  13902. ;;
  13903. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  13904. version_type=linux
  13905. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13906. soname_spec='${libname}${release}${shared_ext}$major'
  13907. shlibpath_var=LD_LIBRARY_PATH
  13908. case $host_vendor in
  13909. sni)
  13910. shlibpath_overrides_runpath=no
  13911. need_lib_prefix=no
  13912. export_dynamic_flag_spec='${wl}-Blargedynsym'
  13913. runpath_var=LD_RUN_PATH
  13914. ;;
  13915. siemens)
  13916. need_lib_prefix=no
  13917. ;;
  13918. motorola)
  13919. need_lib_prefix=no
  13920. need_version=no
  13921. shlibpath_overrides_runpath=no
  13922. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13923. ;;
  13924. esac
  13925. ;;
  13926. sysv4*MP*)
  13927. if test -d /usr/nec ;then
  13928. version_type=linux
  13929. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13930. soname_spec='$libname${shared_ext}.$major'
  13931. shlibpath_var=LD_LIBRARY_PATH
  13932. fi
  13933. ;;
  13934. uts4*)
  13935. version_type=linux
  13936. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13937. soname_spec='${libname}${release}${shared_ext}$major'
  13938. shlibpath_var=LD_LIBRARY_PATH
  13939. ;;
  13940. *)
  13941. dynamic_linker=no
  13942. ;;
  13943. esac
  13944. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13945. echo "${ECHO_T}$dynamic_linker" >&6
  13946. test "$dynamic_linker" = no && can_build_shared=no
  13947. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13948. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  13949. hardcode_action_F77=
  13950. if test -n "$hardcode_libdir_flag_spec_F77" || \
  13951. test -n "$runpath_var_F77" || \
  13952. test "X$hardcode_automatic_F77" = "Xyes" ; then
  13953. # We can hardcode non-existant directories.
  13954. if test "$hardcode_direct_F77" != no &&
  13955. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13956. # have to relink, otherwise we might link with an installed library
  13957. # when we should be linking with a yet-to-be-installed one
  13958. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  13959. test "$hardcode_minus_L_F77" != no; then
  13960. # Linking always hardcodes the temporary library directory.
  13961. hardcode_action_F77=relink
  13962. else
  13963. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13964. hardcode_action_F77=immediate
  13965. fi
  13966. else
  13967. # We cannot hardcode anything, or else we can only hardcode existing
  13968. # directories.
  13969. hardcode_action_F77=unsupported
  13970. fi
  13971. echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  13972. echo "${ECHO_T}$hardcode_action_F77" >&6
  13973. if test "$hardcode_action_F77" = relink; then
  13974. # Fast installation is not supported
  13975. enable_fast_install=no
  13976. elif test "$shlibpath_overrides_runpath" = yes ||
  13977. test "$enable_shared" = no; then
  13978. # Fast installation is not necessary
  13979. enable_fast_install=needless
  13980. fi
  13981. striplib=
  13982. old_striplib=
  13983. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  13984. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  13985. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  13986. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  13987. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  13988. echo "$as_me:$LINENO: result: yes" >&5
  13989. echo "${ECHO_T}yes" >&6
  13990. else
  13991. # FIXME - insert some real tests, host_os isn't really good enough
  13992. case $host_os in
  13993. darwin*)
  13994. if test -n "$STRIP" ; then
  13995. striplib="$STRIP -x"
  13996. echo "$as_me:$LINENO: result: yes" >&5
  13997. echo "${ECHO_T}yes" >&6
  13998. else
  13999. echo "$as_me:$LINENO: result: no" >&5
  14000. echo "${ECHO_T}no" >&6
  14001. fi
  14002. ;;
  14003. *)
  14004. echo "$as_me:$LINENO: result: no" >&5
  14005. echo "${ECHO_T}no" >&6
  14006. ;;
  14007. esac
  14008. fi
  14009. # The else clause should only fire when bootstrapping the
  14010. # libtool distribution, otherwise you forgot to ship ltmain.sh
  14011. # with your package, and you will get complaints that there are
  14012. # no rules to generate ltmain.sh.
  14013. if test -f "$ltmain"; then
  14014. # See if we are running on zsh, and set the options which allow our commands through
  14015. # without removal of \ escapes.
  14016. if test -n "${ZSH_VERSION+set}" ; then
  14017. setopt NO_GLOB_SUBST
  14018. fi
  14019. # Now quote all the things that may contain metacharacters while being
  14020. # careful not to overquote the AC_SUBSTed values. We take copies of the
  14021. # variables and quote the copies for generation of the libtool script.
  14022. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  14023. SED SHELL STRIP \
  14024. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  14025. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  14026. deplibs_check_method reload_flag reload_cmds need_locks \
  14027. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  14028. lt_cv_sys_global_symbol_to_c_name_address \
  14029. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  14030. old_postinstall_cmds old_postuninstall_cmds \
  14031. compiler_F77 \
  14032. CC_F77 \
  14033. LD_F77 \
  14034. lt_prog_compiler_wl_F77 \
  14035. lt_prog_compiler_pic_F77 \
  14036. lt_prog_compiler_static_F77 \
  14037. lt_prog_compiler_no_builtin_flag_F77 \
  14038. export_dynamic_flag_spec_F77 \
  14039. thread_safe_flag_spec_F77 \
  14040. whole_archive_flag_spec_F77 \
  14041. enable_shared_with_static_runtimes_F77 \
  14042. old_archive_cmds_F77 \
  14043. old_archive_from_new_cmds_F77 \
  14044. predep_objects_F77 \
  14045. postdep_objects_F77 \
  14046. predeps_F77 \
  14047. postdeps_F77 \
  14048. compiler_lib_search_path_F77 \
  14049. archive_cmds_F77 \
  14050. archive_expsym_cmds_F77 \
  14051. postinstall_cmds_F77 \
  14052. postuninstall_cmds_F77 \
  14053. old_archive_from_expsyms_cmds_F77 \
  14054. allow_undefined_flag_F77 \
  14055. no_undefined_flag_F77 \
  14056. export_symbols_cmds_F77 \
  14057. hardcode_libdir_flag_spec_F77 \
  14058. hardcode_libdir_flag_spec_ld_F77 \
  14059. hardcode_libdir_separator_F77 \
  14060. hardcode_automatic_F77 \
  14061. module_cmds_F77 \
  14062. module_expsym_cmds_F77 \
  14063. lt_cv_prog_compiler_c_o_F77 \
  14064. exclude_expsyms_F77 \
  14065. include_expsyms_F77; do
  14066. case $var in
  14067. old_archive_cmds_F77 | \
  14068. old_archive_from_new_cmds_F77 | \
  14069. archive_cmds_F77 | \
  14070. archive_expsym_cmds_F77 | \
  14071. module_cmds_F77 | \
  14072. module_expsym_cmds_F77 | \
  14073. old_archive_from_expsyms_cmds_F77 | \
  14074. export_symbols_cmds_F77 | \
  14075. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  14076. postinstall_cmds | postuninstall_cmds | \
  14077. old_postinstall_cmds | old_postuninstall_cmds | \
  14078. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  14079. # Double-quote double-evaled strings.
  14080. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  14081. ;;
  14082. *)
  14083. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  14084. ;;
  14085. esac
  14086. done
  14087. case $lt_echo in
  14088. *'\$0 --fallback-echo"')
  14089. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  14090. ;;
  14091. esac
  14092. cfgfile="$ofile"
  14093. cat <<__EOF__ >> "$cfgfile"
  14094. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  14095. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14096. # Shell to use when invoking shell scripts.
  14097. SHELL=$lt_SHELL
  14098. # Whether or not to build shared libraries.
  14099. build_libtool_libs=$enable_shared
  14100. # Whether or not to build static libraries.
  14101. build_old_libs=$enable_static
  14102. # Whether or not to add -lc for building shared libraries.
  14103. build_libtool_need_lc=$archive_cmds_need_lc_F77
  14104. # Whether or not to disallow shared libs when runtime libs are static
  14105. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  14106. # Whether or not to optimize for fast installation.
  14107. fast_install=$enable_fast_install
  14108. # The host system.
  14109. host_alias=$host_alias
  14110. host=$host
  14111. host_os=$host_os
  14112. # The build system.
  14113. build_alias=$build_alias
  14114. build=$build
  14115. build_os=$build_os
  14116. # An echo program that does not interpret backslashes.
  14117. echo=$lt_echo
  14118. # The archiver.
  14119. AR=$lt_AR
  14120. AR_FLAGS=$lt_AR_FLAGS
  14121. # A C compiler.
  14122. LTCC=$lt_LTCC
  14123. # A language-specific compiler.
  14124. CC=$lt_compiler_F77
  14125. # Is the compiler the GNU C compiler?
  14126. with_gcc=$GCC_F77
  14127. # An ERE matcher.
  14128. EGREP=$lt_EGREP
  14129. # The linker used to build libraries.
  14130. LD=$lt_LD_F77
  14131. # Whether we need hard or soft links.
  14132. LN_S=$lt_LN_S
  14133. # A BSD-compatible nm program.
  14134. NM=$lt_NM
  14135. # A symbol stripping program
  14136. STRIP=$lt_STRIP
  14137. # Used to examine libraries when file_magic_cmd begins "file"
  14138. MAGIC_CMD=$MAGIC_CMD
  14139. # Used on cygwin: DLL creation program.
  14140. DLLTOOL="$DLLTOOL"
  14141. # Used on cygwin: object dumper.
  14142. OBJDUMP="$OBJDUMP"
  14143. # Used on cygwin: assembler.
  14144. AS="$AS"
  14145. # The name of the directory that contains temporary libtool files.
  14146. objdir=$objdir
  14147. # How to create reloadable object files.
  14148. reload_flag=$lt_reload_flag
  14149. reload_cmds=$lt_reload_cmds
  14150. # How to pass a linker flag through the compiler.
  14151. wl=$lt_lt_prog_compiler_wl_F77
  14152. # Object file suffix (normally "o").
  14153. objext="$ac_objext"
  14154. # Old archive suffix (normally "a").
  14155. libext="$libext"
  14156. # Shared library suffix (normally ".so").
  14157. shrext_cmds='$shrext_cmds'
  14158. # Executable file suffix (normally "").
  14159. exeext="$exeext"
  14160. # Additional compiler flags for building library objects.
  14161. pic_flag=$lt_lt_prog_compiler_pic_F77
  14162. pic_mode=$pic_mode
  14163. # What is the maximum length of a command?
  14164. max_cmd_len=$lt_cv_sys_max_cmd_len
  14165. # Does compiler simultaneously support -c and -o options?
  14166. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  14167. # Must we lock files when doing compilation?
  14168. need_locks=$lt_need_locks
  14169. # Do we need the lib prefix for modules?
  14170. need_lib_prefix=$need_lib_prefix
  14171. # Do we need a version for libraries?
  14172. need_version=$need_version
  14173. # Whether dlopen is supported.
  14174. dlopen_support=$enable_dlopen
  14175. # Whether dlopen of programs is supported.
  14176. dlopen_self=$enable_dlopen_self
  14177. # Whether dlopen of statically linked programs is supported.
  14178. dlopen_self_static=$enable_dlopen_self_static
  14179. # Compiler flag to prevent dynamic linking.
  14180. link_static_flag=$lt_lt_prog_compiler_static_F77
  14181. # Compiler flag to turn off builtin functions.
  14182. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  14183. # Compiler flag to allow reflexive dlopens.
  14184. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  14185. # Compiler flag to generate shared objects directly from archives.
  14186. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  14187. # Compiler flag to generate thread-safe objects.
  14188. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  14189. # Library versioning type.
  14190. version_type=$version_type
  14191. # Format of library name prefix.
  14192. libname_spec=$lt_libname_spec
  14193. # List of archive names. First name is the real one, the rest are links.
  14194. # The last name is the one that the linker finds with -lNAME.
  14195. library_names_spec=$lt_library_names_spec
  14196. # The coded name of the library, if different from the real name.
  14197. soname_spec=$lt_soname_spec
  14198. # Commands used to build and install an old-style archive.
  14199. RANLIB=$lt_RANLIB
  14200. old_archive_cmds=$lt_old_archive_cmds_F77
  14201. old_postinstall_cmds=$lt_old_postinstall_cmds
  14202. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14203. # Create an old-style archive from a shared archive.
  14204. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  14205. # Create a temporary old-style archive to link instead of a shared archive.
  14206. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  14207. # Commands used to build and install a shared archive.
  14208. archive_cmds=$lt_archive_cmds_F77
  14209. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  14210. postinstall_cmds=$lt_postinstall_cmds
  14211. postuninstall_cmds=$lt_postuninstall_cmds
  14212. # Commands used to build a loadable module (assumed same as above if empty)
  14213. module_cmds=$lt_module_cmds_F77
  14214. module_expsym_cmds=$lt_module_expsym_cmds_F77
  14215. # Commands to strip libraries.
  14216. old_striplib=$lt_old_striplib
  14217. striplib=$lt_striplib
  14218. # Dependencies to place before the objects being linked to create a
  14219. # shared library.
  14220. predep_objects=$lt_predep_objects_F77
  14221. # Dependencies to place after the objects being linked to create a
  14222. # shared library.
  14223. postdep_objects=$lt_postdep_objects_F77
  14224. # Dependencies to place before the objects being linked to create a
  14225. # shared library.
  14226. predeps=$lt_predeps_F77
  14227. # Dependencies to place after the objects being linked to create a
  14228. # shared library.
  14229. postdeps=$lt_postdeps_F77
  14230. # The library search path used internally by the compiler when linking
  14231. # a shared library.
  14232. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  14233. # Method to check whether dependent libraries are shared objects.
  14234. deplibs_check_method=$lt_deplibs_check_method
  14235. # Command to use when deplibs_check_method == file_magic.
  14236. file_magic_cmd=$lt_file_magic_cmd
  14237. # Flag that allows shared libraries with undefined symbols to be built.
  14238. allow_undefined_flag=$lt_allow_undefined_flag_F77
  14239. # Flag that forces no undefined symbols.
  14240. no_undefined_flag=$lt_no_undefined_flag_F77
  14241. # Commands used to finish a libtool library installation in a directory.
  14242. finish_cmds=$lt_finish_cmds
  14243. # Same as above, but a single script fragment to be evaled but not shown.
  14244. finish_eval=$lt_finish_eval
  14245. # Take the output of nm and produce a listing of raw symbols and C names.
  14246. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14247. # Transform the output of nm in a proper C declaration
  14248. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14249. # Transform the output of nm in a C name address pair
  14250. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14251. # This is the shared library runtime path variable.
  14252. runpath_var=$runpath_var
  14253. # This is the shared library path variable.
  14254. shlibpath_var=$shlibpath_var
  14255. # Is shlibpath searched before the hard-coded library search path?
  14256. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14257. # How to hardcode a shared library path into an executable.
  14258. hardcode_action=$hardcode_action_F77
  14259. # Whether we should hardcode library paths into libraries.
  14260. hardcode_into_libs=$hardcode_into_libs
  14261. # Flag to hardcode \$libdir into a binary during linking.
  14262. # This must work even if \$libdir does not exist.
  14263. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  14264. # If ld is used when linking, flag to hardcode \$libdir into
  14265. # a binary during linking. This must work even if \$libdir does
  14266. # not exist.
  14267. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  14268. # Whether we need a single -rpath flag with a separated argument.
  14269. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  14270. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  14271. # resulting binary.
  14272. hardcode_direct=$hardcode_direct_F77
  14273. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  14274. # resulting binary.
  14275. hardcode_minus_L=$hardcode_minus_L_F77
  14276. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  14277. # the resulting binary.
  14278. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  14279. # Set to yes if building a shared library automatically hardcodes DIR into the library
  14280. # and all subsequent libraries and executables linked against it.
  14281. hardcode_automatic=$hardcode_automatic_F77
  14282. # Variables whose values should be saved in libtool wrapper scripts and
  14283. # restored at relink time.
  14284. variables_saved_for_relink="$variables_saved_for_relink"
  14285. # Whether libtool must link a program against all its dependency libraries.
  14286. link_all_deplibs=$link_all_deplibs_F77
  14287. # Compile-time system search path for libraries
  14288. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14289. # Run-time system search path for libraries
  14290. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14291. # Fix the shell variable \$srcfile for the compiler.
  14292. fix_srcfile_path="$fix_srcfile_path_F77"
  14293. # Set to yes if exported symbols are required.
  14294. always_export_symbols=$always_export_symbols_F77
  14295. # The commands to list exported symbols.
  14296. export_symbols_cmds=$lt_export_symbols_cmds_F77
  14297. # The commands to extract the exported symbol list from a shared archive.
  14298. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14299. # Symbols that should not be listed in the preloaded symbols.
  14300. exclude_expsyms=$lt_exclude_expsyms_F77
  14301. # Symbols that must always be exported.
  14302. include_expsyms=$lt_include_expsyms_F77
  14303. # ### END LIBTOOL TAG CONFIG: $tagname
  14304. __EOF__
  14305. else
  14306. # If there is no Makefile yet, we rely on a make rule to execute
  14307. # `config.status --recheck' to rerun these tests and create the
  14308. # libtool script then.
  14309. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  14310. if test -f "$ltmain_in"; then
  14311. test -f Makefile && make "$ltmain"
  14312. fi
  14313. fi
  14314. ac_ext=c
  14315. ac_cpp='$CPP $CPPFLAGS'
  14316. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14317. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14318. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14319. CC="$lt_save_CC"
  14320. else
  14321. tagname=""
  14322. fi
  14323. ;;
  14324. GCJ)
  14325. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  14326. # Source file extension for Java test sources.
  14327. ac_ext=java
  14328. # Object file extension for compiled Java test sources.
  14329. objext=o
  14330. objext_GCJ=$objext
  14331. # Code to be used in simple compile tests
  14332. lt_simple_compile_test_code="class foo {}\n"
  14333. # Code to be used in simple link tests
  14334. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  14335. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14336. # If no C compiler was specified, use CC.
  14337. LTCC=${LTCC-"$CC"}
  14338. # Allow CC to be a program name with arguments.
  14339. compiler=$CC
  14340. # save warnings/boilerplate of simple test code
  14341. ac_outfile=conftest.$ac_objext
  14342. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  14343. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  14344. _lt_compiler_boilerplate=`cat conftest.err`
  14345. $rm conftest*
  14346. ac_outfile=conftest.$ac_objext
  14347. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  14348. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  14349. _lt_linker_boilerplate=`cat conftest.err`
  14350. $rm conftest*
  14351. # Allow CC to be a program name with arguments.
  14352. lt_save_CC="$CC"
  14353. CC=${GCJ-"gcj"}
  14354. compiler=$CC
  14355. compiler_GCJ=$CC
  14356. for cc_temp in $compiler""; do
  14357. case $cc_temp in
  14358. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14359. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14360. \-*) ;;
  14361. *) break;;
  14362. esac
  14363. done
  14364. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14365. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  14366. archive_cmds_need_lc_GCJ=no
  14367. old_archive_cmds_GCJ=$old_archive_cmds
  14368. lt_prog_compiler_no_builtin_flag_GCJ=
  14369. if test "$GCC" = yes; then
  14370. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  14371. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14372. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  14373. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  14374. echo $ECHO_N "(cached) $ECHO_C" >&6
  14375. else
  14376. lt_cv_prog_compiler_rtti_exceptions=no
  14377. ac_outfile=conftest.$ac_objext
  14378. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14379. lt_compiler_flag="-fno-rtti -fno-exceptions"
  14380. # Insert the option either (1) after the last *FLAGS variable, or
  14381. # (2) before a word containing "conftest.", or (3) at the end.
  14382. # Note that $ac_compile itself does not contain backslashes and begins
  14383. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14384. # The option is referenced via a variable to avoid confusing sed.
  14385. lt_compile=`echo "$ac_compile" | $SED \
  14386. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  14387. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14388. -e 's:$: $lt_compiler_flag:'`
  14389. (eval echo "\"\$as_me:16032: $lt_compile\"" >&5)
  14390. (eval "$lt_compile" 2>conftest.err)
  14391. ac_status=$?
  14392. cat conftest.err >&5
  14393. echo "$as_me:16036: \$? = $ac_status" >&5
  14394. if (exit $ac_status) && test -s "$ac_outfile"; then
  14395. # The compiler can only warn and ignore the option if not recognized
  14396. # So say no if there are warnings other than the usual output.
  14397. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  14398. $SED '/^$/d' conftest.err >conftest.er2
  14399. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  14400. lt_cv_prog_compiler_rtti_exceptions=yes
  14401. fi
  14402. fi
  14403. $rm conftest*
  14404. fi
  14405. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  14406. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  14407. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  14408. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  14409. else
  14410. :
  14411. fi
  14412. fi
  14413. lt_prog_compiler_wl_GCJ=
  14414. lt_prog_compiler_pic_GCJ=
  14415. lt_prog_compiler_static_GCJ=
  14416. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14417. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  14418. if test "$GCC" = yes; then
  14419. lt_prog_compiler_wl_GCJ='-Wl,'
  14420. lt_prog_compiler_static_GCJ='-static'
  14421. case $host_os in
  14422. aix*)
  14423. # All AIX code is PIC.
  14424. if test "$host_cpu" = ia64; then
  14425. # AIX 5 now supports IA64 processor
  14426. lt_prog_compiler_static_GCJ='-Bstatic'
  14427. fi
  14428. ;;
  14429. amigaos*)
  14430. # FIXME: we need at least 68020 code to build shared libraries, but
  14431. # adding the `-m68020' flag to GCC prevents building anything better,
  14432. # like `-m68040'.
  14433. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  14434. ;;
  14435. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14436. # PIC is the default for these OSes.
  14437. ;;
  14438. mingw* | pw32* | os2*)
  14439. # This hack is so that the source file can tell whether it is being
  14440. # built for inclusion in a dll (and should export symbols for example).
  14441. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14442. ;;
  14443. darwin* | rhapsody*)
  14444. # PIC is the default on this platform
  14445. # Common symbols not allowed in MH_DYLIB files
  14446. lt_prog_compiler_pic_GCJ='-fno-common'
  14447. ;;
  14448. msdosdjgpp*)
  14449. # Just because we use GCC doesn't mean we suddenly get shared libraries
  14450. # on systems that don't support them.
  14451. lt_prog_compiler_can_build_shared_GCJ=no
  14452. enable_shared=no
  14453. ;;
  14454. sysv4*MP*)
  14455. if test -d /usr/nec; then
  14456. lt_prog_compiler_pic_GCJ=-Kconform_pic
  14457. fi
  14458. ;;
  14459. hpux*)
  14460. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14461. # not for PA HP-UX.
  14462. case "$host_cpu" in
  14463. hppa*64*|ia64*)
  14464. # +Z the default
  14465. ;;
  14466. *)
  14467. lt_prog_compiler_pic_GCJ='-fPIC'
  14468. ;;
  14469. esac
  14470. ;;
  14471. *)
  14472. lt_prog_compiler_pic_GCJ='-fPIC'
  14473. ;;
  14474. esac
  14475. else
  14476. # PORTME Check for flag to pass linker flags through the system compiler.
  14477. case $host_os in
  14478. aix*)
  14479. lt_prog_compiler_wl_GCJ='-Wl,'
  14480. if test "$host_cpu" = ia64; then
  14481. # AIX 5 now supports IA64 processor
  14482. lt_prog_compiler_static_GCJ='-Bstatic'
  14483. else
  14484. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  14485. fi
  14486. ;;
  14487. darwin*)
  14488. # PIC is the default on this platform
  14489. # Common symbols not allowed in MH_DYLIB files
  14490. case $cc_basename in
  14491. xlc*)
  14492. lt_prog_compiler_pic_GCJ='-qnocommon'
  14493. lt_prog_compiler_wl_GCJ='-Wl,'
  14494. ;;
  14495. esac
  14496. ;;
  14497. mingw* | pw32* | os2*)
  14498. # This hack is so that the source file can tell whether it is being
  14499. # built for inclusion in a dll (and should export symbols for example).
  14500. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14501. ;;
  14502. hpux9* | hpux10* | hpux11*)
  14503. lt_prog_compiler_wl_GCJ='-Wl,'
  14504. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14505. # not for PA HP-UX.
  14506. case "$host_cpu" in
  14507. hppa*64*|ia64*)
  14508. # +Z the default
  14509. ;;
  14510. *)
  14511. lt_prog_compiler_pic_GCJ='+Z'
  14512. ;;
  14513. esac
  14514. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  14515. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  14516. ;;
  14517. irix5* | irix6* | nonstopux*)
  14518. lt_prog_compiler_wl_GCJ='-Wl,'
  14519. # PIC (with -KPIC) is the default.
  14520. lt_prog_compiler_static_GCJ='-non_shared'
  14521. ;;
  14522. newsos6)
  14523. lt_prog_compiler_pic_GCJ='-KPIC'
  14524. lt_prog_compiler_static_GCJ='-Bstatic'
  14525. ;;
  14526. linux*)
  14527. case $cc_basename in
  14528. icc* | ecc*)
  14529. lt_prog_compiler_wl_GCJ='-Wl,'
  14530. lt_prog_compiler_pic_GCJ='-KPIC'
  14531. lt_prog_compiler_static_GCJ='-static'
  14532. ;;
  14533. pgcc* | pgf77* | pgf90*)
  14534. # Portland Group compilers (*not* the Pentium gcc compiler,
  14535. # which looks to be a dead project)
  14536. lt_prog_compiler_wl_GCJ='-Wl,'
  14537. lt_prog_compiler_pic_GCJ='-fpic'
  14538. lt_prog_compiler_static_GCJ='-static'
  14539. ;;
  14540. ccc*)
  14541. lt_prog_compiler_wl_GCJ='-Wl,'
  14542. # All Alpha code is PIC.
  14543. lt_prog_compiler_static_GCJ='-non_shared'
  14544. ;;
  14545. esac
  14546. ;;
  14547. osf3* | osf4* | osf5*)
  14548. lt_prog_compiler_wl_GCJ='-Wl,'
  14549. # All OSF/1 code is PIC.
  14550. lt_prog_compiler_static_GCJ='-non_shared'
  14551. ;;
  14552. sco3.2v5*)
  14553. lt_prog_compiler_pic_GCJ='-Kpic'
  14554. lt_prog_compiler_static_GCJ='-dn'
  14555. ;;
  14556. solaris*)
  14557. lt_prog_compiler_pic_GCJ='-KPIC'
  14558. lt_prog_compiler_static_GCJ='-Bstatic'
  14559. case $cc_basename in
  14560. f77* | f90* | f95*)
  14561. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  14562. *)
  14563. lt_prog_compiler_wl_GCJ='-Wl,';;
  14564. esac
  14565. ;;
  14566. sunos4*)
  14567. lt_prog_compiler_wl_GCJ='-Qoption ld '
  14568. lt_prog_compiler_pic_GCJ='-PIC'
  14569. lt_prog_compiler_static_GCJ='-Bstatic'
  14570. ;;
  14571. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  14572. lt_prog_compiler_wl_GCJ='-Wl,'
  14573. lt_prog_compiler_pic_GCJ='-KPIC'
  14574. lt_prog_compiler_static_GCJ='-Bstatic'
  14575. ;;
  14576. sysv4*MP*)
  14577. if test -d /usr/nec ;then
  14578. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  14579. lt_prog_compiler_static_GCJ='-Bstatic'
  14580. fi
  14581. ;;
  14582. unicos*)
  14583. lt_prog_compiler_wl_GCJ='-Wl,'
  14584. lt_prog_compiler_can_build_shared_GCJ=no
  14585. ;;
  14586. uts4*)
  14587. lt_prog_compiler_pic_GCJ='-pic'
  14588. lt_prog_compiler_static_GCJ='-Bstatic'
  14589. ;;
  14590. *)
  14591. lt_prog_compiler_can_build_shared_GCJ=no
  14592. ;;
  14593. esac
  14594. fi
  14595. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  14596. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
  14597. #
  14598. # Check to make sure the PIC flag actually works.
  14599. #
  14600. if test -n "$lt_prog_compiler_pic_GCJ"; then
  14601. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  14602. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
  14603. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  14604. echo $ECHO_N "(cached) $ECHO_C" >&6
  14605. else
  14606. lt_prog_compiler_pic_works_GCJ=no
  14607. ac_outfile=conftest.$ac_objext
  14608. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14609. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  14610. # Insert the option either (1) after the last *FLAGS variable, or
  14611. # (2) before a word containing "conftest.", or (3) at the end.
  14612. # Note that $ac_compile itself does not contain backslashes and begins
  14613. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14614. # The option is referenced via a variable to avoid confusing sed.
  14615. lt_compile=`echo "$ac_compile" | $SED \
  14616. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  14617. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14618. -e 's:$: $lt_compiler_flag:'`
  14619. (eval echo "\"\$as_me:16294: $lt_compile\"" >&5)
  14620. (eval "$lt_compile" 2>conftest.err)
  14621. ac_status=$?
  14622. cat conftest.err >&5
  14623. echo "$as_me:16298: \$? = $ac_status" >&5
  14624. if (exit $ac_status) && test -s "$ac_outfile"; then
  14625. # The compiler can only warn and ignore the option if not recognized
  14626. # So say no if there are warnings other than the usual output.
  14627. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  14628. $SED '/^$/d' conftest.err >conftest.er2
  14629. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  14630. lt_prog_compiler_pic_works_GCJ=yes
  14631. fi
  14632. fi
  14633. $rm conftest*
  14634. fi
  14635. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  14636. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
  14637. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  14638. case $lt_prog_compiler_pic_GCJ in
  14639. "" | " "*) ;;
  14640. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  14641. esac
  14642. else
  14643. lt_prog_compiler_pic_GCJ=
  14644. lt_prog_compiler_can_build_shared_GCJ=no
  14645. fi
  14646. fi
  14647. case "$host_os" in
  14648. # For platforms which do not support PIC, -DPIC is meaningless:
  14649. *djgpp*)
  14650. lt_prog_compiler_pic_GCJ=
  14651. ;;
  14652. *)
  14653. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  14654. ;;
  14655. esac
  14656. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  14657. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  14658. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  14659. echo $ECHO_N "(cached) $ECHO_C" >&6
  14660. else
  14661. lt_cv_prog_compiler_c_o_GCJ=no
  14662. $rm -r conftest 2>/dev/null
  14663. mkdir conftest
  14664. cd conftest
  14665. mkdir out
  14666. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14667. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14668. # Insert the option either (1) after the last *FLAGS variable, or
  14669. # (2) before a word containing "conftest.", or (3) at the end.
  14670. # Note that $ac_compile itself does not contain backslashes and begins
  14671. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14672. lt_compile=`echo "$ac_compile" | $SED \
  14673. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  14674. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14675. -e 's:$: $lt_compiler_flag:'`
  14676. (eval echo "\"\$as_me:16356: $lt_compile\"" >&5)
  14677. (eval "$lt_compile" 2>out/conftest.err)
  14678. ac_status=$?
  14679. cat out/conftest.err >&5
  14680. echo "$as_me:16360: \$? = $ac_status" >&5
  14681. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14682. then
  14683. # The compiler can only warn and ignore the option if not recognized
  14684. # So say no if there are warnings
  14685. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  14686. $SED '/^$/d' out/conftest.err >out/conftest.er2
  14687. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14688. lt_cv_prog_compiler_c_o_GCJ=yes
  14689. fi
  14690. fi
  14691. chmod u+w .
  14692. $rm conftest*
  14693. # SGI C++ compiler will create directory out/ii_files/ for
  14694. # template instantiation
  14695. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  14696. $rm out/* && rmdir out
  14697. cd ..
  14698. rmdir conftest
  14699. $rm conftest*
  14700. fi
  14701. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  14702. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
  14703. hard_links="nottested"
  14704. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  14705. # do not overwrite the value of need_locks provided by the user
  14706. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  14707. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  14708. hard_links=yes
  14709. $rm conftest*
  14710. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14711. touch conftest.a
  14712. ln conftest.a conftest.b 2>&5 || hard_links=no
  14713. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14714. echo "$as_me:$LINENO: result: $hard_links" >&5
  14715. echo "${ECHO_T}$hard_links" >&6
  14716. if test "$hard_links" = no; then
  14717. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  14718. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  14719. need_locks=warn
  14720. fi
  14721. else
  14722. need_locks=no
  14723. fi
  14724. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14725. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  14726. runpath_var=
  14727. allow_undefined_flag_GCJ=
  14728. enable_shared_with_static_runtimes_GCJ=no
  14729. archive_cmds_GCJ=
  14730. archive_expsym_cmds_GCJ=
  14731. old_archive_From_new_cmds_GCJ=
  14732. old_archive_from_expsyms_cmds_GCJ=
  14733. export_dynamic_flag_spec_GCJ=
  14734. whole_archive_flag_spec_GCJ=
  14735. thread_safe_flag_spec_GCJ=
  14736. hardcode_libdir_flag_spec_GCJ=
  14737. hardcode_libdir_flag_spec_ld_GCJ=
  14738. hardcode_libdir_separator_GCJ=
  14739. hardcode_direct_GCJ=no
  14740. hardcode_minus_L_GCJ=no
  14741. hardcode_shlibpath_var_GCJ=unsupported
  14742. link_all_deplibs_GCJ=unknown
  14743. hardcode_automatic_GCJ=no
  14744. module_cmds_GCJ=
  14745. module_expsym_cmds_GCJ=
  14746. always_export_symbols_GCJ=no
  14747. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14748. # include_expsyms should be a list of space-separated symbols to be *always*
  14749. # included in the symbol list
  14750. include_expsyms_GCJ=
  14751. # exclude_expsyms can be an extended regexp of symbols to exclude
  14752. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  14753. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  14754. # as well as any symbol that contains `d'.
  14755. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  14756. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  14757. # platforms (ab)use it in PIC code, but their linkers get confused if
  14758. # the symbol is explicitly referenced. Since portable code cannot
  14759. # rely on this symbol name, it's probably fine to never include it in
  14760. # preloaded symbol tables.
  14761. extract_expsyms_cmds=
  14762. # Just being paranoid about ensuring that cc_basename is set.
  14763. for cc_temp in $compiler""; do
  14764. case $cc_temp in
  14765. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14766. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14767. \-*) ;;
  14768. *) break;;
  14769. esac
  14770. done
  14771. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14772. case $host_os in
  14773. cygwin* | mingw* | pw32*)
  14774. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  14775. # When not using gcc, we currently assume that we are using
  14776. # Microsoft Visual C++.
  14777. if test "$GCC" != yes; then
  14778. with_gnu_ld=no
  14779. fi
  14780. ;;
  14781. openbsd*)
  14782. with_gnu_ld=no
  14783. ;;
  14784. esac
  14785. ld_shlibs_GCJ=yes
  14786. if test "$with_gnu_ld" = yes; then
  14787. # If archive_cmds runs LD, not CC, wlarc should be empty
  14788. wlarc='${wl}'
  14789. # Set some defaults for GNU ld with shared library support. These
  14790. # are reset later if shared libraries are not supported. Putting them
  14791. # here allows them to be overridden if necessary.
  14792. runpath_var=LD_RUN_PATH
  14793. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  14794. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  14795. # ancient GNU ld didn't support --whole-archive et. al.
  14796. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  14797. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  14798. else
  14799. whole_archive_flag_spec_GCJ=
  14800. fi
  14801. supports_anon_versioning=no
  14802. case `$LD -v 2>/dev/null` in
  14803. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  14804. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  14805. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  14806. *\ 2.11.*) ;; # other 2.11 versions
  14807. *) supports_anon_versioning=yes ;;
  14808. esac
  14809. # See if GNU ld supports shared libraries.
  14810. case $host_os in
  14811. aix3* | aix4* | aix5*)
  14812. # On AIX/PPC, the GNU linker is very broken
  14813. if test "$host_cpu" != ia64; then
  14814. ld_shlibs_GCJ=no
  14815. cat <<EOF 1>&2
  14816. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  14817. *** to be unable to reliably create shared libraries on AIX.
  14818. *** Therefore, libtool is disabling shared libraries support. If you
  14819. *** really care for shared libraries, you may want to modify your PATH
  14820. *** so that a non-GNU linker is found, and then restart.
  14821. EOF
  14822. fi
  14823. ;;
  14824. amigaos*)
  14825. 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)'
  14826. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14827. hardcode_minus_L_GCJ=yes
  14828. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  14829. # that the semantics of dynamic libraries on AmigaOS, at least up
  14830. # to version 4, is to share data among multiple programs linked
  14831. # with the same dynamic library. Since this doesn't match the
  14832. # behavior of shared libraries on other platforms, we can't use
  14833. # them.
  14834. ld_shlibs_GCJ=no
  14835. ;;
  14836. beos*)
  14837. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14838. allow_undefined_flag_GCJ=unsupported
  14839. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  14840. # support --undefined. This deserves some investigation. FIXME
  14841. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14842. else
  14843. ld_shlibs_GCJ=no
  14844. fi
  14845. ;;
  14846. cygwin* | mingw* | pw32*)
  14847. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  14848. # as there is no search path for DLLs.
  14849. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14850. allow_undefined_flag_GCJ=unsupported
  14851. always_export_symbols_GCJ=no
  14852. enable_shared_with_static_runtimes_GCJ=yes
  14853. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  14854. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  14855. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  14856. # If the export-symbols file already is a .def file (1st line
  14857. # is EXPORTS), use it as is; otherwise, prepend...
  14858. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  14859. cp $export_symbols $output_objdir/$soname.def;
  14860. else
  14861. echo EXPORTS > $output_objdir/$soname.def;
  14862. cat $export_symbols >> $output_objdir/$soname.def;
  14863. fi~
  14864. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  14865. else
  14866. ld_shlibs_GCJ=no
  14867. fi
  14868. ;;
  14869. linux*)
  14870. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14871. tmp_addflag=
  14872. case $cc_basename,$host_cpu in
  14873. pgcc*) # Portland Group C compiler
  14874. 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'
  14875. tmp_addflag=' $pic_flag'
  14876. ;;
  14877. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  14878. 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'
  14879. tmp_addflag=' $pic_flag -Mnomain' ;;
  14880. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  14881. tmp_addflag=' -i_dynamic' ;;
  14882. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  14883. tmp_addflag=' -i_dynamic -nofor_main' ;;
  14884. ifc* | ifort*) # Intel Fortran compiler
  14885. tmp_addflag=' -nofor_main' ;;
  14886. esac
  14887. archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14888. if test $supports_anon_versioning = yes; then
  14889. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  14890. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  14891. $echo "local: *; };" >> $output_objdir/$libname.ver~
  14892. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  14893. fi
  14894. else
  14895. ld_shlibs_GCJ=no
  14896. fi
  14897. ;;
  14898. netbsd*)
  14899. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14900. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  14901. wlarc=
  14902. else
  14903. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14904. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14905. fi
  14906. ;;
  14907. solaris* | sysv5*)
  14908. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  14909. ld_shlibs_GCJ=no
  14910. cat <<EOF 1>&2
  14911. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  14912. *** create shared libraries on Solaris systems. Therefore, libtool
  14913. *** is disabling shared libraries support. We urge you to upgrade GNU
  14914. *** binutils to release 2.9.1 or newer. Another option is to modify
  14915. *** your PATH or compiler configuration so that the native linker is
  14916. *** used, and then restart.
  14917. EOF
  14918. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14919. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14920. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14921. else
  14922. ld_shlibs_GCJ=no
  14923. fi
  14924. ;;
  14925. sunos4*)
  14926. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14927. wlarc=
  14928. hardcode_direct_GCJ=yes
  14929. hardcode_shlibpath_var_GCJ=no
  14930. ;;
  14931. *)
  14932. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14933. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14934. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14935. else
  14936. ld_shlibs_GCJ=no
  14937. fi
  14938. ;;
  14939. esac
  14940. if test "$ld_shlibs_GCJ" = no; then
  14941. runpath_var=
  14942. hardcode_libdir_flag_spec_GCJ=
  14943. export_dynamic_flag_spec_GCJ=
  14944. whole_archive_flag_spec_GCJ=
  14945. fi
  14946. else
  14947. # PORTME fill in a description of your system's linker (not GNU ld)
  14948. case $host_os in
  14949. aix3*)
  14950. allow_undefined_flag_GCJ=unsupported
  14951. always_export_symbols_GCJ=yes
  14952. 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'
  14953. # Note: this linker hardcodes the directories in LIBPATH if there
  14954. # are no directories specified by -L.
  14955. hardcode_minus_L_GCJ=yes
  14956. if test "$GCC" = yes && test -z "$link_static_flag"; then
  14957. # Neither direct hardcoding nor static linking is supported with a
  14958. # broken collect2.
  14959. hardcode_direct_GCJ=unsupported
  14960. fi
  14961. ;;
  14962. aix4* | aix5*)
  14963. if test "$host_cpu" = ia64; then
  14964. # On IA64, the linker does run time linking by default, so we don't
  14965. # have to do anything special.
  14966. aix_use_runtimelinking=no
  14967. exp_sym_flag='-Bexport'
  14968. no_entry_flag=""
  14969. else
  14970. # If we're using GNU nm, then we don't want the "-C" option.
  14971. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14972. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  14973. 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'
  14974. else
  14975. 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'
  14976. fi
  14977. aix_use_runtimelinking=no
  14978. # Test if we are trying to use run time linking or normal
  14979. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14980. # need to do runtime linking.
  14981. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  14982. for ld_flag in $LDFLAGS; do
  14983. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  14984. aix_use_runtimelinking=yes
  14985. break
  14986. fi
  14987. done
  14988. esac
  14989. exp_sym_flag='-bexport'
  14990. no_entry_flag='-bnoentry'
  14991. fi
  14992. # When large executables or shared objects are built, AIX ld can
  14993. # have problems creating the table of contents. If linking a library
  14994. # or program results in "error TOC overflow" add -mminimal-toc to
  14995. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  14996. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  14997. archive_cmds_GCJ=''
  14998. hardcode_direct_GCJ=yes
  14999. hardcode_libdir_separator_GCJ=':'
  15000. link_all_deplibs_GCJ=yes
  15001. if test "$GCC" = yes; then
  15002. case $host_os in aix4.[012]|aix4.[012].*)
  15003. # We only want to do this on AIX 4.2 and lower, the check
  15004. # below for broken collect2 doesn't work under 4.3+
  15005. collect2name=`${CC} -print-prog-name=collect2`
  15006. if test -f "$collect2name" && \
  15007. strings "$collect2name" | grep resolve_lib_name >/dev/null
  15008. then
  15009. # We have reworked collect2
  15010. hardcode_direct_GCJ=yes
  15011. else
  15012. # We have old collect2
  15013. hardcode_direct_GCJ=unsupported
  15014. # It fails to find uninstalled libraries when the uninstalled
  15015. # path is not listed in the libpath. Setting hardcode_minus_L
  15016. # to unsupported forces relinking
  15017. hardcode_minus_L_GCJ=yes
  15018. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15019. hardcode_libdir_separator_GCJ=
  15020. fi
  15021. esac
  15022. shared_flag='-shared'
  15023. if test "$aix_use_runtimelinking" = yes; then
  15024. shared_flag="$shared_flag "'${wl}-G'
  15025. fi
  15026. else
  15027. # not using gcc
  15028. if test "$host_cpu" = ia64; then
  15029. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  15030. # chokes on -Wl,-G. The following line is correct:
  15031. shared_flag='-G'
  15032. else
  15033. if test "$aix_use_runtimelinking" = yes; then
  15034. shared_flag='${wl}-G'
  15035. else
  15036. shared_flag='${wl}-bM:SRE'
  15037. fi
  15038. fi
  15039. fi
  15040. # It seems that -bexpall does not export symbols beginning with
  15041. # underscore (_), so it is better to generate a list of symbols to export.
  15042. always_export_symbols_GCJ=yes
  15043. if test "$aix_use_runtimelinking" = yes; then
  15044. # Warning - without using the other runtime loading flags (-brtl),
  15045. # -berok will link without error, but may produce a broken library.
  15046. allow_undefined_flag_GCJ='-berok'
  15047. # Determine the default libpath from the value encoded in an empty executable.
  15048. cat >conftest.$ac_ext <<_ACEOF
  15049. /* confdefs.h. */
  15050. _ACEOF
  15051. cat confdefs.h >>conftest.$ac_ext
  15052. cat >>conftest.$ac_ext <<_ACEOF
  15053. /* end confdefs.h. */
  15054. int
  15055. main ()
  15056. {
  15057. ;
  15058. return 0;
  15059. }
  15060. _ACEOF
  15061. rm -f conftest.$ac_objext conftest$ac_exeext
  15062. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15063. (eval $ac_link) 2>conftest.er1
  15064. ac_status=$?
  15065. grep -v '^ *+' conftest.er1 >conftest.err
  15066. rm -f conftest.er1
  15067. cat conftest.err >&5
  15068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15069. (exit $ac_status); } &&
  15070. { ac_try='test -z "$ac_c_werror_flag"
  15071. || test ! -s conftest.err'
  15072. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15073. (eval $ac_try) 2>&5
  15074. ac_status=$?
  15075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15076. (exit $ac_status); }; } &&
  15077. { ac_try='test -s conftest$ac_exeext'
  15078. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15079. (eval $ac_try) 2>&5
  15080. ac_status=$?
  15081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15082. (exit $ac_status); }; }; then
  15083. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15084. }'`
  15085. # Check for a 64-bit object if we didn't find anything.
  15086. 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; }
  15087. }'`; fi
  15088. else
  15089. echo "$as_me: failed program was:" >&5
  15090. sed 's/^/| /' conftest.$ac_ext >&5
  15091. fi
  15092. rm -f conftest.err conftest.$ac_objext \
  15093. conftest$ac_exeext conftest.$ac_ext
  15094. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15095. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15096. archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  15097. else
  15098. if test "$host_cpu" = ia64; then
  15099. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  15100. allow_undefined_flag_GCJ="-z nodefs"
  15101. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  15102. else
  15103. # Determine the default libpath from the value encoded in an empty executable.
  15104. cat >conftest.$ac_ext <<_ACEOF
  15105. /* confdefs.h. */
  15106. _ACEOF
  15107. cat confdefs.h >>conftest.$ac_ext
  15108. cat >>conftest.$ac_ext <<_ACEOF
  15109. /* end confdefs.h. */
  15110. int
  15111. main ()
  15112. {
  15113. ;
  15114. return 0;
  15115. }
  15116. _ACEOF
  15117. rm -f conftest.$ac_objext conftest$ac_exeext
  15118. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15119. (eval $ac_link) 2>conftest.er1
  15120. ac_status=$?
  15121. grep -v '^ *+' conftest.er1 >conftest.err
  15122. rm -f conftest.er1
  15123. cat conftest.err >&5
  15124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15125. (exit $ac_status); } &&
  15126. { ac_try='test -z "$ac_c_werror_flag"
  15127. || test ! -s conftest.err'
  15128. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15129. (eval $ac_try) 2>&5
  15130. ac_status=$?
  15131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15132. (exit $ac_status); }; } &&
  15133. { ac_try='test -s conftest$ac_exeext'
  15134. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15135. (eval $ac_try) 2>&5
  15136. ac_status=$?
  15137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15138. (exit $ac_status); }; }; then
  15139. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15140. }'`
  15141. # Check for a 64-bit object if we didn't find anything.
  15142. 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; }
  15143. }'`; fi
  15144. else
  15145. echo "$as_me: failed program was:" >&5
  15146. sed 's/^/| /' conftest.$ac_ext >&5
  15147. fi
  15148. rm -f conftest.err conftest.$ac_objext \
  15149. conftest$ac_exeext conftest.$ac_ext
  15150. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15151. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15152. # Warning - without using the other run time loading flags,
  15153. # -berok will link without error, but may produce a broken library.
  15154. no_undefined_flag_GCJ=' ${wl}-bernotok'
  15155. allow_undefined_flag_GCJ=' ${wl}-berok'
  15156. # -bexpall does not export symbols beginning with underscore (_)
  15157. always_export_symbols_GCJ=yes
  15158. # Exported symbols can be pulled into shared objects from archives
  15159. whole_archive_flag_spec_GCJ=' '
  15160. archive_cmds_need_lc_GCJ=yes
  15161. # This is similar to how AIX traditionally builds it's shared libraries.
  15162. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  15163. fi
  15164. fi
  15165. ;;
  15166. amigaos*)
  15167. 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)'
  15168. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15169. hardcode_minus_L_GCJ=yes
  15170. # see comment about different semantics on the GNU ld section
  15171. ld_shlibs_GCJ=no
  15172. ;;
  15173. bsdi[45]*)
  15174. export_dynamic_flag_spec_GCJ=-rdynamic
  15175. ;;
  15176. cygwin* | mingw* | pw32*)
  15177. # When not using gcc, we currently assume that we are using
  15178. # Microsoft Visual C++.
  15179. # hardcode_libdir_flag_spec is actually meaningless, as there is
  15180. # no search path for DLLs.
  15181. hardcode_libdir_flag_spec_GCJ=' '
  15182. allow_undefined_flag_GCJ=unsupported
  15183. # Tell ltmain to make .lib files, not .a files.
  15184. libext=lib
  15185. # Tell ltmain to make .dll files, not .so files.
  15186. shrext_cmds=".dll"
  15187. # FIXME: Setting linknames here is a bad hack.
  15188. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  15189. # The linker will automatically build a .lib file if we build a DLL.
  15190. old_archive_From_new_cmds_GCJ='true'
  15191. # FIXME: Should let the user specify the lib program.
  15192. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  15193. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  15194. enable_shared_with_static_runtimes_GCJ=yes
  15195. ;;
  15196. darwin* | rhapsody*)
  15197. case "$host_os" in
  15198. rhapsody* | darwin1.[012])
  15199. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  15200. ;;
  15201. *) # Darwin 1.3 on
  15202. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  15203. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15204. else
  15205. case ${MACOSX_DEPLOYMENT_TARGET} in
  15206. 10.[012])
  15207. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15208. ;;
  15209. 10.*)
  15210. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  15211. ;;
  15212. esac
  15213. fi
  15214. ;;
  15215. esac
  15216. archive_cmds_need_lc_GCJ=no
  15217. hardcode_direct_GCJ=no
  15218. hardcode_automatic_GCJ=yes
  15219. hardcode_shlibpath_var_GCJ=unsupported
  15220. whole_archive_flag_spec_GCJ=''
  15221. link_all_deplibs_GCJ=yes
  15222. if test "$GCC" = yes ; then
  15223. output_verbose_link_cmd='echo'
  15224. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  15225. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15226. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  15227. 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}'
  15228. 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}'
  15229. else
  15230. case $cc_basename in
  15231. xlc*)
  15232. output_verbose_link_cmd='echo'
  15233. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  15234. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15235. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  15236. 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}'
  15237. 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}'
  15238. ;;
  15239. *)
  15240. ld_shlibs_GCJ=no
  15241. ;;
  15242. esac
  15243. fi
  15244. ;;
  15245. dgux*)
  15246. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15247. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15248. hardcode_shlibpath_var_GCJ=no
  15249. ;;
  15250. freebsd1*)
  15251. ld_shlibs_GCJ=no
  15252. ;;
  15253. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  15254. # support. Future versions do this automatically, but an explicit c++rt0.o
  15255. # does not break anything, and helps significantly (at the cost of a little
  15256. # extra space).
  15257. freebsd2.2*)
  15258. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15259. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15260. hardcode_direct_GCJ=yes
  15261. hardcode_shlibpath_var_GCJ=no
  15262. ;;
  15263. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15264. freebsd2*)
  15265. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15266. hardcode_direct_GCJ=yes
  15267. hardcode_minus_L_GCJ=yes
  15268. hardcode_shlibpath_var_GCJ=no
  15269. ;;
  15270. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15271. freebsd* | kfreebsd*-gnu | dragonfly*)
  15272. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15273. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15274. hardcode_direct_GCJ=yes
  15275. hardcode_shlibpath_var_GCJ=no
  15276. ;;
  15277. hpux9*)
  15278. if test "$GCC" = yes; then
  15279. 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'
  15280. else
  15281. 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'
  15282. fi
  15283. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15284. hardcode_libdir_separator_GCJ=:
  15285. hardcode_direct_GCJ=yes
  15286. # hardcode_minus_L: Not really in the search PATH,
  15287. # but as the default location of the library.
  15288. hardcode_minus_L_GCJ=yes
  15289. export_dynamic_flag_spec_GCJ='${wl}-E'
  15290. ;;
  15291. hpux10* | hpux11*)
  15292. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15293. case "$host_cpu" in
  15294. hppa*64*|ia64*)
  15295. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15296. ;;
  15297. *)
  15298. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15299. ;;
  15300. esac
  15301. else
  15302. case "$host_cpu" in
  15303. hppa*64*|ia64*)
  15304. archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  15305. ;;
  15306. *)
  15307. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  15308. ;;
  15309. esac
  15310. fi
  15311. if test "$with_gnu_ld" = no; then
  15312. case "$host_cpu" in
  15313. hppa*64*)
  15314. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15315. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  15316. hardcode_libdir_separator_GCJ=:
  15317. hardcode_direct_GCJ=no
  15318. hardcode_shlibpath_var_GCJ=no
  15319. ;;
  15320. ia64*)
  15321. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15322. hardcode_direct_GCJ=no
  15323. hardcode_shlibpath_var_GCJ=no
  15324. # hardcode_minus_L: Not really in the search PATH,
  15325. # but as the default location of the library.
  15326. hardcode_minus_L_GCJ=yes
  15327. ;;
  15328. *)
  15329. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15330. hardcode_libdir_separator_GCJ=:
  15331. hardcode_direct_GCJ=yes
  15332. export_dynamic_flag_spec_GCJ='${wl}-E'
  15333. # hardcode_minus_L: Not really in the search PATH,
  15334. # but as the default location of the library.
  15335. hardcode_minus_L_GCJ=yes
  15336. ;;
  15337. esac
  15338. fi
  15339. ;;
  15340. irix5* | irix6* | nonstopux*)
  15341. if test "$GCC" = yes; then
  15342. 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'
  15343. else
  15344. 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'
  15345. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  15346. fi
  15347. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15348. hardcode_libdir_separator_GCJ=:
  15349. link_all_deplibs_GCJ=yes
  15350. ;;
  15351. netbsd*)
  15352. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15353. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  15354. else
  15355. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  15356. fi
  15357. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15358. hardcode_direct_GCJ=yes
  15359. hardcode_shlibpath_var_GCJ=no
  15360. ;;
  15361. newsos6)
  15362. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15363. hardcode_direct_GCJ=yes
  15364. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15365. hardcode_libdir_separator_GCJ=:
  15366. hardcode_shlibpath_var_GCJ=no
  15367. ;;
  15368. openbsd*)
  15369. hardcode_direct_GCJ=yes
  15370. hardcode_shlibpath_var_GCJ=no
  15371. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15372. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15373. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  15374. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15375. export_dynamic_flag_spec_GCJ='${wl}-E'
  15376. else
  15377. case $host_os in
  15378. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  15379. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15380. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15381. ;;
  15382. *)
  15383. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15384. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15385. ;;
  15386. esac
  15387. fi
  15388. ;;
  15389. os2*)
  15390. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15391. hardcode_minus_L_GCJ=yes
  15392. allow_undefined_flag_GCJ=unsupported
  15393. 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'
  15394. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  15395. ;;
  15396. osf3*)
  15397. if test "$GCC" = yes; then
  15398. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15399. 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'
  15400. else
  15401. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15402. 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'
  15403. fi
  15404. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15405. hardcode_libdir_separator_GCJ=:
  15406. ;;
  15407. osf4* | osf5*) # as osf3* with the addition of -msym flag
  15408. if test "$GCC" = yes; then
  15409. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15410. 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'
  15411. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15412. else
  15413. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15414. 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'
  15415. 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~
  15416. $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'
  15417. # Both c and cxx compiler support -rpath directly
  15418. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  15419. fi
  15420. hardcode_libdir_separator_GCJ=:
  15421. ;;
  15422. sco3.2v5*)
  15423. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15424. hardcode_shlibpath_var_GCJ=no
  15425. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  15426. runpath_var=LD_RUN_PATH
  15427. hardcode_runpath_var=yes
  15428. ;;
  15429. solaris*)
  15430. no_undefined_flag_GCJ=' -z text'
  15431. if test "$GCC" = yes; then
  15432. wlarc='${wl}'
  15433. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15434. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15435. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  15436. else
  15437. wlarc=''
  15438. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15439. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15440. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15441. fi
  15442. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15443. hardcode_shlibpath_var_GCJ=no
  15444. case $host_os in
  15445. solaris2.[0-5] | solaris2.[0-5].*) ;;
  15446. *)
  15447. # The compiler driver will combine linker options so we
  15448. # cannot just pass the convience library names through
  15449. # without $wl, iff we do not link with $LD.
  15450. # Luckily, gcc supports the same syntax we need for Sun Studio.
  15451. # Supported since Solaris 2.6 (maybe 2.5.1?)
  15452. case $wlarc in
  15453. '')
  15454. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  15455. *)
  15456. 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' ;;
  15457. esac ;;
  15458. esac
  15459. link_all_deplibs_GCJ=yes
  15460. ;;
  15461. sunos4*)
  15462. if test "x$host_vendor" = xsequent; then
  15463. # Use $CC to link under sequent, because it throws in some extra .o
  15464. # files that make .init and .fini sections work.
  15465. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  15466. else
  15467. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  15468. fi
  15469. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15470. hardcode_direct_GCJ=yes
  15471. hardcode_minus_L_GCJ=yes
  15472. hardcode_shlibpath_var_GCJ=no
  15473. ;;
  15474. sysv4)
  15475. case $host_vendor in
  15476. sni)
  15477. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15478. hardcode_direct_GCJ=yes # is this really true???
  15479. ;;
  15480. siemens)
  15481. ## LD is ld it makes a PLAMLIB
  15482. ## CC just makes a GrossModule.
  15483. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15484. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  15485. hardcode_direct_GCJ=no
  15486. ;;
  15487. motorola)
  15488. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15489. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  15490. ;;
  15491. esac
  15492. runpath_var='LD_RUN_PATH'
  15493. hardcode_shlibpath_var_GCJ=no
  15494. ;;
  15495. sysv4.3*)
  15496. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15497. hardcode_shlibpath_var_GCJ=no
  15498. export_dynamic_flag_spec_GCJ='-Bexport'
  15499. ;;
  15500. sysv4*MP*)
  15501. if test -d /usr/nec; then
  15502. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15503. hardcode_shlibpath_var_GCJ=no
  15504. runpath_var=LD_RUN_PATH
  15505. hardcode_runpath_var=yes
  15506. ld_shlibs_GCJ=yes
  15507. fi
  15508. ;;
  15509. sysv4.2uw2*)
  15510. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15511. hardcode_direct_GCJ=yes
  15512. hardcode_minus_L_GCJ=no
  15513. hardcode_shlibpath_var_GCJ=no
  15514. hardcode_runpath_var=yes
  15515. runpath_var=LD_RUN_PATH
  15516. ;;
  15517. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  15518. no_undefined_flag_GCJ='${wl}-z ${wl}text'
  15519. if test "$GCC" = yes; then
  15520. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15521. else
  15522. archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15523. fi
  15524. runpath_var='LD_RUN_PATH'
  15525. hardcode_shlibpath_var_GCJ=no
  15526. ;;
  15527. sysv5*)
  15528. no_undefined_flag_GCJ=' -z text'
  15529. # $CC -shared without GNU ld will not create a library from C++
  15530. # object files and a static libstdc++, better avoid it by now
  15531. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15532. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15533. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15534. hardcode_libdir_flag_spec_GCJ=
  15535. hardcode_shlibpath_var_GCJ=no
  15536. runpath_var='LD_RUN_PATH'
  15537. ;;
  15538. uts4*)
  15539. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15540. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15541. hardcode_shlibpath_var_GCJ=no
  15542. ;;
  15543. *)
  15544. ld_shlibs_GCJ=no
  15545. ;;
  15546. esac
  15547. fi
  15548. echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  15549. echo "${ECHO_T}$ld_shlibs_GCJ" >&6
  15550. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  15551. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15552. if test "$GCC" = yes; then
  15553. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15554. fi
  15555. #
  15556. # Do we need to explicitly link libc?
  15557. #
  15558. case "x$archive_cmds_need_lc_GCJ" in
  15559. x|xyes)
  15560. # Assume -lc should be added
  15561. archive_cmds_need_lc_GCJ=yes
  15562. if test "$enable_shared" = yes && test "$GCC" = yes; then
  15563. case $archive_cmds_GCJ in
  15564. *'~'*)
  15565. # FIXME: we may have to deal with multi-command sequences.
  15566. ;;
  15567. '$CC '*)
  15568. # Test whether the compiler implicitly links with -lc since on some
  15569. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  15570. # to ld, don't add -lc before -lgcc.
  15571. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  15572. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  15573. $rm conftest*
  15574. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15575. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15576. (eval $ac_compile) 2>&5
  15577. ac_status=$?
  15578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15579. (exit $ac_status); } 2>conftest.err; then
  15580. soname=conftest
  15581. lib=conftest
  15582. libobjs=conftest.$ac_objext
  15583. deplibs=
  15584. wl=$lt_prog_compiler_wl_GCJ
  15585. compiler_flags=-v
  15586. linker_flags=-v
  15587. verstring=
  15588. output_objdir=.
  15589. libname=conftest
  15590. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  15591. allow_undefined_flag_GCJ=
  15592. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  15593. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  15594. ac_status=$?
  15595. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15596. (exit $ac_status); }
  15597. then
  15598. archive_cmds_need_lc_GCJ=no
  15599. else
  15600. archive_cmds_need_lc_GCJ=yes
  15601. fi
  15602. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  15603. else
  15604. cat conftest.err 1>&5
  15605. fi
  15606. $rm conftest*
  15607. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  15608. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
  15609. ;;
  15610. esac
  15611. fi
  15612. ;;
  15613. esac
  15614. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  15615. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  15616. library_names_spec=
  15617. libname_spec='lib$name'
  15618. soname_spec=
  15619. shrext_cmds=".so"
  15620. postinstall_cmds=
  15621. postuninstall_cmds=
  15622. finish_cmds=
  15623. finish_eval=
  15624. shlibpath_var=
  15625. shlibpath_overrides_runpath=unknown
  15626. version_type=none
  15627. dynamic_linker="$host_os ld.so"
  15628. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15629. if test "$GCC" = yes; then
  15630. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15631. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  15632. # if the path contains ";" then we assume it to be the separator
  15633. # otherwise default to the standard path separator (i.e. ":") - it is
  15634. # assumed that no part of a normal pathname contains ";" but that should
  15635. # okay in the real world where ";" in dirpaths is itself problematic.
  15636. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15637. else
  15638. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15639. fi
  15640. else
  15641. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15642. fi
  15643. need_lib_prefix=unknown
  15644. hardcode_into_libs=no
  15645. # when you set need_version to no, make sure it does not cause -set_version
  15646. # flags to be left without arguments
  15647. need_version=unknown
  15648. case $host_os in
  15649. aix3*)
  15650. version_type=linux
  15651. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  15652. shlibpath_var=LIBPATH
  15653. # AIX 3 has no versioning support, so we append a major version to the name.
  15654. soname_spec='${libname}${release}${shared_ext}$major'
  15655. ;;
  15656. aix4* | aix5*)
  15657. version_type=linux
  15658. need_lib_prefix=no
  15659. need_version=no
  15660. hardcode_into_libs=yes
  15661. if test "$host_cpu" = ia64; then
  15662. # AIX 5 supports IA64
  15663. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  15664. shlibpath_var=LD_LIBRARY_PATH
  15665. else
  15666. # With GCC up to 2.95.x, collect2 would create an import file
  15667. # for dependence libraries. The import file would start with
  15668. # the line `#! .'. This would cause the generated library to
  15669. # depend on `.', always an invalid library. This was fixed in
  15670. # development snapshots of GCC prior to 3.0.
  15671. case $host_os in
  15672. aix4 | aix4.[01] | aix4.[01].*)
  15673. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15674. echo ' yes '
  15675. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  15676. :
  15677. else
  15678. can_build_shared=no
  15679. fi
  15680. ;;
  15681. esac
  15682. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  15683. # soname into executable. Probably we can add versioning support to
  15684. # collect2, so additional links can be useful in future.
  15685. if test "$aix_use_runtimelinking" = yes; then
  15686. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15687. # instead of lib<name>.a to let people know that these are not
  15688. # typical AIX shared libraries.
  15689. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15690. else
  15691. # We preserve .a as extension for shared libraries through AIX4.2
  15692. # and later when we are not doing run time linking.
  15693. library_names_spec='${libname}${release}.a $libname.a'
  15694. soname_spec='${libname}${release}${shared_ext}$major'
  15695. fi
  15696. shlibpath_var=LIBPATH
  15697. fi
  15698. ;;
  15699. amigaos*)
  15700. library_names_spec='$libname.ixlibrary $libname.a'
  15701. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15702. 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'
  15703. ;;
  15704. beos*)
  15705. library_names_spec='${libname}${shared_ext}'
  15706. dynamic_linker="$host_os ld.so"
  15707. shlibpath_var=LIBRARY_PATH
  15708. ;;
  15709. bsdi[45]*)
  15710. version_type=linux
  15711. need_version=no
  15712. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15713. soname_spec='${libname}${release}${shared_ext}$major'
  15714. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  15715. shlibpath_var=LD_LIBRARY_PATH
  15716. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15717. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15718. # the default ld.so.conf also contains /usr/contrib/lib and
  15719. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15720. # libtool to hard-code these into programs
  15721. ;;
  15722. cygwin* | mingw* | pw32*)
  15723. version_type=windows
  15724. shrext_cmds=".dll"
  15725. need_version=no
  15726. need_lib_prefix=no
  15727. case $GCC,$host_os in
  15728. yes,cygwin* | yes,mingw* | yes,pw32*)
  15729. library_names_spec='$libname.dll.a'
  15730. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15731. postinstall_cmds='base_file=`basename \${file}`~
  15732. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  15733. dldir=$destdir/`dirname \$dlpath`~
  15734. test -d \$dldir || mkdir -p \$dldir~
  15735. $install_prog $dir/$dlname \$dldir/$dlname'
  15736. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15737. dlpath=$dir/\$dldll~
  15738. $rm \$dlpath'
  15739. shlibpath_overrides_runpath=yes
  15740. case $host_os in
  15741. cygwin*)
  15742. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  15743. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15744. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  15745. ;;
  15746. mingw*)
  15747. # MinGW DLLs use traditional 'lib' prefix
  15748. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15749. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15750. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  15751. # It is most probably a Windows format PATH printed by
  15752. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  15753. # path with ; separators, and with drive letters. We can handle the
  15754. # drive letters (cygwin fileutils understands them), so leave them,
  15755. # especially as we might pass files found there to a mingw objdump,
  15756. # which wouldn't understand a cygwinified path. Ahh.
  15757. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15758. else
  15759. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15760. fi
  15761. ;;
  15762. pw32*)
  15763. # pw32 DLLs use 'pw' prefix rather than 'lib'
  15764. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15765. ;;
  15766. esac
  15767. ;;
  15768. *)
  15769. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  15770. ;;
  15771. esac
  15772. dynamic_linker='Win32 ld.exe'
  15773. # FIXME: first we should search . and the directory the executable is in
  15774. shlibpath_var=PATH
  15775. ;;
  15776. darwin* | rhapsody*)
  15777. dynamic_linker="$host_os dyld"
  15778. version_type=darwin
  15779. need_lib_prefix=no
  15780. need_version=no
  15781. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  15782. soname_spec='${libname}${release}${major}$shared_ext'
  15783. shlibpath_overrides_runpath=yes
  15784. shlibpath_var=DYLD_LIBRARY_PATH
  15785. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  15786. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  15787. if test "$GCC" = yes; then
  15788. 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"`
  15789. else
  15790. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  15791. fi
  15792. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  15793. ;;
  15794. dgux*)
  15795. version_type=linux
  15796. need_lib_prefix=no
  15797. need_version=no
  15798. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  15799. soname_spec='${libname}${release}${shared_ext}$major'
  15800. shlibpath_var=LD_LIBRARY_PATH
  15801. ;;
  15802. freebsd1*)
  15803. dynamic_linker=no
  15804. ;;
  15805. kfreebsd*-gnu)
  15806. version_type=linux
  15807. need_lib_prefix=no
  15808. need_version=no
  15809. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15810. soname_spec='${libname}${release}${shared_ext}$major'
  15811. shlibpath_var=LD_LIBRARY_PATH
  15812. shlibpath_overrides_runpath=no
  15813. hardcode_into_libs=yes
  15814. dynamic_linker='GNU ld.so'
  15815. ;;
  15816. freebsd* | dragonfly*)
  15817. # DragonFly does not have aout. When/if they implement a new
  15818. # versioning mechanism, adjust this.
  15819. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  15820. version_type=freebsd-$objformat
  15821. case $version_type in
  15822. freebsd-elf*)
  15823. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15824. need_version=no
  15825. need_lib_prefix=no
  15826. ;;
  15827. freebsd-*)
  15828. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  15829. need_version=yes
  15830. ;;
  15831. esac
  15832. shlibpath_var=LD_LIBRARY_PATH
  15833. case $host_os in
  15834. freebsd2*)
  15835. shlibpath_overrides_runpath=yes
  15836. ;;
  15837. freebsd3.[01]* | freebsdelf3.[01]*)
  15838. shlibpath_overrides_runpath=yes
  15839. hardcode_into_libs=yes
  15840. ;;
  15841. *) # from 3.2 on
  15842. shlibpath_overrides_runpath=no
  15843. hardcode_into_libs=yes
  15844. ;;
  15845. esac
  15846. ;;
  15847. gnu*)
  15848. version_type=linux
  15849. need_lib_prefix=no
  15850. need_version=no
  15851. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  15852. soname_spec='${libname}${release}${shared_ext}$major'
  15853. shlibpath_var=LD_LIBRARY_PATH
  15854. hardcode_into_libs=yes
  15855. ;;
  15856. hpux9* | hpux10* | hpux11*)
  15857. # Give a soname corresponding to the major version so that dld.sl refuses to
  15858. # link against other versions.
  15859. version_type=sunos
  15860. need_lib_prefix=no
  15861. need_version=no
  15862. case "$host_cpu" in
  15863. ia64*)
  15864. shrext_cmds='.so'
  15865. hardcode_into_libs=yes
  15866. dynamic_linker="$host_os dld.so"
  15867. shlibpath_var=LD_LIBRARY_PATH
  15868. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15869. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15870. soname_spec='${libname}${release}${shared_ext}$major'
  15871. if test "X$HPUX_IA64_MODE" = X32; then
  15872. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15873. else
  15874. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15875. fi
  15876. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15877. ;;
  15878. hppa*64*)
  15879. shrext_cmds='.sl'
  15880. hardcode_into_libs=yes
  15881. dynamic_linker="$host_os dld.sl"
  15882. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15883. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15884. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15885. soname_spec='${libname}${release}${shared_ext}$major'
  15886. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15887. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15888. ;;
  15889. *)
  15890. shrext_cmds='.sl'
  15891. dynamic_linker="$host_os dld.sl"
  15892. shlibpath_var=SHLIB_PATH
  15893. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15894. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15895. soname_spec='${libname}${release}${shared_ext}$major'
  15896. ;;
  15897. esac
  15898. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  15899. postinstall_cmds='chmod 555 $lib'
  15900. ;;
  15901. irix5* | irix6* | nonstopux*)
  15902. case $host_os in
  15903. nonstopux*) version_type=nonstopux ;;
  15904. *)
  15905. if test "$lt_cv_prog_gnu_ld" = yes; then
  15906. version_type=linux
  15907. else
  15908. version_type=irix
  15909. fi ;;
  15910. esac
  15911. need_lib_prefix=no
  15912. need_version=no
  15913. soname_spec='${libname}${release}${shared_ext}$major'
  15914. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  15915. case $host_os in
  15916. irix5* | nonstopux*)
  15917. libsuff= shlibsuff=
  15918. ;;
  15919. *)
  15920. case $LD in # libtool.m4 will add one of these switches to LD
  15921. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15922. libsuff= shlibsuff= libmagic=32-bit;;
  15923. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15924. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15925. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15926. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15927. *) libsuff= shlibsuff= libmagic=never-match;;
  15928. esac
  15929. ;;
  15930. esac
  15931. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15932. shlibpath_overrides_runpath=no
  15933. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15934. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15935. hardcode_into_libs=yes
  15936. ;;
  15937. # No shared lib support for Linux oldld, aout, or coff.
  15938. linux*oldld* | linux*aout* | linux*coff*)
  15939. dynamic_linker=no
  15940. ;;
  15941. # This must be Linux ELF.
  15942. linux*)
  15943. version_type=linux
  15944. need_lib_prefix=no
  15945. need_version=no
  15946. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15947. soname_spec='${libname}${release}${shared_ext}$major'
  15948. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15949. shlibpath_var=LD_LIBRARY_PATH
  15950. shlibpath_overrides_runpath=no
  15951. # This implies no fast_install, which is unacceptable.
  15952. # Some rework will be needed to allow for fast_install
  15953. # before this can be enabled.
  15954. hardcode_into_libs=yes
  15955. # Append ld.so.conf contents to the search path
  15956. if test -f /etc/ld.so.conf; then
  15957. 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' ' '`
  15958. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15959. fi
  15960. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15961. # powerpc, because MkLinux only supported shared libraries with the
  15962. # GNU dynamic linker. Since this was broken with cross compilers,
  15963. # most powerpc-linux boxes support dynamic linking these days and
  15964. # people can always --disable-shared, the test was removed, and we
  15965. # assume the GNU/Linux dynamic linker is in use.
  15966. dynamic_linker='GNU/Linux ld.so'
  15967. ;;
  15968. knetbsd*-gnu)
  15969. version_type=linux
  15970. need_lib_prefix=no
  15971. need_version=no
  15972. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15973. soname_spec='${libname}${release}${shared_ext}$major'
  15974. shlibpath_var=LD_LIBRARY_PATH
  15975. shlibpath_overrides_runpath=no
  15976. hardcode_into_libs=yes
  15977. dynamic_linker='GNU ld.so'
  15978. ;;
  15979. netbsd*)
  15980. version_type=sunos
  15981. need_lib_prefix=no
  15982. need_version=no
  15983. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15984. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15985. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15986. dynamic_linker='NetBSD (a.out) ld.so'
  15987. else
  15988. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15989. soname_spec='${libname}${release}${shared_ext}$major'
  15990. dynamic_linker='NetBSD ld.elf_so'
  15991. fi
  15992. shlibpath_var=LD_LIBRARY_PATH
  15993. shlibpath_overrides_runpath=yes
  15994. hardcode_into_libs=yes
  15995. ;;
  15996. newsos6)
  15997. version_type=linux
  15998. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15999. shlibpath_var=LD_LIBRARY_PATH
  16000. shlibpath_overrides_runpath=yes
  16001. ;;
  16002. nto-qnx*)
  16003. version_type=linux
  16004. need_lib_prefix=no
  16005. need_version=no
  16006. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16007. soname_spec='${libname}${release}${shared_ext}$major'
  16008. shlibpath_var=LD_LIBRARY_PATH
  16009. shlibpath_overrides_runpath=yes
  16010. ;;
  16011. openbsd*)
  16012. version_type=sunos
  16013. need_lib_prefix=no
  16014. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  16015. case $host_os in
  16016. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  16017. *) need_version=no ;;
  16018. esac
  16019. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16020. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16021. shlibpath_var=LD_LIBRARY_PATH
  16022. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16023. case $host_os in
  16024. openbsd2.[89] | openbsd2.[89].*)
  16025. shlibpath_overrides_runpath=no
  16026. ;;
  16027. *)
  16028. shlibpath_overrides_runpath=yes
  16029. ;;
  16030. esac
  16031. else
  16032. shlibpath_overrides_runpath=yes
  16033. fi
  16034. ;;
  16035. os2*)
  16036. libname_spec='$name'
  16037. shrext_cmds=".dll"
  16038. need_lib_prefix=no
  16039. library_names_spec='$libname${shared_ext} $libname.a'
  16040. dynamic_linker='OS/2 ld.exe'
  16041. shlibpath_var=LIBPATH
  16042. ;;
  16043. osf3* | osf4* | osf5*)
  16044. version_type=osf
  16045. need_lib_prefix=no
  16046. need_version=no
  16047. soname_spec='${libname}${release}${shared_ext}$major'
  16048. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16049. shlibpath_var=LD_LIBRARY_PATH
  16050. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  16051. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  16052. ;;
  16053. sco3.2v5*)
  16054. version_type=osf
  16055. soname_spec='${libname}${release}${shared_ext}$major'
  16056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16057. shlibpath_var=LD_LIBRARY_PATH
  16058. ;;
  16059. solaris*)
  16060. version_type=linux
  16061. need_lib_prefix=no
  16062. need_version=no
  16063. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16064. soname_spec='${libname}${release}${shared_ext}$major'
  16065. shlibpath_var=LD_LIBRARY_PATH
  16066. shlibpath_overrides_runpath=yes
  16067. hardcode_into_libs=yes
  16068. # ldd complains unless libraries are executable
  16069. postinstall_cmds='chmod +x $lib'
  16070. ;;
  16071. sunos4*)
  16072. version_type=sunos
  16073. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16074. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  16075. shlibpath_var=LD_LIBRARY_PATH
  16076. shlibpath_overrides_runpath=yes
  16077. if test "$with_gnu_ld" = yes; then
  16078. need_lib_prefix=no
  16079. fi
  16080. need_version=yes
  16081. ;;
  16082. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  16083. version_type=linux
  16084. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16085. soname_spec='${libname}${release}${shared_ext}$major'
  16086. shlibpath_var=LD_LIBRARY_PATH
  16087. case $host_vendor in
  16088. sni)
  16089. shlibpath_overrides_runpath=no
  16090. need_lib_prefix=no
  16091. export_dynamic_flag_spec='${wl}-Blargedynsym'
  16092. runpath_var=LD_RUN_PATH
  16093. ;;
  16094. siemens)
  16095. need_lib_prefix=no
  16096. ;;
  16097. motorola)
  16098. need_lib_prefix=no
  16099. need_version=no
  16100. shlibpath_overrides_runpath=no
  16101. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  16102. ;;
  16103. esac
  16104. ;;
  16105. sysv4*MP*)
  16106. if test -d /usr/nec ;then
  16107. version_type=linux
  16108. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  16109. soname_spec='$libname${shared_ext}.$major'
  16110. shlibpath_var=LD_LIBRARY_PATH
  16111. fi
  16112. ;;
  16113. uts4*)
  16114. version_type=linux
  16115. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16116. soname_spec='${libname}${release}${shared_ext}$major'
  16117. shlibpath_var=LD_LIBRARY_PATH
  16118. ;;
  16119. *)
  16120. dynamic_linker=no
  16121. ;;
  16122. esac
  16123. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  16124. echo "${ECHO_T}$dynamic_linker" >&6
  16125. test "$dynamic_linker" = no && can_build_shared=no
  16126. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  16127. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  16128. hardcode_action_GCJ=
  16129. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  16130. test -n "$runpath_var_GCJ" || \
  16131. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  16132. # We can hardcode non-existant directories.
  16133. if test "$hardcode_direct_GCJ" != no &&
  16134. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16135. # have to relink, otherwise we might link with an installed library
  16136. # when we should be linking with a yet-to-be-installed one
  16137. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  16138. test "$hardcode_minus_L_GCJ" != no; then
  16139. # Linking always hardcodes the temporary library directory.
  16140. hardcode_action_GCJ=relink
  16141. else
  16142. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16143. hardcode_action_GCJ=immediate
  16144. fi
  16145. else
  16146. # We cannot hardcode anything, or else we can only hardcode existing
  16147. # directories.
  16148. hardcode_action_GCJ=unsupported
  16149. fi
  16150. echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  16151. echo "${ECHO_T}$hardcode_action_GCJ" >&6
  16152. if test "$hardcode_action_GCJ" = relink; then
  16153. # Fast installation is not supported
  16154. enable_fast_install=no
  16155. elif test "$shlibpath_overrides_runpath" = yes ||
  16156. test "$enable_shared" = no; then
  16157. # Fast installation is not necessary
  16158. enable_fast_install=needless
  16159. fi
  16160. striplib=
  16161. old_striplib=
  16162. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  16163. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  16164. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  16165. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  16166. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  16167. echo "$as_me:$LINENO: result: yes" >&5
  16168. echo "${ECHO_T}yes" >&6
  16169. else
  16170. # FIXME - insert some real tests, host_os isn't really good enough
  16171. case $host_os in
  16172. darwin*)
  16173. if test -n "$STRIP" ; then
  16174. striplib="$STRIP -x"
  16175. echo "$as_me:$LINENO: result: yes" >&5
  16176. echo "${ECHO_T}yes" >&6
  16177. else
  16178. echo "$as_me:$LINENO: result: no" >&5
  16179. echo "${ECHO_T}no" >&6
  16180. fi
  16181. ;;
  16182. *)
  16183. echo "$as_me:$LINENO: result: no" >&5
  16184. echo "${ECHO_T}no" >&6
  16185. ;;
  16186. esac
  16187. fi
  16188. if test "x$enable_dlopen" != xyes; then
  16189. enable_dlopen=unknown
  16190. enable_dlopen_self=unknown
  16191. enable_dlopen_self_static=unknown
  16192. else
  16193. lt_cv_dlopen=no
  16194. lt_cv_dlopen_libs=
  16195. case $host_os in
  16196. beos*)
  16197. lt_cv_dlopen="load_add_on"
  16198. lt_cv_dlopen_libs=
  16199. lt_cv_dlopen_self=yes
  16200. ;;
  16201. mingw* | pw32*)
  16202. lt_cv_dlopen="LoadLibrary"
  16203. lt_cv_dlopen_libs=
  16204. ;;
  16205. cygwin*)
  16206. lt_cv_dlopen="dlopen"
  16207. lt_cv_dlopen_libs=
  16208. ;;
  16209. darwin*)
  16210. # if libdl is installed we need to link against it
  16211. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  16212. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  16213. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  16214. echo $ECHO_N "(cached) $ECHO_C" >&6
  16215. else
  16216. ac_check_lib_save_LIBS=$LIBS
  16217. LIBS="-ldl $LIBS"
  16218. cat >conftest.$ac_ext <<_ACEOF
  16219. /* confdefs.h. */
  16220. _ACEOF
  16221. cat confdefs.h >>conftest.$ac_ext
  16222. cat >>conftest.$ac_ext <<_ACEOF
  16223. /* end confdefs.h. */
  16224. /* Override any gcc2 internal prototype to avoid an error. */
  16225. #ifdef __cplusplus
  16226. extern "C"
  16227. #endif
  16228. /* We use char because int might match the return type of a gcc2
  16229. builtin and then its argument prototype would still apply. */
  16230. char dlopen ();
  16231. int
  16232. main ()
  16233. {
  16234. dlopen ();
  16235. ;
  16236. return 0;
  16237. }
  16238. _ACEOF
  16239. rm -f conftest.$ac_objext conftest$ac_exeext
  16240. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16241. (eval $ac_link) 2>conftest.er1
  16242. ac_status=$?
  16243. grep -v '^ *+' conftest.er1 >conftest.err
  16244. rm -f conftest.er1
  16245. cat conftest.err >&5
  16246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16247. (exit $ac_status); } &&
  16248. { ac_try='test -z "$ac_c_werror_flag"
  16249. || test ! -s conftest.err'
  16250. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16251. (eval $ac_try) 2>&5
  16252. ac_status=$?
  16253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16254. (exit $ac_status); }; } &&
  16255. { ac_try='test -s conftest$ac_exeext'
  16256. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16257. (eval $ac_try) 2>&5
  16258. ac_status=$?
  16259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16260. (exit $ac_status); }; }; then
  16261. ac_cv_lib_dl_dlopen=yes
  16262. else
  16263. echo "$as_me: failed program was:" >&5
  16264. sed 's/^/| /' conftest.$ac_ext >&5
  16265. ac_cv_lib_dl_dlopen=no
  16266. fi
  16267. rm -f conftest.err conftest.$ac_objext \
  16268. conftest$ac_exeext conftest.$ac_ext
  16269. LIBS=$ac_check_lib_save_LIBS
  16270. fi
  16271. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  16272. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  16273. if test $ac_cv_lib_dl_dlopen = yes; then
  16274. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  16275. else
  16276. lt_cv_dlopen="dyld"
  16277. lt_cv_dlopen_libs=
  16278. lt_cv_dlopen_self=yes
  16279. fi
  16280. ;;
  16281. *)
  16282. echo "$as_me:$LINENO: checking for shl_load" >&5
  16283. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  16284. if test "${ac_cv_func_shl_load+set}" = set; then
  16285. echo $ECHO_N "(cached) $ECHO_C" >&6
  16286. else
  16287. cat >conftest.$ac_ext <<_ACEOF
  16288. /* confdefs.h. */
  16289. _ACEOF
  16290. cat confdefs.h >>conftest.$ac_ext
  16291. cat >>conftest.$ac_ext <<_ACEOF
  16292. /* end confdefs.h. */
  16293. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  16294. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16295. #define shl_load innocuous_shl_load
  16296. /* System header to define __stub macros and hopefully few prototypes,
  16297. which can conflict with char shl_load (); below.
  16298. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16299. <limits.h> exists even on freestanding compilers. */
  16300. #ifdef __STDC__
  16301. # include <limits.h>
  16302. #else
  16303. # include <assert.h>
  16304. #endif
  16305. #undef shl_load
  16306. /* Override any gcc2 internal prototype to avoid an error. */
  16307. #ifdef __cplusplus
  16308. extern "C"
  16309. {
  16310. #endif
  16311. /* We use char because int might match the return type of a gcc2
  16312. builtin and then its argument prototype would still apply. */
  16313. char shl_load ();
  16314. /* The GNU C library defines this for functions which it implements
  16315. to always fail with ENOSYS. Some functions are actually named
  16316. something starting with __ and the normal name is an alias. */
  16317. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  16318. choke me
  16319. #else
  16320. char (*f) () = shl_load;
  16321. #endif
  16322. #ifdef __cplusplus
  16323. }
  16324. #endif
  16325. int
  16326. main ()
  16327. {
  16328. return f != shl_load;
  16329. ;
  16330. return 0;
  16331. }
  16332. _ACEOF
  16333. rm -f conftest.$ac_objext conftest$ac_exeext
  16334. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16335. (eval $ac_link) 2>conftest.er1
  16336. ac_status=$?
  16337. grep -v '^ *+' conftest.er1 >conftest.err
  16338. rm -f conftest.er1
  16339. cat conftest.err >&5
  16340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16341. (exit $ac_status); } &&
  16342. { ac_try='test -z "$ac_c_werror_flag"
  16343. || test ! -s conftest.err'
  16344. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16345. (eval $ac_try) 2>&5
  16346. ac_status=$?
  16347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16348. (exit $ac_status); }; } &&
  16349. { ac_try='test -s conftest$ac_exeext'
  16350. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16351. (eval $ac_try) 2>&5
  16352. ac_status=$?
  16353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16354. (exit $ac_status); }; }; then
  16355. ac_cv_func_shl_load=yes
  16356. else
  16357. echo "$as_me: failed program was:" >&5
  16358. sed 's/^/| /' conftest.$ac_ext >&5
  16359. ac_cv_func_shl_load=no
  16360. fi
  16361. rm -f conftest.err conftest.$ac_objext \
  16362. conftest$ac_exeext conftest.$ac_ext
  16363. fi
  16364. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  16365. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  16366. if test $ac_cv_func_shl_load = yes; then
  16367. lt_cv_dlopen="shl_load"
  16368. else
  16369. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  16370. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  16371. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  16372. echo $ECHO_N "(cached) $ECHO_C" >&6
  16373. else
  16374. ac_check_lib_save_LIBS=$LIBS
  16375. LIBS="-ldld $LIBS"
  16376. cat >conftest.$ac_ext <<_ACEOF
  16377. /* confdefs.h. */
  16378. _ACEOF
  16379. cat confdefs.h >>conftest.$ac_ext
  16380. cat >>conftest.$ac_ext <<_ACEOF
  16381. /* end confdefs.h. */
  16382. /* Override any gcc2 internal prototype to avoid an error. */
  16383. #ifdef __cplusplus
  16384. extern "C"
  16385. #endif
  16386. /* We use char because int might match the return type of a gcc2
  16387. builtin and then its argument prototype would still apply. */
  16388. char shl_load ();
  16389. int
  16390. main ()
  16391. {
  16392. shl_load ();
  16393. ;
  16394. return 0;
  16395. }
  16396. _ACEOF
  16397. rm -f conftest.$ac_objext conftest$ac_exeext
  16398. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16399. (eval $ac_link) 2>conftest.er1
  16400. ac_status=$?
  16401. grep -v '^ *+' conftest.er1 >conftest.err
  16402. rm -f conftest.er1
  16403. cat conftest.err >&5
  16404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16405. (exit $ac_status); } &&
  16406. { ac_try='test -z "$ac_c_werror_flag"
  16407. || test ! -s conftest.err'
  16408. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16409. (eval $ac_try) 2>&5
  16410. ac_status=$?
  16411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16412. (exit $ac_status); }; } &&
  16413. { ac_try='test -s conftest$ac_exeext'
  16414. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16415. (eval $ac_try) 2>&5
  16416. ac_status=$?
  16417. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16418. (exit $ac_status); }; }; then
  16419. ac_cv_lib_dld_shl_load=yes
  16420. else
  16421. echo "$as_me: failed program was:" >&5
  16422. sed 's/^/| /' conftest.$ac_ext >&5
  16423. ac_cv_lib_dld_shl_load=no
  16424. fi
  16425. rm -f conftest.err conftest.$ac_objext \
  16426. conftest$ac_exeext conftest.$ac_ext
  16427. LIBS=$ac_check_lib_save_LIBS
  16428. fi
  16429. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  16430. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  16431. if test $ac_cv_lib_dld_shl_load = yes; then
  16432. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  16433. else
  16434. echo "$as_me:$LINENO: checking for dlopen" >&5
  16435. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  16436. if test "${ac_cv_func_dlopen+set}" = set; then
  16437. echo $ECHO_N "(cached) $ECHO_C" >&6
  16438. else
  16439. cat >conftest.$ac_ext <<_ACEOF
  16440. /* confdefs.h. */
  16441. _ACEOF
  16442. cat confdefs.h >>conftest.$ac_ext
  16443. cat >>conftest.$ac_ext <<_ACEOF
  16444. /* end confdefs.h. */
  16445. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  16446. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16447. #define dlopen innocuous_dlopen
  16448. /* System header to define __stub macros and hopefully few prototypes,
  16449. which can conflict with char dlopen (); below.
  16450. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16451. <limits.h> exists even on freestanding compilers. */
  16452. #ifdef __STDC__
  16453. # include <limits.h>
  16454. #else
  16455. # include <assert.h>
  16456. #endif
  16457. #undef dlopen
  16458. /* Override any gcc2 internal prototype to avoid an error. */
  16459. #ifdef __cplusplus
  16460. extern "C"
  16461. {
  16462. #endif
  16463. /* We use char because int might match the return type of a gcc2
  16464. builtin and then its argument prototype would still apply. */
  16465. char dlopen ();
  16466. /* The GNU C library defines this for functions which it implements
  16467. to always fail with ENOSYS. Some functions are actually named
  16468. something starting with __ and the normal name is an alias. */
  16469. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  16470. choke me
  16471. #else
  16472. char (*f) () = dlopen;
  16473. #endif
  16474. #ifdef __cplusplus
  16475. }
  16476. #endif
  16477. int
  16478. main ()
  16479. {
  16480. return f != dlopen;
  16481. ;
  16482. return 0;
  16483. }
  16484. _ACEOF
  16485. rm -f conftest.$ac_objext conftest$ac_exeext
  16486. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16487. (eval $ac_link) 2>conftest.er1
  16488. ac_status=$?
  16489. grep -v '^ *+' conftest.er1 >conftest.err
  16490. rm -f conftest.er1
  16491. cat conftest.err >&5
  16492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16493. (exit $ac_status); } &&
  16494. { ac_try='test -z "$ac_c_werror_flag"
  16495. || test ! -s conftest.err'
  16496. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16497. (eval $ac_try) 2>&5
  16498. ac_status=$?
  16499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16500. (exit $ac_status); }; } &&
  16501. { ac_try='test -s conftest$ac_exeext'
  16502. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16503. (eval $ac_try) 2>&5
  16504. ac_status=$?
  16505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16506. (exit $ac_status); }; }; then
  16507. ac_cv_func_dlopen=yes
  16508. else
  16509. echo "$as_me: failed program was:" >&5
  16510. sed 's/^/| /' conftest.$ac_ext >&5
  16511. ac_cv_func_dlopen=no
  16512. fi
  16513. rm -f conftest.err conftest.$ac_objext \
  16514. conftest$ac_exeext conftest.$ac_ext
  16515. fi
  16516. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  16517. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  16518. if test $ac_cv_func_dlopen = yes; then
  16519. lt_cv_dlopen="dlopen"
  16520. else
  16521. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  16522. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  16523. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  16524. echo $ECHO_N "(cached) $ECHO_C" >&6
  16525. else
  16526. ac_check_lib_save_LIBS=$LIBS
  16527. LIBS="-ldl $LIBS"
  16528. cat >conftest.$ac_ext <<_ACEOF
  16529. /* confdefs.h. */
  16530. _ACEOF
  16531. cat confdefs.h >>conftest.$ac_ext
  16532. cat >>conftest.$ac_ext <<_ACEOF
  16533. /* end confdefs.h. */
  16534. /* Override any gcc2 internal prototype to avoid an error. */
  16535. #ifdef __cplusplus
  16536. extern "C"
  16537. #endif
  16538. /* We use char because int might match the return type of a gcc2
  16539. builtin and then its argument prototype would still apply. */
  16540. char dlopen ();
  16541. int
  16542. main ()
  16543. {
  16544. dlopen ();
  16545. ;
  16546. return 0;
  16547. }
  16548. _ACEOF
  16549. rm -f conftest.$ac_objext conftest$ac_exeext
  16550. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16551. (eval $ac_link) 2>conftest.er1
  16552. ac_status=$?
  16553. grep -v '^ *+' conftest.er1 >conftest.err
  16554. rm -f conftest.er1
  16555. cat conftest.err >&5
  16556. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16557. (exit $ac_status); } &&
  16558. { ac_try='test -z "$ac_c_werror_flag"
  16559. || test ! -s conftest.err'
  16560. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16561. (eval $ac_try) 2>&5
  16562. ac_status=$?
  16563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16564. (exit $ac_status); }; } &&
  16565. { ac_try='test -s conftest$ac_exeext'
  16566. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16567. (eval $ac_try) 2>&5
  16568. ac_status=$?
  16569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16570. (exit $ac_status); }; }; then
  16571. ac_cv_lib_dl_dlopen=yes
  16572. else
  16573. echo "$as_me: failed program was:" >&5
  16574. sed 's/^/| /' conftest.$ac_ext >&5
  16575. ac_cv_lib_dl_dlopen=no
  16576. fi
  16577. rm -f conftest.err conftest.$ac_objext \
  16578. conftest$ac_exeext conftest.$ac_ext
  16579. LIBS=$ac_check_lib_save_LIBS
  16580. fi
  16581. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  16582. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  16583. if test $ac_cv_lib_dl_dlopen = yes; then
  16584. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  16585. else
  16586. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  16587. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  16588. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  16589. echo $ECHO_N "(cached) $ECHO_C" >&6
  16590. else
  16591. ac_check_lib_save_LIBS=$LIBS
  16592. LIBS="-lsvld $LIBS"
  16593. cat >conftest.$ac_ext <<_ACEOF
  16594. /* confdefs.h. */
  16595. _ACEOF
  16596. cat confdefs.h >>conftest.$ac_ext
  16597. cat >>conftest.$ac_ext <<_ACEOF
  16598. /* end confdefs.h. */
  16599. /* Override any gcc2 internal prototype to avoid an error. */
  16600. #ifdef __cplusplus
  16601. extern "C"
  16602. #endif
  16603. /* We use char because int might match the return type of a gcc2
  16604. builtin and then its argument prototype would still apply. */
  16605. char dlopen ();
  16606. int
  16607. main ()
  16608. {
  16609. dlopen ();
  16610. ;
  16611. return 0;
  16612. }
  16613. _ACEOF
  16614. rm -f conftest.$ac_objext conftest$ac_exeext
  16615. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16616. (eval $ac_link) 2>conftest.er1
  16617. ac_status=$?
  16618. grep -v '^ *+' conftest.er1 >conftest.err
  16619. rm -f conftest.er1
  16620. cat conftest.err >&5
  16621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16622. (exit $ac_status); } &&
  16623. { ac_try='test -z "$ac_c_werror_flag"
  16624. || test ! -s conftest.err'
  16625. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16626. (eval $ac_try) 2>&5
  16627. ac_status=$?
  16628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16629. (exit $ac_status); }; } &&
  16630. { ac_try='test -s conftest$ac_exeext'
  16631. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16632. (eval $ac_try) 2>&5
  16633. ac_status=$?
  16634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16635. (exit $ac_status); }; }; then
  16636. ac_cv_lib_svld_dlopen=yes
  16637. else
  16638. echo "$as_me: failed program was:" >&5
  16639. sed 's/^/| /' conftest.$ac_ext >&5
  16640. ac_cv_lib_svld_dlopen=no
  16641. fi
  16642. rm -f conftest.err conftest.$ac_objext \
  16643. conftest$ac_exeext conftest.$ac_ext
  16644. LIBS=$ac_check_lib_save_LIBS
  16645. fi
  16646. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  16647. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  16648. if test $ac_cv_lib_svld_dlopen = yes; then
  16649. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  16650. else
  16651. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  16652. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  16653. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  16654. echo $ECHO_N "(cached) $ECHO_C" >&6
  16655. else
  16656. ac_check_lib_save_LIBS=$LIBS
  16657. LIBS="-ldld $LIBS"
  16658. cat >conftest.$ac_ext <<_ACEOF
  16659. /* confdefs.h. */
  16660. _ACEOF
  16661. cat confdefs.h >>conftest.$ac_ext
  16662. cat >>conftest.$ac_ext <<_ACEOF
  16663. /* end confdefs.h. */
  16664. /* Override any gcc2 internal prototype to avoid an error. */
  16665. #ifdef __cplusplus
  16666. extern "C"
  16667. #endif
  16668. /* We use char because int might match the return type of a gcc2
  16669. builtin and then its argument prototype would still apply. */
  16670. char dld_link ();
  16671. int
  16672. main ()
  16673. {
  16674. dld_link ();
  16675. ;
  16676. return 0;
  16677. }
  16678. _ACEOF
  16679. rm -f conftest.$ac_objext conftest$ac_exeext
  16680. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16681. (eval $ac_link) 2>conftest.er1
  16682. ac_status=$?
  16683. grep -v '^ *+' conftest.er1 >conftest.err
  16684. rm -f conftest.er1
  16685. cat conftest.err >&5
  16686. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16687. (exit $ac_status); } &&
  16688. { ac_try='test -z "$ac_c_werror_flag"
  16689. || test ! -s conftest.err'
  16690. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16691. (eval $ac_try) 2>&5
  16692. ac_status=$?
  16693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16694. (exit $ac_status); }; } &&
  16695. { ac_try='test -s conftest$ac_exeext'
  16696. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16697. (eval $ac_try) 2>&5
  16698. ac_status=$?
  16699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16700. (exit $ac_status); }; }; then
  16701. ac_cv_lib_dld_dld_link=yes
  16702. else
  16703. echo "$as_me: failed program was:" >&5
  16704. sed 's/^/| /' conftest.$ac_ext >&5
  16705. ac_cv_lib_dld_dld_link=no
  16706. fi
  16707. rm -f conftest.err conftest.$ac_objext \
  16708. conftest$ac_exeext conftest.$ac_ext
  16709. LIBS=$ac_check_lib_save_LIBS
  16710. fi
  16711. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  16712. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  16713. if test $ac_cv_lib_dld_dld_link = yes; then
  16714. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  16715. fi
  16716. fi
  16717. fi
  16718. fi
  16719. fi
  16720. fi
  16721. ;;
  16722. esac
  16723. if test "x$lt_cv_dlopen" != xno; then
  16724. enable_dlopen=yes
  16725. else
  16726. enable_dlopen=no
  16727. fi
  16728. case $lt_cv_dlopen in
  16729. dlopen)
  16730. save_CPPFLAGS="$CPPFLAGS"
  16731. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  16732. save_LDFLAGS="$LDFLAGS"
  16733. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  16734. save_LIBS="$LIBS"
  16735. LIBS="$lt_cv_dlopen_libs $LIBS"
  16736. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  16737. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  16738. if test "${lt_cv_dlopen_self+set}" = set; then
  16739. echo $ECHO_N "(cached) $ECHO_C" >&6
  16740. else
  16741. if test "$cross_compiling" = yes; then :
  16742. lt_cv_dlopen_self=cross
  16743. else
  16744. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  16745. lt_status=$lt_dlunknown
  16746. cat > conftest.$ac_ext <<EOF
  16747. #line 18596 "configure"
  16748. #include "confdefs.h"
  16749. #if HAVE_DLFCN_H
  16750. #include <dlfcn.h>
  16751. #endif
  16752. #include <stdio.h>
  16753. #ifdef RTLD_GLOBAL
  16754. # define LT_DLGLOBAL RTLD_GLOBAL
  16755. #else
  16756. # ifdef DL_GLOBAL
  16757. # define LT_DLGLOBAL DL_GLOBAL
  16758. # else
  16759. # define LT_DLGLOBAL 0
  16760. # endif
  16761. #endif
  16762. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  16763. find out it does not work in some platform. */
  16764. #ifndef LT_DLLAZY_OR_NOW
  16765. # ifdef RTLD_LAZY
  16766. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  16767. # else
  16768. # ifdef DL_LAZY
  16769. # define LT_DLLAZY_OR_NOW DL_LAZY
  16770. # else
  16771. # ifdef RTLD_NOW
  16772. # define LT_DLLAZY_OR_NOW RTLD_NOW
  16773. # else
  16774. # ifdef DL_NOW
  16775. # define LT_DLLAZY_OR_NOW DL_NOW
  16776. # else
  16777. # define LT_DLLAZY_OR_NOW 0
  16778. # endif
  16779. # endif
  16780. # endif
  16781. # endif
  16782. #endif
  16783. #ifdef __cplusplus
  16784. extern "C" void exit (int);
  16785. #endif
  16786. void fnord() { int i=42;}
  16787. int main ()
  16788. {
  16789. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  16790. int status = $lt_dlunknown;
  16791. if (self)
  16792. {
  16793. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  16794. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  16795. /* dlclose (self); */
  16796. }
  16797. exit (status);
  16798. }
  16799. EOF
  16800. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16801. (eval $ac_link) 2>&5
  16802. ac_status=$?
  16803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16804. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  16805. (./conftest; exit; ) 2>/dev/null
  16806. lt_status=$?
  16807. case x$lt_status in
  16808. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  16809. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  16810. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  16811. esac
  16812. else :
  16813. # compilation failed
  16814. lt_cv_dlopen_self=no
  16815. fi
  16816. fi
  16817. rm -fr conftest*
  16818. fi
  16819. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  16820. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  16821. if test "x$lt_cv_dlopen_self" = xyes; then
  16822. LDFLAGS="$LDFLAGS $link_static_flag"
  16823. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  16824. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  16825. if test "${lt_cv_dlopen_self_static+set}" = set; then
  16826. echo $ECHO_N "(cached) $ECHO_C" >&6
  16827. else
  16828. if test "$cross_compiling" = yes; then :
  16829. lt_cv_dlopen_self_static=cross
  16830. else
  16831. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  16832. lt_status=$lt_dlunknown
  16833. cat > conftest.$ac_ext <<EOF
  16834. #line 18694 "configure"
  16835. #include "confdefs.h"
  16836. #if HAVE_DLFCN_H
  16837. #include <dlfcn.h>
  16838. #endif
  16839. #include <stdio.h>
  16840. #ifdef RTLD_GLOBAL
  16841. # define LT_DLGLOBAL RTLD_GLOBAL
  16842. #else
  16843. # ifdef DL_GLOBAL
  16844. # define LT_DLGLOBAL DL_GLOBAL
  16845. # else
  16846. # define LT_DLGLOBAL 0
  16847. # endif
  16848. #endif
  16849. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  16850. find out it does not work in some platform. */
  16851. #ifndef LT_DLLAZY_OR_NOW
  16852. # ifdef RTLD_LAZY
  16853. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  16854. # else
  16855. # ifdef DL_LAZY
  16856. # define LT_DLLAZY_OR_NOW DL_LAZY
  16857. # else
  16858. # ifdef RTLD_NOW
  16859. # define LT_DLLAZY_OR_NOW RTLD_NOW
  16860. # else
  16861. # ifdef DL_NOW
  16862. # define LT_DLLAZY_OR_NOW DL_NOW
  16863. # else
  16864. # define LT_DLLAZY_OR_NOW 0
  16865. # endif
  16866. # endif
  16867. # endif
  16868. # endif
  16869. #endif
  16870. #ifdef __cplusplus
  16871. extern "C" void exit (int);
  16872. #endif
  16873. void fnord() { int i=42;}
  16874. int main ()
  16875. {
  16876. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  16877. int status = $lt_dlunknown;
  16878. if (self)
  16879. {
  16880. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  16881. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  16882. /* dlclose (self); */
  16883. }
  16884. exit (status);
  16885. }
  16886. EOF
  16887. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16888. (eval $ac_link) 2>&5
  16889. ac_status=$?
  16890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16891. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  16892. (./conftest; exit; ) 2>/dev/null
  16893. lt_status=$?
  16894. case x$lt_status in
  16895. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  16896. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  16897. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  16898. esac
  16899. else :
  16900. # compilation failed
  16901. lt_cv_dlopen_self_static=no
  16902. fi
  16903. fi
  16904. rm -fr conftest*
  16905. fi
  16906. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  16907. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  16908. fi
  16909. CPPFLAGS="$save_CPPFLAGS"
  16910. LDFLAGS="$save_LDFLAGS"
  16911. LIBS="$save_LIBS"
  16912. ;;
  16913. esac
  16914. case $lt_cv_dlopen_self in
  16915. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  16916. *) enable_dlopen_self=unknown ;;
  16917. esac
  16918. case $lt_cv_dlopen_self_static in
  16919. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  16920. *) enable_dlopen_self_static=unknown ;;
  16921. esac
  16922. fi
  16923. # The else clause should only fire when bootstrapping the
  16924. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16925. # with your package, and you will get complaints that there are
  16926. # no rules to generate ltmain.sh.
  16927. if test -f "$ltmain"; then
  16928. # See if we are running on zsh, and set the options which allow our commands through
  16929. # without removal of \ escapes.
  16930. if test -n "${ZSH_VERSION+set}" ; then
  16931. setopt NO_GLOB_SUBST
  16932. fi
  16933. # Now quote all the things that may contain metacharacters while being
  16934. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16935. # variables and quote the copies for generation of the libtool script.
  16936. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  16937. SED SHELL STRIP \
  16938. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16939. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16940. deplibs_check_method reload_flag reload_cmds need_locks \
  16941. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16942. lt_cv_sys_global_symbol_to_c_name_address \
  16943. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16944. old_postinstall_cmds old_postuninstall_cmds \
  16945. compiler_GCJ \
  16946. CC_GCJ \
  16947. LD_GCJ \
  16948. lt_prog_compiler_wl_GCJ \
  16949. lt_prog_compiler_pic_GCJ \
  16950. lt_prog_compiler_static_GCJ \
  16951. lt_prog_compiler_no_builtin_flag_GCJ \
  16952. export_dynamic_flag_spec_GCJ \
  16953. thread_safe_flag_spec_GCJ \
  16954. whole_archive_flag_spec_GCJ \
  16955. enable_shared_with_static_runtimes_GCJ \
  16956. old_archive_cmds_GCJ \
  16957. old_archive_from_new_cmds_GCJ \
  16958. predep_objects_GCJ \
  16959. postdep_objects_GCJ \
  16960. predeps_GCJ \
  16961. postdeps_GCJ \
  16962. compiler_lib_search_path_GCJ \
  16963. archive_cmds_GCJ \
  16964. archive_expsym_cmds_GCJ \
  16965. postinstall_cmds_GCJ \
  16966. postuninstall_cmds_GCJ \
  16967. old_archive_from_expsyms_cmds_GCJ \
  16968. allow_undefined_flag_GCJ \
  16969. no_undefined_flag_GCJ \
  16970. export_symbols_cmds_GCJ \
  16971. hardcode_libdir_flag_spec_GCJ \
  16972. hardcode_libdir_flag_spec_ld_GCJ \
  16973. hardcode_libdir_separator_GCJ \
  16974. hardcode_automatic_GCJ \
  16975. module_cmds_GCJ \
  16976. module_expsym_cmds_GCJ \
  16977. lt_cv_prog_compiler_c_o_GCJ \
  16978. exclude_expsyms_GCJ \
  16979. include_expsyms_GCJ; do
  16980. case $var in
  16981. old_archive_cmds_GCJ | \
  16982. old_archive_from_new_cmds_GCJ | \
  16983. archive_cmds_GCJ | \
  16984. archive_expsym_cmds_GCJ | \
  16985. module_cmds_GCJ | \
  16986. module_expsym_cmds_GCJ | \
  16987. old_archive_from_expsyms_cmds_GCJ | \
  16988. export_symbols_cmds_GCJ | \
  16989. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16990. postinstall_cmds | postuninstall_cmds | \
  16991. old_postinstall_cmds | old_postuninstall_cmds | \
  16992. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16993. # Double-quote double-evaled strings.
  16994. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16995. ;;
  16996. *)
  16997. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16998. ;;
  16999. esac
  17000. done
  17001. case $lt_echo in
  17002. *'\$0 --fallback-echo"')
  17003. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  17004. ;;
  17005. esac
  17006. cfgfile="$ofile"
  17007. cat <<__EOF__ >> "$cfgfile"
  17008. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  17009. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17010. # Shell to use when invoking shell scripts.
  17011. SHELL=$lt_SHELL
  17012. # Whether or not to build shared libraries.
  17013. build_libtool_libs=$enable_shared
  17014. # Whether or not to build static libraries.
  17015. build_old_libs=$enable_static
  17016. # Whether or not to add -lc for building shared libraries.
  17017. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  17018. # Whether or not to disallow shared libs when runtime libs are static
  17019. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  17020. # Whether or not to optimize for fast installation.
  17021. fast_install=$enable_fast_install
  17022. # The host system.
  17023. host_alias=$host_alias
  17024. host=$host
  17025. host_os=$host_os
  17026. # The build system.
  17027. build_alias=$build_alias
  17028. build=$build
  17029. build_os=$build_os
  17030. # An echo program that does not interpret backslashes.
  17031. echo=$lt_echo
  17032. # The archiver.
  17033. AR=$lt_AR
  17034. AR_FLAGS=$lt_AR_FLAGS
  17035. # A C compiler.
  17036. LTCC=$lt_LTCC
  17037. # A language-specific compiler.
  17038. CC=$lt_compiler_GCJ
  17039. # Is the compiler the GNU C compiler?
  17040. with_gcc=$GCC_GCJ
  17041. # An ERE matcher.
  17042. EGREP=$lt_EGREP
  17043. # The linker used to build libraries.
  17044. LD=$lt_LD_GCJ
  17045. # Whether we need hard or soft links.
  17046. LN_S=$lt_LN_S
  17047. # A BSD-compatible nm program.
  17048. NM=$lt_NM
  17049. # A symbol stripping program
  17050. STRIP=$lt_STRIP
  17051. # Used to examine libraries when file_magic_cmd begins "file"
  17052. MAGIC_CMD=$MAGIC_CMD
  17053. # Used on cygwin: DLL creation program.
  17054. DLLTOOL="$DLLTOOL"
  17055. # Used on cygwin: object dumper.
  17056. OBJDUMP="$OBJDUMP"
  17057. # Used on cygwin: assembler.
  17058. AS="$AS"
  17059. # The name of the directory that contains temporary libtool files.
  17060. objdir=$objdir
  17061. # How to create reloadable object files.
  17062. reload_flag=$lt_reload_flag
  17063. reload_cmds=$lt_reload_cmds
  17064. # How to pass a linker flag through the compiler.
  17065. wl=$lt_lt_prog_compiler_wl_GCJ
  17066. # Object file suffix (normally "o").
  17067. objext="$ac_objext"
  17068. # Old archive suffix (normally "a").
  17069. libext="$libext"
  17070. # Shared library suffix (normally ".so").
  17071. shrext_cmds='$shrext_cmds'
  17072. # Executable file suffix (normally "").
  17073. exeext="$exeext"
  17074. # Additional compiler flags for building library objects.
  17075. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  17076. pic_mode=$pic_mode
  17077. # What is the maximum length of a command?
  17078. max_cmd_len=$lt_cv_sys_max_cmd_len
  17079. # Does compiler simultaneously support -c and -o options?
  17080. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  17081. # Must we lock files when doing compilation?
  17082. need_locks=$lt_need_locks
  17083. # Do we need the lib prefix for modules?
  17084. need_lib_prefix=$need_lib_prefix
  17085. # Do we need a version for libraries?
  17086. need_version=$need_version
  17087. # Whether dlopen is supported.
  17088. dlopen_support=$enable_dlopen
  17089. # Whether dlopen of programs is supported.
  17090. dlopen_self=$enable_dlopen_self
  17091. # Whether dlopen of statically linked programs is supported.
  17092. dlopen_self_static=$enable_dlopen_self_static
  17093. # Compiler flag to prevent dynamic linking.
  17094. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  17095. # Compiler flag to turn off builtin functions.
  17096. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  17097. # Compiler flag to allow reflexive dlopens.
  17098. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  17099. # Compiler flag to generate shared objects directly from archives.
  17100. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  17101. # Compiler flag to generate thread-safe objects.
  17102. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  17103. # Library versioning type.
  17104. version_type=$version_type
  17105. # Format of library name prefix.
  17106. libname_spec=$lt_libname_spec
  17107. # List of archive names. First name is the real one, the rest are links.
  17108. # The last name is the one that the linker finds with -lNAME.
  17109. library_names_spec=$lt_library_names_spec
  17110. # The coded name of the library, if different from the real name.
  17111. soname_spec=$lt_soname_spec
  17112. # Commands used to build and install an old-style archive.
  17113. RANLIB=$lt_RANLIB
  17114. old_archive_cmds=$lt_old_archive_cmds_GCJ
  17115. old_postinstall_cmds=$lt_old_postinstall_cmds
  17116. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17117. # Create an old-style archive from a shared archive.
  17118. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  17119. # Create a temporary old-style archive to link instead of a shared archive.
  17120. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  17121. # Commands used to build and install a shared archive.
  17122. archive_cmds=$lt_archive_cmds_GCJ
  17123. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  17124. postinstall_cmds=$lt_postinstall_cmds
  17125. postuninstall_cmds=$lt_postuninstall_cmds
  17126. # Commands used to build a loadable module (assumed same as above if empty)
  17127. module_cmds=$lt_module_cmds_GCJ
  17128. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  17129. # Commands to strip libraries.
  17130. old_striplib=$lt_old_striplib
  17131. striplib=$lt_striplib
  17132. # Dependencies to place before the objects being linked to create a
  17133. # shared library.
  17134. predep_objects=$lt_predep_objects_GCJ
  17135. # Dependencies to place after the objects being linked to create a
  17136. # shared library.
  17137. postdep_objects=$lt_postdep_objects_GCJ
  17138. # Dependencies to place before the objects being linked to create a
  17139. # shared library.
  17140. predeps=$lt_predeps_GCJ
  17141. # Dependencies to place after the objects being linked to create a
  17142. # shared library.
  17143. postdeps=$lt_postdeps_GCJ
  17144. # The library search path used internally by the compiler when linking
  17145. # a shared library.
  17146. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  17147. # Method to check whether dependent libraries are shared objects.
  17148. deplibs_check_method=$lt_deplibs_check_method
  17149. # Command to use when deplibs_check_method == file_magic.
  17150. file_magic_cmd=$lt_file_magic_cmd
  17151. # Flag that allows shared libraries with undefined symbols to be built.
  17152. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  17153. # Flag that forces no undefined symbols.
  17154. no_undefined_flag=$lt_no_undefined_flag_GCJ
  17155. # Commands used to finish a libtool library installation in a directory.
  17156. finish_cmds=$lt_finish_cmds
  17157. # Same as above, but a single script fragment to be evaled but not shown.
  17158. finish_eval=$lt_finish_eval
  17159. # Take the output of nm and produce a listing of raw symbols and C names.
  17160. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17161. # Transform the output of nm in a proper C declaration
  17162. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17163. # Transform the output of nm in a C name address pair
  17164. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17165. # This is the shared library runtime path variable.
  17166. runpath_var=$runpath_var
  17167. # This is the shared library path variable.
  17168. shlibpath_var=$shlibpath_var
  17169. # Is shlibpath searched before the hard-coded library search path?
  17170. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17171. # How to hardcode a shared library path into an executable.
  17172. hardcode_action=$hardcode_action_GCJ
  17173. # Whether we should hardcode library paths into libraries.
  17174. hardcode_into_libs=$hardcode_into_libs
  17175. # Flag to hardcode \$libdir into a binary during linking.
  17176. # This must work even if \$libdir does not exist.
  17177. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  17178. # If ld is used when linking, flag to hardcode \$libdir into
  17179. # a binary during linking. This must work even if \$libdir does
  17180. # not exist.
  17181. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  17182. # Whether we need a single -rpath flag with a separated argument.
  17183. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  17184. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17185. # resulting binary.
  17186. hardcode_direct=$hardcode_direct_GCJ
  17187. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17188. # resulting binary.
  17189. hardcode_minus_L=$hardcode_minus_L_GCJ
  17190. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17191. # the resulting binary.
  17192. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  17193. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17194. # and all subsequent libraries and executables linked against it.
  17195. hardcode_automatic=$hardcode_automatic_GCJ
  17196. # Variables whose values should be saved in libtool wrapper scripts and
  17197. # restored at relink time.
  17198. variables_saved_for_relink="$variables_saved_for_relink"
  17199. # Whether libtool must link a program against all its dependency libraries.
  17200. link_all_deplibs=$link_all_deplibs_GCJ
  17201. # Compile-time system search path for libraries
  17202. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17203. # Run-time system search path for libraries
  17204. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17205. # Fix the shell variable \$srcfile for the compiler.
  17206. fix_srcfile_path="$fix_srcfile_path_GCJ"
  17207. # Set to yes if exported symbols are required.
  17208. always_export_symbols=$always_export_symbols_GCJ
  17209. # The commands to list exported symbols.
  17210. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  17211. # The commands to extract the exported symbol list from a shared archive.
  17212. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17213. # Symbols that should not be listed in the preloaded symbols.
  17214. exclude_expsyms=$lt_exclude_expsyms_GCJ
  17215. # Symbols that must always be exported.
  17216. include_expsyms=$lt_include_expsyms_GCJ
  17217. # ### END LIBTOOL TAG CONFIG: $tagname
  17218. __EOF__
  17219. else
  17220. # If there is no Makefile yet, we rely on a make rule to execute
  17221. # `config.status --recheck' to rerun these tests and create the
  17222. # libtool script then.
  17223. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17224. if test -f "$ltmain_in"; then
  17225. test -f Makefile && make "$ltmain"
  17226. fi
  17227. fi
  17228. ac_ext=c
  17229. ac_cpp='$CPP $CPPFLAGS'
  17230. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17231. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17232. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17233. CC="$lt_save_CC"
  17234. else
  17235. tagname=""
  17236. fi
  17237. ;;
  17238. RC)
  17239. # Source file extension for RC test sources.
  17240. ac_ext=rc
  17241. # Object file extension for compiled RC test sources.
  17242. objext=o
  17243. objext_RC=$objext
  17244. # Code to be used in simple compile tests
  17245. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  17246. # Code to be used in simple link tests
  17247. lt_simple_link_test_code="$lt_simple_compile_test_code"
  17248. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  17249. # If no C compiler was specified, use CC.
  17250. LTCC=${LTCC-"$CC"}
  17251. # Allow CC to be a program name with arguments.
  17252. compiler=$CC
  17253. # save warnings/boilerplate of simple test code
  17254. ac_outfile=conftest.$ac_objext
  17255. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  17256. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  17257. _lt_compiler_boilerplate=`cat conftest.err`
  17258. $rm conftest*
  17259. ac_outfile=conftest.$ac_objext
  17260. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  17261. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  17262. _lt_linker_boilerplate=`cat conftest.err`
  17263. $rm conftest*
  17264. # Allow CC to be a program name with arguments.
  17265. lt_save_CC="$CC"
  17266. CC=${RC-"windres"}
  17267. compiler=$CC
  17268. compiler_RC=$CC
  17269. for cc_temp in $compiler""; do
  17270. case $cc_temp in
  17271. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  17272. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  17273. \-*) ;;
  17274. *) break;;
  17275. esac
  17276. done
  17277. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  17278. lt_cv_prog_compiler_c_o_RC=yes
  17279. # The else clause should only fire when bootstrapping the
  17280. # libtool distribution, otherwise you forgot to ship ltmain.sh
  17281. # with your package, and you will get complaints that there are
  17282. # no rules to generate ltmain.sh.
  17283. if test -f "$ltmain"; then
  17284. # See if we are running on zsh, and set the options which allow our commands through
  17285. # without removal of \ escapes.
  17286. if test -n "${ZSH_VERSION+set}" ; then
  17287. setopt NO_GLOB_SUBST
  17288. fi
  17289. # Now quote all the things that may contain metacharacters while being
  17290. # careful not to overquote the AC_SUBSTed values. We take copies of the
  17291. # variables and quote the copies for generation of the libtool script.
  17292. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  17293. SED SHELL STRIP \
  17294. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  17295. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  17296. deplibs_check_method reload_flag reload_cmds need_locks \
  17297. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  17298. lt_cv_sys_global_symbol_to_c_name_address \
  17299. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  17300. old_postinstall_cmds old_postuninstall_cmds \
  17301. compiler_RC \
  17302. CC_RC \
  17303. LD_RC \
  17304. lt_prog_compiler_wl_RC \
  17305. lt_prog_compiler_pic_RC \
  17306. lt_prog_compiler_static_RC \
  17307. lt_prog_compiler_no_builtin_flag_RC \
  17308. export_dynamic_flag_spec_RC \
  17309. thread_safe_flag_spec_RC \
  17310. whole_archive_flag_spec_RC \
  17311. enable_shared_with_static_runtimes_RC \
  17312. old_archive_cmds_RC \
  17313. old_archive_from_new_cmds_RC \
  17314. predep_objects_RC \
  17315. postdep_objects_RC \
  17316. predeps_RC \
  17317. postdeps_RC \
  17318. compiler_lib_search_path_RC \
  17319. archive_cmds_RC \
  17320. archive_expsym_cmds_RC \
  17321. postinstall_cmds_RC \
  17322. postuninstall_cmds_RC \
  17323. old_archive_from_expsyms_cmds_RC \
  17324. allow_undefined_flag_RC \
  17325. no_undefined_flag_RC \
  17326. export_symbols_cmds_RC \
  17327. hardcode_libdir_flag_spec_RC \
  17328. hardcode_libdir_flag_spec_ld_RC \
  17329. hardcode_libdir_separator_RC \
  17330. hardcode_automatic_RC \
  17331. module_cmds_RC \
  17332. module_expsym_cmds_RC \
  17333. lt_cv_prog_compiler_c_o_RC \
  17334. exclude_expsyms_RC \
  17335. include_expsyms_RC; do
  17336. case $var in
  17337. old_archive_cmds_RC | \
  17338. old_archive_from_new_cmds_RC | \
  17339. archive_cmds_RC | \
  17340. archive_expsym_cmds_RC | \
  17341. module_cmds_RC | \
  17342. module_expsym_cmds_RC | \
  17343. old_archive_from_expsyms_cmds_RC | \
  17344. export_symbols_cmds_RC | \
  17345. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  17346. postinstall_cmds | postuninstall_cmds | \
  17347. old_postinstall_cmds | old_postuninstall_cmds | \
  17348. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  17349. # Double-quote double-evaled strings.
  17350. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  17351. ;;
  17352. *)
  17353. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  17354. ;;
  17355. esac
  17356. done
  17357. case $lt_echo in
  17358. *'\$0 --fallback-echo"')
  17359. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  17360. ;;
  17361. esac
  17362. cfgfile="$ofile"
  17363. cat <<__EOF__ >> "$cfgfile"
  17364. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  17365. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17366. # Shell to use when invoking shell scripts.
  17367. SHELL=$lt_SHELL
  17368. # Whether or not to build shared libraries.
  17369. build_libtool_libs=$enable_shared
  17370. # Whether or not to build static libraries.
  17371. build_old_libs=$enable_static
  17372. # Whether or not to add -lc for building shared libraries.
  17373. build_libtool_need_lc=$archive_cmds_need_lc_RC
  17374. # Whether or not to disallow shared libs when runtime libs are static
  17375. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  17376. # Whether or not to optimize for fast installation.
  17377. fast_install=$enable_fast_install
  17378. # The host system.
  17379. host_alias=$host_alias
  17380. host=$host
  17381. host_os=$host_os
  17382. # The build system.
  17383. build_alias=$build_alias
  17384. build=$build
  17385. build_os=$build_os
  17386. # An echo program that does not interpret backslashes.
  17387. echo=$lt_echo
  17388. # The archiver.
  17389. AR=$lt_AR
  17390. AR_FLAGS=$lt_AR_FLAGS
  17391. # A C compiler.
  17392. LTCC=$lt_LTCC
  17393. # A language-specific compiler.
  17394. CC=$lt_compiler_RC
  17395. # Is the compiler the GNU C compiler?
  17396. with_gcc=$GCC_RC
  17397. # An ERE matcher.
  17398. EGREP=$lt_EGREP
  17399. # The linker used to build libraries.
  17400. LD=$lt_LD_RC
  17401. # Whether we need hard or soft links.
  17402. LN_S=$lt_LN_S
  17403. # A BSD-compatible nm program.
  17404. NM=$lt_NM
  17405. # A symbol stripping program
  17406. STRIP=$lt_STRIP
  17407. # Used to examine libraries when file_magic_cmd begins "file"
  17408. MAGIC_CMD=$MAGIC_CMD
  17409. # Used on cygwin: DLL creation program.
  17410. DLLTOOL="$DLLTOOL"
  17411. # Used on cygwin: object dumper.
  17412. OBJDUMP="$OBJDUMP"
  17413. # Used on cygwin: assembler.
  17414. AS="$AS"
  17415. # The name of the directory that contains temporary libtool files.
  17416. objdir=$objdir
  17417. # How to create reloadable object files.
  17418. reload_flag=$lt_reload_flag
  17419. reload_cmds=$lt_reload_cmds
  17420. # How to pass a linker flag through the compiler.
  17421. wl=$lt_lt_prog_compiler_wl_RC
  17422. # Object file suffix (normally "o").
  17423. objext="$ac_objext"
  17424. # Old archive suffix (normally "a").
  17425. libext="$libext"
  17426. # Shared library suffix (normally ".so").
  17427. shrext_cmds='$shrext_cmds'
  17428. # Executable file suffix (normally "").
  17429. exeext="$exeext"
  17430. # Additional compiler flags for building library objects.
  17431. pic_flag=$lt_lt_prog_compiler_pic_RC
  17432. pic_mode=$pic_mode
  17433. # What is the maximum length of a command?
  17434. max_cmd_len=$lt_cv_sys_max_cmd_len
  17435. # Does compiler simultaneously support -c and -o options?
  17436. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  17437. # Must we lock files when doing compilation?
  17438. need_locks=$lt_need_locks
  17439. # Do we need the lib prefix for modules?
  17440. need_lib_prefix=$need_lib_prefix
  17441. # Do we need a version for libraries?
  17442. need_version=$need_version
  17443. # Whether dlopen is supported.
  17444. dlopen_support=$enable_dlopen
  17445. # Whether dlopen of programs is supported.
  17446. dlopen_self=$enable_dlopen_self
  17447. # Whether dlopen of statically linked programs is supported.
  17448. dlopen_self_static=$enable_dlopen_self_static
  17449. # Compiler flag to prevent dynamic linking.
  17450. link_static_flag=$lt_lt_prog_compiler_static_RC
  17451. # Compiler flag to turn off builtin functions.
  17452. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  17453. # Compiler flag to allow reflexive dlopens.
  17454. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  17455. # Compiler flag to generate shared objects directly from archives.
  17456. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  17457. # Compiler flag to generate thread-safe objects.
  17458. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  17459. # Library versioning type.
  17460. version_type=$version_type
  17461. # Format of library name prefix.
  17462. libname_spec=$lt_libname_spec
  17463. # List of archive names. First name is the real one, the rest are links.
  17464. # The last name is the one that the linker finds with -lNAME.
  17465. library_names_spec=$lt_library_names_spec
  17466. # The coded name of the library, if different from the real name.
  17467. soname_spec=$lt_soname_spec
  17468. # Commands used to build and install an old-style archive.
  17469. RANLIB=$lt_RANLIB
  17470. old_archive_cmds=$lt_old_archive_cmds_RC
  17471. old_postinstall_cmds=$lt_old_postinstall_cmds
  17472. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17473. # Create an old-style archive from a shared archive.
  17474. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  17475. # Create a temporary old-style archive to link instead of a shared archive.
  17476. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  17477. # Commands used to build and install a shared archive.
  17478. archive_cmds=$lt_archive_cmds_RC
  17479. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  17480. postinstall_cmds=$lt_postinstall_cmds
  17481. postuninstall_cmds=$lt_postuninstall_cmds
  17482. # Commands used to build a loadable module (assumed same as above if empty)
  17483. module_cmds=$lt_module_cmds_RC
  17484. module_expsym_cmds=$lt_module_expsym_cmds_RC
  17485. # Commands to strip libraries.
  17486. old_striplib=$lt_old_striplib
  17487. striplib=$lt_striplib
  17488. # Dependencies to place before the objects being linked to create a
  17489. # shared library.
  17490. predep_objects=$lt_predep_objects_RC
  17491. # Dependencies to place after the objects being linked to create a
  17492. # shared library.
  17493. postdep_objects=$lt_postdep_objects_RC
  17494. # Dependencies to place before the objects being linked to create a
  17495. # shared library.
  17496. predeps=$lt_predeps_RC
  17497. # Dependencies to place after the objects being linked to create a
  17498. # shared library.
  17499. postdeps=$lt_postdeps_RC
  17500. # The library search path used internally by the compiler when linking
  17501. # a shared library.
  17502. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  17503. # Method to check whether dependent libraries are shared objects.
  17504. deplibs_check_method=$lt_deplibs_check_method
  17505. # Command to use when deplibs_check_method == file_magic.
  17506. file_magic_cmd=$lt_file_magic_cmd
  17507. # Flag that allows shared libraries with undefined symbols to be built.
  17508. allow_undefined_flag=$lt_allow_undefined_flag_RC
  17509. # Flag that forces no undefined symbols.
  17510. no_undefined_flag=$lt_no_undefined_flag_RC
  17511. # Commands used to finish a libtool library installation in a directory.
  17512. finish_cmds=$lt_finish_cmds
  17513. # Same as above, but a single script fragment to be evaled but not shown.
  17514. finish_eval=$lt_finish_eval
  17515. # Take the output of nm and produce a listing of raw symbols and C names.
  17516. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17517. # Transform the output of nm in a proper C declaration
  17518. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17519. # Transform the output of nm in a C name address pair
  17520. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17521. # This is the shared library runtime path variable.
  17522. runpath_var=$runpath_var
  17523. # This is the shared library path variable.
  17524. shlibpath_var=$shlibpath_var
  17525. # Is shlibpath searched before the hard-coded library search path?
  17526. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17527. # How to hardcode a shared library path into an executable.
  17528. hardcode_action=$hardcode_action_RC
  17529. # Whether we should hardcode library paths into libraries.
  17530. hardcode_into_libs=$hardcode_into_libs
  17531. # Flag to hardcode \$libdir into a binary during linking.
  17532. # This must work even if \$libdir does not exist.
  17533. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  17534. # If ld is used when linking, flag to hardcode \$libdir into
  17535. # a binary during linking. This must work even if \$libdir does
  17536. # not exist.
  17537. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  17538. # Whether we need a single -rpath flag with a separated argument.
  17539. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  17540. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17541. # resulting binary.
  17542. hardcode_direct=$hardcode_direct_RC
  17543. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17544. # resulting binary.
  17545. hardcode_minus_L=$hardcode_minus_L_RC
  17546. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17547. # the resulting binary.
  17548. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  17549. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17550. # and all subsequent libraries and executables linked against it.
  17551. hardcode_automatic=$hardcode_automatic_RC
  17552. # Variables whose values should be saved in libtool wrapper scripts and
  17553. # restored at relink time.
  17554. variables_saved_for_relink="$variables_saved_for_relink"
  17555. # Whether libtool must link a program against all its dependency libraries.
  17556. link_all_deplibs=$link_all_deplibs_RC
  17557. # Compile-time system search path for libraries
  17558. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17559. # Run-time system search path for libraries
  17560. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17561. # Fix the shell variable \$srcfile for the compiler.
  17562. fix_srcfile_path="$fix_srcfile_path_RC"
  17563. # Set to yes if exported symbols are required.
  17564. always_export_symbols=$always_export_symbols_RC
  17565. # The commands to list exported symbols.
  17566. export_symbols_cmds=$lt_export_symbols_cmds_RC
  17567. # The commands to extract the exported symbol list from a shared archive.
  17568. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17569. # Symbols that should not be listed in the preloaded symbols.
  17570. exclude_expsyms=$lt_exclude_expsyms_RC
  17571. # Symbols that must always be exported.
  17572. include_expsyms=$lt_include_expsyms_RC
  17573. # ### END LIBTOOL TAG CONFIG: $tagname
  17574. __EOF__
  17575. else
  17576. # If there is no Makefile yet, we rely on a make rule to execute
  17577. # `config.status --recheck' to rerun these tests and create the
  17578. # libtool script then.
  17579. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17580. if test -f "$ltmain_in"; then
  17581. test -f Makefile && make "$ltmain"
  17582. fi
  17583. fi
  17584. ac_ext=c
  17585. ac_cpp='$CPP $CPPFLAGS'
  17586. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17587. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17588. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17589. CC="$lt_save_CC"
  17590. ;;
  17591. *)
  17592. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  17593. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  17594. { (exit 1); exit 1; }; }
  17595. ;;
  17596. esac
  17597. # Append the new tag name to the list of available tags.
  17598. if test -n "$tagname" ; then
  17599. available_tags="$available_tags $tagname"
  17600. fi
  17601. fi
  17602. done
  17603. IFS="$lt_save_ifs"
  17604. # Now substitute the updated list of available tags.
  17605. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  17606. mv "${ofile}T" "$ofile"
  17607. chmod +x "$ofile"
  17608. else
  17609. rm -f "${ofile}T"
  17610. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  17611. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  17612. { (exit 1); exit 1; }; }
  17613. fi
  17614. fi
  17615. # This can be used to rebuild libtool when needed
  17616. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  17617. # Always use our own libtool.
  17618. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  17619. # Prevent multiple expansion
  17620. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  17621. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  17622. if test "${ac_cv_header_stdc+set}" = set; then
  17623. echo $ECHO_N "(cached) $ECHO_C" >&6
  17624. else
  17625. cat >conftest.$ac_ext <<_ACEOF
  17626. /* confdefs.h. */
  17627. _ACEOF
  17628. cat confdefs.h >>conftest.$ac_ext
  17629. cat >>conftest.$ac_ext <<_ACEOF
  17630. /* end confdefs.h. */
  17631. #include <stdlib.h>
  17632. #include <stdarg.h>
  17633. #include <string.h>
  17634. #include <float.h>
  17635. int
  17636. main ()
  17637. {
  17638. ;
  17639. return 0;
  17640. }
  17641. _ACEOF
  17642. rm -f conftest.$ac_objext
  17643. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17644. (eval $ac_compile) 2>conftest.er1
  17645. ac_status=$?
  17646. grep -v '^ *+' conftest.er1 >conftest.err
  17647. rm -f conftest.er1
  17648. cat conftest.err >&5
  17649. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17650. (exit $ac_status); } &&
  17651. { ac_try='test -z "$ac_c_werror_flag"
  17652. || test ! -s conftest.err'
  17653. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17654. (eval $ac_try) 2>&5
  17655. ac_status=$?
  17656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17657. (exit $ac_status); }; } &&
  17658. { ac_try='test -s conftest.$ac_objext'
  17659. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17660. (eval $ac_try) 2>&5
  17661. ac_status=$?
  17662. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17663. (exit $ac_status); }; }; then
  17664. ac_cv_header_stdc=yes
  17665. else
  17666. echo "$as_me: failed program was:" >&5
  17667. sed 's/^/| /' conftest.$ac_ext >&5
  17668. ac_cv_header_stdc=no
  17669. fi
  17670. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17671. if test $ac_cv_header_stdc = yes; then
  17672. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  17673. cat >conftest.$ac_ext <<_ACEOF
  17674. /* confdefs.h. */
  17675. _ACEOF
  17676. cat confdefs.h >>conftest.$ac_ext
  17677. cat >>conftest.$ac_ext <<_ACEOF
  17678. /* end confdefs.h. */
  17679. #include <string.h>
  17680. _ACEOF
  17681. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17682. $EGREP "memchr" >/dev/null 2>&1; then
  17683. :
  17684. else
  17685. ac_cv_header_stdc=no
  17686. fi
  17687. rm -f conftest*
  17688. fi
  17689. if test $ac_cv_header_stdc = yes; then
  17690. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  17691. cat >conftest.$ac_ext <<_ACEOF
  17692. /* confdefs.h. */
  17693. _ACEOF
  17694. cat confdefs.h >>conftest.$ac_ext
  17695. cat >>conftest.$ac_ext <<_ACEOF
  17696. /* end confdefs.h. */
  17697. #include <stdlib.h>
  17698. _ACEOF
  17699. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17700. $EGREP "free" >/dev/null 2>&1; then
  17701. :
  17702. else
  17703. ac_cv_header_stdc=no
  17704. fi
  17705. rm -f conftest*
  17706. fi
  17707. if test $ac_cv_header_stdc = yes; then
  17708. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  17709. if test "$cross_compiling" = yes; then
  17710. :
  17711. else
  17712. cat >conftest.$ac_ext <<_ACEOF
  17713. /* confdefs.h. */
  17714. _ACEOF
  17715. cat confdefs.h >>conftest.$ac_ext
  17716. cat >>conftest.$ac_ext <<_ACEOF
  17717. /* end confdefs.h. */
  17718. #include <ctype.h>
  17719. #if ((' ' & 0x0FF) == 0x020)
  17720. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  17721. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  17722. #else
  17723. # define ISLOWER(c) \
  17724. (('a' <= (c) && (c) <= 'i') \
  17725. || ('j' <= (c) && (c) <= 'r') \
  17726. || ('s' <= (c) && (c) <= 'z'))
  17727. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  17728. #endif
  17729. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  17730. int
  17731. main ()
  17732. {
  17733. int i;
  17734. for (i = 0; i < 256; i++)
  17735. if (XOR (islower (i), ISLOWER (i))
  17736. || toupper (i) != TOUPPER (i))
  17737. exit(2);
  17738. exit (0);
  17739. }
  17740. _ACEOF
  17741. rm -f conftest$ac_exeext
  17742. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17743. (eval $ac_link) 2>&5
  17744. ac_status=$?
  17745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17746. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17747. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17748. (eval $ac_try) 2>&5
  17749. ac_status=$?
  17750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17751. (exit $ac_status); }; }; then
  17752. :
  17753. else
  17754. echo "$as_me: program exited with status $ac_status" >&5
  17755. echo "$as_me: failed program was:" >&5
  17756. sed 's/^/| /' conftest.$ac_ext >&5
  17757. ( exit $ac_status )
  17758. ac_cv_header_stdc=no
  17759. fi
  17760. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17761. fi
  17762. fi
  17763. fi
  17764. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  17765. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  17766. if test $ac_cv_header_stdc = yes; then
  17767. cat >>confdefs.h <<\_ACEOF
  17768. #define STDC_HEADERS 1
  17769. _ACEOF
  17770. fi
  17771. echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
  17772. echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
  17773. if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
  17774. echo $ECHO_N "(cached) $ECHO_C" >&6
  17775. else
  17776. cat >conftest.$ac_ext <<_ACEOF
  17777. /* confdefs.h. */
  17778. _ACEOF
  17779. cat confdefs.h >>conftest.$ac_ext
  17780. cat >>conftest.$ac_ext <<_ACEOF
  17781. /* end confdefs.h. */
  17782. #include <sys/types.h>
  17783. int
  17784. main ()
  17785. {
  17786. return makedev(0, 0);
  17787. ;
  17788. return 0;
  17789. }
  17790. _ACEOF
  17791. rm -f conftest.$ac_objext conftest$ac_exeext
  17792. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17793. (eval $ac_link) 2>conftest.er1
  17794. ac_status=$?
  17795. grep -v '^ *+' conftest.er1 >conftest.err
  17796. rm -f conftest.er1
  17797. cat conftest.err >&5
  17798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17799. (exit $ac_status); } &&
  17800. { ac_try='test -z "$ac_c_werror_flag"
  17801. || test ! -s conftest.err'
  17802. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17803. (eval $ac_try) 2>&5
  17804. ac_status=$?
  17805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17806. (exit $ac_status); }; } &&
  17807. { ac_try='test -s conftest$ac_exeext'
  17808. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17809. (eval $ac_try) 2>&5
  17810. ac_status=$?
  17811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17812. (exit $ac_status); }; }; then
  17813. ac_cv_header_sys_types_h_makedev=yes
  17814. else
  17815. echo "$as_me: failed program was:" >&5
  17816. sed 's/^/| /' conftest.$ac_ext >&5
  17817. ac_cv_header_sys_types_h_makedev=no
  17818. fi
  17819. rm -f conftest.err conftest.$ac_objext \
  17820. conftest$ac_exeext conftest.$ac_ext
  17821. fi
  17822. echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
  17823. echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
  17824. if test $ac_cv_header_sys_types_h_makedev = no; then
  17825. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  17826. echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  17827. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
  17828. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  17829. echo $ECHO_N "(cached) $ECHO_C" >&6
  17830. fi
  17831. echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  17832. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
  17833. else
  17834. # Is the header compilable?
  17835. echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
  17836. echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
  17837. cat >conftest.$ac_ext <<_ACEOF
  17838. /* confdefs.h. */
  17839. _ACEOF
  17840. cat confdefs.h >>conftest.$ac_ext
  17841. cat >>conftest.$ac_ext <<_ACEOF
  17842. /* end confdefs.h. */
  17843. $ac_includes_default
  17844. #include <sys/mkdev.h>
  17845. _ACEOF
  17846. rm -f conftest.$ac_objext
  17847. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17848. (eval $ac_compile) 2>conftest.er1
  17849. ac_status=$?
  17850. grep -v '^ *+' conftest.er1 >conftest.err
  17851. rm -f conftest.er1
  17852. cat conftest.err >&5
  17853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17854. (exit $ac_status); } &&
  17855. { ac_try='test -z "$ac_c_werror_flag"
  17856. || test ! -s conftest.err'
  17857. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17858. (eval $ac_try) 2>&5
  17859. ac_status=$?
  17860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17861. (exit $ac_status); }; } &&
  17862. { ac_try='test -s conftest.$ac_objext'
  17863. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17864. (eval $ac_try) 2>&5
  17865. ac_status=$?
  17866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17867. (exit $ac_status); }; }; then
  17868. ac_header_compiler=yes
  17869. else
  17870. echo "$as_me: failed program was:" >&5
  17871. sed 's/^/| /' conftest.$ac_ext >&5
  17872. ac_header_compiler=no
  17873. fi
  17874. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17875. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17876. echo "${ECHO_T}$ac_header_compiler" >&6
  17877. # Is the header present?
  17878. echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
  17879. echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
  17880. cat >conftest.$ac_ext <<_ACEOF
  17881. /* confdefs.h. */
  17882. _ACEOF
  17883. cat confdefs.h >>conftest.$ac_ext
  17884. cat >>conftest.$ac_ext <<_ACEOF
  17885. /* end confdefs.h. */
  17886. #include <sys/mkdev.h>
  17887. _ACEOF
  17888. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17889. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17890. ac_status=$?
  17891. grep -v '^ *+' conftest.er1 >conftest.err
  17892. rm -f conftest.er1
  17893. cat conftest.err >&5
  17894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17895. (exit $ac_status); } >/dev/null; then
  17896. if test -s conftest.err; then
  17897. ac_cpp_err=$ac_c_preproc_warn_flag
  17898. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17899. else
  17900. ac_cpp_err=
  17901. fi
  17902. else
  17903. ac_cpp_err=yes
  17904. fi
  17905. if test -z "$ac_cpp_err"; then
  17906. ac_header_preproc=yes
  17907. else
  17908. echo "$as_me: failed program was:" >&5
  17909. sed 's/^/| /' conftest.$ac_ext >&5
  17910. ac_header_preproc=no
  17911. fi
  17912. rm -f conftest.err conftest.$ac_ext
  17913. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17914. echo "${ECHO_T}$ac_header_preproc" >&6
  17915. # So? What about this header?
  17916. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17917. yes:no: )
  17918. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
  17919. echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17920. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
  17921. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
  17922. ac_header_preproc=yes
  17923. ;;
  17924. no:yes:* )
  17925. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
  17926. echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
  17927. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
  17928. echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
  17929. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
  17930. echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
  17931. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
  17932. echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
  17933. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
  17934. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
  17935. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
  17936. echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
  17937. (
  17938. cat <<\_ASBOX
  17939. ## ------------------------------------------ ##
  17940. ## Report this to the AC_PACKAGE_NAME lists. ##
  17941. ## ------------------------------------------ ##
  17942. _ASBOX
  17943. ) |
  17944. sed "s/^/$as_me: WARNING: /" >&2
  17945. ;;
  17946. esac
  17947. echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  17948. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
  17949. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  17950. echo $ECHO_N "(cached) $ECHO_C" >&6
  17951. else
  17952. ac_cv_header_sys_mkdev_h=$ac_header_preproc
  17953. fi
  17954. echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  17955. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
  17956. fi
  17957. if test $ac_cv_header_sys_mkdev_h = yes; then
  17958. cat >>confdefs.h <<\_ACEOF
  17959. #define MAJOR_IN_MKDEV 1
  17960. _ACEOF
  17961. fi
  17962. if test $ac_cv_header_sys_mkdev_h = no; then
  17963. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  17964. echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  17965. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
  17966. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  17967. echo $ECHO_N "(cached) $ECHO_C" >&6
  17968. fi
  17969. echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  17970. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
  17971. else
  17972. # Is the header compilable?
  17973. echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
  17974. echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
  17975. cat >conftest.$ac_ext <<_ACEOF
  17976. /* confdefs.h. */
  17977. _ACEOF
  17978. cat confdefs.h >>conftest.$ac_ext
  17979. cat >>conftest.$ac_ext <<_ACEOF
  17980. /* end confdefs.h. */
  17981. $ac_includes_default
  17982. #include <sys/sysmacros.h>
  17983. _ACEOF
  17984. rm -f conftest.$ac_objext
  17985. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17986. (eval $ac_compile) 2>conftest.er1
  17987. ac_status=$?
  17988. grep -v '^ *+' conftest.er1 >conftest.err
  17989. rm -f conftest.er1
  17990. cat conftest.err >&5
  17991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17992. (exit $ac_status); } &&
  17993. { ac_try='test -z "$ac_c_werror_flag"
  17994. || test ! -s conftest.err'
  17995. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17996. (eval $ac_try) 2>&5
  17997. ac_status=$?
  17998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17999. (exit $ac_status); }; } &&
  18000. { ac_try='test -s conftest.$ac_objext'
  18001. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18002. (eval $ac_try) 2>&5
  18003. ac_status=$?
  18004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18005. (exit $ac_status); }; }; then
  18006. ac_header_compiler=yes
  18007. else
  18008. echo "$as_me: failed program was:" >&5
  18009. sed 's/^/| /' conftest.$ac_ext >&5
  18010. ac_header_compiler=no
  18011. fi
  18012. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18013. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18014. echo "${ECHO_T}$ac_header_compiler" >&6
  18015. # Is the header present?
  18016. echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
  18017. echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
  18018. cat >conftest.$ac_ext <<_ACEOF
  18019. /* confdefs.h. */
  18020. _ACEOF
  18021. cat confdefs.h >>conftest.$ac_ext
  18022. cat >>conftest.$ac_ext <<_ACEOF
  18023. /* end confdefs.h. */
  18024. #include <sys/sysmacros.h>
  18025. _ACEOF
  18026. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18027. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18028. ac_status=$?
  18029. grep -v '^ *+' conftest.er1 >conftest.err
  18030. rm -f conftest.er1
  18031. cat conftest.err >&5
  18032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18033. (exit $ac_status); } >/dev/null; then
  18034. if test -s conftest.err; then
  18035. ac_cpp_err=$ac_c_preproc_warn_flag
  18036. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18037. else
  18038. ac_cpp_err=
  18039. fi
  18040. else
  18041. ac_cpp_err=yes
  18042. fi
  18043. if test -z "$ac_cpp_err"; then
  18044. ac_header_preproc=yes
  18045. else
  18046. echo "$as_me: failed program was:" >&5
  18047. sed 's/^/| /' conftest.$ac_ext >&5
  18048. ac_header_preproc=no
  18049. fi
  18050. rm -f conftest.err conftest.$ac_ext
  18051. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18052. echo "${ECHO_T}$ac_header_preproc" >&6
  18053. # So? What about this header?
  18054. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18055. yes:no: )
  18056. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
  18057. echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18058. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
  18059. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
  18060. ac_header_preproc=yes
  18061. ;;
  18062. no:yes:* )
  18063. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
  18064. echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
  18065. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
  18066. echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
  18067. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
  18068. echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
  18069. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
  18070. echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
  18071. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
  18072. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
  18073. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
  18074. echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
  18075. (
  18076. cat <<\_ASBOX
  18077. ## ------------------------------------------ ##
  18078. ## Report this to the AC_PACKAGE_NAME lists. ##
  18079. ## ------------------------------------------ ##
  18080. _ASBOX
  18081. ) |
  18082. sed "s/^/$as_me: WARNING: /" >&2
  18083. ;;
  18084. esac
  18085. echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  18086. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
  18087. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  18088. echo $ECHO_N "(cached) $ECHO_C" >&6
  18089. else
  18090. ac_cv_header_sys_sysmacros_h=$ac_header_preproc
  18091. fi
  18092. echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  18093. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
  18094. fi
  18095. if test $ac_cv_header_sys_sysmacros_h = yes; then
  18096. cat >>confdefs.h <<\_ACEOF
  18097. #define MAJOR_IN_SYSMACROS 1
  18098. _ACEOF
  18099. fi
  18100. fi
  18101. fi
  18102. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  18103. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  18104. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  18105. echo $ECHO_N "(cached) $ECHO_C" >&6
  18106. else
  18107. cat >conftest.$ac_ext <<_ACEOF
  18108. /* confdefs.h. */
  18109. _ACEOF
  18110. cat confdefs.h >>conftest.$ac_ext
  18111. cat >>conftest.$ac_ext <<_ACEOF
  18112. /* end confdefs.h. */
  18113. #include <sys/types.h>
  18114. #include <sys/wait.h>
  18115. #ifndef WEXITSTATUS
  18116. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  18117. #endif
  18118. #ifndef WIFEXITED
  18119. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  18120. #endif
  18121. int
  18122. main ()
  18123. {
  18124. int s;
  18125. wait (&s);
  18126. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  18127. ;
  18128. return 0;
  18129. }
  18130. _ACEOF
  18131. rm -f conftest.$ac_objext
  18132. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18133. (eval $ac_compile) 2>conftest.er1
  18134. ac_status=$?
  18135. grep -v '^ *+' conftest.er1 >conftest.err
  18136. rm -f conftest.er1
  18137. cat conftest.err >&5
  18138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18139. (exit $ac_status); } &&
  18140. { ac_try='test -z "$ac_c_werror_flag"
  18141. || test ! -s conftest.err'
  18142. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18143. (eval $ac_try) 2>&5
  18144. ac_status=$?
  18145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18146. (exit $ac_status); }; } &&
  18147. { ac_try='test -s conftest.$ac_objext'
  18148. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18149. (eval $ac_try) 2>&5
  18150. ac_status=$?
  18151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18152. (exit $ac_status); }; }; then
  18153. ac_cv_header_sys_wait_h=yes
  18154. else
  18155. echo "$as_me: failed program was:" >&5
  18156. sed 's/^/| /' conftest.$ac_ext >&5
  18157. ac_cv_header_sys_wait_h=no
  18158. fi
  18159. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18160. fi
  18161. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  18162. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  18163. if test $ac_cv_header_sys_wait_h = yes; then
  18164. cat >>confdefs.h <<\_ACEOF
  18165. #define HAVE_SYS_WAIT_H 1
  18166. _ACEOF
  18167. fi
  18168. for ac_header in stdint.h
  18169. do
  18170. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18171. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18172. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18173. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18174. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18175. echo $ECHO_N "(cached) $ECHO_C" >&6
  18176. fi
  18177. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18178. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18179. else
  18180. # Is the header compilable?
  18181. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18182. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18183. cat >conftest.$ac_ext <<_ACEOF
  18184. /* confdefs.h. */
  18185. _ACEOF
  18186. cat confdefs.h >>conftest.$ac_ext
  18187. cat >>conftest.$ac_ext <<_ACEOF
  18188. /* end confdefs.h. */
  18189. $ac_includes_default
  18190. #include <$ac_header>
  18191. _ACEOF
  18192. rm -f conftest.$ac_objext
  18193. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18194. (eval $ac_compile) 2>conftest.er1
  18195. ac_status=$?
  18196. grep -v '^ *+' conftest.er1 >conftest.err
  18197. rm -f conftest.er1
  18198. cat conftest.err >&5
  18199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18200. (exit $ac_status); } &&
  18201. { ac_try='test -z "$ac_c_werror_flag"
  18202. || test ! -s conftest.err'
  18203. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18204. (eval $ac_try) 2>&5
  18205. ac_status=$?
  18206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18207. (exit $ac_status); }; } &&
  18208. { ac_try='test -s conftest.$ac_objext'
  18209. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18210. (eval $ac_try) 2>&5
  18211. ac_status=$?
  18212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18213. (exit $ac_status); }; }; then
  18214. ac_header_compiler=yes
  18215. else
  18216. echo "$as_me: failed program was:" >&5
  18217. sed 's/^/| /' conftest.$ac_ext >&5
  18218. ac_header_compiler=no
  18219. fi
  18220. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18221. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18222. echo "${ECHO_T}$ac_header_compiler" >&6
  18223. # Is the header present?
  18224. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18225. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18226. cat >conftest.$ac_ext <<_ACEOF
  18227. /* confdefs.h. */
  18228. _ACEOF
  18229. cat confdefs.h >>conftest.$ac_ext
  18230. cat >>conftest.$ac_ext <<_ACEOF
  18231. /* end confdefs.h. */
  18232. #include <$ac_header>
  18233. _ACEOF
  18234. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18235. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18236. ac_status=$?
  18237. grep -v '^ *+' conftest.er1 >conftest.err
  18238. rm -f conftest.er1
  18239. cat conftest.err >&5
  18240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18241. (exit $ac_status); } >/dev/null; then
  18242. if test -s conftest.err; then
  18243. ac_cpp_err=$ac_c_preproc_warn_flag
  18244. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18245. else
  18246. ac_cpp_err=
  18247. fi
  18248. else
  18249. ac_cpp_err=yes
  18250. fi
  18251. if test -z "$ac_cpp_err"; then
  18252. ac_header_preproc=yes
  18253. else
  18254. echo "$as_me: failed program was:" >&5
  18255. sed 's/^/| /' conftest.$ac_ext >&5
  18256. ac_header_preproc=no
  18257. fi
  18258. rm -f conftest.err conftest.$ac_ext
  18259. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18260. echo "${ECHO_T}$ac_header_preproc" >&6
  18261. # So? What about this header?
  18262. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18263. yes:no: )
  18264. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18265. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18266. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18267. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18268. ac_header_preproc=yes
  18269. ;;
  18270. no:yes:* )
  18271. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18272. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18273. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18274. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18275. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18276. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18277. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18278. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18279. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18280. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18281. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18282. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18283. (
  18284. cat <<\_ASBOX
  18285. ## ------------------------------------------ ##
  18286. ## Report this to the AC_PACKAGE_NAME lists. ##
  18287. ## ------------------------------------------ ##
  18288. _ASBOX
  18289. ) |
  18290. sed "s/^/$as_me: WARNING: /" >&2
  18291. ;;
  18292. esac
  18293. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18294. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18295. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18296. echo $ECHO_N "(cached) $ECHO_C" >&6
  18297. else
  18298. eval "$as_ac_Header=\$ac_header_preproc"
  18299. fi
  18300. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18301. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18302. fi
  18303. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18304. cat >>confdefs.h <<_ACEOF
  18305. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18306. _ACEOF
  18307. fi
  18308. done
  18309. for ac_header in fcntl.h locale.h stdint.h inttypes.h unistd.h getopt.h
  18310. do
  18311. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18312. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18313. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18314. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18315. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18316. echo $ECHO_N "(cached) $ECHO_C" >&6
  18317. fi
  18318. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18319. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18320. else
  18321. # Is the header compilable?
  18322. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18323. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18324. cat >conftest.$ac_ext <<_ACEOF
  18325. /* confdefs.h. */
  18326. _ACEOF
  18327. cat confdefs.h >>conftest.$ac_ext
  18328. cat >>conftest.$ac_ext <<_ACEOF
  18329. /* end confdefs.h. */
  18330. $ac_includes_default
  18331. #include <$ac_header>
  18332. _ACEOF
  18333. rm -f conftest.$ac_objext
  18334. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18335. (eval $ac_compile) 2>conftest.er1
  18336. ac_status=$?
  18337. grep -v '^ *+' conftest.er1 >conftest.err
  18338. rm -f conftest.er1
  18339. cat conftest.err >&5
  18340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18341. (exit $ac_status); } &&
  18342. { ac_try='test -z "$ac_c_werror_flag"
  18343. || test ! -s conftest.err'
  18344. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18345. (eval $ac_try) 2>&5
  18346. ac_status=$?
  18347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18348. (exit $ac_status); }; } &&
  18349. { ac_try='test -s conftest.$ac_objext'
  18350. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18351. (eval $ac_try) 2>&5
  18352. ac_status=$?
  18353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18354. (exit $ac_status); }; }; then
  18355. ac_header_compiler=yes
  18356. else
  18357. echo "$as_me: failed program was:" >&5
  18358. sed 's/^/| /' conftest.$ac_ext >&5
  18359. ac_header_compiler=no
  18360. fi
  18361. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18362. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18363. echo "${ECHO_T}$ac_header_compiler" >&6
  18364. # Is the header present?
  18365. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18366. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18367. cat >conftest.$ac_ext <<_ACEOF
  18368. /* confdefs.h. */
  18369. _ACEOF
  18370. cat confdefs.h >>conftest.$ac_ext
  18371. cat >>conftest.$ac_ext <<_ACEOF
  18372. /* end confdefs.h. */
  18373. #include <$ac_header>
  18374. _ACEOF
  18375. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18376. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18377. ac_status=$?
  18378. grep -v '^ *+' conftest.er1 >conftest.err
  18379. rm -f conftest.er1
  18380. cat conftest.err >&5
  18381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18382. (exit $ac_status); } >/dev/null; then
  18383. if test -s conftest.err; then
  18384. ac_cpp_err=$ac_c_preproc_warn_flag
  18385. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18386. else
  18387. ac_cpp_err=
  18388. fi
  18389. else
  18390. ac_cpp_err=yes
  18391. fi
  18392. if test -z "$ac_cpp_err"; then
  18393. ac_header_preproc=yes
  18394. else
  18395. echo "$as_me: failed program was:" >&5
  18396. sed 's/^/| /' conftest.$ac_ext >&5
  18397. ac_header_preproc=no
  18398. fi
  18399. rm -f conftest.err conftest.$ac_ext
  18400. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18401. echo "${ECHO_T}$ac_header_preproc" >&6
  18402. # So? What about this header?
  18403. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18404. yes:no: )
  18405. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18406. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18407. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18408. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18409. ac_header_preproc=yes
  18410. ;;
  18411. no:yes:* )
  18412. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18413. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18414. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18415. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18416. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18417. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18418. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18419. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18420. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18421. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18422. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18423. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18424. (
  18425. cat <<\_ASBOX
  18426. ## ------------------------------------------ ##
  18427. ## Report this to the AC_PACKAGE_NAME lists. ##
  18428. ## ------------------------------------------ ##
  18429. _ASBOX
  18430. ) |
  18431. sed "s/^/$as_me: WARNING: /" >&2
  18432. ;;
  18433. esac
  18434. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18435. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18436. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18437. echo $ECHO_N "(cached) $ECHO_C" >&6
  18438. else
  18439. eval "$as_ac_Header=\$ac_header_preproc"
  18440. fi
  18441. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18442. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18443. fi
  18444. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18445. cat >>confdefs.h <<_ACEOF
  18446. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18447. _ACEOF
  18448. fi
  18449. done
  18450. for ac_header in utime.h wchar.h wctype.h
  18451. do
  18452. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18453. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18454. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18455. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18456. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18457. echo $ECHO_N "(cached) $ECHO_C" >&6
  18458. fi
  18459. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18460. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18461. else
  18462. # Is the header compilable?
  18463. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18464. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18465. cat >conftest.$ac_ext <<_ACEOF
  18466. /* confdefs.h. */
  18467. _ACEOF
  18468. cat confdefs.h >>conftest.$ac_ext
  18469. cat >>conftest.$ac_ext <<_ACEOF
  18470. /* end confdefs.h. */
  18471. $ac_includes_default
  18472. #include <$ac_header>
  18473. _ACEOF
  18474. rm -f conftest.$ac_objext
  18475. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18476. (eval $ac_compile) 2>conftest.er1
  18477. ac_status=$?
  18478. grep -v '^ *+' conftest.er1 >conftest.err
  18479. rm -f conftest.er1
  18480. cat conftest.err >&5
  18481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18482. (exit $ac_status); } &&
  18483. { ac_try='test -z "$ac_c_werror_flag"
  18484. || test ! -s conftest.err'
  18485. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18486. (eval $ac_try) 2>&5
  18487. ac_status=$?
  18488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18489. (exit $ac_status); }; } &&
  18490. { ac_try='test -s conftest.$ac_objext'
  18491. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18492. (eval $ac_try) 2>&5
  18493. ac_status=$?
  18494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18495. (exit $ac_status); }; }; then
  18496. ac_header_compiler=yes
  18497. else
  18498. echo "$as_me: failed program was:" >&5
  18499. sed 's/^/| /' conftest.$ac_ext >&5
  18500. ac_header_compiler=no
  18501. fi
  18502. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18503. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18504. echo "${ECHO_T}$ac_header_compiler" >&6
  18505. # Is the header present?
  18506. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18507. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18508. cat >conftest.$ac_ext <<_ACEOF
  18509. /* confdefs.h. */
  18510. _ACEOF
  18511. cat confdefs.h >>conftest.$ac_ext
  18512. cat >>conftest.$ac_ext <<_ACEOF
  18513. /* end confdefs.h. */
  18514. #include <$ac_header>
  18515. _ACEOF
  18516. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18517. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18518. ac_status=$?
  18519. grep -v '^ *+' conftest.er1 >conftest.err
  18520. rm -f conftest.er1
  18521. cat conftest.err >&5
  18522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18523. (exit $ac_status); } >/dev/null; then
  18524. if test -s conftest.err; then
  18525. ac_cpp_err=$ac_c_preproc_warn_flag
  18526. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18527. else
  18528. ac_cpp_err=
  18529. fi
  18530. else
  18531. ac_cpp_err=yes
  18532. fi
  18533. if test -z "$ac_cpp_err"; then
  18534. ac_header_preproc=yes
  18535. else
  18536. echo "$as_me: failed program was:" >&5
  18537. sed 's/^/| /' conftest.$ac_ext >&5
  18538. ac_header_preproc=no
  18539. fi
  18540. rm -f conftest.err conftest.$ac_ext
  18541. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18542. echo "${ECHO_T}$ac_header_preproc" >&6
  18543. # So? What about this header?
  18544. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18545. yes:no: )
  18546. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18547. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18548. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18549. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18550. ac_header_preproc=yes
  18551. ;;
  18552. no:yes:* )
  18553. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18554. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18555. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18556. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18557. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18558. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18559. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18560. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18561. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18562. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18563. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18564. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18565. (
  18566. cat <<\_ASBOX
  18567. ## ------------------------------------------ ##
  18568. ## Report this to the AC_PACKAGE_NAME lists. ##
  18569. ## ------------------------------------------ ##
  18570. _ASBOX
  18571. ) |
  18572. sed "s/^/$as_me: WARNING: /" >&2
  18573. ;;
  18574. esac
  18575. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18576. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18577. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18578. echo $ECHO_N "(cached) $ECHO_C" >&6
  18579. else
  18580. eval "$as_ac_Header=\$ac_header_preproc"
  18581. fi
  18582. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18583. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18584. fi
  18585. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18586. cat >>confdefs.h <<_ACEOF
  18587. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18588. _ACEOF
  18589. fi
  18590. done
  18591. for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h
  18592. do
  18593. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18594. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18595. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18596. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18597. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18598. echo $ECHO_N "(cached) $ECHO_C" >&6
  18599. fi
  18600. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18601. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18602. else
  18603. # Is the header compilable?
  18604. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18605. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18606. cat >conftest.$ac_ext <<_ACEOF
  18607. /* confdefs.h. */
  18608. _ACEOF
  18609. cat confdefs.h >>conftest.$ac_ext
  18610. cat >>conftest.$ac_ext <<_ACEOF
  18611. /* end confdefs.h. */
  18612. $ac_includes_default
  18613. #include <$ac_header>
  18614. _ACEOF
  18615. rm -f conftest.$ac_objext
  18616. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18617. (eval $ac_compile) 2>conftest.er1
  18618. ac_status=$?
  18619. grep -v '^ *+' conftest.er1 >conftest.err
  18620. rm -f conftest.er1
  18621. cat conftest.err >&5
  18622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18623. (exit $ac_status); } &&
  18624. { ac_try='test -z "$ac_c_werror_flag"
  18625. || test ! -s conftest.err'
  18626. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18627. (eval $ac_try) 2>&5
  18628. ac_status=$?
  18629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18630. (exit $ac_status); }; } &&
  18631. { ac_try='test -s conftest.$ac_objext'
  18632. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18633. (eval $ac_try) 2>&5
  18634. ac_status=$?
  18635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18636. (exit $ac_status); }; }; then
  18637. ac_header_compiler=yes
  18638. else
  18639. echo "$as_me: failed program was:" >&5
  18640. sed 's/^/| /' conftest.$ac_ext >&5
  18641. ac_header_compiler=no
  18642. fi
  18643. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18644. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18645. echo "${ECHO_T}$ac_header_compiler" >&6
  18646. # Is the header present?
  18647. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18648. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18649. cat >conftest.$ac_ext <<_ACEOF
  18650. /* confdefs.h. */
  18651. _ACEOF
  18652. cat confdefs.h >>conftest.$ac_ext
  18653. cat >>conftest.$ac_ext <<_ACEOF
  18654. /* end confdefs.h. */
  18655. #include <$ac_header>
  18656. _ACEOF
  18657. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18658. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18659. ac_status=$?
  18660. grep -v '^ *+' conftest.er1 >conftest.err
  18661. rm -f conftest.er1
  18662. cat conftest.err >&5
  18663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18664. (exit $ac_status); } >/dev/null; then
  18665. if test -s conftest.err; then
  18666. ac_cpp_err=$ac_c_preproc_warn_flag
  18667. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18668. else
  18669. ac_cpp_err=
  18670. fi
  18671. else
  18672. ac_cpp_err=yes
  18673. fi
  18674. if test -z "$ac_cpp_err"; then
  18675. ac_header_preproc=yes
  18676. else
  18677. echo "$as_me: failed program was:" >&5
  18678. sed 's/^/| /' conftest.$ac_ext >&5
  18679. ac_header_preproc=no
  18680. fi
  18681. rm -f conftest.err conftest.$ac_ext
  18682. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18683. echo "${ECHO_T}$ac_header_preproc" >&6
  18684. # So? What about this header?
  18685. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18686. yes:no: )
  18687. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18688. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18689. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18690. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18691. ac_header_preproc=yes
  18692. ;;
  18693. no:yes:* )
  18694. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18695. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18696. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18697. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18698. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18699. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18700. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18701. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18702. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18703. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18704. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18705. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18706. (
  18707. cat <<\_ASBOX
  18708. ## ------------------------------------------ ##
  18709. ## Report this to the AC_PACKAGE_NAME lists. ##
  18710. ## ------------------------------------------ ##
  18711. _ASBOX
  18712. ) |
  18713. sed "s/^/$as_me: WARNING: /" >&2
  18714. ;;
  18715. esac
  18716. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18717. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18718. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18719. echo $ECHO_N "(cached) $ECHO_C" >&6
  18720. else
  18721. eval "$as_ac_Header=\$ac_header_preproc"
  18722. fi
  18723. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18724. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18725. fi
  18726. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18727. cat >>confdefs.h <<_ACEOF
  18728. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18729. _ACEOF
  18730. fi
  18731. done
  18732. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  18733. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  18734. if test "${ac_cv_c_const+set}" = set; then
  18735. echo $ECHO_N "(cached) $ECHO_C" >&6
  18736. else
  18737. cat >conftest.$ac_ext <<_ACEOF
  18738. /* confdefs.h. */
  18739. _ACEOF
  18740. cat confdefs.h >>conftest.$ac_ext
  18741. cat >>conftest.$ac_ext <<_ACEOF
  18742. /* end confdefs.h. */
  18743. int
  18744. main ()
  18745. {
  18746. /* FIXME: Include the comments suggested by Paul. */
  18747. #ifndef __cplusplus
  18748. /* Ultrix mips cc rejects this. */
  18749. typedef int charset[2];
  18750. const charset x;
  18751. /* SunOS 4.1.1 cc rejects this. */
  18752. char const *const *ccp;
  18753. char **p;
  18754. /* NEC SVR4.0.2 mips cc rejects this. */
  18755. struct point {int x, y;};
  18756. static struct point const zero = {0,0};
  18757. /* AIX XL C 1.02.0.0 rejects this.
  18758. It does not let you subtract one const X* pointer from another in
  18759. an arm of an if-expression whose if-part is not a constant
  18760. expression */
  18761. const char *g = "string";
  18762. ccp = &g + (g ? g-g : 0);
  18763. /* HPUX 7.0 cc rejects these. */
  18764. ++ccp;
  18765. p = (char**) ccp;
  18766. ccp = (char const *const *) p;
  18767. { /* SCO 3.2v4 cc rejects this. */
  18768. char *t;
  18769. char const *s = 0 ? (char *) 0 : (char const *) 0;
  18770. *t++ = 0;
  18771. }
  18772. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  18773. int x[] = {25, 17};
  18774. const int *foo = &x[0];
  18775. ++foo;
  18776. }
  18777. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  18778. typedef const int *iptr;
  18779. iptr p = 0;
  18780. ++p;
  18781. }
  18782. { /* AIX XL C 1.02.0.0 rejects this saying
  18783. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  18784. struct s { int j; const int *ap[3]; };
  18785. struct s *b; b->j = 5;
  18786. }
  18787. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  18788. const int foo = 10;
  18789. }
  18790. #endif
  18791. ;
  18792. return 0;
  18793. }
  18794. _ACEOF
  18795. rm -f conftest.$ac_objext
  18796. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18797. (eval $ac_compile) 2>conftest.er1
  18798. ac_status=$?
  18799. grep -v '^ *+' conftest.er1 >conftest.err
  18800. rm -f conftest.er1
  18801. cat conftest.err >&5
  18802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18803. (exit $ac_status); } &&
  18804. { ac_try='test -z "$ac_c_werror_flag"
  18805. || test ! -s conftest.err'
  18806. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18807. (eval $ac_try) 2>&5
  18808. ac_status=$?
  18809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18810. (exit $ac_status); }; } &&
  18811. { ac_try='test -s conftest.$ac_objext'
  18812. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18813. (eval $ac_try) 2>&5
  18814. ac_status=$?
  18815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18816. (exit $ac_status); }; }; then
  18817. ac_cv_c_const=yes
  18818. else
  18819. echo "$as_me: failed program was:" >&5
  18820. sed 's/^/| /' conftest.$ac_ext >&5
  18821. ac_cv_c_const=no
  18822. fi
  18823. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18824. fi
  18825. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  18826. echo "${ECHO_T}$ac_cv_c_const" >&6
  18827. if test $ac_cv_c_const = no; then
  18828. cat >>confdefs.h <<\_ACEOF
  18829. #define const
  18830. _ACEOF
  18831. fi
  18832. echo "$as_me:$LINENO: checking for off_t" >&5
  18833. echo $ECHO_N "checking for off_t... $ECHO_C" >&6
  18834. if test "${ac_cv_type_off_t+set}" = set; then
  18835. echo $ECHO_N "(cached) $ECHO_C" >&6
  18836. else
  18837. cat >conftest.$ac_ext <<_ACEOF
  18838. /* confdefs.h. */
  18839. _ACEOF
  18840. cat confdefs.h >>conftest.$ac_ext
  18841. cat >>conftest.$ac_ext <<_ACEOF
  18842. /* end confdefs.h. */
  18843. $ac_includes_default
  18844. int
  18845. main ()
  18846. {
  18847. if ((off_t *) 0)
  18848. return 0;
  18849. if (sizeof (off_t))
  18850. return 0;
  18851. ;
  18852. return 0;
  18853. }
  18854. _ACEOF
  18855. rm -f conftest.$ac_objext
  18856. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18857. (eval $ac_compile) 2>conftest.er1
  18858. ac_status=$?
  18859. grep -v '^ *+' conftest.er1 >conftest.err
  18860. rm -f conftest.er1
  18861. cat conftest.err >&5
  18862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18863. (exit $ac_status); } &&
  18864. { ac_try='test -z "$ac_c_werror_flag"
  18865. || test ! -s conftest.err'
  18866. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18867. (eval $ac_try) 2>&5
  18868. ac_status=$?
  18869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18870. (exit $ac_status); }; } &&
  18871. { ac_try='test -s conftest.$ac_objext'
  18872. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18873. (eval $ac_try) 2>&5
  18874. ac_status=$?
  18875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18876. (exit $ac_status); }; }; then
  18877. ac_cv_type_off_t=yes
  18878. else
  18879. echo "$as_me: failed program was:" >&5
  18880. sed 's/^/| /' conftest.$ac_ext >&5
  18881. ac_cv_type_off_t=no
  18882. fi
  18883. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18884. fi
  18885. echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  18886. echo "${ECHO_T}$ac_cv_type_off_t" >&6
  18887. if test $ac_cv_type_off_t = yes; then
  18888. :
  18889. else
  18890. cat >>confdefs.h <<_ACEOF
  18891. #define off_t long
  18892. _ACEOF
  18893. fi
  18894. echo "$as_me:$LINENO: checking for size_t" >&5
  18895. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  18896. if test "${ac_cv_type_size_t+set}" = set; then
  18897. echo $ECHO_N "(cached) $ECHO_C" >&6
  18898. else
  18899. cat >conftest.$ac_ext <<_ACEOF
  18900. /* confdefs.h. */
  18901. _ACEOF
  18902. cat confdefs.h >>conftest.$ac_ext
  18903. cat >>conftest.$ac_ext <<_ACEOF
  18904. /* end confdefs.h. */
  18905. $ac_includes_default
  18906. int
  18907. main ()
  18908. {
  18909. if ((size_t *) 0)
  18910. return 0;
  18911. if (sizeof (size_t))
  18912. return 0;
  18913. ;
  18914. return 0;
  18915. }
  18916. _ACEOF
  18917. rm -f conftest.$ac_objext
  18918. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18919. (eval $ac_compile) 2>conftest.er1
  18920. ac_status=$?
  18921. grep -v '^ *+' conftest.er1 >conftest.err
  18922. rm -f conftest.er1
  18923. cat conftest.err >&5
  18924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18925. (exit $ac_status); } &&
  18926. { ac_try='test -z "$ac_c_werror_flag"
  18927. || test ! -s conftest.err'
  18928. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18929. (eval $ac_try) 2>&5
  18930. ac_status=$?
  18931. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18932. (exit $ac_status); }; } &&
  18933. { ac_try='test -s conftest.$ac_objext'
  18934. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18935. (eval $ac_try) 2>&5
  18936. ac_status=$?
  18937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18938. (exit $ac_status); }; }; then
  18939. ac_cv_type_size_t=yes
  18940. else
  18941. echo "$as_me: failed program was:" >&5
  18942. sed 's/^/| /' conftest.$ac_ext >&5
  18943. ac_cv_type_size_t=no
  18944. fi
  18945. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18946. fi
  18947. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  18948. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  18949. if test $ac_cv_type_size_t = yes; then
  18950. :
  18951. else
  18952. cat >>confdefs.h <<_ACEOF
  18953. #define size_t unsigned
  18954. _ACEOF
  18955. fi
  18956. echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
  18957. echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
  18958. if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
  18959. echo $ECHO_N "(cached) $ECHO_C" >&6
  18960. else
  18961. cat >conftest.$ac_ext <<_ACEOF
  18962. /* confdefs.h. */
  18963. _ACEOF
  18964. cat confdefs.h >>conftest.$ac_ext
  18965. cat >>conftest.$ac_ext <<_ACEOF
  18966. /* end confdefs.h. */
  18967. $ac_includes_default
  18968. int
  18969. main ()
  18970. {
  18971. static struct stat ac_aggr;
  18972. if (ac_aggr.st_rdev)
  18973. return 0;
  18974. ;
  18975. return 0;
  18976. }
  18977. _ACEOF
  18978. rm -f conftest.$ac_objext
  18979. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18980. (eval $ac_compile) 2>conftest.er1
  18981. ac_status=$?
  18982. grep -v '^ *+' conftest.er1 >conftest.err
  18983. rm -f conftest.er1
  18984. cat conftest.err >&5
  18985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18986. (exit $ac_status); } &&
  18987. { ac_try='test -z "$ac_c_werror_flag"
  18988. || test ! -s conftest.err'
  18989. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18990. (eval $ac_try) 2>&5
  18991. ac_status=$?
  18992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18993. (exit $ac_status); }; } &&
  18994. { ac_try='test -s conftest.$ac_objext'
  18995. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18996. (eval $ac_try) 2>&5
  18997. ac_status=$?
  18998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18999. (exit $ac_status); }; }; then
  19000. ac_cv_member_struct_stat_st_rdev=yes
  19001. else
  19002. echo "$as_me: failed program was:" >&5
  19003. sed 's/^/| /' conftest.$ac_ext >&5
  19004. cat >conftest.$ac_ext <<_ACEOF
  19005. /* confdefs.h. */
  19006. _ACEOF
  19007. cat confdefs.h >>conftest.$ac_ext
  19008. cat >>conftest.$ac_ext <<_ACEOF
  19009. /* end confdefs.h. */
  19010. $ac_includes_default
  19011. int
  19012. main ()
  19013. {
  19014. static struct stat ac_aggr;
  19015. if (sizeof ac_aggr.st_rdev)
  19016. return 0;
  19017. ;
  19018. return 0;
  19019. }
  19020. _ACEOF
  19021. rm -f conftest.$ac_objext
  19022. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19023. (eval $ac_compile) 2>conftest.er1
  19024. ac_status=$?
  19025. grep -v '^ *+' conftest.er1 >conftest.err
  19026. rm -f conftest.er1
  19027. cat conftest.err >&5
  19028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19029. (exit $ac_status); } &&
  19030. { ac_try='test -z "$ac_c_werror_flag"
  19031. || test ! -s conftest.err'
  19032. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19033. (eval $ac_try) 2>&5
  19034. ac_status=$?
  19035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19036. (exit $ac_status); }; } &&
  19037. { ac_try='test -s conftest.$ac_objext'
  19038. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19039. (eval $ac_try) 2>&5
  19040. ac_status=$?
  19041. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19042. (exit $ac_status); }; }; then
  19043. ac_cv_member_struct_stat_st_rdev=yes
  19044. else
  19045. echo "$as_me: failed program was:" >&5
  19046. sed 's/^/| /' conftest.$ac_ext >&5
  19047. ac_cv_member_struct_stat_st_rdev=no
  19048. fi
  19049. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19050. fi
  19051. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19052. fi
  19053. echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
  19054. echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
  19055. if test $ac_cv_member_struct_stat_st_rdev = yes; then
  19056. cat >>confdefs.h <<_ACEOF
  19057. #define HAVE_STRUCT_STAT_ST_RDEV 1
  19058. _ACEOF
  19059. cat >>confdefs.h <<\_ACEOF
  19060. #define HAVE_ST_RDEV 1
  19061. _ACEOF
  19062. fi
  19063. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  19064. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  19065. if test "${ac_cv_struct_tm+set}" = set; then
  19066. echo $ECHO_N "(cached) $ECHO_C" >&6
  19067. else
  19068. cat >conftest.$ac_ext <<_ACEOF
  19069. /* confdefs.h. */
  19070. _ACEOF
  19071. cat confdefs.h >>conftest.$ac_ext
  19072. cat >>conftest.$ac_ext <<_ACEOF
  19073. /* end confdefs.h. */
  19074. #include <sys/types.h>
  19075. #include <time.h>
  19076. int
  19077. main ()
  19078. {
  19079. struct tm *tp; tp->tm_sec;
  19080. ;
  19081. return 0;
  19082. }
  19083. _ACEOF
  19084. rm -f conftest.$ac_objext
  19085. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19086. (eval $ac_compile) 2>conftest.er1
  19087. ac_status=$?
  19088. grep -v '^ *+' conftest.er1 >conftest.err
  19089. rm -f conftest.er1
  19090. cat conftest.err >&5
  19091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19092. (exit $ac_status); } &&
  19093. { ac_try='test -z "$ac_c_werror_flag"
  19094. || test ! -s conftest.err'
  19095. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19096. (eval $ac_try) 2>&5
  19097. ac_status=$?
  19098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19099. (exit $ac_status); }; } &&
  19100. { ac_try='test -s conftest.$ac_objext'
  19101. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19102. (eval $ac_try) 2>&5
  19103. ac_status=$?
  19104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19105. (exit $ac_status); }; }; then
  19106. ac_cv_struct_tm=time.h
  19107. else
  19108. echo "$as_me: failed program was:" >&5
  19109. sed 's/^/| /' conftest.$ac_ext >&5
  19110. ac_cv_struct_tm=sys/time.h
  19111. fi
  19112. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19113. fi
  19114. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  19115. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  19116. if test $ac_cv_struct_tm = sys/time.h; then
  19117. cat >>confdefs.h <<\_ACEOF
  19118. #define TM_IN_SYS_TIME 1
  19119. _ACEOF
  19120. fi
  19121. echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
  19122. echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
  19123. if test "${ac_cv_struct_tm_zone+set}" = set; then
  19124. echo $ECHO_N "(cached) $ECHO_C" >&6
  19125. else
  19126. cat >conftest.$ac_ext <<_ACEOF
  19127. /* confdefs.h. */
  19128. _ACEOF
  19129. cat confdefs.h >>conftest.$ac_ext
  19130. cat >>conftest.$ac_ext <<_ACEOF
  19131. /* end confdefs.h. */
  19132. #include <sys/types.h>
  19133. #include <$ac_cv_struct_tm>
  19134. int
  19135. main ()
  19136. {
  19137. struct tm tm; tm.tm_zone;
  19138. ;
  19139. return 0;
  19140. }
  19141. _ACEOF
  19142. rm -f conftest.$ac_objext
  19143. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19144. (eval $ac_compile) 2>conftest.er1
  19145. ac_status=$?
  19146. grep -v '^ *+' conftest.er1 >conftest.err
  19147. rm -f conftest.er1
  19148. cat conftest.err >&5
  19149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19150. (exit $ac_status); } &&
  19151. { ac_try='test -z "$ac_c_werror_flag"
  19152. || test ! -s conftest.err'
  19153. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19154. (eval $ac_try) 2>&5
  19155. ac_status=$?
  19156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19157. (exit $ac_status); }; } &&
  19158. { ac_try='test -s conftest.$ac_objext'
  19159. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19160. (eval $ac_try) 2>&5
  19161. ac_status=$?
  19162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19163. (exit $ac_status); }; }; then
  19164. ac_cv_struct_tm_zone=yes
  19165. else
  19166. echo "$as_me: failed program was:" >&5
  19167. sed 's/^/| /' conftest.$ac_ext >&5
  19168. ac_cv_struct_tm_zone=no
  19169. fi
  19170. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19171. fi
  19172. echo "$as_me:$LINENO: result: $ac_cv_struct_tm_zone" >&5
  19173. echo "${ECHO_T}$ac_cv_struct_tm_zone" >&6
  19174. if test "$ac_cv_struct_tm_zone" = yes; then
  19175. cat >>confdefs.h <<\_ACEOF
  19176. #define HAVE_TM_ZONE 1
  19177. _ACEOF
  19178. fi
  19179. echo "$as_me:$LINENO: checking for tzname" >&5
  19180. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  19181. if test "${ac_cv_var_tzname+set}" = set; then
  19182. echo $ECHO_N "(cached) $ECHO_C" >&6
  19183. else
  19184. cat >conftest.$ac_ext <<_ACEOF
  19185. /* confdefs.h. */
  19186. _ACEOF
  19187. cat confdefs.h >>conftest.$ac_ext
  19188. cat >>conftest.$ac_ext <<_ACEOF
  19189. /* end confdefs.h. */
  19190. #include <time.h>
  19191. #ifndef tzname /* For SGI. */
  19192. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  19193. #endif
  19194. int
  19195. main ()
  19196. {
  19197. atoi(*tzname);
  19198. ;
  19199. return 0;
  19200. }
  19201. _ACEOF
  19202. rm -f conftest.$ac_objext conftest$ac_exeext
  19203. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19204. (eval $ac_link) 2>conftest.er1
  19205. ac_status=$?
  19206. grep -v '^ *+' conftest.er1 >conftest.err
  19207. rm -f conftest.er1
  19208. cat conftest.err >&5
  19209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19210. (exit $ac_status); } &&
  19211. { ac_try='test -z "$ac_c_werror_flag"
  19212. || test ! -s conftest.err'
  19213. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19214. (eval $ac_try) 2>&5
  19215. ac_status=$?
  19216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19217. (exit $ac_status); }; } &&
  19218. { ac_try='test -s conftest$ac_exeext'
  19219. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19220. (eval $ac_try) 2>&5
  19221. ac_status=$?
  19222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19223. (exit $ac_status); }; }; then
  19224. ac_cv_var_tzname=yes
  19225. else
  19226. echo "$as_me: failed program was:" >&5
  19227. sed 's/^/| /' conftest.$ac_ext >&5
  19228. ac_cv_var_tzname=no
  19229. fi
  19230. rm -f conftest.err conftest.$ac_objext \
  19231. conftest$ac_exeext conftest.$ac_ext
  19232. fi
  19233. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  19234. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  19235. if test $ac_cv_var_tzname = yes; then
  19236. cat >>confdefs.h <<\_ACEOF
  19237. #define HAVE_TZNAME 1
  19238. _ACEOF
  19239. fi
  19240. echo "$as_me:$LINENO: checking for tm_isdst in struct tm" >&5
  19241. echo $ECHO_N "checking for tm_isdst in struct tm... $ECHO_C" >&6
  19242. if test "${ac_cv_struct_tm_isdst+set}" = set; then
  19243. echo $ECHO_N "(cached) $ECHO_C" >&6
  19244. else
  19245. cat >conftest.$ac_ext <<_ACEOF
  19246. /* confdefs.h. */
  19247. _ACEOF
  19248. cat confdefs.h >>conftest.$ac_ext
  19249. cat >>conftest.$ac_ext <<_ACEOF
  19250. /* end confdefs.h. */
  19251. #include <sys/types.h>
  19252. #include <$ac_cv_struct_tm>
  19253. int
  19254. main ()
  19255. {
  19256. struct tm tm; tm.tm_isdst;
  19257. ;
  19258. return 0;
  19259. }
  19260. _ACEOF
  19261. rm -f conftest.$ac_objext
  19262. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19263. (eval $ac_compile) 2>conftest.er1
  19264. ac_status=$?
  19265. grep -v '^ *+' conftest.er1 >conftest.err
  19266. rm -f conftest.er1
  19267. cat conftest.err >&5
  19268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19269. (exit $ac_status); } &&
  19270. { ac_try='test -z "$ac_c_werror_flag"
  19271. || test ! -s conftest.err'
  19272. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19273. (eval $ac_try) 2>&5
  19274. ac_status=$?
  19275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19276. (exit $ac_status); }; } &&
  19277. { ac_try='test -s conftest.$ac_objext'
  19278. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19279. (eval $ac_try) 2>&5
  19280. ac_status=$?
  19281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19282. (exit $ac_status); }; }; then
  19283. ac_cv_struct_tm_isdst=yes
  19284. else
  19285. echo "$as_me: failed program was:" >&5
  19286. sed 's/^/| /' conftest.$ac_ext >&5
  19287. ac_cv_struct_tm_isdst=no
  19288. fi
  19289. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19290. fi
  19291. echo "$as_me:$LINENO: result: $ac_cv_struct_tm_isdst" >&5
  19292. echo "${ECHO_T}$ac_cv_struct_tm_isdst" >&6
  19293. if test "$ac_cv_struct_tm_isdst" = yes; then
  19294. cat >>confdefs.h <<\_ACEOF
  19295. #define HAVE_TM_ISDST 1
  19296. _ACEOF
  19297. fi
  19298. echo "$as_me:$LINENO: checking for daylight" >&5
  19299. echo $ECHO_N "checking for daylight... $ECHO_C" >&6
  19300. if test "${ac_cv_var_daylight+set}" = set; then
  19301. echo $ECHO_N "(cached) $ECHO_C" >&6
  19302. else
  19303. cat >conftest.$ac_ext <<_ACEOF
  19304. /* confdefs.h. */
  19305. _ACEOF
  19306. cat confdefs.h >>conftest.$ac_ext
  19307. cat >>conftest.$ac_ext <<_ACEOF
  19308. /* end confdefs.h. */
  19309. #include <time.h>
  19310. #ifndef daylight /* In case IRIX #defines this, too */
  19311. extern int daylight;
  19312. #endif
  19313. int
  19314. main ()
  19315. {
  19316. atoi(daylight);
  19317. ;
  19318. return 0;
  19319. }
  19320. _ACEOF
  19321. rm -f conftest.$ac_objext conftest$ac_exeext
  19322. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19323. (eval $ac_link) 2>conftest.er1
  19324. ac_status=$?
  19325. grep -v '^ *+' conftest.er1 >conftest.err
  19326. rm -f conftest.er1
  19327. cat conftest.err >&5
  19328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19329. (exit $ac_status); } &&
  19330. { ac_try='test -z "$ac_c_werror_flag"
  19331. || test ! -s conftest.err'
  19332. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19333. (eval $ac_try) 2>&5
  19334. ac_status=$?
  19335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19336. (exit $ac_status); }; } &&
  19337. { ac_try='test -s conftest$ac_exeext'
  19338. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19339. (eval $ac_try) 2>&5
  19340. ac_status=$?
  19341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19342. (exit $ac_status); }; }; then
  19343. ac_cv_var_daylight=yes
  19344. else
  19345. echo "$as_me: failed program was:" >&5
  19346. sed 's/^/| /' conftest.$ac_ext >&5
  19347. ac_cv_var_daylight=no
  19348. fi
  19349. rm -f conftest.err conftest.$ac_objext \
  19350. conftest$ac_exeext conftest.$ac_ext
  19351. fi
  19352. echo "$as_me:$LINENO: result: $ac_cv_var_daylight" >&5
  19353. echo "${ECHO_T}$ac_cv_var_daylight" >&6
  19354. if test $ac_cv_var_daylight = yes; then
  19355. cat >>confdefs.h <<\_ACEOF
  19356. #define HAVE_DAYLIGHT 1
  19357. _ACEOF
  19358. fi
  19359. # Check whether --enable-largefile or --disable-largefile was given.
  19360. if test "${enable_largefile+set}" = set; then
  19361. enableval="$enable_largefile"
  19362. fi;
  19363. if test "$enable_largefile" != no; then
  19364. echo "$as_me:$LINENO: checking for special C compiler options needed for large files=
  19365. " >&5
  19366. echo $ECHO_N "checking for special C compiler options needed for large files=
  19367. ... $ECHO_C" >&6
  19368. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  19369. echo $ECHO_N "(cached) $ECHO_C" >&6
  19370. else
  19371. ac_cv_sys_largefile_CC=no
  19372. if test "$GCC" != yes; then
  19373. # IRIX 6.2 and later do not support large files by default,
  19374. # so use the C compiler's -n32 option if that helps.
  19375. cat >conftest.$ac_ext <<_ACEOF
  19376. /* confdefs.h. */
  19377. _ACEOF
  19378. cat confdefs.h >>conftest.$ac_ext
  19379. cat >>conftest.$ac_ext <<_ACEOF
  19380. /* end confdefs.h. */
  19381. #include <sys/types.h>
  19382. /* Check that off_t can represent 2**63 - 1 correctly.
  19383. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  19384. since some C++ compilers masquerading as C compilers
  19385. incorrectly reject 9223372036854775807. */
  19386. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19387. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19388. && LARGE_OFF_T % 2147483647 == 1)
  19389. ? 1 : -1];
  19390. int
  19391. main ()
  19392. {
  19393. ;
  19394. return 0;
  19395. }
  19396. _ACEOF
  19397. rm -f conftest.$ac_objext
  19398. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19399. (eval $ac_compile) 2>conftest.er1
  19400. ac_status=$?
  19401. grep -v '^ *+' conftest.er1 >conftest.err
  19402. rm -f conftest.er1
  19403. cat conftest.err >&5
  19404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19405. (exit $ac_status); } &&
  19406. { ac_try='test -z "$ac_c_werror_flag"
  19407. || test ! -s conftest.err'
  19408. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19409. (eval $ac_try) 2>&5
  19410. ac_status=$?
  19411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19412. (exit $ac_status); }; } &&
  19413. { ac_try='test -s conftest.$ac_objext'
  19414. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19415. (eval $ac_try) 2>&5
  19416. ac_status=$?
  19417. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19418. (exit $ac_status); }; }; then
  19419. :
  19420. else
  19421. echo "$as_me: failed program was:" >&5
  19422. sed 's/^/| /' conftest.$ac_ext >&5
  19423. ac_save_CC="$CC"
  19424. CC="$CC -n32"
  19425. cat >conftest.$ac_ext <<_ACEOF
  19426. /* confdefs.h. */
  19427. _ACEOF
  19428. cat confdefs.h >>conftest.$ac_ext
  19429. cat >>conftest.$ac_ext <<_ACEOF
  19430. /* end confdefs.h. */
  19431. #include <sys/types.h>
  19432. /* Check that off_t can represent 2**63 - 1 correctly.
  19433. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  19434. since some C++ compilers masquerading as C compilers
  19435. incorrectly reject 9223372036854775807. */
  19436. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19437. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19438. && LARGE_OFF_T % 2147483647 == 1)
  19439. ? 1 : -1];
  19440. int
  19441. main ()
  19442. {
  19443. ;
  19444. return 0;
  19445. }
  19446. _ACEOF
  19447. rm -f conftest.$ac_objext
  19448. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19449. (eval $ac_compile) 2>conftest.er1
  19450. ac_status=$?
  19451. grep -v '^ *+' conftest.er1 >conftest.err
  19452. rm -f conftest.er1
  19453. cat conftest.err >&5
  19454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19455. (exit $ac_status); } &&
  19456. { ac_try='test -z "$ac_c_werror_flag"
  19457. || test ! -s conftest.err'
  19458. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19459. (eval $ac_try) 2>&5
  19460. ac_status=$?
  19461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19462. (exit $ac_status); }; } &&
  19463. { ac_try='test -s conftest.$ac_objext'
  19464. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19465. (eval $ac_try) 2>&5
  19466. ac_status=$?
  19467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19468. (exit $ac_status); }; }; then
  19469. ac_cv_sys_largefile_CC=' -n32'
  19470. else
  19471. echo "$as_me: failed program was:" >&5
  19472. sed 's/^/| /' conftest.$ac_ext >&5
  19473. fi
  19474. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19475. CC="$ac_save_CC"
  19476. fi
  19477. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19478. fi
  19479. fi
  19480. echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  19481. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
  19482. if test "$ac_cv_sys_largefile_CC" != no; then
  19483. CC="$CC$ac_cv_sys_largefile_CC"
  19484. fi
  19485. echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  19486. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
  19487. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  19488. echo $ECHO_N "(cached) $ECHO_C" >&6
  19489. else
  19490. ac_cv_sys_file_offset_bits=no
  19491. cat >conftest.$ac_ext <<_ACEOF
  19492. /* confdefs.h. */
  19493. _ACEOF
  19494. cat confdefs.h >>conftest.$ac_ext
  19495. cat >>conftest.$ac_ext <<_ACEOF
  19496. /* end confdefs.h. */
  19497. #include <sys/types.h>
  19498. /* Check that off_t can represent 2**63 - 1 correctly.
  19499. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  19500. since some C++ compilers masquerading as C compilers
  19501. incorrectly reject 9223372036854775807. */
  19502. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19503. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19504. && LARGE_OFF_T % 2147483647 == 1)
  19505. ? 1 : -1];
  19506. int
  19507. main ()
  19508. {
  19509. ;
  19510. return 0;
  19511. }
  19512. _ACEOF
  19513. rm -f conftest.$ac_objext
  19514. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19515. (eval $ac_compile) 2>conftest.er1
  19516. ac_status=$?
  19517. grep -v '^ *+' conftest.er1 >conftest.err
  19518. rm -f conftest.er1
  19519. cat conftest.err >&5
  19520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19521. (exit $ac_status); } &&
  19522. { ac_try='test -z "$ac_c_werror_flag"
  19523. || test ! -s conftest.err'
  19524. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19525. (eval $ac_try) 2>&5
  19526. ac_status=$?
  19527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19528. (exit $ac_status); }; } &&
  19529. { ac_try='test -s conftest.$ac_objext'
  19530. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19531. (eval $ac_try) 2>&5
  19532. ac_status=$?
  19533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19534. (exit $ac_status); }; }; then
  19535. :
  19536. else
  19537. echo "$as_me: failed program was:" >&5
  19538. sed 's/^/| /' conftest.$ac_ext >&5
  19539. cat >conftest.$ac_ext <<_ACEOF
  19540. /* confdefs.h. */
  19541. _ACEOF
  19542. cat confdefs.h >>conftest.$ac_ext
  19543. cat >>conftest.$ac_ext <<_ACEOF
  19544. /* end confdefs.h. */
  19545. #define _FILE_OFFSET_BITS 64
  19546. #include <sys/types.h>
  19547. /* Check that off_t can represent 2**63 - 1 correctly.
  19548. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  19549. since some C++ compilers masquerading as C compilers
  19550. incorrectly reject 9223372036854775807. */
  19551. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19552. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19553. && LARGE_OFF_T % 2147483647 == 1)
  19554. ? 1 : -1];
  19555. int
  19556. main ()
  19557. {
  19558. ;
  19559. return 0;
  19560. }
  19561. _ACEOF
  19562. rm -f conftest.$ac_objext
  19563. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19564. (eval $ac_compile) 2>conftest.er1
  19565. ac_status=$?
  19566. grep -v '^ *+' conftest.er1 >conftest.err
  19567. rm -f conftest.er1
  19568. cat conftest.err >&5
  19569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19570. (exit $ac_status); } &&
  19571. { ac_try='test -z "$ac_c_werror_flag"
  19572. || test ! -s conftest.err'
  19573. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19574. (eval $ac_try) 2>&5
  19575. ac_status=$?
  19576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19577. (exit $ac_status); }; } &&
  19578. { ac_try='test -s conftest.$ac_objext'
  19579. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19580. (eval $ac_try) 2>&5
  19581. ac_status=$?
  19582. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19583. (exit $ac_status); }; }; then
  19584. ac_cv_sys_file_offset_bits=64
  19585. else
  19586. echo "$as_me: failed program was:" >&5
  19587. sed 's/^/| /' conftest.$ac_ext >&5
  19588. fi
  19589. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19590. fi
  19591. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19592. fi
  19593. echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  19594. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
  19595. if test "$ac_cv_sys_file_offset_bits" != no; then
  19596. cat >>confdefs.h <<_ACEOF
  19597. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  19598. _ACEOF
  19599. fi
  19600. echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  19601. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
  19602. if test "${ac_cv_sys_large_files+set}" = set; then
  19603. echo $ECHO_N "(cached) $ECHO_C" >&6
  19604. else
  19605. ac_cv_sys_large_files=no
  19606. cat >conftest.$ac_ext <<_ACEOF
  19607. /* confdefs.h. */
  19608. _ACEOF
  19609. cat confdefs.h >>conftest.$ac_ext
  19610. cat >>conftest.$ac_ext <<_ACEOF
  19611. /* end confdefs.h. */
  19612. #include <sys/types.h>
  19613. /* Check that off_t can represent 2**63 - 1 correctly.
  19614. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  19615. since some C++ compilers masquerading as C compilers
  19616. incorrectly reject 9223372036854775807. */
  19617. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19618. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19619. && LARGE_OFF_T % 2147483647 == 1)
  19620. ? 1 : -1];
  19621. int
  19622. main ()
  19623. {
  19624. ;
  19625. return 0;
  19626. }
  19627. _ACEOF
  19628. rm -f conftest.$ac_objext
  19629. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19630. (eval $ac_compile) 2>conftest.er1
  19631. ac_status=$?
  19632. grep -v '^ *+' conftest.er1 >conftest.err
  19633. rm -f conftest.er1
  19634. cat conftest.err >&5
  19635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19636. (exit $ac_status); } &&
  19637. { ac_try='test -z "$ac_c_werror_flag"
  19638. || test ! -s conftest.err'
  19639. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19640. (eval $ac_try) 2>&5
  19641. ac_status=$?
  19642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19643. (exit $ac_status); }; } &&
  19644. { ac_try='test -s conftest.$ac_objext'
  19645. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19646. (eval $ac_try) 2>&5
  19647. ac_status=$?
  19648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19649. (exit $ac_status); }; }; then
  19650. :
  19651. else
  19652. echo "$as_me: failed program was:" >&5
  19653. sed 's/^/| /' conftest.$ac_ext >&5
  19654. cat >conftest.$ac_ext <<_ACEOF
  19655. /* confdefs.h. */
  19656. _ACEOF
  19657. cat confdefs.h >>conftest.$ac_ext
  19658. cat >>conftest.$ac_ext <<_ACEOF
  19659. /* end confdefs.h. */
  19660. #define _LARGE_FILES 1
  19661. #include <sys/types.h>
  19662. /* Check that off_t can represent 2**63 - 1 correctly.
  19663. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  19664. since some C++ compilers masquerading as C compilers
  19665. incorrectly reject 9223372036854775807. */
  19666. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19667. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19668. && LARGE_OFF_T % 2147483647 == 1)
  19669. ? 1 : -1];
  19670. int
  19671. main ()
  19672. {
  19673. ;
  19674. return 0;
  19675. }
  19676. _ACEOF
  19677. rm -f conftest.$ac_objext
  19678. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19679. (eval $ac_compile) 2>conftest.er1
  19680. ac_status=$?
  19681. grep -v '^ *+' conftest.er1 >conftest.err
  19682. rm -f conftest.er1
  19683. cat conftest.err >&5
  19684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19685. (exit $ac_status); } &&
  19686. { ac_try='test -z "$ac_c_werror_flag"
  19687. || test ! -s conftest.err'
  19688. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19689. (eval $ac_try) 2>&5
  19690. ac_status=$?
  19691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19692. (exit $ac_status); }; } &&
  19693. { ac_try='test -s conftest.$ac_objext'
  19694. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19695. (eval $ac_try) 2>&5
  19696. ac_status=$?
  19697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19698. (exit $ac_status); }; }; then
  19699. ac_cv_sys_large_files=1
  19700. else
  19701. echo "$as_me: failed program was:" >&5
  19702. sed 's/^/| /' conftest.$ac_ext >&5
  19703. fi
  19704. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19705. fi
  19706. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19707. fi
  19708. echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  19709. echo "${ECHO_T}$ac_cv_sys_large_files" >&6
  19710. if test "$ac_cv_sys_large_files" != no; then
  19711. cat >>confdefs.h <<_ACEOF
  19712. #define _LARGE_FILES $ac_cv_sys_large_files
  19713. _ACEOF
  19714. fi
  19715. fi
  19716. echo "$as_me:$LINENO: checking for mbstate_t" >&5
  19717. echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
  19718. if test "${ac_cv_type_mbstate_t+set}" = set; then
  19719. echo $ECHO_N "(cached) $ECHO_C" >&6
  19720. else
  19721. cat >conftest.$ac_ext <<_ACEOF
  19722. /* confdefs.h. */
  19723. _ACEOF
  19724. cat confdefs.h >>conftest.$ac_ext
  19725. cat >>conftest.$ac_ext <<_ACEOF
  19726. /* end confdefs.h. */
  19727. $ac_includes_default
  19728. # include <wchar.h>
  19729. int
  19730. main ()
  19731. {
  19732. mbstate_t x; return sizeof x;
  19733. ;
  19734. return 0;
  19735. }
  19736. _ACEOF
  19737. rm -f conftest.$ac_objext
  19738. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19739. (eval $ac_compile) 2>conftest.er1
  19740. ac_status=$?
  19741. grep -v '^ *+' conftest.er1 >conftest.err
  19742. rm -f conftest.er1
  19743. cat conftest.err >&5
  19744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19745. (exit $ac_status); } &&
  19746. { ac_try='test -z "$ac_c_werror_flag"
  19747. || test ! -s conftest.err'
  19748. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19749. (eval $ac_try) 2>&5
  19750. ac_status=$?
  19751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19752. (exit $ac_status); }; } &&
  19753. { ac_try='test -s conftest.$ac_objext'
  19754. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19755. (eval $ac_try) 2>&5
  19756. ac_status=$?
  19757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19758. (exit $ac_status); }; }; then
  19759. ac_cv_type_mbstate_t=yes
  19760. else
  19761. echo "$as_me: failed program was:" >&5
  19762. sed 's/^/| /' conftest.$ac_ext >&5
  19763. ac_cv_type_mbstate_t=no
  19764. fi
  19765. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19766. fi
  19767. echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
  19768. echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
  19769. if test $ac_cv_type_mbstate_t = yes; then
  19770. cat >>confdefs.h <<\_ACEOF
  19771. #define HAVE_MBSTATE_T 1
  19772. _ACEOF
  19773. else
  19774. cat >>confdefs.h <<\_ACEOF
  19775. #define mbstate_t int
  19776. _ACEOF
  19777. fi
  19778. echo "$as_me:$LINENO: checking for uint8_t" >&5
  19779. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
  19780. if test "${ac_cv_type_uint8_t+set}" = set; then
  19781. echo $ECHO_N "(cached) $ECHO_C" >&6
  19782. else
  19783. cat >conftest.$ac_ext <<_ACEOF
  19784. /* confdefs.h. */
  19785. _ACEOF
  19786. cat confdefs.h >>conftest.$ac_ext
  19787. cat >>conftest.$ac_ext <<_ACEOF
  19788. /* end confdefs.h. */
  19789. #if HAVE_STDINT_H
  19790. #include <stdint.h>
  19791. #endif
  19792. #include <sys/types.h>
  19793. #if STDC_HEADERS
  19794. #include <stdlib.h>
  19795. #include <stddef.h>
  19796. #endif
  19797. _ACEOF
  19798. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19799. $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  19800. ac_cv_type_uint8_t=yes
  19801. else
  19802. ac_cv_type_uint8_t=no
  19803. fi
  19804. rm -f conftest*
  19805. fi
  19806. echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  19807. echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
  19808. if test $ac_cv_type_uint8_t = no; then
  19809. cat >>confdefs.h <<\_ACEOF
  19810. #define uint8_t unsigned char
  19811. _ACEOF
  19812. fi
  19813. echo "$as_me:$LINENO: checking for uint16_t" >&5
  19814. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
  19815. if test "${ac_cv_type_uint16_t+set}" = set; then
  19816. echo $ECHO_N "(cached) $ECHO_C" >&6
  19817. else
  19818. cat >conftest.$ac_ext <<_ACEOF
  19819. /* confdefs.h. */
  19820. _ACEOF
  19821. cat confdefs.h >>conftest.$ac_ext
  19822. cat >>conftest.$ac_ext <<_ACEOF
  19823. /* end confdefs.h. */
  19824. #if HAVE_STDINT_H
  19825. #include <stdint.h>
  19826. #endif
  19827. #include <sys/types.h>
  19828. #if STDC_HEADERS
  19829. #include <stdlib.h>
  19830. #include <stddef.h>
  19831. #endif
  19832. _ACEOF
  19833. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19834. $EGREP "(^|[^a-zA-Z_0-9])uint16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  19835. ac_cv_type_uint16_t=yes
  19836. else
  19837. ac_cv_type_uint16_t=no
  19838. fi
  19839. rm -f conftest*
  19840. fi
  19841. echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  19842. echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
  19843. if test $ac_cv_type_uint16_t = no; then
  19844. cat >>confdefs.h <<\_ACEOF
  19845. #define uint16_t unsigned short
  19846. _ACEOF
  19847. fi
  19848. echo "$as_me:$LINENO: checking for uint32_t" >&5
  19849. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
  19850. if test "${ac_cv_type_uint32_t+set}" = set; then
  19851. echo $ECHO_N "(cached) $ECHO_C" >&6
  19852. else
  19853. cat >conftest.$ac_ext <<_ACEOF
  19854. /* confdefs.h. */
  19855. _ACEOF
  19856. cat confdefs.h >>conftest.$ac_ext
  19857. cat >>conftest.$ac_ext <<_ACEOF
  19858. /* end confdefs.h. */
  19859. #if HAVE_STDINT_H
  19860. #include <stdint.h>
  19861. #endif
  19862. #include <sys/types.h>
  19863. #if STDC_HEADERS
  19864. #include <stdlib.h>
  19865. #include <stddef.h>
  19866. #endif
  19867. _ACEOF
  19868. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19869. $EGREP "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  19870. ac_cv_type_uint32_t=yes
  19871. else
  19872. ac_cv_type_uint32_t=no
  19873. fi
  19874. rm -f conftest*
  19875. fi
  19876. echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  19877. echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
  19878. if test $ac_cv_type_uint32_t = no; then
  19879. cat >>confdefs.h <<\_ACEOF
  19880. #define uint32_t unsigned int
  19881. _ACEOF
  19882. fi
  19883. echo "$as_me:$LINENO: checking for int32_t" >&5
  19884. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
  19885. if test "${ac_cv_type_int32_t+set}" = set; then
  19886. echo $ECHO_N "(cached) $ECHO_C" >&6
  19887. else
  19888. cat >conftest.$ac_ext <<_ACEOF
  19889. /* confdefs.h. */
  19890. _ACEOF
  19891. cat confdefs.h >>conftest.$ac_ext
  19892. cat >>conftest.$ac_ext <<_ACEOF
  19893. /* end confdefs.h. */
  19894. #if HAVE_STDINT_H
  19895. #include <stdint.h>
  19896. #endif
  19897. #include <sys/types.h>
  19898. #if STDC_HEADERS
  19899. #include <stdlib.h>
  19900. #include <stddef.h>
  19901. #endif
  19902. _ACEOF
  19903. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19904. $EGREP "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  19905. ac_cv_type_int32_t=yes
  19906. else
  19907. ac_cv_type_int32_t=no
  19908. fi
  19909. rm -f conftest*
  19910. fi
  19911. echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  19912. echo "${ECHO_T}$ac_cv_type_int32_t" >&6
  19913. if test $ac_cv_type_int32_t = no; then
  19914. cat >>confdefs.h <<\_ACEOF
  19915. #define int32_t int
  19916. _ACEOF
  19917. fi
  19918. echo "$as_me:$LINENO: checking for long long" >&5
  19919. echo $ECHO_N "checking for long long... $ECHO_C" >&6
  19920. if test "${ac_cv_c_long_long+set}" = set; then
  19921. echo $ECHO_N "(cached) $ECHO_C" >&6
  19922. else
  19923. if test "$GCC" = yes; then
  19924. ac_cv_c_long_long=yes
  19925. else
  19926. if test "$cross_compiling" = yes; then
  19927. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  19928. See \`config.log' for more details." >&5
  19929. echo "$as_me: error: cannot run test program while cross compiling
  19930. See \`config.log' for more details." >&2;}
  19931. { (exit 1); exit 1; }; }
  19932. else
  19933. cat >conftest.$ac_ext <<_ACEOF
  19934. /* confdefs.h. */
  19935. _ACEOF
  19936. cat confdefs.h >>conftest.$ac_ext
  19937. cat >>conftest.$ac_ext <<_ACEOF
  19938. /* end confdefs.h. */
  19939. int main() {
  19940. long long foo = 0;
  19941. exit(sizeof(long long) < sizeof(long)); }
  19942. _ACEOF
  19943. rm -f conftest$ac_exeext
  19944. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19945. (eval $ac_link) 2>&5
  19946. ac_status=$?
  19947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19948. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19949. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19950. (eval $ac_try) 2>&5
  19951. ac_status=$?
  19952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19953. (exit $ac_status); }; }; then
  19954. ac_cv_c_long_long=yes
  19955. else
  19956. echo "$as_me: program exited with status $ac_status" >&5
  19957. echo "$as_me: failed program was:" >&5
  19958. sed 's/^/| /' conftest.$ac_ext >&5
  19959. ( exit $ac_status )
  19960. ac_cv_c_long_long=no
  19961. fi
  19962. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19963. fi
  19964. fi
  19965. fi
  19966. echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
  19967. echo "${ECHO_T}$ac_cv_c_long_long" >&6
  19968. if test $ac_cv_c_long_long = yes; then
  19969. cat >>confdefs.h <<\_ACEOF
  19970. #define HAVE_LONG_LONG 1
  19971. _ACEOF
  19972. fi
  19973. if test $ac_cv_c_long_long = yes; then
  19974. long64='unsigned long long';
  19975. else
  19976. long64='unsigned long';
  19977. fi
  19978. echo "$as_me:$LINENO: checking for uint64_t" >&5
  19979. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
  19980. if test "${ac_cv_type_uint64_t+set}" = set; then
  19981. echo $ECHO_N "(cached) $ECHO_C" >&6
  19982. else
  19983. cat >conftest.$ac_ext <<_ACEOF
  19984. /* confdefs.h. */
  19985. _ACEOF
  19986. cat confdefs.h >>conftest.$ac_ext
  19987. cat >>conftest.$ac_ext <<_ACEOF
  19988. /* end confdefs.h. */
  19989. #if HAVE_STDINT_H
  19990. #include <stdint.h>
  19991. #endif
  19992. #include <sys/types.h>
  19993. #if STDC_HEADERS
  19994. #include <stdlib.h>
  19995. #include <stddef.h>
  19996. #endif
  19997. _ACEOF
  19998. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19999. $EGREP "(^|[^a-zA-Z_0-9])uint64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  20000. eval "ac_cv_type_uint64_t=yes"
  20001. else
  20002. eval "ac_cv_type_uint64_t=no"
  20003. fi
  20004. rm -f conftest*
  20005. fi
  20006. if eval "test \"`echo '$ac_cv_type_'uint64_t`\" = yes"; then
  20007. echo "$as_me:$LINENO: result: yes" >&5
  20008. echo "${ECHO_T}yes" >&6
  20009. else
  20010. echo "$as_me:$LINENO: result: no" >&5
  20011. echo "${ECHO_T}no" >&6
  20012. cat >>confdefs.h <<_ACEOF
  20013. #define uint64_t $long64
  20014. _ACEOF
  20015. fi
  20016. echo "$as_me:$LINENO: checking size of uint8_t" >&5
  20017. echo $ECHO_N "checking size of uint8_t... $ECHO_C" >&6
  20018. if test "${ac_cv_sizeof_uint8_t+set}" = set; then
  20019. echo $ECHO_N "(cached) $ECHO_C" >&6
  20020. else
  20021. if test "$cross_compiling" = yes; then
  20022. ac_cv_sizeof_uint8_t=0
  20023. else
  20024. cat >conftest.$ac_ext <<_ACEOF
  20025. /* confdefs.h. */
  20026. _ACEOF
  20027. cat confdefs.h >>conftest.$ac_ext
  20028. cat >>conftest.$ac_ext <<_ACEOF
  20029. /* end confdefs.h. */
  20030. #if HAVE_STDINT_H
  20031. #include <stdint.h>
  20032. #endif
  20033. #include <sys/types.h>
  20034. #ifdef STDC_HEADERS
  20035. #include <stdlib.h>
  20036. #endif
  20037. #include <stdio.h>
  20038. main()
  20039. {
  20040. FILE *f=fopen("conftestval", "w");
  20041. if (!f) exit(1);
  20042. fprintf(f, "%d\n", sizeof(uint8_t));
  20043. exit(0);
  20044. }
  20045. _ACEOF
  20046. rm -f conftest$ac_exeext
  20047. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20048. (eval $ac_link) 2>&5
  20049. ac_status=$?
  20050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20051. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20052. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20053. (eval $ac_try) 2>&5
  20054. ac_status=$?
  20055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20056. (exit $ac_status); }; }; then
  20057. ac_cv_sizeof_uint8_t=`cat conftestval`
  20058. else
  20059. echo "$as_me: program exited with status $ac_status" >&5
  20060. echo "$as_me: failed program was:" >&5
  20061. sed 's/^/| /' conftest.$ac_ext >&5
  20062. ( exit $ac_status )
  20063. ac_cv_sizeof_uint8_t=0
  20064. fi
  20065. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20066. fi
  20067. fi
  20068. echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint8_t" >&5
  20069. echo "${ECHO_T}$ac_cv_sizeof_uint8_t" >&6
  20070. cat >>confdefs.h <<_ACEOF
  20071. #define SIZEOF_UINT8_T $ac_cv_sizeof_uint8_t
  20072. _ACEOF
  20073. echo "$as_me:$LINENO: checking size of uint16_t" >&5
  20074. echo $ECHO_N "checking size of uint16_t... $ECHO_C" >&6
  20075. if test "${ac_cv_sizeof_uint16_t+set}" = set; then
  20076. echo $ECHO_N "(cached) $ECHO_C" >&6
  20077. else
  20078. if test "$cross_compiling" = yes; then
  20079. ac_cv_sizeof_uint16_t=0
  20080. else
  20081. cat >conftest.$ac_ext <<_ACEOF
  20082. /* confdefs.h. */
  20083. _ACEOF
  20084. cat confdefs.h >>conftest.$ac_ext
  20085. cat >>conftest.$ac_ext <<_ACEOF
  20086. /* end confdefs.h. */
  20087. #if HAVE_STDINT_H
  20088. #include <stdint.h>
  20089. #endif
  20090. #include <sys/types.h>
  20091. #ifdef STDC_HEADERS
  20092. #include <stdlib.h>
  20093. #endif
  20094. #include <stdio.h>
  20095. main()
  20096. {
  20097. FILE *f=fopen("conftestval", "w");
  20098. if (!f) exit(1);
  20099. fprintf(f, "%d\n", sizeof(uint16_t));
  20100. exit(0);
  20101. }
  20102. _ACEOF
  20103. rm -f conftest$ac_exeext
  20104. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20105. (eval $ac_link) 2>&5
  20106. ac_status=$?
  20107. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20108. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20109. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20110. (eval $ac_try) 2>&5
  20111. ac_status=$?
  20112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20113. (exit $ac_status); }; }; then
  20114. ac_cv_sizeof_uint16_t=`cat conftestval`
  20115. else
  20116. echo "$as_me: program exited with status $ac_status" >&5
  20117. echo "$as_me: failed program was:" >&5
  20118. sed 's/^/| /' conftest.$ac_ext >&5
  20119. ( exit $ac_status )
  20120. ac_cv_sizeof_uint16_t=0
  20121. fi
  20122. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20123. fi
  20124. fi
  20125. echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint16_t" >&5
  20126. echo "${ECHO_T}$ac_cv_sizeof_uint16_t" >&6
  20127. cat >>confdefs.h <<_ACEOF
  20128. #define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
  20129. _ACEOF
  20130. echo "$as_me:$LINENO: checking size of uint32_t" >&5
  20131. echo $ECHO_N "checking size of uint32_t... $ECHO_C" >&6
  20132. if test "${ac_cv_sizeof_uint32_t+set}" = set; then
  20133. echo $ECHO_N "(cached) $ECHO_C" >&6
  20134. else
  20135. if test "$cross_compiling" = yes; then
  20136. ac_cv_sizeof_uint32_t=0
  20137. else
  20138. cat >conftest.$ac_ext <<_ACEOF
  20139. /* confdefs.h. */
  20140. _ACEOF
  20141. cat confdefs.h >>conftest.$ac_ext
  20142. cat >>conftest.$ac_ext <<_ACEOF
  20143. /* end confdefs.h. */
  20144. #if HAVE_STDINT_H
  20145. #include <stdint.h>
  20146. #endif
  20147. #include <sys/types.h>
  20148. #ifdef STDC_HEADERS
  20149. #include <stdlib.h>
  20150. #endif
  20151. #include <stdio.h>
  20152. main()
  20153. {
  20154. FILE *f=fopen("conftestval", "w");
  20155. if (!f) exit(1);
  20156. fprintf(f, "%d\n", sizeof(uint32_t));
  20157. exit(0);
  20158. }
  20159. _ACEOF
  20160. rm -f conftest$ac_exeext
  20161. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20162. (eval $ac_link) 2>&5
  20163. ac_status=$?
  20164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20165. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20166. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20167. (eval $ac_try) 2>&5
  20168. ac_status=$?
  20169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20170. (exit $ac_status); }; }; then
  20171. ac_cv_sizeof_uint32_t=`cat conftestval`
  20172. else
  20173. echo "$as_me: program exited with status $ac_status" >&5
  20174. echo "$as_me: failed program was:" >&5
  20175. sed 's/^/| /' conftest.$ac_ext >&5
  20176. ( exit $ac_status )
  20177. ac_cv_sizeof_uint32_t=0
  20178. fi
  20179. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20180. fi
  20181. fi
  20182. echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint32_t" >&5
  20183. echo "${ECHO_T}$ac_cv_sizeof_uint32_t" >&6
  20184. cat >>confdefs.h <<_ACEOF
  20185. #define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
  20186. _ACEOF
  20187. echo "$as_me:$LINENO: checking size of uint64_t" >&5
  20188. echo $ECHO_N "checking size of uint64_t... $ECHO_C" >&6
  20189. if test "${ac_cv_sizeof_uint64_t+set}" = set; then
  20190. echo $ECHO_N "(cached) $ECHO_C" >&6
  20191. else
  20192. if test "$cross_compiling" = yes; then
  20193. ac_cv_sizeof_uint64_t=0
  20194. else
  20195. cat >conftest.$ac_ext <<_ACEOF
  20196. /* confdefs.h. */
  20197. _ACEOF
  20198. cat confdefs.h >>conftest.$ac_ext
  20199. cat >>conftest.$ac_ext <<_ACEOF
  20200. /* end confdefs.h. */
  20201. #if HAVE_STDINT_H
  20202. #include <stdint.h>
  20203. #endif
  20204. #include <sys/types.h>
  20205. #ifdef STDC_HEADERS
  20206. #include <stdlib.h>
  20207. #endif
  20208. #include <stdio.h>
  20209. main()
  20210. {
  20211. FILE *f=fopen("conftestval", "w");
  20212. if (!f) exit(1);
  20213. fprintf(f, "%d\n", sizeof(uint64_t));
  20214. exit(0);
  20215. }
  20216. _ACEOF
  20217. rm -f conftest$ac_exeext
  20218. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20219. (eval $ac_link) 2>&5
  20220. ac_status=$?
  20221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20222. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20223. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20224. (eval $ac_try) 2>&5
  20225. ac_status=$?
  20226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20227. (exit $ac_status); }; }; then
  20228. ac_cv_sizeof_uint64_t=`cat conftestval`
  20229. else
  20230. echo "$as_me: program exited with status $ac_status" >&5
  20231. echo "$as_me: failed program was:" >&5
  20232. sed 's/^/| /' conftest.$ac_ext >&5
  20233. ( exit $ac_status )
  20234. ac_cv_sizeof_uint64_t=0
  20235. fi
  20236. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20237. fi
  20238. fi
  20239. echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint64_t" >&5
  20240. echo "${ECHO_T}$ac_cv_sizeof_uint64_t" >&6
  20241. cat >>confdefs.h <<_ACEOF
  20242. #define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t
  20243. _ACEOF
  20244. for ac_func in mmap strerror strndup strtoul mbrtowc mkstemp getopt_long utimes utime wcwidth snprintf vsnprintf
  20245. do
  20246. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20247. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20248. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20249. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20250. echo $ECHO_N "(cached) $ECHO_C" >&6
  20251. else
  20252. cat >conftest.$ac_ext <<_ACEOF
  20253. /* confdefs.h. */
  20254. _ACEOF
  20255. cat confdefs.h >>conftest.$ac_ext
  20256. cat >>conftest.$ac_ext <<_ACEOF
  20257. /* end confdefs.h. */
  20258. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20259. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20260. #define $ac_func innocuous_$ac_func
  20261. /* System header to define __stub macros and hopefully few prototypes,
  20262. which can conflict with char $ac_func (); below.
  20263. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20264. <limits.h> exists even on freestanding compilers. */
  20265. #ifdef __STDC__
  20266. # include <limits.h>
  20267. #else
  20268. # include <assert.h>
  20269. #endif
  20270. #undef $ac_func
  20271. /* Override any gcc2 internal prototype to avoid an error. */
  20272. #ifdef __cplusplus
  20273. extern "C"
  20274. {
  20275. #endif
  20276. /* We use char because int might match the return type of a gcc2
  20277. builtin and then its argument prototype would still apply. */
  20278. char $ac_func ();
  20279. /* The GNU C library defines this for functions which it implements
  20280. to always fail with ENOSYS. Some functions are actually named
  20281. something starting with __ and the normal name is an alias. */
  20282. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20283. choke me
  20284. #else
  20285. char (*f) () = $ac_func;
  20286. #endif
  20287. #ifdef __cplusplus
  20288. }
  20289. #endif
  20290. int
  20291. main ()
  20292. {
  20293. return f != $ac_func;
  20294. ;
  20295. return 0;
  20296. }
  20297. _ACEOF
  20298. rm -f conftest.$ac_objext conftest$ac_exeext
  20299. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20300. (eval $ac_link) 2>conftest.er1
  20301. ac_status=$?
  20302. grep -v '^ *+' conftest.er1 >conftest.err
  20303. rm -f conftest.er1
  20304. cat conftest.err >&5
  20305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20306. (exit $ac_status); } &&
  20307. { ac_try='test -z "$ac_c_werror_flag"
  20308. || test ! -s conftest.err'
  20309. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20310. (eval $ac_try) 2>&5
  20311. ac_status=$?
  20312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20313. (exit $ac_status); }; } &&
  20314. { ac_try='test -s conftest$ac_exeext'
  20315. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20316. (eval $ac_try) 2>&5
  20317. ac_status=$?
  20318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20319. (exit $ac_status); }; }; then
  20320. eval "$as_ac_var=yes"
  20321. else
  20322. echo "$as_me: failed program was:" >&5
  20323. sed 's/^/| /' conftest.$ac_ext >&5
  20324. eval "$as_ac_var=no"
  20325. fi
  20326. rm -f conftest.err conftest.$ac_objext \
  20327. conftest$ac_exeext conftest.$ac_ext
  20328. fi
  20329. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20330. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20331. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20332. cat >>confdefs.h <<_ACEOF
  20333. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20334. _ACEOF
  20335. fi
  20336. done
  20337. echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
  20338. echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
  20339. if test "${ac_cv_lib_z_gzopen+set}" = set; then
  20340. echo $ECHO_N "(cached) $ECHO_C" >&6
  20341. else
  20342. ac_check_lib_save_LIBS=$LIBS
  20343. LIBS="-lz $LIBS"
  20344. cat >conftest.$ac_ext <<_ACEOF
  20345. /* confdefs.h. */
  20346. _ACEOF
  20347. cat confdefs.h >>conftest.$ac_ext
  20348. cat >>conftest.$ac_ext <<_ACEOF
  20349. /* end confdefs.h. */
  20350. /* Override any gcc2 internal prototype to avoid an error. */
  20351. #ifdef __cplusplus
  20352. extern "C"
  20353. #endif
  20354. /* We use char because int might match the return type of a gcc2
  20355. builtin and then its argument prototype would still apply. */
  20356. char gzopen ();
  20357. int
  20358. main ()
  20359. {
  20360. gzopen ();
  20361. ;
  20362. return 0;
  20363. }
  20364. _ACEOF
  20365. rm -f conftest.$ac_objext conftest$ac_exeext
  20366. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20367. (eval $ac_link) 2>conftest.er1
  20368. ac_status=$?
  20369. grep -v '^ *+' conftest.er1 >conftest.err
  20370. rm -f conftest.er1
  20371. cat conftest.err >&5
  20372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20373. (exit $ac_status); } &&
  20374. { ac_try='test -z "$ac_c_werror_flag"
  20375. || test ! -s conftest.err'
  20376. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20377. (eval $ac_try) 2>&5
  20378. ac_status=$?
  20379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20380. (exit $ac_status); }; } &&
  20381. { ac_try='test -s conftest$ac_exeext'
  20382. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20383. (eval $ac_try) 2>&5
  20384. ac_status=$?
  20385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20386. (exit $ac_status); }; }; then
  20387. ac_cv_lib_z_gzopen=yes
  20388. else
  20389. echo "$as_me: failed program was:" >&5
  20390. sed 's/^/| /' conftest.$ac_ext >&5
  20391. ac_cv_lib_z_gzopen=no
  20392. fi
  20393. rm -f conftest.err conftest.$ac_objext \
  20394. conftest$ac_exeext conftest.$ac_ext
  20395. LIBS=$ac_check_lib_save_LIBS
  20396. fi
  20397. echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
  20398. echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
  20399. if test $ac_cv_lib_z_gzopen = yes; then
  20400. cat >>confdefs.h <<_ACEOF
  20401. #define HAVE_LIBZ 1
  20402. _ACEOF
  20403. LIBS="-lz $LIBS"
  20404. fi
  20405. if test "$cross_compiling" = yes; then
  20406. IS_CROSS_COMPILE_TRUE=
  20407. IS_CROSS_COMPILE_FALSE='#'
  20408. else
  20409. IS_CROSS_COMPILE_TRUE='#'
  20410. IS_CROSS_COMPILE_FALSE=
  20411. fi
  20412. ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile doc/Makefile python/Makefile"
  20413. cat >confcache <<\_ACEOF
  20414. # This file is a shell script that caches the results of configure
  20415. # tests run on this system so they can be shared between configure
  20416. # scripts and configure runs, see configure's option --config-cache.
  20417. # It is not useful on other systems. If it contains results you don't
  20418. # want to keep, you may remove or edit it.
  20419. #
  20420. # config.status only pays attention to the cache file if you give it
  20421. # the --recheck option to rerun configure.
  20422. #
  20423. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20424. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20425. # following values.
  20426. _ACEOF
  20427. # The following way of writing the cache mishandles newlines in values,
  20428. # but we know of no workaround that is simple, portable, and efficient.
  20429. # So, don't put newlines in cache variables' values.
  20430. # Ultrix sh set writes to stderr and can't be redirected directly,
  20431. # and sets the high bit in the cache file unless we assign to the vars.
  20432. {
  20433. (set) 2>&1 |
  20434. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  20435. *ac_space=\ *)
  20436. # `set' does not quote correctly, so add quotes (double-quote
  20437. # substitution turns \\\\ into \\, and sed turns \\ into \).
  20438. sed -n \
  20439. "s/'/'\\\\''/g;
  20440. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20441. ;;
  20442. *)
  20443. # `set' quotes correctly as required by POSIX, so do not add quotes.
  20444. sed -n \
  20445. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  20446. ;;
  20447. esac;
  20448. } |
  20449. sed '
  20450. t clear
  20451. : clear
  20452. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20453. t end
  20454. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20455. : end' >>confcache
  20456. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  20457. if test -w $cache_file; then
  20458. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  20459. cat confcache >$cache_file
  20460. else
  20461. echo "not updating unwritable cache $cache_file"
  20462. fi
  20463. fi
  20464. rm -f confcache
  20465. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  20466. # Let make expand exec_prefix.
  20467. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  20468. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  20469. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  20470. # trailing colons and then remove the whole line if VPATH becomes empty
  20471. # (actually we leave an empty line to preserve line numbers).
  20472. if test "x$srcdir" = x.; then
  20473. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  20474. s/:*\$(srcdir):*/:/;
  20475. s/:*\${srcdir}:*/:/;
  20476. s/:*@srcdir@:*/:/;
  20477. s/^\([^=]*=[ ]*\):*/\1/;
  20478. s/:*$//;
  20479. s/^[^=]*=[ ]*$//;
  20480. }'
  20481. fi
  20482. DEFS=-DHAVE_CONFIG_H
  20483. ac_libobjs=
  20484. ac_ltlibobjs=
  20485. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  20486. # 1. Remove the extension, and $U if already installed.
  20487. ac_i=`echo "$ac_i" |
  20488. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  20489. # 2. Add them.
  20490. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  20491. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  20492. done
  20493. LIBOBJS=$ac_libobjs
  20494. LTLIBOBJS=$ac_ltlibobjs
  20495. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  20496. { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  20497. Usually this means the macro was only invoked conditionally." >&5
  20498. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  20499. Usually this means the macro was only invoked conditionally." >&2;}
  20500. { (exit 1); exit 1; }; }
  20501. fi
  20502. if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
  20503. { { echo "$as_me:$LINENO: error: conditional \"FSECT5\" was never defined.
  20504. Usually this means the macro was only invoked conditionally." >&5
  20505. echo "$as_me: error: conditional \"FSECT5\" was never defined.
  20506. Usually this means the macro was only invoked conditionally." >&2;}
  20507. { (exit 1); exit 1; }; }
  20508. fi
  20509. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  20510. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  20511. Usually this means the macro was only invoked conditionally." >&5
  20512. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  20513. Usually this means the macro was only invoked conditionally." >&2;}
  20514. { (exit 1); exit 1; }; }
  20515. fi
  20516. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  20517. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  20518. Usually this means the macro was only invoked conditionally." >&5
  20519. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  20520. Usually this means the macro was only invoked conditionally." >&2;}
  20521. { (exit 1); exit 1; }; }
  20522. fi
  20523. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  20524. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  20525. Usually this means the macro was only invoked conditionally." >&5
  20526. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  20527. Usually this means the macro was only invoked conditionally." >&2;}
  20528. { (exit 1); exit 1; }; }
  20529. fi
  20530. if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
  20531. { { echo "$as_me:$LINENO: error: conditional \"IS_CROSS_COMPILE\" was never defined.
  20532. Usually this means the macro was only invoked conditionally." >&5
  20533. echo "$as_me: error: conditional \"IS_CROSS_COMPILE\" was never defined.
  20534. Usually this means the macro was only invoked conditionally." >&2;}
  20535. { (exit 1); exit 1; }; }
  20536. fi
  20537. : ${CONFIG_STATUS=./config.status}
  20538. ac_clean_files_save=$ac_clean_files
  20539. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  20540. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  20541. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  20542. cat >$CONFIG_STATUS <<_ACEOF
  20543. #! $SHELL
  20544. # Generated by $as_me.
  20545. # Run this file to recreate the current configuration.
  20546. # Compiler output produced by configure, useful for debugging
  20547. # configure, is in config.log if it exists.
  20548. debug=false
  20549. ac_cs_recheck=false
  20550. ac_cs_silent=false
  20551. SHELL=\${CONFIG_SHELL-$SHELL}
  20552. _ACEOF
  20553. cat >>$CONFIG_STATUS <<\_ACEOF
  20554. ## --------------------- ##
  20555. ## M4sh Initialization. ##
  20556. ## --------------------- ##
  20557. # Be Bourne compatible
  20558. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  20559. emulate sh
  20560. NULLCMD=:
  20561. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20562. # is contrary to our usage. Disable this feature.
  20563. alias -g '${1+"$@"}'='"$@"'
  20564. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  20565. set -o posix
  20566. fi
  20567. DUALCASE=1; export DUALCASE # for MKS sh
  20568. # Support unset when possible.
  20569. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  20570. as_unset=unset
  20571. else
  20572. as_unset=false
  20573. fi
  20574. # Work around bugs in pre-3.0 UWIN ksh.
  20575. $as_unset ENV MAIL MAILPATH
  20576. PS1='$ '
  20577. PS2='> '
  20578. PS4='+ '
  20579. # NLS nuisances.
  20580. for as_var in \
  20581. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  20582. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  20583. LC_TELEPHONE LC_TIME
  20584. do
  20585. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  20586. eval $as_var=C; export $as_var
  20587. else
  20588. $as_unset $as_var
  20589. fi
  20590. done
  20591. # Required to use basename.
  20592. if expr a : '\(a\)' >/dev/null 2>&1; then
  20593. as_expr=expr
  20594. else
  20595. as_expr=false
  20596. fi
  20597. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  20598. as_basename=basename
  20599. else
  20600. as_basename=false
  20601. fi
  20602. # Name of the executable.
  20603. as_me=`$as_basename "$0" ||
  20604. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20605. X"$0" : 'X\(//\)$' \| \
  20606. X"$0" : 'X\(/\)$' \| \
  20607. . : '\(.\)' 2>/dev/null ||
  20608. echo X/"$0" |
  20609. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  20610. /^X\/\(\/\/\)$/{ s//\1/; q; }
  20611. /^X\/\(\/\).*/{ s//\1/; q; }
  20612. s/.*/./; q'`
  20613. # PATH needs CR, and LINENO needs CR and PATH.
  20614. # Avoid depending upon Character Ranges.
  20615. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  20616. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20617. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20618. as_cr_digits='0123456789'
  20619. as_cr_alnum=$as_cr_Letters$as_cr_digits
  20620. # The user is always right.
  20621. if test "${PATH_SEPARATOR+set}" != set; then
  20622. echo "#! /bin/sh" >conf$$.sh
  20623. echo "exit 0" >>conf$$.sh
  20624. chmod +x conf$$.sh
  20625. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  20626. PATH_SEPARATOR=';'
  20627. else
  20628. PATH_SEPARATOR=:
  20629. fi
  20630. rm -f conf$$.sh
  20631. fi
  20632. as_lineno_1=$LINENO
  20633. as_lineno_2=$LINENO
  20634. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  20635. test "x$as_lineno_1" != "x$as_lineno_2" &&
  20636. test "x$as_lineno_3" = "x$as_lineno_2" || {
  20637. # Find who we are. Look in the path if we contain no path at all
  20638. # relative or not.
  20639. case $0 in
  20640. *[\\/]* ) as_myself=$0 ;;
  20641. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20642. for as_dir in $PATH
  20643. do
  20644. IFS=$as_save_IFS
  20645. test -z "$as_dir" && as_dir=.
  20646. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  20647. done
  20648. ;;
  20649. esac
  20650. # We did not find ourselves, most probably we were run as `sh COMMAND'
  20651. # in which case we are not to be found in the path.
  20652. if test "x$as_myself" = x; then
  20653. as_myself=$0
  20654. fi
  20655. if test ! -f "$as_myself"; then
  20656. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  20657. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  20658. { (exit 1); exit 1; }; }
  20659. fi
  20660. case $CONFIG_SHELL in
  20661. '')
  20662. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20663. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  20664. do
  20665. IFS=$as_save_IFS
  20666. test -z "$as_dir" && as_dir=.
  20667. for as_base in sh bash ksh sh5; do
  20668. case $as_dir in
  20669. /*)
  20670. if ("$as_dir/$as_base" -c '
  20671. as_lineno_1=$LINENO
  20672. as_lineno_2=$LINENO
  20673. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  20674. test "x$as_lineno_1" != "x$as_lineno_2" &&
  20675. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  20676. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  20677. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  20678. CONFIG_SHELL=$as_dir/$as_base
  20679. export CONFIG_SHELL
  20680. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  20681. fi;;
  20682. esac
  20683. done
  20684. done
  20685. ;;
  20686. esac
  20687. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  20688. # uniformly replaced by the line number. The first 'sed' inserts a
  20689. # line-number line before each line; the second 'sed' does the real
  20690. # work. The second script uses 'N' to pair each line-number line
  20691. # with the numbered line, and appends trailing '-' during
  20692. # substitution so that $LINENO is not a special case at line end.
  20693. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  20694. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  20695. sed '=' <$as_myself |
  20696. sed '
  20697. N
  20698. s,$,-,
  20699. : loop
  20700. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  20701. t loop
  20702. s,-$,,
  20703. s,^['$as_cr_digits']*\n,,
  20704. ' >$as_me.lineno &&
  20705. chmod +x $as_me.lineno ||
  20706. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  20707. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  20708. { (exit 1); exit 1; }; }
  20709. # Don't try to exec as it changes $[0], causing all sort of problems
  20710. # (the dirname of $[0] is not the place where we might find the
  20711. # original and so on. Autoconf is especially sensible to this).
  20712. . ./$as_me.lineno
  20713. # Exit status is that of the last command.
  20714. exit
  20715. }
  20716. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  20717. *c*,-n*) ECHO_N= ECHO_C='
  20718. ' ECHO_T=' ' ;;
  20719. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  20720. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  20721. esac
  20722. if expr a : '\(a\)' >/dev/null 2>&1; then
  20723. as_expr=expr
  20724. else
  20725. as_expr=false
  20726. fi
  20727. rm -f conf$$ conf$$.exe conf$$.file
  20728. echo >conf$$.file
  20729. if ln -s conf$$.file conf$$ 2>/dev/null; then
  20730. # We could just check for DJGPP; but this test a) works b) is more generic
  20731. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  20732. if test -f conf$$.exe; then
  20733. # Don't use ln at all; we don't have any links
  20734. as_ln_s='cp -p'
  20735. else
  20736. as_ln_s='ln -s'
  20737. fi
  20738. elif ln conf$$.file conf$$ 2>/dev/null; then
  20739. as_ln_s=ln
  20740. else
  20741. as_ln_s='cp -p'
  20742. fi
  20743. rm -f conf$$ conf$$.exe conf$$.file
  20744. if mkdir -p . 2>/dev/null; then
  20745. as_mkdir_p=:
  20746. else
  20747. test -d ./-p && rmdir ./-p
  20748. as_mkdir_p=false
  20749. fi
  20750. as_executable_p="test -f"
  20751. # Sed expression to map a string onto a valid CPP name.
  20752. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  20753. # Sed expression to map a string onto a valid variable name.
  20754. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  20755. # IFS
  20756. # We need space, tab and new line, in precisely that order.
  20757. as_nl='
  20758. '
  20759. IFS=" $as_nl"
  20760. # CDPATH.
  20761. $as_unset CDPATH
  20762. exec 6>&1
  20763. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  20764. # report actual input values of CONFIG_FILES etc. instead of their
  20765. # values after options handling. Logging --version etc. is OK.
  20766. exec 5>>config.log
  20767. {
  20768. echo
  20769. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  20770. ## Running $as_me. ##
  20771. _ASBOX
  20772. } >&5
  20773. cat >&5 <<_CSEOF
  20774. This file was extended by $as_me, which was
  20775. generated by GNU Autoconf 2.59. Invocation command line was
  20776. CONFIG_FILES = $CONFIG_FILES
  20777. CONFIG_HEADERS = $CONFIG_HEADERS
  20778. CONFIG_LINKS = $CONFIG_LINKS
  20779. CONFIG_COMMANDS = $CONFIG_COMMANDS
  20780. $ $0 $@
  20781. _CSEOF
  20782. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  20783. echo >&5
  20784. _ACEOF
  20785. # Files that config.status was made for.
  20786. if test -n "$ac_config_files"; then
  20787. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  20788. fi
  20789. if test -n "$ac_config_headers"; then
  20790. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  20791. fi
  20792. if test -n "$ac_config_links"; then
  20793. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  20794. fi
  20795. if test -n "$ac_config_commands"; then
  20796. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  20797. fi
  20798. cat >>$CONFIG_STATUS <<\_ACEOF
  20799. ac_cs_usage="\
  20800. \`$as_me' instantiates files from templates according to the
  20801. current configuration.
  20802. Usage: $0 [OPTIONS] [FILE]...
  20803. -h, --help print this help, then exit
  20804. -V, --version print version number, then exit
  20805. -q, --quiet do not print progress messages
  20806. -d, --debug don't remove temporary files
  20807. --recheck update $as_me by reconfiguring in the same conditions
  20808. --file=FILE[:TEMPLATE]
  20809. instantiate the configuration file FILE
  20810. --header=FILE[:TEMPLATE]
  20811. instantiate the configuration header FILE
  20812. Configuration files:
  20813. $config_files
  20814. Configuration headers:
  20815. $config_headers
  20816. Configuration commands:
  20817. $config_commands
  20818. Report bugs to <bug-autoconf@gnu.org>."
  20819. _ACEOF
  20820. cat >>$CONFIG_STATUS <<_ACEOF
  20821. ac_cs_version="\\
  20822. config.status
  20823. configured by $0, generated by GNU Autoconf 2.59,
  20824. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  20825. Copyright (C) 2003 Free Software Foundation, Inc.
  20826. This config.status script is free software; the Free Software Foundation
  20827. gives unlimited permission to copy, distribute and modify it."
  20828. srcdir=$srcdir
  20829. INSTALL="$INSTALL"
  20830. _ACEOF
  20831. cat >>$CONFIG_STATUS <<\_ACEOF
  20832. # If no file are specified by the user, then we need to provide default
  20833. # value. By we need to know if files were specified by the user.
  20834. ac_need_defaults=:
  20835. while test $# != 0
  20836. do
  20837. case $1 in
  20838. --*=*)
  20839. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  20840. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  20841. ac_shift=:
  20842. ;;
  20843. -*)
  20844. ac_option=$1
  20845. ac_optarg=$2
  20846. ac_shift=shift
  20847. ;;
  20848. *) # This is not an option, so the user has probably given explicit
  20849. # arguments.
  20850. ac_option=$1
  20851. ac_need_defaults=false;;
  20852. esac
  20853. case $ac_option in
  20854. # Handling of the options.
  20855. _ACEOF
  20856. cat >>$CONFIG_STATUS <<\_ACEOF
  20857. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  20858. ac_cs_recheck=: ;;
  20859. --version | --vers* | -V )
  20860. echo "$ac_cs_version"; exit 0 ;;
  20861. --he | --h)
  20862. # Conflict between --help and --header
  20863. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  20864. Try \`$0 --help' for more information." >&5
  20865. echo "$as_me: error: ambiguous option: $1
  20866. Try \`$0 --help' for more information." >&2;}
  20867. { (exit 1); exit 1; }; };;
  20868. --help | --hel | -h )
  20869. echo "$ac_cs_usage"; exit 0 ;;
  20870. --debug | --d* | -d )
  20871. debug=: ;;
  20872. --file | --fil | --fi | --f )
  20873. $ac_shift
  20874. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  20875. ac_need_defaults=false;;
  20876. --header | --heade | --head | --hea )
  20877. $ac_shift
  20878. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  20879. ac_need_defaults=false;;
  20880. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20881. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  20882. ac_cs_silent=: ;;
  20883. # This is an error.
  20884. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  20885. Try \`$0 --help' for more information." >&5
  20886. echo "$as_me: error: unrecognized option: $1
  20887. Try \`$0 --help' for more information." >&2;}
  20888. { (exit 1); exit 1; }; } ;;
  20889. *) ac_config_targets="$ac_config_targets $1" ;;
  20890. esac
  20891. shift
  20892. done
  20893. ac_configure_extra_args=
  20894. if $ac_cs_silent; then
  20895. exec 6>/dev/null
  20896. ac_configure_extra_args="$ac_configure_extra_args --silent"
  20897. fi
  20898. _ACEOF
  20899. cat >>$CONFIG_STATUS <<_ACEOF
  20900. if \$ac_cs_recheck; then
  20901. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  20902. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  20903. fi
  20904. _ACEOF
  20905. cat >>$CONFIG_STATUS <<_ACEOF
  20906. #
  20907. # INIT-COMMANDS section.
  20908. #
  20909. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  20910. _ACEOF
  20911. cat >>$CONFIG_STATUS <<\_ACEOF
  20912. for ac_config_target in $ac_config_targets
  20913. do
  20914. case "$ac_config_target" in
  20915. # Handling of arguments.
  20916. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  20917. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  20918. "magic/Makefile" ) CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
  20919. "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  20920. "python/Makefile" ) CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
  20921. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  20922. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  20923. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  20924. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  20925. { (exit 1); exit 1; }; };;
  20926. esac
  20927. done
  20928. # If the user did not use the arguments to specify the items to instantiate,
  20929. # then the envvar interface is used. Set only those that are not.
  20930. # We use the long form for the default assignment because of an extremely
  20931. # bizarre bug on SunOS 4.1.3.
  20932. if $ac_need_defaults; then
  20933. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  20934. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  20935. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  20936. fi
  20937. # Have a temporary directory for convenience. Make it in the build tree
  20938. # simply because there is no reason to put it here, and in addition,
  20939. # creating and moving files from /tmp can sometimes cause problems.
  20940. # Create a temporary directory, and hook for its removal unless debugging.
  20941. $debug ||
  20942. {
  20943. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  20944. trap '{ (exit 1); exit 1; }' 1 2 13 15
  20945. }
  20946. # Create a (secure) tmp directory for tmp files.
  20947. {
  20948. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  20949. test -n "$tmp" && test -d "$tmp"
  20950. } ||
  20951. {
  20952. tmp=./confstat$$-$RANDOM
  20953. (umask 077 && mkdir $tmp)
  20954. } ||
  20955. {
  20956. echo "$me: cannot create a temporary directory in ." >&2
  20957. { (exit 1); exit 1; }
  20958. }
  20959. _ACEOF
  20960. cat >>$CONFIG_STATUS <<_ACEOF
  20961. #
  20962. # CONFIG_FILES section.
  20963. #
  20964. # No need to generate the scripts if there are no CONFIG_FILES.
  20965. # This happens for instance when ./config.status config.h
  20966. if test -n "\$CONFIG_FILES"; then
  20967. # Protect against being on the right side of a sed subst in config.status.
  20968. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  20969. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  20970. s,@SHELL@,$SHELL,;t t
  20971. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  20972. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  20973. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  20974. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  20975. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  20976. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  20977. s,@exec_prefix@,$exec_prefix,;t t
  20978. s,@prefix@,$prefix,;t t
  20979. s,@program_transform_name@,$program_transform_name,;t t
  20980. s,@bindir@,$bindir,;t t
  20981. s,@sbindir@,$sbindir,;t t
  20982. s,@libexecdir@,$libexecdir,;t t
  20983. s,@datadir@,$datadir,;t t
  20984. s,@sysconfdir@,$sysconfdir,;t t
  20985. s,@sharedstatedir@,$sharedstatedir,;t t
  20986. s,@localstatedir@,$localstatedir,;t t
  20987. s,@libdir@,$libdir,;t t
  20988. s,@includedir@,$includedir,;t t
  20989. s,@oldincludedir@,$oldincludedir,;t t
  20990. s,@infodir@,$infodir,;t t
  20991. s,@mandir@,$mandir,;t t
  20992. s,@build_alias@,$build_alias,;t t
  20993. s,@host_alias@,$host_alias,;t t
  20994. s,@target_alias@,$target_alias,;t t
  20995. s,@DEFS@,$DEFS,;t t
  20996. s,@ECHO_C@,$ECHO_C,;t t
  20997. s,@ECHO_N@,$ECHO_N,;t t
  20998. s,@ECHO_T@,$ECHO_T,;t t
  20999. s,@LIBS@,$LIBS,;t t
  21000. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  21001. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  21002. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  21003. s,@CYGPATH_W@,$CYGPATH_W,;t t
  21004. s,@PACKAGE@,$PACKAGE,;t t
  21005. s,@VERSION@,$VERSION,;t t
  21006. s,@ACLOCAL@,$ACLOCAL,;t t
  21007. s,@AUTOCONF@,$AUTOCONF,;t t
  21008. s,@AUTOMAKE@,$AUTOMAKE,;t t
  21009. s,@AUTOHEADER@,$AUTOHEADER,;t t
  21010. s,@MAKEINFO@,$MAKEINFO,;t t
  21011. s,@install_sh@,$install_sh,;t t
  21012. s,@STRIP@,$STRIP,;t t
  21013. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  21014. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  21015. s,@mkdir_p@,$mkdir_p,;t t
  21016. s,@AWK@,$AWK,;t t
  21017. s,@SET_MAKE@,$SET_MAKE,;t t
  21018. s,@am__leading_dot@,$am__leading_dot,;t t
  21019. s,@AMTAR@,$AMTAR,;t t
  21020. s,@am__tar@,$am__tar,;t t
  21021. s,@am__untar@,$am__untar,;t t
  21022. s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
  21023. s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
  21024. s,@MAINT@,$MAINT,;t t
  21025. s,@fsect@,$fsect,;t t
  21026. s,@FSECT5_TRUE@,$FSECT5_TRUE,;t t
  21027. s,@FSECT5_FALSE@,$FSECT5_FALSE,;t t
  21028. s,@CC@,$CC,;t t
  21029. s,@CFLAGS@,$CFLAGS,;t t
  21030. s,@LDFLAGS@,$LDFLAGS,;t t
  21031. s,@CPPFLAGS@,$CPPFLAGS,;t t
  21032. s,@ac_ct_CC@,$ac_ct_CC,;t t
  21033. s,@EXEEXT@,$EXEEXT,;t t
  21034. s,@OBJEXT@,$OBJEXT,;t t
  21035. s,@DEPDIR@,$DEPDIR,;t t
  21036. s,@am__include@,$am__include,;t t
  21037. s,@am__quote@,$am__quote,;t t
  21038. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  21039. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  21040. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  21041. s,@CCDEPMODE@,$CCDEPMODE,;t t
  21042. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  21043. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  21044. s,@LN_S@,$LN_S,;t t
  21045. s,@build@,$build,;t t
  21046. s,@build_cpu@,$build_cpu,;t t
  21047. s,@build_vendor@,$build_vendor,;t t
  21048. s,@build_os@,$build_os,;t t
  21049. s,@host@,$host,;t t
  21050. s,@host_cpu@,$host_cpu,;t t
  21051. s,@host_vendor@,$host_vendor,;t t
  21052. s,@host_os@,$host_os,;t t
  21053. s,@EGREP@,$EGREP,;t t
  21054. s,@ECHO@,$ECHO,;t t
  21055. s,@AR@,$AR,;t t
  21056. s,@ac_ct_AR@,$ac_ct_AR,;t t
  21057. s,@RANLIB@,$RANLIB,;t t
  21058. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  21059. s,@CPP@,$CPP,;t t
  21060. s,@CXX@,$CXX,;t t
  21061. s,@CXXFLAGS@,$CXXFLAGS,;t t
  21062. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  21063. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  21064. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  21065. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  21066. s,@CXXCPP@,$CXXCPP,;t t
  21067. s,@F77@,$F77,;t t
  21068. s,@FFLAGS@,$FFLAGS,;t t
  21069. s,@ac_ct_F77@,$ac_ct_F77,;t t
  21070. s,@LIBTOOL@,$LIBTOOL,;t t
  21071. s,@IS_CROSS_COMPILE_TRUE@,$IS_CROSS_COMPILE_TRUE,;t t
  21072. s,@IS_CROSS_COMPILE_FALSE@,$IS_CROSS_COMPILE_FALSE,;t t
  21073. s,@LIBOBJS@,$LIBOBJS,;t t
  21074. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  21075. CEOF
  21076. _ACEOF
  21077. cat >>$CONFIG_STATUS <<\_ACEOF
  21078. # Split the substitutions into bite-sized pieces for seds with
  21079. # small command number limits, like on Digital OSF/1 and HP-UX.
  21080. ac_max_sed_lines=48
  21081. ac_sed_frag=1 # Number of current file.
  21082. ac_beg=1 # First line for current file.
  21083. ac_end=$ac_max_sed_lines # Line after last line for current file.
  21084. ac_more_lines=:
  21085. ac_sed_cmds=
  21086. while $ac_more_lines; do
  21087. if test $ac_beg -gt 1; then
  21088. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  21089. else
  21090. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  21091. fi
  21092. if test ! -s $tmp/subs.frag; then
  21093. ac_more_lines=false
  21094. else
  21095. # The purpose of the label and of the branching condition is to
  21096. # speed up the sed processing (if there are no `@' at all, there
  21097. # is no need to browse any of the substitutions).
  21098. # These are the two extra sed commands mentioned above.
  21099. (echo ':t
  21100. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  21101. if test -z "$ac_sed_cmds"; then
  21102. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  21103. else
  21104. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  21105. fi
  21106. ac_sed_frag=`expr $ac_sed_frag + 1`
  21107. ac_beg=$ac_end
  21108. ac_end=`expr $ac_end + $ac_max_sed_lines`
  21109. fi
  21110. done
  21111. if test -z "$ac_sed_cmds"; then
  21112. ac_sed_cmds=cat
  21113. fi
  21114. fi # test -n "$CONFIG_FILES"
  21115. _ACEOF
  21116. cat >>$CONFIG_STATUS <<\_ACEOF
  21117. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  21118. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  21119. case $ac_file in
  21120. - | *:- | *:-:* ) # input from stdin
  21121. cat >$tmp/stdin
  21122. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  21123. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  21124. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  21125. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  21126. * ) ac_file_in=$ac_file.in ;;
  21127. esac
  21128. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  21129. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  21130. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21131. X"$ac_file" : 'X\(//\)[^/]' \| \
  21132. X"$ac_file" : 'X\(//\)$' \| \
  21133. X"$ac_file" : 'X\(/\)' \| \
  21134. . : '\(.\)' 2>/dev/null ||
  21135. echo X"$ac_file" |
  21136. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  21137. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  21138. /^X\(\/\/\)$/{ s//\1/; q; }
  21139. /^X\(\/\).*/{ s//\1/; q; }
  21140. s/.*/./; q'`
  21141. { if $as_mkdir_p; then
  21142. mkdir -p "$ac_dir"
  21143. else
  21144. as_dir="$ac_dir"
  21145. as_dirs=
  21146. while test ! -d "$as_dir"; do
  21147. as_dirs="$as_dir $as_dirs"
  21148. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  21149. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21150. X"$as_dir" : 'X\(//\)[^/]' \| \
  21151. X"$as_dir" : 'X\(//\)$' \| \
  21152. X"$as_dir" : 'X\(/\)' \| \
  21153. . : '\(.\)' 2>/dev/null ||
  21154. echo X"$as_dir" |
  21155. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  21156. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  21157. /^X\(\/\/\)$/{ s//\1/; q; }
  21158. /^X\(\/\).*/{ s//\1/; q; }
  21159. s/.*/./; q'`
  21160. done
  21161. test ! -n "$as_dirs" || mkdir $as_dirs
  21162. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  21163. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  21164. { (exit 1); exit 1; }; }; }
  21165. ac_builddir=.
  21166. if test "$ac_dir" != .; then
  21167. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  21168. # A "../" for each directory in $ac_dir_suffix.
  21169. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  21170. else
  21171. ac_dir_suffix= ac_top_builddir=
  21172. fi
  21173. case $srcdir in
  21174. .) # No --srcdir option. We are building in place.
  21175. ac_srcdir=.
  21176. if test -z "$ac_top_builddir"; then
  21177. ac_top_srcdir=.
  21178. else
  21179. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  21180. fi ;;
  21181. [\\/]* | ?:[\\/]* ) # Absolute path.
  21182. ac_srcdir=$srcdir$ac_dir_suffix;
  21183. ac_top_srcdir=$srcdir ;;
  21184. *) # Relative path.
  21185. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  21186. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  21187. esac
  21188. # Do not use `cd foo && pwd` to compute absolute paths, because
  21189. # the directories may not exist.
  21190. case `pwd` in
  21191. .) ac_abs_builddir="$ac_dir";;
  21192. *)
  21193. case "$ac_dir" in
  21194. .) ac_abs_builddir=`pwd`;;
  21195. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  21196. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  21197. esac;;
  21198. esac
  21199. case $ac_abs_builddir in
  21200. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  21201. *)
  21202. case ${ac_top_builddir}. in
  21203. .) ac_abs_top_builddir=$ac_abs_builddir;;
  21204. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  21205. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  21206. esac;;
  21207. esac
  21208. case $ac_abs_builddir in
  21209. .) ac_abs_srcdir=$ac_srcdir;;
  21210. *)
  21211. case $ac_srcdir in
  21212. .) ac_abs_srcdir=$ac_abs_builddir;;
  21213. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  21214. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  21215. esac;;
  21216. esac
  21217. case $ac_abs_builddir in
  21218. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  21219. *)
  21220. case $ac_top_srcdir in
  21221. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  21222. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  21223. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  21224. esac;;
  21225. esac
  21226. case $INSTALL in
  21227. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  21228. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  21229. esac
  21230. if test x"$ac_file" != x-; then
  21231. { echo "$as_me:$LINENO: creating $ac_file" >&5
  21232. echo "$as_me: creating $ac_file" >&6;}
  21233. rm -f "$ac_file"
  21234. fi
  21235. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21236. # use $as_me), people would be surprised to read:
  21237. # /* config.h. Generated by config.status. */
  21238. if test x"$ac_file" = x-; then
  21239. configure_input=
  21240. else
  21241. configure_input="$ac_file. "
  21242. fi
  21243. configure_input=$configure_input"Generated from `echo $ac_file_in |
  21244. sed 's,.*/,,'` by configure."
  21245. # First look for the input files in the build tree, otherwise in the
  21246. # src tree.
  21247. ac_file_inputs=`IFS=:
  21248. for f in $ac_file_in; do
  21249. case $f in
  21250. -) echo $tmp/stdin ;;
  21251. [\\/$]*)
  21252. # Absolute (can't be DOS-style, as IFS=:)
  21253. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  21254. echo "$as_me: error: cannot find input file: $f" >&2;}
  21255. { (exit 1); exit 1; }; }
  21256. echo "$f";;
  21257. *) # Relative
  21258. if test -f "$f"; then
  21259. # Build tree
  21260. echo "$f"
  21261. elif test -f "$srcdir/$f"; then
  21262. # Source tree
  21263. echo "$srcdir/$f"
  21264. else
  21265. # /dev/null tree
  21266. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  21267. echo "$as_me: error: cannot find input file: $f" >&2;}
  21268. { (exit 1); exit 1; }; }
  21269. fi;;
  21270. esac
  21271. done` || { (exit 1); exit 1; }
  21272. _ACEOF
  21273. cat >>$CONFIG_STATUS <<_ACEOF
  21274. sed "$ac_vpsub
  21275. $extrasub
  21276. _ACEOF
  21277. cat >>$CONFIG_STATUS <<\_ACEOF
  21278. :t
  21279. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21280. s,@configure_input@,$configure_input,;t t
  21281. s,@srcdir@,$ac_srcdir,;t t
  21282. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  21283. s,@top_srcdir@,$ac_top_srcdir,;t t
  21284. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  21285. s,@builddir@,$ac_builddir,;t t
  21286. s,@abs_builddir@,$ac_abs_builddir,;t t
  21287. s,@top_builddir@,$ac_top_builddir,;t t
  21288. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  21289. s,@INSTALL@,$ac_INSTALL,;t t
  21290. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  21291. rm -f $tmp/stdin
  21292. if test x"$ac_file" != x-; then
  21293. mv $tmp/out $ac_file
  21294. else
  21295. cat $tmp/out
  21296. rm -f $tmp/out
  21297. fi
  21298. done
  21299. _ACEOF
  21300. cat >>$CONFIG_STATUS <<\_ACEOF
  21301. #
  21302. # CONFIG_HEADER section.
  21303. #
  21304. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  21305. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  21306. #
  21307. # ac_d sets the value in "#define NAME VALUE" lines.
  21308. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  21309. ac_dB='[ ].*$,\1#\2'
  21310. ac_dC=' '
  21311. ac_dD=',;t'
  21312. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  21313. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  21314. ac_uB='$,\1#\2define\3'
  21315. ac_uC=' '
  21316. ac_uD=',;t'
  21317. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  21318. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  21319. case $ac_file in
  21320. - | *:- | *:-:* ) # input from stdin
  21321. cat >$tmp/stdin
  21322. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  21323. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  21324. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  21325. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  21326. * ) ac_file_in=$ac_file.in ;;
  21327. esac
  21328. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  21329. echo "$as_me: creating $ac_file" >&6;}
  21330. # First look for the input files in the build tree, otherwise in the
  21331. # src tree.
  21332. ac_file_inputs=`IFS=:
  21333. for f in $ac_file_in; do
  21334. case $f in
  21335. -) echo $tmp/stdin ;;
  21336. [\\/$]*)
  21337. # Absolute (can't be DOS-style, as IFS=:)
  21338. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  21339. echo "$as_me: error: cannot find input file: $f" >&2;}
  21340. { (exit 1); exit 1; }; }
  21341. # Do quote $f, to prevent DOS paths from being IFS'd.
  21342. echo "$f";;
  21343. *) # Relative
  21344. if test -f "$f"; then
  21345. # Build tree
  21346. echo "$f"
  21347. elif test -f "$srcdir/$f"; then
  21348. # Source tree
  21349. echo "$srcdir/$f"
  21350. else
  21351. # /dev/null tree
  21352. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  21353. echo "$as_me: error: cannot find input file: $f" >&2;}
  21354. { (exit 1); exit 1; }; }
  21355. fi;;
  21356. esac
  21357. done` || { (exit 1); exit 1; }
  21358. # Remove the trailing spaces.
  21359. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  21360. _ACEOF
  21361. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  21362. # `conftest.undefs', that substitutes the proper values into
  21363. # config.h.in to produce config.h. The first handles `#define'
  21364. # templates, and the second `#undef' templates.
  21365. # And first: Protect against being on the right side of a sed subst in
  21366. # config.status. Protect against being in an unquoted here document
  21367. # in config.status.
  21368. rm -f conftest.defines conftest.undefs
  21369. # Using a here document instead of a string reduces the quoting nightmare.
  21370. # Putting comments in sed scripts is not portable.
  21371. #
  21372. # `end' is used to avoid that the second main sed command (meant for
  21373. # 0-ary CPP macros) applies to n-ary macro definitions.
  21374. # See the Autoconf documentation for `clear'.
  21375. cat >confdef2sed.sed <<\_ACEOF
  21376. s/[\\&,]/\\&/g
  21377. s,[\\$`],\\&,g
  21378. t clear
  21379. : clear
  21380. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  21381. t end
  21382. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  21383. : end
  21384. _ACEOF
  21385. # If some macros were called several times there might be several times
  21386. # the same #defines, which is useless. Nevertheless, we may not want to
  21387. # sort them, since we want the *last* AC-DEFINE to be honored.
  21388. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  21389. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  21390. rm -f confdef2sed.sed
  21391. # This sed command replaces #undef with comments. This is necessary, for
  21392. # example, in the case of _POSIX_SOURCE, which is predefined and required
  21393. # on some systems where configure will not decide to define it.
  21394. cat >>conftest.undefs <<\_ACEOF
  21395. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  21396. _ACEOF
  21397. # Break up conftest.defines because some shells have a limit on the size
  21398. # of here documents, and old seds have small limits too (100 cmds).
  21399. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  21400. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  21401. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  21402. echo ' :' >>$CONFIG_STATUS
  21403. rm -f conftest.tail
  21404. while grep . conftest.defines >/dev/null
  21405. do
  21406. # Write a limited-size here document to $tmp/defines.sed.
  21407. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  21408. # Speed up: don't consider the non `#define' lines.
  21409. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  21410. # Work around the forget-to-reset-the-flag bug.
  21411. echo 't clr' >>$CONFIG_STATUS
  21412. echo ': clr' >>$CONFIG_STATUS
  21413. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  21414. echo 'CEOF
  21415. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  21416. rm -f $tmp/in
  21417. mv $tmp/out $tmp/in
  21418. ' >>$CONFIG_STATUS
  21419. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  21420. rm -f conftest.defines
  21421. mv conftest.tail conftest.defines
  21422. done
  21423. rm -f conftest.defines
  21424. echo ' fi # grep' >>$CONFIG_STATUS
  21425. echo >>$CONFIG_STATUS
  21426. # Break up conftest.undefs because some shells have a limit on the size
  21427. # of here documents, and old seds have small limits too (100 cmds).
  21428. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  21429. rm -f conftest.tail
  21430. while grep . conftest.undefs >/dev/null
  21431. do
  21432. # Write a limited-size here document to $tmp/undefs.sed.
  21433. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  21434. # Speed up: don't consider the non `#undef'
  21435. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  21436. # Work around the forget-to-reset-the-flag bug.
  21437. echo 't clr' >>$CONFIG_STATUS
  21438. echo ': clr' >>$CONFIG_STATUS
  21439. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  21440. echo 'CEOF
  21441. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  21442. rm -f $tmp/in
  21443. mv $tmp/out $tmp/in
  21444. ' >>$CONFIG_STATUS
  21445. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  21446. rm -f conftest.undefs
  21447. mv conftest.tail conftest.undefs
  21448. done
  21449. rm -f conftest.undefs
  21450. cat >>$CONFIG_STATUS <<\_ACEOF
  21451. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21452. # use $as_me), people would be surprised to read:
  21453. # /* config.h. Generated by config.status. */
  21454. if test x"$ac_file" = x-; then
  21455. echo "/* Generated by configure. */" >$tmp/config.h
  21456. else
  21457. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  21458. fi
  21459. cat $tmp/in >>$tmp/config.h
  21460. rm -f $tmp/in
  21461. if test x"$ac_file" != x-; then
  21462. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  21463. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  21464. echo "$as_me: $ac_file is unchanged" >&6;}
  21465. else
  21466. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  21467. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21468. X"$ac_file" : 'X\(//\)[^/]' \| \
  21469. X"$ac_file" : 'X\(//\)$' \| \
  21470. X"$ac_file" : 'X\(/\)' \| \
  21471. . : '\(.\)' 2>/dev/null ||
  21472. echo X"$ac_file" |
  21473. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  21474. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  21475. /^X\(\/\/\)$/{ s//\1/; q; }
  21476. /^X\(\/\).*/{ s//\1/; q; }
  21477. s/.*/./; q'`
  21478. { if $as_mkdir_p; then
  21479. mkdir -p "$ac_dir"
  21480. else
  21481. as_dir="$ac_dir"
  21482. as_dirs=
  21483. while test ! -d "$as_dir"; do
  21484. as_dirs="$as_dir $as_dirs"
  21485. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  21486. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21487. X"$as_dir" : 'X\(//\)[^/]' \| \
  21488. X"$as_dir" : 'X\(//\)$' \| \
  21489. X"$as_dir" : 'X\(/\)' \| \
  21490. . : '\(.\)' 2>/dev/null ||
  21491. echo X"$as_dir" |
  21492. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  21493. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  21494. /^X\(\/\/\)$/{ s//\1/; q; }
  21495. /^X\(\/\).*/{ s//\1/; q; }
  21496. s/.*/./; q'`
  21497. done
  21498. test ! -n "$as_dirs" || mkdir $as_dirs
  21499. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  21500. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  21501. { (exit 1); exit 1; }; }; }
  21502. rm -f $ac_file
  21503. mv $tmp/config.h $ac_file
  21504. fi
  21505. else
  21506. cat $tmp/config.h
  21507. rm -f $tmp/config.h
  21508. fi
  21509. # Compute $ac_file's index in $config_headers.
  21510. _am_stamp_count=1
  21511. for _am_header in $config_headers :; do
  21512. case $_am_header in
  21513. $ac_file | $ac_file:* )
  21514. break ;;
  21515. * )
  21516. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  21517. esac
  21518. done
  21519. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  21520. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21521. X$ac_file : 'X\(//\)[^/]' \| \
  21522. X$ac_file : 'X\(//\)$' \| \
  21523. X$ac_file : 'X\(/\)' \| \
  21524. . : '\(.\)' 2>/dev/null ||
  21525. echo X$ac_file |
  21526. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  21527. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  21528. /^X\(\/\/\)$/{ s//\1/; q; }
  21529. /^X\(\/\).*/{ s//\1/; q; }
  21530. s/.*/./; q'`/stamp-h$_am_stamp_count
  21531. done
  21532. _ACEOF
  21533. cat >>$CONFIG_STATUS <<\_ACEOF
  21534. #
  21535. # CONFIG_COMMANDS section.
  21536. #
  21537. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  21538. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  21539. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  21540. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  21541. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21542. X"$ac_dest" : 'X\(//\)[^/]' \| \
  21543. X"$ac_dest" : 'X\(//\)$' \| \
  21544. X"$ac_dest" : 'X\(/\)' \| \
  21545. . : '\(.\)' 2>/dev/null ||
  21546. echo X"$ac_dest" |
  21547. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  21548. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  21549. /^X\(\/\/\)$/{ s//\1/; q; }
  21550. /^X\(\/\).*/{ s//\1/; q; }
  21551. s/.*/./; q'`
  21552. { if $as_mkdir_p; then
  21553. mkdir -p "$ac_dir"
  21554. else
  21555. as_dir="$ac_dir"
  21556. as_dirs=
  21557. while test ! -d "$as_dir"; do
  21558. as_dirs="$as_dir $as_dirs"
  21559. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  21560. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21561. X"$as_dir" : 'X\(//\)[^/]' \| \
  21562. X"$as_dir" : 'X\(//\)$' \| \
  21563. X"$as_dir" : 'X\(/\)' \| \
  21564. . : '\(.\)' 2>/dev/null ||
  21565. echo X"$as_dir" |
  21566. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  21567. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  21568. /^X\(\/\/\)$/{ s//\1/; q; }
  21569. /^X\(\/\).*/{ s//\1/; q; }
  21570. s/.*/./; q'`
  21571. done
  21572. test ! -n "$as_dirs" || mkdir $as_dirs
  21573. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  21574. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  21575. { (exit 1); exit 1; }; }; }
  21576. ac_builddir=.
  21577. if test "$ac_dir" != .; then
  21578. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  21579. # A "../" for each directory in $ac_dir_suffix.
  21580. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  21581. else
  21582. ac_dir_suffix= ac_top_builddir=
  21583. fi
  21584. case $srcdir in
  21585. .) # No --srcdir option. We are building in place.
  21586. ac_srcdir=.
  21587. if test -z "$ac_top_builddir"; then
  21588. ac_top_srcdir=.
  21589. else
  21590. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  21591. fi ;;
  21592. [\\/]* | ?:[\\/]* ) # Absolute path.
  21593. ac_srcdir=$srcdir$ac_dir_suffix;
  21594. ac_top_srcdir=$srcdir ;;
  21595. *) # Relative path.
  21596. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  21597. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  21598. esac
  21599. # Do not use `cd foo && pwd` to compute absolute paths, because
  21600. # the directories may not exist.
  21601. case `pwd` in
  21602. .) ac_abs_builddir="$ac_dir";;
  21603. *)
  21604. case "$ac_dir" in
  21605. .) ac_abs_builddir=`pwd`;;
  21606. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  21607. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  21608. esac;;
  21609. esac
  21610. case $ac_abs_builddir in
  21611. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  21612. *)
  21613. case ${ac_top_builddir}. in
  21614. .) ac_abs_top_builddir=$ac_abs_builddir;;
  21615. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  21616. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  21617. esac;;
  21618. esac
  21619. case $ac_abs_builddir in
  21620. .) ac_abs_srcdir=$ac_srcdir;;
  21621. *)
  21622. case $ac_srcdir in
  21623. .) ac_abs_srcdir=$ac_abs_builddir;;
  21624. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  21625. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  21626. esac;;
  21627. esac
  21628. case $ac_abs_builddir in
  21629. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  21630. *)
  21631. case $ac_top_srcdir in
  21632. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  21633. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  21634. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  21635. esac;;
  21636. esac
  21637. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  21638. echo "$as_me: executing $ac_dest commands" >&6;}
  21639. case $ac_dest in
  21640. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  21641. # Strip MF so we end up with the name of the file.
  21642. mf=`echo "$mf" | sed -e 's/:.*$//'`
  21643. # Check whether this is an Automake generated Makefile or not.
  21644. # We used to match only the files named `Makefile.in', but
  21645. # some people rename them; so instead we look at the file content.
  21646. # Grep'ing the first line is not enough: some people post-process
  21647. # each Makefile.in and add a new line on top of each file to say so.
  21648. # So let's grep whole file.
  21649. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  21650. dirpart=`(dirname "$mf") 2>/dev/null ||
  21651. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21652. X"$mf" : 'X\(//\)[^/]' \| \
  21653. X"$mf" : 'X\(//\)$' \| \
  21654. X"$mf" : 'X\(/\)' \| \
  21655. . : '\(.\)' 2>/dev/null ||
  21656. echo X"$mf" |
  21657. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  21658. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  21659. /^X\(\/\/\)$/{ s//\1/; q; }
  21660. /^X\(\/\).*/{ s//\1/; q; }
  21661. s/.*/./; q'`
  21662. else
  21663. continue
  21664. fi
  21665. # Extract the definition of DEPDIR, am__include, and am__quote
  21666. # from the Makefile without running `make'.
  21667. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  21668. test -z "$DEPDIR" && continue
  21669. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  21670. test -z "am__include" && continue
  21671. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  21672. # When using ansi2knr, U may be empty or an underscore; expand it
  21673. U=`sed -n 's/^U = //p' < "$mf"`
  21674. # Find all dependency output files, they are included files with
  21675. # $(DEPDIR) in their names. We invoke sed twice because it is the
  21676. # simplest approach to changing $(DEPDIR) to its actual value in the
  21677. # expansion.
  21678. for file in `sed -n "
  21679. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  21680. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  21681. # Make sure the directory exists.
  21682. test -f "$dirpart/$file" && continue
  21683. fdir=`(dirname "$file") 2>/dev/null ||
  21684. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21685. X"$file" : 'X\(//\)[^/]' \| \
  21686. X"$file" : 'X\(//\)$' \| \
  21687. X"$file" : 'X\(/\)' \| \
  21688. . : '\(.\)' 2>/dev/null ||
  21689. echo X"$file" |
  21690. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  21691. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  21692. /^X\(\/\/\)$/{ s//\1/; q; }
  21693. /^X\(\/\).*/{ s//\1/; q; }
  21694. s/.*/./; q'`
  21695. { if $as_mkdir_p; then
  21696. mkdir -p $dirpart/$fdir
  21697. else
  21698. as_dir=$dirpart/$fdir
  21699. as_dirs=
  21700. while test ! -d "$as_dir"; do
  21701. as_dirs="$as_dir $as_dirs"
  21702. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  21703. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21704. X"$as_dir" : 'X\(//\)[^/]' \| \
  21705. X"$as_dir" : 'X\(//\)$' \| \
  21706. X"$as_dir" : 'X\(/\)' \| \
  21707. . : '\(.\)' 2>/dev/null ||
  21708. echo X"$as_dir" |
  21709. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  21710. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  21711. /^X\(\/\/\)$/{ s//\1/; q; }
  21712. /^X\(\/\).*/{ s//\1/; q; }
  21713. s/.*/./; q'`
  21714. done
  21715. test ! -n "$as_dirs" || mkdir $as_dirs
  21716. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  21717. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  21718. { (exit 1); exit 1; }; }; }
  21719. # echo "creating $dirpart/$file"
  21720. echo '# dummy' > "$dirpart/$file"
  21721. done
  21722. done
  21723. ;;
  21724. esac
  21725. done
  21726. _ACEOF
  21727. cat >>$CONFIG_STATUS <<\_ACEOF
  21728. { (exit 0); exit 0; }
  21729. _ACEOF
  21730. chmod +x $CONFIG_STATUS
  21731. ac_clean_files=$ac_clean_files_save
  21732. # configure is writing to config.log, and then calls config.status.
  21733. # config.status does its own redirection, appending to config.log.
  21734. # Unfortunately, on DOS this fails, as config.log is still kept open
  21735. # by configure, so config.status won't be able to write to it; its
  21736. # output is simply discarded. So we exec the FD to /dev/null,
  21737. # effectively closing config.log, so it can be properly (re)opened and
  21738. # appended to by config.status. When coming back to configure, we
  21739. # need to make the FD available again.
  21740. if test "$no_create" != yes; then
  21741. ac_cs_success=:
  21742. ac_config_status_args=
  21743. test "$silent" = yes &&
  21744. ac_config_status_args="$ac_config_status_args --quiet"
  21745. exec 5>/dev/null
  21746. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  21747. exec 5>>config.log
  21748. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  21749. # would make configure fail if this is the last instruction.
  21750. $ac_cs_success || { (exit 1); exit 1; }
  21751. fi