configure 758 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266
  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.21
  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 limits.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