configure 767 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  33. # The user is always right.
  34. if test "${PATH_SEPARATOR+set}" != set; then
  35. echo "#! /bin/sh" >conf$$.sh
  36. echo "exit 0" >>conf$$.sh
  37. chmod +x conf$$.sh
  38. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  39. PATH_SEPARATOR=';'
  40. else
  41. PATH_SEPARATOR=:
  42. fi
  43. rm -f conf$$.sh
  44. fi
  45. # Support unset when possible.
  46. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  47. as_unset=unset
  48. else
  49. as_unset=false
  50. fi
  51. # IFS
  52. # We need space, tab and new line, in precisely that order. Quoting is
  53. # there to prevent editors from complaining about space-tab.
  54. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  55. # splitting by setting IFS to empty value.)
  56. as_nl='
  57. '
  58. IFS=" "" $as_nl"
  59. # Find who we are. Look in the path if we contain no directory separator.
  60. case $0 in
  61. *[\\/]* ) as_myself=$0 ;;
  62. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  63. for as_dir in $PATH
  64. do
  65. IFS=$as_save_IFS
  66. test -z "$as_dir" && as_dir=.
  67. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  68. done
  69. IFS=$as_save_IFS
  70. ;;
  71. esac
  72. # We did not find ourselves, most probably we were run as `sh COMMAND'
  73. # in which case we are not to be found in the path.
  74. if test "x$as_myself" = x; then
  75. as_myself=$0
  76. fi
  77. if test ! -f "$as_myself"; then
  78. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  79. { (exit 1); exit 1; }
  80. fi
  81. # Work around bugs in pre-3.0 UWIN ksh.
  82. for as_var in ENV MAIL MAILPATH
  83. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  84. done
  85. PS1='$ '
  86. PS2='> '
  87. PS4='+ '
  88. # NLS nuisances.
  89. for as_var in \
  90. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  91. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  92. LC_TELEPHONE LC_TIME
  93. do
  94. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  95. eval $as_var=C; export $as_var
  96. else
  97. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  98. fi
  99. done
  100. # Required to use basename.
  101. if expr a : '\(a\)' >/dev/null 2>&1 &&
  102. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  103. as_expr=expr
  104. else
  105. as_expr=false
  106. fi
  107. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  108. as_basename=basename
  109. else
  110. as_basename=false
  111. fi
  112. # Name of the executable.
  113. as_me=`$as_basename -- "$0" ||
  114. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  115. X"$0" : 'X\(//\)$' \| \
  116. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  117. echo X/"$0" |
  118. sed '/^.*\/\([^/][^/]*\)\/*$/{
  119. s//\1/
  120. q
  121. }
  122. /^X\/\(\/\/\)$/{
  123. s//\1/
  124. q
  125. }
  126. /^X\/\(\/\).*/{
  127. s//\1/
  128. q
  129. }
  130. s/.*/./; q'`
  131. # CDPATH.
  132. $as_unset CDPATH
  133. if test "x$CONFIG_SHELL" = x; then
  134. if (eval ":") 2>/dev/null; then
  135. as_have_required=yes
  136. else
  137. as_have_required=no
  138. fi
  139. if test $as_have_required = yes && (eval ":
  140. (as_func_return () {
  141. (exit \$1)
  142. }
  143. as_func_success () {
  144. as_func_return 0
  145. }
  146. as_func_failure () {
  147. as_func_return 1
  148. }
  149. as_func_ret_success () {
  150. return 0
  151. }
  152. as_func_ret_failure () {
  153. return 1
  154. }
  155. exitcode=0
  156. if as_func_success; then
  157. :
  158. else
  159. exitcode=1
  160. echo as_func_success failed.
  161. fi
  162. if as_func_failure; then
  163. exitcode=1
  164. echo as_func_failure succeeded.
  165. fi
  166. if as_func_ret_success; then
  167. :
  168. else
  169. exitcode=1
  170. echo as_func_ret_success failed.
  171. fi
  172. if as_func_ret_failure; then
  173. exitcode=1
  174. echo as_func_ret_failure succeeded.
  175. fi
  176. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  177. :
  178. else
  179. exitcode=1
  180. echo positional parameters were not saved.
  181. fi
  182. test \$exitcode = 0) || { (exit 1); exit 1; }
  183. (
  184. as_lineno_1=\$LINENO
  185. as_lineno_2=\$LINENO
  186. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  187. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  188. ") 2> /dev/null; then
  189. :
  190. else
  191. as_candidate_shells=
  192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  193. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  194. do
  195. IFS=$as_save_IFS
  196. test -z "$as_dir" && as_dir=.
  197. case $as_dir in
  198. /*)
  199. for as_base in sh bash ksh sh5; do
  200. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  201. done;;
  202. esac
  203. done
  204. IFS=$as_save_IFS
  205. for as_shell in $as_candidate_shells $SHELL; do
  206. # Try only shells that exist, to save several forks.
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { ("$as_shell") 2> /dev/null <<\_ASEOF
  209. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  210. emulate sh
  211. NULLCMD=:
  212. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  213. # is contrary to our usage. Disable this feature.
  214. alias -g '${1+"$@"}'='"$@"'
  215. setopt NO_GLOB_SUBST
  216. else
  217. case `(set -o) 2>/dev/null` in
  218. *posix*) set -o posix ;;
  219. esac
  220. fi
  221. :
  222. _ASEOF
  223. }; then
  224. CONFIG_SHELL=$as_shell
  225. as_have_required=yes
  226. if { "$as_shell" 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. (as_func_return () {
  241. (exit $1)
  242. }
  243. as_func_success () {
  244. as_func_return 0
  245. }
  246. as_func_failure () {
  247. as_func_return 1
  248. }
  249. as_func_ret_success () {
  250. return 0
  251. }
  252. as_func_ret_failure () {
  253. return 1
  254. }
  255. exitcode=0
  256. if as_func_success; then
  257. :
  258. else
  259. exitcode=1
  260. echo as_func_success failed.
  261. fi
  262. if as_func_failure; then
  263. exitcode=1
  264. echo as_func_failure succeeded.
  265. fi
  266. if as_func_ret_success; then
  267. :
  268. else
  269. exitcode=1
  270. echo as_func_ret_success failed.
  271. fi
  272. if as_func_ret_failure; then
  273. exitcode=1
  274. echo as_func_ret_failure succeeded.
  275. fi
  276. if ( set x; as_func_ret_success y && test x = "$1" ); then
  277. :
  278. else
  279. exitcode=1
  280. echo positional parameters were not saved.
  281. fi
  282. test $exitcode = 0) || { (exit 1); exit 1; }
  283. (
  284. as_lineno_1=$LINENO
  285. as_lineno_2=$LINENO
  286. test "x$as_lineno_1" != "x$as_lineno_2" &&
  287. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  288. _ASEOF
  289. }; then
  290. break
  291. fi
  292. fi
  293. done
  294. if test "x$CONFIG_SHELL" != x; then
  295. for as_var in BASH_ENV ENV
  296. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  297. done
  298. export CONFIG_SHELL
  299. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  300. fi
  301. if test $as_have_required = no; then
  302. echo This script requires a shell more modern than all the
  303. echo shells that I found on your system. Please install a
  304. echo modern shell, or manually run the script under such a
  305. echo shell if you do have one.
  306. { (exit 1); exit 1; }
  307. fi
  308. fi
  309. fi
  310. (eval "as_func_return () {
  311. (exit \$1)
  312. }
  313. as_func_success () {
  314. as_func_return 0
  315. }
  316. as_func_failure () {
  317. as_func_return 1
  318. }
  319. as_func_ret_success () {
  320. return 0
  321. }
  322. as_func_ret_failure () {
  323. return 1
  324. }
  325. exitcode=0
  326. if as_func_success; then
  327. :
  328. else
  329. exitcode=1
  330. echo as_func_success failed.
  331. fi
  332. if as_func_failure; then
  333. exitcode=1
  334. echo as_func_failure succeeded.
  335. fi
  336. if as_func_ret_success; then
  337. :
  338. else
  339. exitcode=1
  340. echo as_func_ret_success failed.
  341. fi
  342. if as_func_ret_failure; then
  343. exitcode=1
  344. echo as_func_ret_failure succeeded.
  345. fi
  346. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  347. :
  348. else
  349. exitcode=1
  350. echo positional parameters were not saved.
  351. fi
  352. test \$exitcode = 0") || {
  353. echo No shell found that supports shell functions.
  354. echo Please tell autoconf@gnu.org about your system,
  355. echo including any error possibly output before this
  356. echo message
  357. }
  358. as_lineno_1=$LINENO
  359. as_lineno_2=$LINENO
  360. test "x$as_lineno_1" != "x$as_lineno_2" &&
  361. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  362. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  363. # uniformly replaced by the line number. The first 'sed' inserts a
  364. # line-number line after each line using $LINENO; the second 'sed'
  365. # does the real work. The second script uses 'N' to pair each
  366. # line-number line with the line containing $LINENO, and appends
  367. # trailing '-' during substitution so that $LINENO is not a special
  368. # case at line end.
  369. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  370. # scripts with optimization help from Paolo Bonzini. Blame Lee
  371. # E. McMahon (1931-1989) for sed's syntax. :-)
  372. sed -n '
  373. p
  374. /[$]LINENO/=
  375. ' <$as_myself |
  376. sed '
  377. s/[$]LINENO.*/&-/
  378. t lineno
  379. b
  380. :lineno
  381. N
  382. :loop
  383. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  384. t loop
  385. s/-\n.*//
  386. ' >$as_me.lineno &&
  387. chmod +x "$as_me.lineno" ||
  388. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  389. { (exit 1); exit 1; }; }
  390. # Don't try to exec as it changes $[0], causing all sort of problems
  391. # (the dirname of $[0] is not the place where we might find the
  392. # original and so on. Autoconf is especially sensitive to this).
  393. . "./$as_me.lineno"
  394. # Exit status is that of the last command.
  395. exit
  396. }
  397. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  398. as_dirname=dirname
  399. else
  400. as_dirname=false
  401. fi
  402. ECHO_C= ECHO_N= ECHO_T=
  403. case `echo -n x` in
  404. -n*)
  405. case `echo 'x\c'` in
  406. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  407. *) ECHO_C='\c';;
  408. esac;;
  409. *)
  410. ECHO_N='-n';;
  411. esac
  412. if expr a : '\(a\)' >/dev/null 2>&1 &&
  413. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  414. as_expr=expr
  415. else
  416. as_expr=false
  417. fi
  418. rm -f conf$$ conf$$.exe conf$$.file
  419. if test -d conf$$.dir; then
  420. rm -f conf$$.dir/conf$$.file
  421. else
  422. rm -f conf$$.dir
  423. mkdir conf$$.dir
  424. fi
  425. echo >conf$$.file
  426. if ln -s conf$$.file conf$$ 2>/dev/null; then
  427. as_ln_s='ln -s'
  428. # ... but there are two gotchas:
  429. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  430. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  431. # In both cases, we have to default to `cp -p'.
  432. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  433. as_ln_s='cp -p'
  434. elif ln conf$$.file conf$$ 2>/dev/null; then
  435. as_ln_s=ln
  436. else
  437. as_ln_s='cp -p'
  438. fi
  439. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  440. rmdir conf$$.dir 2>/dev/null
  441. if mkdir -p . 2>/dev/null; then
  442. as_mkdir_p=:
  443. else
  444. test -d ./-p && rmdir ./-p
  445. as_mkdir_p=false
  446. fi
  447. if test -x / >/dev/null 2>&1; then
  448. as_test_x='test -x'
  449. else
  450. if ls -dL / >/dev/null 2>&1; then
  451. as_ls_L_option=L
  452. else
  453. as_ls_L_option=
  454. fi
  455. as_test_x='
  456. eval sh -c '\''
  457. if test -d "$1"; then
  458. test -d "$1/.";
  459. else
  460. case $1 in
  461. -*)set "./$1";;
  462. esac;
  463. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  464. ???[sx]*):;;*)false;;esac;fi
  465. '\'' sh
  466. '
  467. fi
  468. as_executable_p=$as_test_x
  469. # Sed expression to map a string onto a valid CPP name.
  470. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  471. # Sed expression to map a string onto a valid variable name.
  472. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  473. # Check that we are running under the correct shell.
  474. SHELL=${CONFIG_SHELL-/bin/sh}
  475. case X$ECHO in
  476. X*--fallback-echo)
  477. # Remove one level of quotation (which was required for Make).
  478. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  479. ;;
  480. esac
  481. echo=${ECHO-echo}
  482. if test "X$1" = X--no-reexec; then
  483. # Discard the --no-reexec flag, and continue.
  484. shift
  485. elif test "X$1" = X--fallback-echo; then
  486. # Avoid inline document here, it may be left over
  487. :
  488. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  489. # Yippee, $echo works!
  490. :
  491. else
  492. # Restart under the correct shell.
  493. exec $SHELL "$0" --no-reexec ${1+"$@"}
  494. fi
  495. if test "X$1" = X--fallback-echo; then
  496. # used as fallback echo
  497. shift
  498. cat <<EOF
  499. $*
  500. EOF
  501. exit 0
  502. fi
  503. # The HP-UX ksh and POSIX shell print the target directory to stdout
  504. # if CDPATH is set.
  505. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  506. if test -z "$ECHO"; then
  507. if test "X${echo_test_string+set}" != Xset; then
  508. # find a string as large as possible, as long as the shell can cope with it
  509. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  510. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  511. if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  512. echo_test_string="`eval $cmd`" &&
  513. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  514. then
  515. break
  516. fi
  517. done
  518. fi
  519. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  520. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  521. test "X$echo_testing_string" = "X$echo_test_string"; then
  522. :
  523. else
  524. # The Solaris, AIX, and Digital Unix default echo programs unquote
  525. # backslashes. This makes it impossible to quote backslashes using
  526. # echo "$something" | sed 's/\\/\\\\/g'
  527. #
  528. # So, first we look for a working echo in the user's PATH.
  529. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  530. for dir in $PATH /usr/ucb; do
  531. IFS="$lt_save_ifs"
  532. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  533. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  534. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  535. test "X$echo_testing_string" = "X$echo_test_string"; then
  536. echo="$dir/echo"
  537. break
  538. fi
  539. done
  540. IFS="$lt_save_ifs"
  541. if test "X$echo" = Xecho; then
  542. # We didn't find a better echo, so look for alternatives.
  543. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  544. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  545. test "X$echo_testing_string" = "X$echo_test_string"; then
  546. # This shell has a builtin print -r that does the trick.
  547. echo='print -r'
  548. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  549. test "X$CONFIG_SHELL" != X/bin/ksh; then
  550. # If we have ksh, try running configure again with it.
  551. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  552. export ORIGINAL_CONFIG_SHELL
  553. CONFIG_SHELL=/bin/ksh
  554. export CONFIG_SHELL
  555. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  556. else
  557. # Try using printf.
  558. echo='printf %s\n'
  559. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  560. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  561. test "X$echo_testing_string" = "X$echo_test_string"; then
  562. # Cool, printf works
  563. :
  564. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  565. test "X$echo_testing_string" = 'X\t' &&
  566. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  567. test "X$echo_testing_string" = "X$echo_test_string"; then
  568. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  569. export CONFIG_SHELL
  570. SHELL="$CONFIG_SHELL"
  571. export SHELL
  572. echo="$CONFIG_SHELL $0 --fallback-echo"
  573. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  574. test "X$echo_testing_string" = 'X\t' &&
  575. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  576. test "X$echo_testing_string" = "X$echo_test_string"; then
  577. echo="$CONFIG_SHELL $0 --fallback-echo"
  578. else
  579. # maybe with a smaller string...
  580. prev=:
  581. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  582. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  583. then
  584. break
  585. fi
  586. prev="$cmd"
  587. done
  588. if test "$prev" != 'sed 50q "$0"'; then
  589. echo_test_string=`eval $prev`
  590. export echo_test_string
  591. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  592. else
  593. # Oops. We lost completely, so just stick with echo.
  594. echo=echo
  595. fi
  596. fi
  597. fi
  598. fi
  599. fi
  600. fi
  601. # Copy echo and quote the copy suitably for passing to libtool from
  602. # the Makefile, instead of quoting the original, which is used later.
  603. ECHO=$echo
  604. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  605. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  606. fi
  607. tagnames=${tagnames+${tagnames},}CXX
  608. tagnames=${tagnames+${tagnames},}F77
  609. exec 7<&0 </dev/null 6>&1
  610. # Name of the host.
  611. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  612. # so uname gets run too.
  613. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  614. #
  615. # Initializations.
  616. #
  617. ac_default_prefix=/usr/local
  618. ac_clean_files=
  619. ac_config_libobj_dir=.
  620. LIBOBJS=
  621. cross_compiling=no
  622. subdirs=
  623. MFLAGS=
  624. MAKEFLAGS=
  625. SHELL=${CONFIG_SHELL-/bin/sh}
  626. # Identity of this package.
  627. PACKAGE_NAME=
  628. PACKAGE_TARNAME=
  629. PACKAGE_VERSION=
  630. PACKAGE_STRING=
  631. PACKAGE_BUGREPORT=
  632. ac_unique_file="src/file.c"
  633. # Factoring default headers for most tests.
  634. ac_includes_default="\
  635. #include <stdio.h>
  636. #ifdef HAVE_SYS_TYPES_H
  637. # include <sys/types.h>
  638. #endif
  639. #ifdef HAVE_SYS_STAT_H
  640. # include <sys/stat.h>
  641. #endif
  642. #ifdef STDC_HEADERS
  643. # include <stdlib.h>
  644. # include <stddef.h>
  645. #else
  646. # ifdef HAVE_STDLIB_H
  647. # include <stdlib.h>
  648. # endif
  649. #endif
  650. #ifdef HAVE_STRING_H
  651. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  652. # include <memory.h>
  653. # endif
  654. # include <string.h>
  655. #endif
  656. #ifdef HAVE_STRINGS_H
  657. # include <strings.h>
  658. #endif
  659. #ifdef HAVE_INTTYPES_H
  660. # include <inttypes.h>
  661. #endif
  662. #ifdef HAVE_STDINT_H
  663. # include <stdint.h>
  664. #endif
  665. #ifdef HAVE_UNISTD_H
  666. # include <unistd.h>
  667. #endif"
  668. ac_subst_vars='SHELL
  669. PATH_SEPARATOR
  670. PACKAGE_NAME
  671. PACKAGE_TARNAME
  672. PACKAGE_VERSION
  673. PACKAGE_STRING
  674. PACKAGE_BUGREPORT
  675. exec_prefix
  676. prefix
  677. program_transform_name
  678. bindir
  679. sbindir
  680. libexecdir
  681. datarootdir
  682. datadir
  683. sysconfdir
  684. sharedstatedir
  685. localstatedir
  686. includedir
  687. oldincludedir
  688. docdir
  689. infodir
  690. htmldir
  691. dvidir
  692. pdfdir
  693. psdir
  694. libdir
  695. localedir
  696. mandir
  697. DEFS
  698. ECHO_C
  699. ECHO_N
  700. ECHO_T
  701. LIBS
  702. build_alias
  703. host_alias
  704. target_alias
  705. INSTALL_PROGRAM
  706. INSTALL_SCRIPT
  707. INSTALL_DATA
  708. am__isrc
  709. CYGPATH_W
  710. PACKAGE
  711. VERSION
  712. ACLOCAL
  713. AUTOCONF
  714. AUTOMAKE
  715. AUTOHEADER
  716. MAKEINFO
  717. install_sh
  718. STRIP
  719. INSTALL_STRIP_PROGRAM
  720. mkdir_p
  721. AWK
  722. SET_MAKE
  723. am__leading_dot
  724. AMTAR
  725. am__tar
  726. am__untar
  727. MAINTAINER_MODE_TRUE
  728. MAINTAINER_MODE_FALSE
  729. MAINT
  730. fsect
  731. FSECT5_TRUE
  732. FSECT5_FALSE
  733. CC
  734. CFLAGS
  735. LDFLAGS
  736. CPPFLAGS
  737. ac_ct_CC
  738. EXEEXT
  739. OBJEXT
  740. DEPDIR
  741. am__include
  742. am__quote
  743. AMDEP_TRUE
  744. AMDEP_FALSE
  745. AMDEPBACKSLASH
  746. CCDEPMODE
  747. am__fastdepCC_TRUE
  748. am__fastdepCC_FALSE
  749. LN_S
  750. build
  751. build_cpu
  752. build_vendor
  753. build_os
  754. host
  755. host_cpu
  756. host_vendor
  757. host_os
  758. GREP
  759. EGREP
  760. ECHO
  761. AR
  762. RANLIB
  763. CPP
  764. CXX
  765. CXXFLAGS
  766. ac_ct_CXX
  767. CXXDEPMODE
  768. am__fastdepCXX_TRUE
  769. am__fastdepCXX_FALSE
  770. CXXCPP
  771. F77
  772. FFLAGS
  773. ac_ct_F77
  774. LIBTOOL
  775. IS_CROSS_COMPILE_TRUE
  776. IS_CROSS_COMPILE_FALSE
  777. LIBOBJS
  778. LTLIBOBJS'
  779. ac_subst_files=''
  780. ac_precious_vars='build_alias
  781. host_alias
  782. target_alias
  783. CC
  784. CFLAGS
  785. LDFLAGS
  786. LIBS
  787. CPPFLAGS
  788. CPP
  789. CXX
  790. CXXFLAGS
  791. CCC
  792. CXXCPP
  793. F77
  794. FFLAGS'
  795. # Initialize some variables set by options.
  796. ac_init_help=
  797. ac_init_version=false
  798. # The variables have the same names as the options, with
  799. # dashes changed to underlines.
  800. cache_file=/dev/null
  801. exec_prefix=NONE
  802. no_create=
  803. no_recursion=
  804. prefix=NONE
  805. program_prefix=NONE
  806. program_suffix=NONE
  807. program_transform_name=s,x,x,
  808. silent=
  809. site=
  810. srcdir=
  811. verbose=
  812. x_includes=NONE
  813. x_libraries=NONE
  814. # Installation directory options.
  815. # These are left unexpanded so users can "make install exec_prefix=/foo"
  816. # and all the variables that are supposed to be based on exec_prefix
  817. # by default will actually change.
  818. # Use braces instead of parens because sh, perl, etc. also accept them.
  819. # (The list follows the same order as the GNU Coding Standards.)
  820. bindir='${exec_prefix}/bin'
  821. sbindir='${exec_prefix}/sbin'
  822. libexecdir='${exec_prefix}/libexec'
  823. datarootdir='${prefix}/share'
  824. datadir='${datarootdir}'
  825. sysconfdir='${prefix}/etc'
  826. sharedstatedir='${prefix}/com'
  827. localstatedir='${prefix}/var'
  828. includedir='${prefix}/include'
  829. oldincludedir='/usr/include'
  830. docdir='${datarootdir}/doc/${PACKAGE}'
  831. infodir='${datarootdir}/info'
  832. htmldir='${docdir}'
  833. dvidir='${docdir}'
  834. pdfdir='${docdir}'
  835. psdir='${docdir}'
  836. libdir='${exec_prefix}/lib'
  837. localedir='${datarootdir}/locale'
  838. mandir='${datarootdir}/man'
  839. ac_prev=
  840. ac_dashdash=
  841. for ac_option
  842. do
  843. # If the previous option needs an argument, assign it.
  844. if test -n "$ac_prev"; then
  845. eval $ac_prev=\$ac_option
  846. ac_prev=
  847. continue
  848. fi
  849. case $ac_option in
  850. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  851. *) ac_optarg=yes ;;
  852. esac
  853. # Accept the important Cygnus configure options, so we can diagnose typos.
  854. case $ac_dashdash$ac_option in
  855. --)
  856. ac_dashdash=yes ;;
  857. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  858. ac_prev=bindir ;;
  859. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  860. bindir=$ac_optarg ;;
  861. -build | --build | --buil | --bui | --bu)
  862. ac_prev=build_alias ;;
  863. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  864. build_alias=$ac_optarg ;;
  865. -cache-file | --cache-file | --cache-fil | --cache-fi \
  866. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  867. ac_prev=cache_file ;;
  868. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  869. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  870. cache_file=$ac_optarg ;;
  871. --config-cache | -C)
  872. cache_file=config.cache ;;
  873. -datadir | --datadir | --datadi | --datad)
  874. ac_prev=datadir ;;
  875. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  876. datadir=$ac_optarg ;;
  877. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  878. | --dataroo | --dataro | --datar)
  879. ac_prev=datarootdir ;;
  880. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  881. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  882. datarootdir=$ac_optarg ;;
  883. -disable-* | --disable-*)
  884. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  885. # Reject names that are not valid shell variable names.
  886. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  887. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  888. { (exit 1); exit 1; }; }
  889. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  890. eval enable_$ac_feature=no ;;
  891. -docdir | --docdir | --docdi | --doc | --do)
  892. ac_prev=docdir ;;
  893. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  894. docdir=$ac_optarg ;;
  895. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  896. ac_prev=dvidir ;;
  897. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  898. dvidir=$ac_optarg ;;
  899. -enable-* | --enable-*)
  900. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  901. # Reject names that are not valid shell variable names.
  902. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  903. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  904. { (exit 1); exit 1; }; }
  905. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  906. eval enable_$ac_feature=\$ac_optarg ;;
  907. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  908. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  909. | --exec | --exe | --ex)
  910. ac_prev=exec_prefix ;;
  911. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  912. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  913. | --exec=* | --exe=* | --ex=*)
  914. exec_prefix=$ac_optarg ;;
  915. -gas | --gas | --ga | --g)
  916. # Obsolete; use --with-gas.
  917. with_gas=yes ;;
  918. -help | --help | --hel | --he | -h)
  919. ac_init_help=long ;;
  920. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  921. ac_init_help=recursive ;;
  922. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  923. ac_init_help=short ;;
  924. -host | --host | --hos | --ho)
  925. ac_prev=host_alias ;;
  926. -host=* | --host=* | --hos=* | --ho=*)
  927. host_alias=$ac_optarg ;;
  928. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  929. ac_prev=htmldir ;;
  930. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  931. | --ht=*)
  932. htmldir=$ac_optarg ;;
  933. -includedir | --includedir | --includedi | --included | --include \
  934. | --includ | --inclu | --incl | --inc)
  935. ac_prev=includedir ;;
  936. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  937. | --includ=* | --inclu=* | --incl=* | --inc=*)
  938. includedir=$ac_optarg ;;
  939. -infodir | --infodir | --infodi | --infod | --info | --inf)
  940. ac_prev=infodir ;;
  941. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  942. infodir=$ac_optarg ;;
  943. -libdir | --libdir | --libdi | --libd)
  944. ac_prev=libdir ;;
  945. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  946. libdir=$ac_optarg ;;
  947. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  948. | --libexe | --libex | --libe)
  949. ac_prev=libexecdir ;;
  950. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  951. | --libexe=* | --libex=* | --libe=*)
  952. libexecdir=$ac_optarg ;;
  953. -localedir | --localedir | --localedi | --localed | --locale)
  954. ac_prev=localedir ;;
  955. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  956. localedir=$ac_optarg ;;
  957. -localstatedir | --localstatedir | --localstatedi | --localstated \
  958. | --localstate | --localstat | --localsta | --localst | --locals)
  959. ac_prev=localstatedir ;;
  960. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  961. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  962. localstatedir=$ac_optarg ;;
  963. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  964. ac_prev=mandir ;;
  965. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  966. mandir=$ac_optarg ;;
  967. -nfp | --nfp | --nf)
  968. # Obsolete; use --without-fp.
  969. with_fp=no ;;
  970. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  971. | --no-cr | --no-c | -n)
  972. no_create=yes ;;
  973. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  974. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  975. no_recursion=yes ;;
  976. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  977. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  978. | --oldin | --oldi | --old | --ol | --o)
  979. ac_prev=oldincludedir ;;
  980. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  981. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  982. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  983. oldincludedir=$ac_optarg ;;
  984. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  985. ac_prev=prefix ;;
  986. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  987. prefix=$ac_optarg ;;
  988. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  989. | --program-pre | --program-pr | --program-p)
  990. ac_prev=program_prefix ;;
  991. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  992. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  993. program_prefix=$ac_optarg ;;
  994. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  995. | --program-suf | --program-su | --program-s)
  996. ac_prev=program_suffix ;;
  997. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  998. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  999. program_suffix=$ac_optarg ;;
  1000. -program-transform-name | --program-transform-name \
  1001. | --program-transform-nam | --program-transform-na \
  1002. | --program-transform-n | --program-transform- \
  1003. | --program-transform | --program-transfor \
  1004. | --program-transfo | --program-transf \
  1005. | --program-trans | --program-tran \
  1006. | --progr-tra | --program-tr | --program-t)
  1007. ac_prev=program_transform_name ;;
  1008. -program-transform-name=* | --program-transform-name=* \
  1009. | --program-transform-nam=* | --program-transform-na=* \
  1010. | --program-transform-n=* | --program-transform-=* \
  1011. | --program-transform=* | --program-transfor=* \
  1012. | --program-transfo=* | --program-transf=* \
  1013. | --program-trans=* | --program-tran=* \
  1014. | --progr-tra=* | --program-tr=* | --program-t=*)
  1015. program_transform_name=$ac_optarg ;;
  1016. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1017. ac_prev=pdfdir ;;
  1018. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1019. pdfdir=$ac_optarg ;;
  1020. -psdir | --psdir | --psdi | --psd | --ps)
  1021. ac_prev=psdir ;;
  1022. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1023. psdir=$ac_optarg ;;
  1024. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1025. | -silent | --silent | --silen | --sile | --sil)
  1026. silent=yes ;;
  1027. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1028. ac_prev=sbindir ;;
  1029. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1030. | --sbi=* | --sb=*)
  1031. sbindir=$ac_optarg ;;
  1032. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1033. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1034. | --sharedst | --shareds | --shared | --share | --shar \
  1035. | --sha | --sh)
  1036. ac_prev=sharedstatedir ;;
  1037. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1038. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1039. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1040. | --sha=* | --sh=*)
  1041. sharedstatedir=$ac_optarg ;;
  1042. -site | --site | --sit)
  1043. ac_prev=site ;;
  1044. -site=* | --site=* | --sit=*)
  1045. site=$ac_optarg ;;
  1046. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1047. ac_prev=srcdir ;;
  1048. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1049. srcdir=$ac_optarg ;;
  1050. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1051. | --syscon | --sysco | --sysc | --sys | --sy)
  1052. ac_prev=sysconfdir ;;
  1053. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1054. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1055. sysconfdir=$ac_optarg ;;
  1056. -target | --target | --targe | --targ | --tar | --ta | --t)
  1057. ac_prev=target_alias ;;
  1058. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1059. target_alias=$ac_optarg ;;
  1060. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1061. verbose=yes ;;
  1062. -version | --version | --versio | --versi | --vers | -V)
  1063. ac_init_version=: ;;
  1064. -with-* | --with-*)
  1065. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1066. # Reject names that are not valid shell variable names.
  1067. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1068. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1069. { (exit 1); exit 1; }; }
  1070. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1071. eval with_$ac_package=\$ac_optarg ;;
  1072. -without-* | --without-*)
  1073. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1074. # Reject names that are not valid shell variable names.
  1075. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1076. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1077. { (exit 1); exit 1; }; }
  1078. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1079. eval with_$ac_package=no ;;
  1080. --x)
  1081. # Obsolete; use --with-x.
  1082. with_x=yes ;;
  1083. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1084. | --x-incl | --x-inc | --x-in | --x-i)
  1085. ac_prev=x_includes ;;
  1086. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1087. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1088. x_includes=$ac_optarg ;;
  1089. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1090. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1091. ac_prev=x_libraries ;;
  1092. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1093. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1094. x_libraries=$ac_optarg ;;
  1095. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1096. Try \`$0 --help' for more information." >&2
  1097. { (exit 1); exit 1; }; }
  1098. ;;
  1099. *=*)
  1100. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1101. # Reject names that are not valid shell variable names.
  1102. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1103. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1104. { (exit 1); exit 1; }; }
  1105. eval $ac_envvar=\$ac_optarg
  1106. export $ac_envvar ;;
  1107. *)
  1108. # FIXME: should be removed in autoconf 3.0.
  1109. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1110. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1111. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1112. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1113. ;;
  1114. esac
  1115. done
  1116. if test -n "$ac_prev"; then
  1117. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1118. { echo "$as_me: error: missing argument to $ac_option" >&2
  1119. { (exit 1); exit 1; }; }
  1120. fi
  1121. # Be sure to have absolute directory names.
  1122. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1123. datadir sysconfdir sharedstatedir localstatedir includedir \
  1124. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1125. libdir localedir mandir
  1126. do
  1127. eval ac_val=\$$ac_var
  1128. case $ac_val in
  1129. [\\/$]* | ?:[\\/]* ) continue;;
  1130. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1131. esac
  1132. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1133. { (exit 1); exit 1; }; }
  1134. done
  1135. # There might be people who depend on the old broken behavior: `$host'
  1136. # used to hold the argument of --host etc.
  1137. # FIXME: To remove some day.
  1138. build=$build_alias
  1139. host=$host_alias
  1140. target=$target_alias
  1141. # FIXME: To remove some day.
  1142. if test "x$host_alias" != x; then
  1143. if test "x$build_alias" = x; then
  1144. cross_compiling=maybe
  1145. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1146. If a cross compiler is detected then cross compile mode will be used." >&2
  1147. elif test "x$build_alias" != "x$host_alias"; then
  1148. cross_compiling=yes
  1149. fi
  1150. fi
  1151. ac_tool_prefix=
  1152. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1153. test "$silent" = yes && exec 6>/dev/null
  1154. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1155. ac_ls_di=`ls -di .` &&
  1156. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1157. { echo "$as_me: error: Working directory cannot be determined" >&2
  1158. { (exit 1); exit 1; }; }
  1159. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1160. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1161. { (exit 1); exit 1; }; }
  1162. # Find the source files, if location was not specified.
  1163. if test -z "$srcdir"; then
  1164. ac_srcdir_defaulted=yes
  1165. # Try the directory containing this script, then the parent directory.
  1166. ac_confdir=`$as_dirname -- "$0" ||
  1167. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1168. X"$0" : 'X\(//\)[^/]' \| \
  1169. X"$0" : 'X\(//\)$' \| \
  1170. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1171. echo X"$0" |
  1172. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1173. s//\1/
  1174. q
  1175. }
  1176. /^X\(\/\/\)[^/].*/{
  1177. s//\1/
  1178. q
  1179. }
  1180. /^X\(\/\/\)$/{
  1181. s//\1/
  1182. q
  1183. }
  1184. /^X\(\/\).*/{
  1185. s//\1/
  1186. q
  1187. }
  1188. s/.*/./; q'`
  1189. srcdir=$ac_confdir
  1190. if test ! -r "$srcdir/$ac_unique_file"; then
  1191. srcdir=..
  1192. fi
  1193. else
  1194. ac_srcdir_defaulted=no
  1195. fi
  1196. if test ! -r "$srcdir/$ac_unique_file"; then
  1197. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1198. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1199. { (exit 1); exit 1; }; }
  1200. fi
  1201. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1202. ac_abs_confdir=`(
  1203. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1204. { (exit 1); exit 1; }; }
  1205. pwd)`
  1206. # When building in place, set srcdir=.
  1207. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1208. srcdir=.
  1209. fi
  1210. # Remove unnecessary trailing slashes from srcdir.
  1211. # Double slashes in file names in object file debugging info
  1212. # mess up M-x gdb in Emacs.
  1213. case $srcdir in
  1214. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1215. esac
  1216. for ac_var in $ac_precious_vars; do
  1217. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1218. eval ac_env_${ac_var}_value=\$${ac_var}
  1219. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1220. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1221. done
  1222. #
  1223. # Report the --help message.
  1224. #
  1225. if test "$ac_init_help" = "long"; then
  1226. # Omit some internal or obsolete options to make the list less imposing.
  1227. # This message is too long to be a string in the A/UX 3.1 sh.
  1228. cat <<_ACEOF
  1229. \`configure' configures this package to adapt to many kinds of systems.
  1230. Usage: $0 [OPTION]... [VAR=VALUE]...
  1231. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1232. VAR=VALUE. See below for descriptions of some of the useful variables.
  1233. Defaults for the options are specified in brackets.
  1234. Configuration:
  1235. -h, --help display this help and exit
  1236. --help=short display options specific to this package
  1237. --help=recursive display the short help of all the included packages
  1238. -V, --version display version information and exit
  1239. -q, --quiet, --silent do not print \`checking...' messages
  1240. --cache-file=FILE cache test results in FILE [disabled]
  1241. -C, --config-cache alias for \`--cache-file=config.cache'
  1242. -n, --no-create do not create output files
  1243. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1244. Installation directories:
  1245. --prefix=PREFIX install architecture-independent files in PREFIX
  1246. [$ac_default_prefix]
  1247. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1248. [PREFIX]
  1249. By default, \`make install' will install all the files in
  1250. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1251. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1252. for instance \`--prefix=\$HOME'.
  1253. For better control, use the options below.
  1254. Fine tuning of the installation directories:
  1255. --bindir=DIR user executables [EPREFIX/bin]
  1256. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1257. --libexecdir=DIR program executables [EPREFIX/libexec]
  1258. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1259. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1260. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1261. --libdir=DIR object code libraries [EPREFIX/lib]
  1262. --includedir=DIR C header files [PREFIX/include]
  1263. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1264. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1265. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1266. --infodir=DIR info documentation [DATAROOTDIR/info]
  1267. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1268. --mandir=DIR man documentation [DATAROOTDIR/man]
  1269. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1270. --htmldir=DIR html documentation [DOCDIR]
  1271. --dvidir=DIR dvi documentation [DOCDIR]
  1272. --pdfdir=DIR pdf documentation [DOCDIR]
  1273. --psdir=DIR ps documentation [DOCDIR]
  1274. _ACEOF
  1275. cat <<\_ACEOF
  1276. Program names:
  1277. --program-prefix=PREFIX prepend PREFIX to installed program names
  1278. --program-suffix=SUFFIX append SUFFIX to installed program names
  1279. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1280. System types:
  1281. --build=BUILD configure for building on BUILD [guessed]
  1282. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1283. _ACEOF
  1284. fi
  1285. if test -n "$ac_init_help"; then
  1286. cat <<\_ACEOF
  1287. Optional Features:
  1288. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1289. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1290. --enable-maintainer-mode enable make rules and dependencies not useful
  1291. (and sometimes confusing) to the casual installer
  1292. --disable-elf disable builtin ELF support
  1293. --disable-elf-core disable ELF core file support
  1294. --enable-fsect-man5 enable file formats in man section 5
  1295. --disable-dependency-tracking speeds up one-time build
  1296. --enable-dependency-tracking do not reject slow dependency extractors
  1297. --enable-shared[=PKGS] build shared libraries [default=yes]
  1298. --enable-static[=PKGS] build static libraries [default=yes]
  1299. --enable-fast-install[=PKGS]
  1300. optimize for fast installation [default=yes]
  1301. --disable-libtool-lock avoid locking (might break parallel builds)
  1302. --disable-largefile omit support for large files
  1303. Optional Packages:
  1304. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1305. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1306. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1307. --with-pic try to use only PIC/non-PIC objects [default=use
  1308. both]
  1309. --with-tags[=TAGS] include additional configurations [automatic]
  1310. Some influential environment variables:
  1311. CC C compiler command
  1312. CFLAGS C compiler flags
  1313. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1314. nonstandard directory <lib dir>
  1315. LIBS libraries to pass to the linker, e.g. -l<library>
  1316. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1317. you have headers in a nonstandard directory <include dir>
  1318. CPP C preprocessor
  1319. CXX C++ compiler command
  1320. CXXFLAGS C++ compiler flags
  1321. CXXCPP C++ preprocessor
  1322. F77 Fortran 77 compiler command
  1323. FFLAGS Fortran 77 compiler flags
  1324. Use these variables to override the choices made by `configure' or to help
  1325. it to find libraries and programs with nonstandard names/locations.
  1326. _ACEOF
  1327. ac_status=$?
  1328. fi
  1329. if test "$ac_init_help" = "recursive"; then
  1330. # If there are subdirs, report their specific --help.
  1331. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1332. test -d "$ac_dir" || continue
  1333. ac_builddir=.
  1334. case "$ac_dir" in
  1335. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1336. *)
  1337. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1338. # A ".." for each directory in $ac_dir_suffix.
  1339. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1340. case $ac_top_builddir_sub in
  1341. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1342. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1343. esac ;;
  1344. esac
  1345. ac_abs_top_builddir=$ac_pwd
  1346. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1347. # for backward compatibility:
  1348. ac_top_builddir=$ac_top_build_prefix
  1349. case $srcdir in
  1350. .) # We are building in place.
  1351. ac_srcdir=.
  1352. ac_top_srcdir=$ac_top_builddir_sub
  1353. ac_abs_top_srcdir=$ac_pwd ;;
  1354. [\\/]* | ?:[\\/]* ) # Absolute name.
  1355. ac_srcdir=$srcdir$ac_dir_suffix;
  1356. ac_top_srcdir=$srcdir
  1357. ac_abs_top_srcdir=$srcdir ;;
  1358. *) # Relative name.
  1359. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1360. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1361. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1362. esac
  1363. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1364. cd "$ac_dir" || { ac_status=$?; continue; }
  1365. # Check for guested configure.
  1366. if test -f "$ac_srcdir/configure.gnu"; then
  1367. echo &&
  1368. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1369. elif test -f "$ac_srcdir/configure"; then
  1370. echo &&
  1371. $SHELL "$ac_srcdir/configure" --help=recursive
  1372. else
  1373. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1374. fi || ac_status=$?
  1375. cd "$ac_pwd" || { ac_status=$?; break; }
  1376. done
  1377. fi
  1378. test -n "$ac_init_help" && exit $ac_status
  1379. if $ac_init_version; then
  1380. cat <<\_ACEOF
  1381. configure
  1382. generated by GNU Autoconf 2.61
  1383. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1384. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1385. This configure script is free software; the Free Software Foundation
  1386. gives unlimited permission to copy, distribute and modify it.
  1387. _ACEOF
  1388. exit
  1389. fi
  1390. cat >config.log <<_ACEOF
  1391. This file contains any messages produced by compilers while
  1392. running configure, to aid debugging if configure makes a mistake.
  1393. It was created by $as_me, which was
  1394. generated by GNU Autoconf 2.61. Invocation command line was
  1395. $ $0 $@
  1396. _ACEOF
  1397. exec 5>>config.log
  1398. {
  1399. cat <<_ASUNAME
  1400. ## --------- ##
  1401. ## Platform. ##
  1402. ## --------- ##
  1403. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1404. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1405. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1406. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1407. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1408. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1409. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1410. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1411. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1412. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1413. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1414. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1415. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1416. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1417. _ASUNAME
  1418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1419. for as_dir in $PATH
  1420. do
  1421. IFS=$as_save_IFS
  1422. test -z "$as_dir" && as_dir=.
  1423. echo "PATH: $as_dir"
  1424. done
  1425. IFS=$as_save_IFS
  1426. } >&5
  1427. cat >&5 <<_ACEOF
  1428. ## ----------- ##
  1429. ## Core tests. ##
  1430. ## ----------- ##
  1431. _ACEOF
  1432. # Keep a trace of the command line.
  1433. # Strip out --no-create and --no-recursion so they do not pile up.
  1434. # Strip out --silent because we don't want to record it for future runs.
  1435. # Also quote any args containing shell meta-characters.
  1436. # Make two passes to allow for proper duplicate-argument suppression.
  1437. ac_configure_args=
  1438. ac_configure_args0=
  1439. ac_configure_args1=
  1440. ac_must_keep_next=false
  1441. for ac_pass in 1 2
  1442. do
  1443. for ac_arg
  1444. do
  1445. case $ac_arg in
  1446. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1447. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1448. | -silent | --silent | --silen | --sile | --sil)
  1449. continue ;;
  1450. *\'*)
  1451. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1452. esac
  1453. case $ac_pass in
  1454. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1455. 2)
  1456. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1457. if test $ac_must_keep_next = true; then
  1458. ac_must_keep_next=false # Got value, back to normal.
  1459. else
  1460. case $ac_arg in
  1461. *=* | --config-cache | -C | -disable-* | --disable-* \
  1462. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1463. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1464. | -with-* | --with-* | -without-* | --without-* | --x)
  1465. case "$ac_configure_args0 " in
  1466. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1467. esac
  1468. ;;
  1469. -* ) ac_must_keep_next=true ;;
  1470. esac
  1471. fi
  1472. ac_configure_args="$ac_configure_args '$ac_arg'"
  1473. ;;
  1474. esac
  1475. done
  1476. done
  1477. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1478. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1479. # When interrupted or exit'd, cleanup temporary files, and complete
  1480. # config.log. We remove comments because anyway the quotes in there
  1481. # would cause problems or look ugly.
  1482. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1483. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1484. trap 'exit_status=$?
  1485. # Save into config.log some information that might help in debugging.
  1486. {
  1487. echo
  1488. cat <<\_ASBOX
  1489. ## ---------------- ##
  1490. ## Cache variables. ##
  1491. ## ---------------- ##
  1492. _ASBOX
  1493. echo
  1494. # The following way of writing the cache mishandles newlines in values,
  1495. (
  1496. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1497. eval ac_val=\$$ac_var
  1498. case $ac_val in #(
  1499. *${as_nl}*)
  1500. case $ac_var in #(
  1501. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1502. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1503. esac
  1504. case $ac_var in #(
  1505. _ | IFS | as_nl) ;; #(
  1506. *) $as_unset $ac_var ;;
  1507. esac ;;
  1508. esac
  1509. done
  1510. (set) 2>&1 |
  1511. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1512. *${as_nl}ac_space=\ *)
  1513. sed -n \
  1514. "s/'\''/'\''\\\\'\'''\''/g;
  1515. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1516. ;; #(
  1517. *)
  1518. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1519. ;;
  1520. esac |
  1521. sort
  1522. )
  1523. echo
  1524. cat <<\_ASBOX
  1525. ## ----------------- ##
  1526. ## Output variables. ##
  1527. ## ----------------- ##
  1528. _ASBOX
  1529. echo
  1530. for ac_var in $ac_subst_vars
  1531. do
  1532. eval ac_val=\$$ac_var
  1533. case $ac_val in
  1534. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1535. esac
  1536. echo "$ac_var='\''$ac_val'\''"
  1537. done | sort
  1538. echo
  1539. if test -n "$ac_subst_files"; then
  1540. cat <<\_ASBOX
  1541. ## ------------------- ##
  1542. ## File substitutions. ##
  1543. ## ------------------- ##
  1544. _ASBOX
  1545. echo
  1546. for ac_var in $ac_subst_files
  1547. do
  1548. eval ac_val=\$$ac_var
  1549. case $ac_val in
  1550. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1551. esac
  1552. echo "$ac_var='\''$ac_val'\''"
  1553. done | sort
  1554. echo
  1555. fi
  1556. if test -s confdefs.h; then
  1557. cat <<\_ASBOX
  1558. ## ----------- ##
  1559. ## confdefs.h. ##
  1560. ## ----------- ##
  1561. _ASBOX
  1562. echo
  1563. cat confdefs.h
  1564. echo
  1565. fi
  1566. test "$ac_signal" != 0 &&
  1567. echo "$as_me: caught signal $ac_signal"
  1568. echo "$as_me: exit $exit_status"
  1569. } >&5
  1570. rm -f core *.core core.conftest.* &&
  1571. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1572. exit $exit_status
  1573. ' 0
  1574. for ac_signal in 1 2 13 15; do
  1575. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1576. done
  1577. ac_signal=0
  1578. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1579. rm -f -r conftest* confdefs.h
  1580. # Predefined preprocessor variables.
  1581. cat >>confdefs.h <<_ACEOF
  1582. #define PACKAGE_NAME "$PACKAGE_NAME"
  1583. _ACEOF
  1584. cat >>confdefs.h <<_ACEOF
  1585. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1586. _ACEOF
  1587. cat >>confdefs.h <<_ACEOF
  1588. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1589. _ACEOF
  1590. cat >>confdefs.h <<_ACEOF
  1591. #define PACKAGE_STRING "$PACKAGE_STRING"
  1592. _ACEOF
  1593. cat >>confdefs.h <<_ACEOF
  1594. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1595. _ACEOF
  1596. # Let the site file select an alternate cache file if it wants to.
  1597. # Prefer explicitly selected file to automatically selected ones.
  1598. if test -n "$CONFIG_SITE"; then
  1599. set x "$CONFIG_SITE"
  1600. elif test "x$prefix" != xNONE; then
  1601. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1602. else
  1603. set x "$ac_default_prefix/share/config.site" \
  1604. "$ac_default_prefix/etc/config.site"
  1605. fi
  1606. shift
  1607. for ac_site_file
  1608. do
  1609. if test -r "$ac_site_file"; then
  1610. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1611. echo "$as_me: loading site script $ac_site_file" >&6;}
  1612. sed 's/^/| /' "$ac_site_file" >&5
  1613. . "$ac_site_file"
  1614. fi
  1615. done
  1616. if test -r "$cache_file"; then
  1617. # Some versions of bash will fail to source /dev/null (special
  1618. # files actually), so we avoid doing that.
  1619. if test -f "$cache_file"; then
  1620. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1621. echo "$as_me: loading cache $cache_file" >&6;}
  1622. case $cache_file in
  1623. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1624. *) . "./$cache_file";;
  1625. esac
  1626. fi
  1627. else
  1628. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1629. echo "$as_me: creating cache $cache_file" >&6;}
  1630. >$cache_file
  1631. fi
  1632. # Check that the precious variables saved in the cache have kept the same
  1633. # value.
  1634. ac_cache_corrupted=false
  1635. for ac_var in $ac_precious_vars; do
  1636. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1637. eval ac_new_set=\$ac_env_${ac_var}_set
  1638. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1639. eval ac_new_val=\$ac_env_${ac_var}_value
  1640. case $ac_old_set,$ac_new_set in
  1641. set,)
  1642. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1643. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1644. ac_cache_corrupted=: ;;
  1645. ,set)
  1646. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1647. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1648. ac_cache_corrupted=: ;;
  1649. ,);;
  1650. *)
  1651. if test "x$ac_old_val" != "x$ac_new_val"; then
  1652. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1653. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1654. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1655. echo "$as_me: former value: $ac_old_val" >&2;}
  1656. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1657. echo "$as_me: current value: $ac_new_val" >&2;}
  1658. ac_cache_corrupted=:
  1659. fi;;
  1660. esac
  1661. # Pass precious variables to config.status.
  1662. if test "$ac_new_set" = set; then
  1663. case $ac_new_val in
  1664. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1665. *) ac_arg=$ac_var=$ac_new_val ;;
  1666. esac
  1667. case " $ac_configure_args " in
  1668. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1669. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1670. esac
  1671. fi
  1672. done
  1673. if $ac_cache_corrupted; then
  1674. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1675. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1676. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1677. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1678. { (exit 1); exit 1; }; }
  1679. fi
  1680. ac_ext=c
  1681. ac_cpp='$CPP $CPPFLAGS'
  1682. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1683. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1684. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1685. am__api_version='1.10'
  1686. ac_aux_dir=
  1687. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1688. if test -f "$ac_dir/install-sh"; then
  1689. ac_aux_dir=$ac_dir
  1690. ac_install_sh="$ac_aux_dir/install-sh -c"
  1691. break
  1692. elif test -f "$ac_dir/install.sh"; then
  1693. ac_aux_dir=$ac_dir
  1694. ac_install_sh="$ac_aux_dir/install.sh -c"
  1695. break
  1696. elif test -f "$ac_dir/shtool"; then
  1697. ac_aux_dir=$ac_dir
  1698. ac_install_sh="$ac_aux_dir/shtool install -c"
  1699. break
  1700. fi
  1701. done
  1702. if test -z "$ac_aux_dir"; then
  1703. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1704. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1705. { (exit 1); exit 1; }; }
  1706. fi
  1707. # These three variables are undocumented and unsupported,
  1708. # and are intended to be withdrawn in a future Autoconf release.
  1709. # They can cause serious problems if a builder's source tree is in a directory
  1710. # whose full name contains unusual characters.
  1711. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1712. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1713. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1714. # Find a good install program. We prefer a C program (faster),
  1715. # so one script is as good as another. But avoid the broken or
  1716. # incompatible versions:
  1717. # SysV /etc/install, /usr/sbin/install
  1718. # SunOS /usr/etc/install
  1719. # IRIX /sbin/install
  1720. # AIX /bin/install
  1721. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1722. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1723. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1724. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1725. # OS/2's system install, which has a completely different semantic
  1726. # ./install, which can be erroneously created by make from ./install.sh.
  1727. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1728. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1729. if test -z "$INSTALL"; then
  1730. if test "${ac_cv_path_install+set}" = set; then
  1731. echo $ECHO_N "(cached) $ECHO_C" >&6
  1732. else
  1733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1734. for as_dir in $PATH
  1735. do
  1736. IFS=$as_save_IFS
  1737. test -z "$as_dir" && as_dir=.
  1738. # Account for people who put trailing slashes in PATH elements.
  1739. case $as_dir/ in
  1740. ./ | .// | /cC/* | \
  1741. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1742. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1743. /usr/ucb/* ) ;;
  1744. *)
  1745. # OSF1 and SCO ODT 3.0 have their own names for install.
  1746. # Don't use installbsd from OSF since it installs stuff as root
  1747. # by default.
  1748. for ac_prog in ginstall scoinst install; do
  1749. for ac_exec_ext in '' $ac_executable_extensions; do
  1750. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1751. if test $ac_prog = install &&
  1752. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1753. # AIX install. It has an incompatible calling convention.
  1754. :
  1755. elif test $ac_prog = install &&
  1756. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1757. # program-specific install script used by HP pwplus--don't use.
  1758. :
  1759. else
  1760. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1761. break 3
  1762. fi
  1763. fi
  1764. done
  1765. done
  1766. ;;
  1767. esac
  1768. done
  1769. IFS=$as_save_IFS
  1770. fi
  1771. if test "${ac_cv_path_install+set}" = set; then
  1772. INSTALL=$ac_cv_path_install
  1773. else
  1774. # As a last resort, use the slow shell script. Don't cache a
  1775. # value for INSTALL within a source directory, because that will
  1776. # break other packages using the cache if that directory is
  1777. # removed, or if the value is a relative name.
  1778. INSTALL=$ac_install_sh
  1779. fi
  1780. fi
  1781. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1782. echo "${ECHO_T}$INSTALL" >&6; }
  1783. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1784. # It thinks the first close brace ends the variable substitution.
  1785. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1786. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1787. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1788. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1789. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1790. # Just in case
  1791. sleep 1
  1792. echo timestamp > conftest.file
  1793. # Do `set' in a subshell so we don't clobber the current shell's
  1794. # arguments. Must try -L first in case configure is actually a
  1795. # symlink; some systems play weird games with the mod time of symlinks
  1796. # (eg FreeBSD returns the mod time of the symlink's containing
  1797. # directory).
  1798. if (
  1799. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1800. if test "$*" = "X"; then
  1801. # -L didn't work.
  1802. set X `ls -t $srcdir/configure conftest.file`
  1803. fi
  1804. rm -f conftest.file
  1805. if test "$*" != "X $srcdir/configure conftest.file" \
  1806. && test "$*" != "X conftest.file $srcdir/configure"; then
  1807. # If neither matched, then we have a broken ls. This can happen
  1808. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1809. # broken ls alias from the environment. This has actually
  1810. # happened. Such a system could not be considered "sane".
  1811. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1812. alias in your environment" >&5
  1813. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1814. alias in your environment" >&2;}
  1815. { (exit 1); exit 1; }; }
  1816. fi
  1817. test "$2" = conftest.file
  1818. )
  1819. then
  1820. # Ok.
  1821. :
  1822. else
  1823. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1824. Check your system clock" >&5
  1825. echo "$as_me: error: newly created file is older than distributed files!
  1826. Check your system clock" >&2;}
  1827. { (exit 1); exit 1; }; }
  1828. fi
  1829. { echo "$as_me:$LINENO: result: yes" >&5
  1830. echo "${ECHO_T}yes" >&6; }
  1831. test "$program_prefix" != NONE &&
  1832. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1833. # Use a double $ so make ignores it.
  1834. test "$program_suffix" != NONE &&
  1835. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1836. # Double any \ or $. echo might interpret backslashes.
  1837. # By default was `s,x,x', remove it if useless.
  1838. cat <<\_ACEOF >conftest.sed
  1839. s/[\\$]/&&/g;s/;s,x,x,$//
  1840. _ACEOF
  1841. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1842. rm -f conftest.sed
  1843. # expand $ac_aux_dir to an absolute path
  1844. am_aux_dir=`cd $ac_aux_dir && pwd`
  1845. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1846. # Use eval to expand $SHELL
  1847. if eval "$MISSING --run true"; then
  1848. am_missing_run="$MISSING --run "
  1849. else
  1850. am_missing_run=
  1851. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1852. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1853. fi
  1854. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1855. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  1856. if test -z "$MKDIR_P"; then
  1857. if test "${ac_cv_path_mkdir+set}" = set; then
  1858. echo $ECHO_N "(cached) $ECHO_C" >&6
  1859. else
  1860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1861. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  1862. do
  1863. IFS=$as_save_IFS
  1864. test -z "$as_dir" && as_dir=.
  1865. for ac_prog in mkdir gmkdir; do
  1866. for ac_exec_ext in '' $ac_executable_extensions; do
  1867. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  1868. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  1869. 'mkdir (GNU coreutils) '* | \
  1870. 'mkdir (coreutils) '* | \
  1871. 'mkdir (fileutils) '4.1*)
  1872. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  1873. break 3;;
  1874. esac
  1875. done
  1876. done
  1877. done
  1878. IFS=$as_save_IFS
  1879. fi
  1880. if test "${ac_cv_path_mkdir+set}" = set; then
  1881. MKDIR_P="$ac_cv_path_mkdir -p"
  1882. else
  1883. # As a last resort, use the slow shell script. Don't cache a
  1884. # value for MKDIR_P within a source directory, because that will
  1885. # break other packages using the cache if that directory is
  1886. # removed, or if the value is a relative name.
  1887. test -d ./--version && rmdir ./--version
  1888. MKDIR_P="$ac_install_sh -d"
  1889. fi
  1890. fi
  1891. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  1892. echo "${ECHO_T}$MKDIR_P" >&6; }
  1893. mkdir_p="$MKDIR_P"
  1894. case $mkdir_p in
  1895. [\\/$]* | ?:[\\/]*) ;;
  1896. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  1897. esac
  1898. for ac_prog in gawk mawk nawk awk
  1899. do
  1900. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1901. set dummy $ac_prog; ac_word=$2
  1902. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1903. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1904. if test "${ac_cv_prog_AWK+set}" = set; then
  1905. echo $ECHO_N "(cached) $ECHO_C" >&6
  1906. else
  1907. if test -n "$AWK"; then
  1908. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1909. else
  1910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1911. for as_dir in $PATH
  1912. do
  1913. IFS=$as_save_IFS
  1914. test -z "$as_dir" && as_dir=.
  1915. for ac_exec_ext in '' $ac_executable_extensions; do
  1916. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1917. ac_cv_prog_AWK="$ac_prog"
  1918. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1919. break 2
  1920. fi
  1921. done
  1922. done
  1923. IFS=$as_save_IFS
  1924. fi
  1925. fi
  1926. AWK=$ac_cv_prog_AWK
  1927. if test -n "$AWK"; then
  1928. { echo "$as_me:$LINENO: result: $AWK" >&5
  1929. echo "${ECHO_T}$AWK" >&6; }
  1930. else
  1931. { echo "$as_me:$LINENO: result: no" >&5
  1932. echo "${ECHO_T}no" >&6; }
  1933. fi
  1934. test -n "$AWK" && break
  1935. done
  1936. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1937. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  1938. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  1939. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  1940. echo $ECHO_N "(cached) $ECHO_C" >&6
  1941. else
  1942. cat >conftest.make <<\_ACEOF
  1943. SHELL = /bin/sh
  1944. all:
  1945. @echo '@@@%%%=$(MAKE)=@@@%%%'
  1946. _ACEOF
  1947. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1948. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  1949. *@@@%%%=?*=@@@%%%*)
  1950. eval ac_cv_prog_make_${ac_make}_set=yes;;
  1951. *)
  1952. eval ac_cv_prog_make_${ac_make}_set=no;;
  1953. esac
  1954. rm -f conftest.make
  1955. fi
  1956. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  1957. { echo "$as_me:$LINENO: result: yes" >&5
  1958. echo "${ECHO_T}yes" >&6; }
  1959. SET_MAKE=
  1960. else
  1961. { echo "$as_me:$LINENO: result: no" >&5
  1962. echo "${ECHO_T}no" >&6; }
  1963. SET_MAKE="MAKE=${MAKE-make}"
  1964. fi
  1965. rm -rf .tst 2>/dev/null
  1966. mkdir .tst 2>/dev/null
  1967. if test -d .tst; then
  1968. am__leading_dot=.
  1969. else
  1970. am__leading_dot=_
  1971. fi
  1972. rmdir .tst 2>/dev/null
  1973. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  1974. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  1975. # is not polluted with repeated "-I."
  1976. am__isrc=' -I$(srcdir)'
  1977. # test to see if srcdir already configured
  1978. if test -f $srcdir/config.status; then
  1979. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1980. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1981. { (exit 1); exit 1; }; }
  1982. fi
  1983. fi
  1984. # test whether we have cygpath
  1985. if test -z "$CYGPATH_W"; then
  1986. if (cygpath --version) >/dev/null 2>/dev/null; then
  1987. CYGPATH_W='cygpath -w'
  1988. else
  1989. CYGPATH_W=echo
  1990. fi
  1991. fi
  1992. # Define the identity of the package.
  1993. PACKAGE=file
  1994. VERSION=4.23
  1995. cat >>confdefs.h <<_ACEOF
  1996. #define PACKAGE "$PACKAGE"
  1997. _ACEOF
  1998. cat >>confdefs.h <<_ACEOF
  1999. #define VERSION "$VERSION"
  2000. _ACEOF
  2001. # Some tools Automake needs.
  2002. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2003. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2004. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2005. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2006. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2007. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2008. # Installed binaries are usually stripped using `strip' when the user
  2009. # run `make install-strip'. However `strip' might not be the right
  2010. # tool to use in cross-compilation environments, therefore Automake
  2011. # will honor the `STRIP' environment variable to overrule this program.
  2012. if test "$cross_compiling" != no; then
  2013. if test -n "$ac_tool_prefix"; then
  2014. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2015. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2016. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2017. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2018. if test "${ac_cv_prog_STRIP+set}" = set; then
  2019. echo $ECHO_N "(cached) $ECHO_C" >&6
  2020. else
  2021. if test -n "$STRIP"; then
  2022. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2023. else
  2024. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2025. for as_dir in $PATH
  2026. do
  2027. IFS=$as_save_IFS
  2028. test -z "$as_dir" && as_dir=.
  2029. for ac_exec_ext in '' $ac_executable_extensions; do
  2030. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2031. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2032. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2033. break 2
  2034. fi
  2035. done
  2036. done
  2037. IFS=$as_save_IFS
  2038. fi
  2039. fi
  2040. STRIP=$ac_cv_prog_STRIP
  2041. if test -n "$STRIP"; then
  2042. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2043. echo "${ECHO_T}$STRIP" >&6; }
  2044. else
  2045. { echo "$as_me:$LINENO: result: no" >&5
  2046. echo "${ECHO_T}no" >&6; }
  2047. fi
  2048. fi
  2049. if test -z "$ac_cv_prog_STRIP"; then
  2050. ac_ct_STRIP=$STRIP
  2051. # Extract the first word of "strip", so it can be a program name with args.
  2052. set dummy strip; ac_word=$2
  2053. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2054. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2055. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2056. echo $ECHO_N "(cached) $ECHO_C" >&6
  2057. else
  2058. if test -n "$ac_ct_STRIP"; then
  2059. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2060. else
  2061. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2062. for as_dir in $PATH
  2063. do
  2064. IFS=$as_save_IFS
  2065. test -z "$as_dir" && as_dir=.
  2066. for ac_exec_ext in '' $ac_executable_extensions; do
  2067. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2068. ac_cv_prog_ac_ct_STRIP="strip"
  2069. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2070. break 2
  2071. fi
  2072. done
  2073. done
  2074. IFS=$as_save_IFS
  2075. fi
  2076. fi
  2077. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2078. if test -n "$ac_ct_STRIP"; then
  2079. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2080. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2081. else
  2082. { echo "$as_me:$LINENO: result: no" >&5
  2083. echo "${ECHO_T}no" >&6; }
  2084. fi
  2085. if test "x$ac_ct_STRIP" = x; then
  2086. STRIP=":"
  2087. else
  2088. case $cross_compiling:$ac_tool_warned in
  2089. yes:)
  2090. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2091. whose name does not start with the host triplet. If you think this
  2092. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2093. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2094. whose name does not start with the host triplet. If you think this
  2095. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2096. ac_tool_warned=yes ;;
  2097. esac
  2098. STRIP=$ac_ct_STRIP
  2099. fi
  2100. else
  2101. STRIP="$ac_cv_prog_STRIP"
  2102. fi
  2103. fi
  2104. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2105. # We need awk for the "check" target. The system "awk" is bad on
  2106. # some platforms.
  2107. # Always define AMTAR for backward compatibility.
  2108. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2109. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2110. ac_config_headers="$ac_config_headers config.h"
  2111. { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2112. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  2113. # Check whether --enable-maintainer-mode was given.
  2114. if test "${enable_maintainer_mode+set}" = set; then
  2115. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2116. else
  2117. USE_MAINTAINER_MODE=no
  2118. fi
  2119. { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2120. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  2121. if test $USE_MAINTAINER_MODE = yes; then
  2122. MAINTAINER_MODE_TRUE=
  2123. MAINTAINER_MODE_FALSE='#'
  2124. else
  2125. MAINTAINER_MODE_TRUE='#'
  2126. MAINTAINER_MODE_FALSE=
  2127. fi
  2128. MAINT=$MAINTAINER_MODE_TRUE
  2129. { echo "$as_me:$LINENO: checking for builtin ELF support" >&5
  2130. echo $ECHO_N "checking for builtin ELF support... $ECHO_C" >&6; }
  2131. # Check whether --enable-elf was given.
  2132. if test "${enable_elf+set}" = set; then
  2133. enableval=$enable_elf; if test "${enableval}" = yes; then
  2134. { echo "$as_me:$LINENO: result: yes" >&5
  2135. echo "${ECHO_T}yes" >&6; }
  2136. cat >>confdefs.h <<\_ACEOF
  2137. #define BUILTIN_ELF 1
  2138. _ACEOF
  2139. else
  2140. { echo "$as_me:$LINENO: result: no" >&5
  2141. echo "${ECHO_T}no" >&6; }
  2142. fi
  2143. else
  2144. # enable by default
  2145. { echo "$as_me:$LINENO: result: yes" >&5
  2146. echo "${ECHO_T}yes" >&6; }
  2147. cat >>confdefs.h <<\_ACEOF
  2148. #define BUILTIN_ELF 1
  2149. _ACEOF
  2150. fi
  2151. { echo "$as_me:$LINENO: checking for ELF core file support" >&5
  2152. echo $ECHO_N "checking for ELF core file support... $ECHO_C" >&6; }
  2153. # Check whether --enable-elf-core was given.
  2154. if test "${enable_elf_core+set}" = set; then
  2155. enableval=$enable_elf_core; if test "${enableval}" = yes; then
  2156. { echo "$as_me:$LINENO: result: yes" >&5
  2157. echo "${ECHO_T}yes" >&6; }
  2158. cat >>confdefs.h <<\_ACEOF
  2159. #define ELFCORE 1
  2160. _ACEOF
  2161. else
  2162. { echo "$as_me:$LINENO: result: no" >&5
  2163. echo "${ECHO_T}no" >&6; }
  2164. fi
  2165. else
  2166. # enable by default
  2167. { echo "$as_me:$LINENO: result: yes" >&5
  2168. echo "${ECHO_T}yes" >&6; }
  2169. cat >>confdefs.h <<\_ACEOF
  2170. #define ELFCORE 1
  2171. _ACEOF
  2172. fi
  2173. { echo "$as_me:$LINENO: checking for file formats in man section 5" >&5
  2174. echo $ECHO_N "checking for file formats in man section 5... $ECHO_C" >&6; }
  2175. # Check whether --enable-fsect-man5 was given.
  2176. if test "${enable_fsect_man5+set}" = set; then
  2177. enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
  2178. { echo "$as_me:$LINENO: result: yes" >&5
  2179. echo "${ECHO_T}yes" >&6; }
  2180. fsect=5
  2181. else
  2182. { echo "$as_me:$LINENO: result: no" >&5
  2183. echo "${ECHO_T}no" >&6; }
  2184. fsect=4
  2185. fi
  2186. else
  2187. # disable by default
  2188. { echo "$as_me:$LINENO: result: no" >&5
  2189. echo "${ECHO_T}no" >&6; }
  2190. fsect=4
  2191. fi
  2192. if test x$fsect = x5; then
  2193. FSECT5_TRUE=
  2194. FSECT5_FALSE='#'
  2195. else
  2196. FSECT5_TRUE='#'
  2197. FSECT5_FALSE=
  2198. fi
  2199. cat >>confdefs.h <<\_ACEOF
  2200. #define _GNU_SOURCE 1
  2201. _ACEOF
  2202. ac_ext=c
  2203. ac_cpp='$CPP $CPPFLAGS'
  2204. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2205. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2206. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2207. if test -n "$ac_tool_prefix"; then
  2208. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2209. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2210. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2211. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2212. if test "${ac_cv_prog_CC+set}" = set; then
  2213. echo $ECHO_N "(cached) $ECHO_C" >&6
  2214. else
  2215. if test -n "$CC"; then
  2216. ac_cv_prog_CC="$CC" # Let the user override the test.
  2217. else
  2218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2219. for as_dir in $PATH
  2220. do
  2221. IFS=$as_save_IFS
  2222. test -z "$as_dir" && as_dir=.
  2223. for ac_exec_ext in '' $ac_executable_extensions; do
  2224. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2225. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2226. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2227. break 2
  2228. fi
  2229. done
  2230. done
  2231. IFS=$as_save_IFS
  2232. fi
  2233. fi
  2234. CC=$ac_cv_prog_CC
  2235. if test -n "$CC"; then
  2236. { echo "$as_me:$LINENO: result: $CC" >&5
  2237. echo "${ECHO_T}$CC" >&6; }
  2238. else
  2239. { echo "$as_me:$LINENO: result: no" >&5
  2240. echo "${ECHO_T}no" >&6; }
  2241. fi
  2242. fi
  2243. if test -z "$ac_cv_prog_CC"; then
  2244. ac_ct_CC=$CC
  2245. # Extract the first word of "gcc", so it can be a program name with args.
  2246. set dummy gcc; ac_word=$2
  2247. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2248. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2249. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2250. echo $ECHO_N "(cached) $ECHO_C" >&6
  2251. else
  2252. if test -n "$ac_ct_CC"; then
  2253. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2254. else
  2255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2256. for as_dir in $PATH
  2257. do
  2258. IFS=$as_save_IFS
  2259. test -z "$as_dir" && as_dir=.
  2260. for ac_exec_ext in '' $ac_executable_extensions; do
  2261. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2262. ac_cv_prog_ac_ct_CC="gcc"
  2263. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2264. break 2
  2265. fi
  2266. done
  2267. done
  2268. IFS=$as_save_IFS
  2269. fi
  2270. fi
  2271. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2272. if test -n "$ac_ct_CC"; then
  2273. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2274. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2275. else
  2276. { echo "$as_me:$LINENO: result: no" >&5
  2277. echo "${ECHO_T}no" >&6; }
  2278. fi
  2279. if test "x$ac_ct_CC" = x; then
  2280. CC=""
  2281. else
  2282. case $cross_compiling:$ac_tool_warned in
  2283. yes:)
  2284. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2285. whose name does not start with the host triplet. If you think this
  2286. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2287. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2288. whose name does not start with the host triplet. If you think this
  2289. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2290. ac_tool_warned=yes ;;
  2291. esac
  2292. CC=$ac_ct_CC
  2293. fi
  2294. else
  2295. CC="$ac_cv_prog_CC"
  2296. fi
  2297. if test -z "$CC"; then
  2298. if test -n "$ac_tool_prefix"; then
  2299. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2300. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2301. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2302. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2303. if test "${ac_cv_prog_CC+set}" = set; then
  2304. echo $ECHO_N "(cached) $ECHO_C" >&6
  2305. else
  2306. if test -n "$CC"; then
  2307. ac_cv_prog_CC="$CC" # Let the user override the test.
  2308. else
  2309. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2310. for as_dir in $PATH
  2311. do
  2312. IFS=$as_save_IFS
  2313. test -z "$as_dir" && as_dir=.
  2314. for ac_exec_ext in '' $ac_executable_extensions; do
  2315. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2316. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2317. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2318. break 2
  2319. fi
  2320. done
  2321. done
  2322. IFS=$as_save_IFS
  2323. fi
  2324. fi
  2325. CC=$ac_cv_prog_CC
  2326. if test -n "$CC"; then
  2327. { echo "$as_me:$LINENO: result: $CC" >&5
  2328. echo "${ECHO_T}$CC" >&6; }
  2329. else
  2330. { echo "$as_me:$LINENO: result: no" >&5
  2331. echo "${ECHO_T}no" >&6; }
  2332. fi
  2333. fi
  2334. fi
  2335. if test -z "$CC"; then
  2336. # Extract the first word of "cc", so it can be a program name with args.
  2337. set dummy cc; ac_word=$2
  2338. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2339. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2340. if test "${ac_cv_prog_CC+set}" = set; then
  2341. echo $ECHO_N "(cached) $ECHO_C" >&6
  2342. else
  2343. if test -n "$CC"; then
  2344. ac_cv_prog_CC="$CC" # Let the user override the test.
  2345. else
  2346. ac_prog_rejected=no
  2347. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2348. for as_dir in $PATH
  2349. do
  2350. IFS=$as_save_IFS
  2351. test -z "$as_dir" && as_dir=.
  2352. for ac_exec_ext in '' $ac_executable_extensions; do
  2353. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2354. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2355. ac_prog_rejected=yes
  2356. continue
  2357. fi
  2358. ac_cv_prog_CC="cc"
  2359. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2360. break 2
  2361. fi
  2362. done
  2363. done
  2364. IFS=$as_save_IFS
  2365. if test $ac_prog_rejected = yes; then
  2366. # We found a bogon in the path, so make sure we never use it.
  2367. set dummy $ac_cv_prog_CC
  2368. shift
  2369. if test $# != 0; then
  2370. # We chose a different compiler from the bogus one.
  2371. # However, it has the same basename, so the bogon will be chosen
  2372. # first if we set CC to just the basename; use the full file name.
  2373. shift
  2374. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2375. fi
  2376. fi
  2377. fi
  2378. fi
  2379. CC=$ac_cv_prog_CC
  2380. if test -n "$CC"; then
  2381. { echo "$as_me:$LINENO: result: $CC" >&5
  2382. echo "${ECHO_T}$CC" >&6; }
  2383. else
  2384. { echo "$as_me:$LINENO: result: no" >&5
  2385. echo "${ECHO_T}no" >&6; }
  2386. fi
  2387. fi
  2388. if test -z "$CC"; then
  2389. if test -n "$ac_tool_prefix"; then
  2390. for ac_prog in cl.exe
  2391. do
  2392. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2393. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2394. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2395. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2396. if test "${ac_cv_prog_CC+set}" = set; then
  2397. echo $ECHO_N "(cached) $ECHO_C" >&6
  2398. else
  2399. if test -n "$CC"; then
  2400. ac_cv_prog_CC="$CC" # Let the user override the test.
  2401. else
  2402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2403. for as_dir in $PATH
  2404. do
  2405. IFS=$as_save_IFS
  2406. test -z "$as_dir" && as_dir=.
  2407. for ac_exec_ext in '' $ac_executable_extensions; do
  2408. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2409. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2410. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2411. break 2
  2412. fi
  2413. done
  2414. done
  2415. IFS=$as_save_IFS
  2416. fi
  2417. fi
  2418. CC=$ac_cv_prog_CC
  2419. if test -n "$CC"; then
  2420. { echo "$as_me:$LINENO: result: $CC" >&5
  2421. echo "${ECHO_T}$CC" >&6; }
  2422. else
  2423. { echo "$as_me:$LINENO: result: no" >&5
  2424. echo "${ECHO_T}no" >&6; }
  2425. fi
  2426. test -n "$CC" && break
  2427. done
  2428. fi
  2429. if test -z "$CC"; then
  2430. ac_ct_CC=$CC
  2431. for ac_prog in cl.exe
  2432. do
  2433. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2434. set dummy $ac_prog; ac_word=$2
  2435. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2436. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2437. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2438. echo $ECHO_N "(cached) $ECHO_C" >&6
  2439. else
  2440. if test -n "$ac_ct_CC"; then
  2441. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2442. else
  2443. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2444. for as_dir in $PATH
  2445. do
  2446. IFS=$as_save_IFS
  2447. test -z "$as_dir" && as_dir=.
  2448. for ac_exec_ext in '' $ac_executable_extensions; do
  2449. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2450. ac_cv_prog_ac_ct_CC="$ac_prog"
  2451. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2452. break 2
  2453. fi
  2454. done
  2455. done
  2456. IFS=$as_save_IFS
  2457. fi
  2458. fi
  2459. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2460. if test -n "$ac_ct_CC"; then
  2461. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2462. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2463. else
  2464. { echo "$as_me:$LINENO: result: no" >&5
  2465. echo "${ECHO_T}no" >&6; }
  2466. fi
  2467. test -n "$ac_ct_CC" && break
  2468. done
  2469. if test "x$ac_ct_CC" = x; then
  2470. CC=""
  2471. else
  2472. case $cross_compiling:$ac_tool_warned in
  2473. yes:)
  2474. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2475. whose name does not start with the host triplet. If you think this
  2476. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2477. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2478. whose name does not start with the host triplet. If you think this
  2479. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2480. ac_tool_warned=yes ;;
  2481. esac
  2482. CC=$ac_ct_CC
  2483. fi
  2484. fi
  2485. fi
  2486. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2487. See \`config.log' for more details." >&5
  2488. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2489. See \`config.log' for more details." >&2;}
  2490. { (exit 1); exit 1; }; }
  2491. # Provide some information about the compiler.
  2492. echo "$as_me:$LINENO: checking for C compiler version" >&5
  2493. ac_compiler=`set X $ac_compile; echo $2`
  2494. { (ac_try="$ac_compiler --version >&5"
  2495. case "(($ac_try" in
  2496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2497. *) ac_try_echo=$ac_try;;
  2498. esac
  2499. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2500. (eval "$ac_compiler --version >&5") 2>&5
  2501. ac_status=$?
  2502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2503. (exit $ac_status); }
  2504. { (ac_try="$ac_compiler -v >&5"
  2505. case "(($ac_try" in
  2506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2507. *) ac_try_echo=$ac_try;;
  2508. esac
  2509. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2510. (eval "$ac_compiler -v >&5") 2>&5
  2511. ac_status=$?
  2512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2513. (exit $ac_status); }
  2514. { (ac_try="$ac_compiler -V >&5"
  2515. case "(($ac_try" in
  2516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2517. *) ac_try_echo=$ac_try;;
  2518. esac
  2519. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2520. (eval "$ac_compiler -V >&5") 2>&5
  2521. ac_status=$?
  2522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2523. (exit $ac_status); }
  2524. cat >conftest.$ac_ext <<_ACEOF
  2525. /* confdefs.h. */
  2526. _ACEOF
  2527. cat confdefs.h >>conftest.$ac_ext
  2528. cat >>conftest.$ac_ext <<_ACEOF
  2529. /* end confdefs.h. */
  2530. int
  2531. main ()
  2532. {
  2533. ;
  2534. return 0;
  2535. }
  2536. _ACEOF
  2537. ac_clean_files_save=$ac_clean_files
  2538. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2539. # Try to create an executable without -o first, disregard a.out.
  2540. # It will help us diagnose broken compilers, and finding out an intuition
  2541. # of exeext.
  2542. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2543. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2544. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2545. #
  2546. # List of possible output files, starting from the most likely.
  2547. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2548. # only as a last resort. b.out is created by i960 compilers.
  2549. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2550. #
  2551. # The IRIX 6 linker writes into existing files which may not be
  2552. # executable, retaining their permissions. Remove them first so a
  2553. # subsequent execution test works.
  2554. ac_rmfiles=
  2555. for ac_file in $ac_files
  2556. do
  2557. case $ac_file in
  2558. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2559. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2560. esac
  2561. done
  2562. rm -f $ac_rmfiles
  2563. if { (ac_try="$ac_link_default"
  2564. case "(($ac_try" in
  2565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2566. *) ac_try_echo=$ac_try;;
  2567. esac
  2568. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2569. (eval "$ac_link_default") 2>&5
  2570. ac_status=$?
  2571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2572. (exit $ac_status); }; then
  2573. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2574. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2575. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2576. # so that the user can short-circuit this test for compilers unknown to
  2577. # Autoconf.
  2578. for ac_file in $ac_files ''
  2579. do
  2580. test -f "$ac_file" || continue
  2581. case $ac_file in
  2582. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2583. ;;
  2584. [ab].out )
  2585. # We found the default executable, but exeext='' is most
  2586. # certainly right.
  2587. break;;
  2588. *.* )
  2589. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2590. then :; else
  2591. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2592. fi
  2593. # We set ac_cv_exeext here because the later test for it is not
  2594. # safe: cross compilers may not add the suffix if given an `-o'
  2595. # argument, so we may need to know it at that point already.
  2596. # Even if this section looks crufty: it has the advantage of
  2597. # actually working.
  2598. break;;
  2599. * )
  2600. break;;
  2601. esac
  2602. done
  2603. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2604. else
  2605. ac_file=''
  2606. fi
  2607. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2608. echo "${ECHO_T}$ac_file" >&6; }
  2609. if test -z "$ac_file"; then
  2610. echo "$as_me: failed program was:" >&5
  2611. sed 's/^/| /' conftest.$ac_ext >&5
  2612. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2613. See \`config.log' for more details." >&5
  2614. echo "$as_me: error: C compiler cannot create executables
  2615. See \`config.log' for more details." >&2;}
  2616. { (exit 77); exit 77; }; }
  2617. fi
  2618. ac_exeext=$ac_cv_exeext
  2619. # Check that the compiler produces executables we can run. If not, either
  2620. # the compiler is broken, or we cross compile.
  2621. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2622. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2623. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2624. # If not cross compiling, check that we can run a simple program.
  2625. if test "$cross_compiling" != yes; then
  2626. if { ac_try='./$ac_file'
  2627. { (case "(($ac_try" in
  2628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2629. *) ac_try_echo=$ac_try;;
  2630. esac
  2631. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2632. (eval "$ac_try") 2>&5
  2633. ac_status=$?
  2634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2635. (exit $ac_status); }; }; then
  2636. cross_compiling=no
  2637. else
  2638. if test "$cross_compiling" = maybe; then
  2639. cross_compiling=yes
  2640. else
  2641. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2642. If you meant to cross compile, use \`--host'.
  2643. See \`config.log' for more details." >&5
  2644. echo "$as_me: error: cannot run C compiled programs.
  2645. If you meant to cross compile, use \`--host'.
  2646. See \`config.log' for more details." >&2;}
  2647. { (exit 1); exit 1; }; }
  2648. fi
  2649. fi
  2650. fi
  2651. { echo "$as_me:$LINENO: result: yes" >&5
  2652. echo "${ECHO_T}yes" >&6; }
  2653. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2654. ac_clean_files=$ac_clean_files_save
  2655. # Check that the compiler produces executables we can run. If not, either
  2656. # the compiler is broken, or we cross compile.
  2657. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2658. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2659. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2660. echo "${ECHO_T}$cross_compiling" >&6; }
  2661. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2662. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2663. if { (ac_try="$ac_link"
  2664. case "(($ac_try" in
  2665. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2666. *) ac_try_echo=$ac_try;;
  2667. esac
  2668. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2669. (eval "$ac_link") 2>&5
  2670. ac_status=$?
  2671. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2672. (exit $ac_status); }; then
  2673. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2674. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2675. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2676. # `rm'.
  2677. for ac_file in conftest.exe conftest conftest.*; do
  2678. test -f "$ac_file" || continue
  2679. case $ac_file in
  2680. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2681. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2682. break;;
  2683. * ) break;;
  2684. esac
  2685. done
  2686. else
  2687. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2688. See \`config.log' for more details." >&5
  2689. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2690. See \`config.log' for more details." >&2;}
  2691. { (exit 1); exit 1; }; }
  2692. fi
  2693. rm -f conftest$ac_cv_exeext
  2694. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2695. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2696. rm -f conftest.$ac_ext
  2697. EXEEXT=$ac_cv_exeext
  2698. ac_exeext=$EXEEXT
  2699. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2700. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2701. if test "${ac_cv_objext+set}" = set; then
  2702. echo $ECHO_N "(cached) $ECHO_C" >&6
  2703. else
  2704. cat >conftest.$ac_ext <<_ACEOF
  2705. /* confdefs.h. */
  2706. _ACEOF
  2707. cat confdefs.h >>conftest.$ac_ext
  2708. cat >>conftest.$ac_ext <<_ACEOF
  2709. /* end confdefs.h. */
  2710. int
  2711. main ()
  2712. {
  2713. ;
  2714. return 0;
  2715. }
  2716. _ACEOF
  2717. rm -f conftest.o conftest.obj
  2718. if { (ac_try="$ac_compile"
  2719. case "(($ac_try" in
  2720. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2721. *) ac_try_echo=$ac_try;;
  2722. esac
  2723. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2724. (eval "$ac_compile") 2>&5
  2725. ac_status=$?
  2726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2727. (exit $ac_status); }; then
  2728. for ac_file in conftest.o conftest.obj conftest.*; do
  2729. test -f "$ac_file" || continue;
  2730. case $ac_file in
  2731. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2732. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2733. break;;
  2734. esac
  2735. done
  2736. else
  2737. echo "$as_me: failed program was:" >&5
  2738. sed 's/^/| /' conftest.$ac_ext >&5
  2739. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2740. See \`config.log' for more details." >&5
  2741. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2742. See \`config.log' for more details." >&2;}
  2743. { (exit 1); exit 1; }; }
  2744. fi
  2745. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2746. fi
  2747. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2748. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2749. OBJEXT=$ac_cv_objext
  2750. ac_objext=$OBJEXT
  2751. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2752. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2753. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2754. echo $ECHO_N "(cached) $ECHO_C" >&6
  2755. else
  2756. cat >conftest.$ac_ext <<_ACEOF
  2757. /* confdefs.h. */
  2758. _ACEOF
  2759. cat confdefs.h >>conftest.$ac_ext
  2760. cat >>conftest.$ac_ext <<_ACEOF
  2761. /* end confdefs.h. */
  2762. int
  2763. main ()
  2764. {
  2765. #ifndef __GNUC__
  2766. choke me
  2767. #endif
  2768. ;
  2769. return 0;
  2770. }
  2771. _ACEOF
  2772. rm -f conftest.$ac_objext
  2773. if { (ac_try="$ac_compile"
  2774. case "(($ac_try" in
  2775. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2776. *) ac_try_echo=$ac_try;;
  2777. esac
  2778. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2779. (eval "$ac_compile") 2>conftest.er1
  2780. ac_status=$?
  2781. grep -v '^ *+' conftest.er1 >conftest.err
  2782. rm -f conftest.er1
  2783. cat conftest.err >&5
  2784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2785. (exit $ac_status); } && {
  2786. test -z "$ac_c_werror_flag" ||
  2787. test ! -s conftest.err
  2788. } && test -s conftest.$ac_objext; then
  2789. ac_compiler_gnu=yes
  2790. else
  2791. echo "$as_me: failed program was:" >&5
  2792. sed 's/^/| /' conftest.$ac_ext >&5
  2793. ac_compiler_gnu=no
  2794. fi
  2795. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2796. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2797. fi
  2798. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2799. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2800. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2801. ac_test_CFLAGS=${CFLAGS+set}
  2802. ac_save_CFLAGS=$CFLAGS
  2803. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2804. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2805. if test "${ac_cv_prog_cc_g+set}" = set; then
  2806. echo $ECHO_N "(cached) $ECHO_C" >&6
  2807. else
  2808. ac_save_c_werror_flag=$ac_c_werror_flag
  2809. ac_c_werror_flag=yes
  2810. ac_cv_prog_cc_g=no
  2811. CFLAGS="-g"
  2812. cat >conftest.$ac_ext <<_ACEOF
  2813. /* confdefs.h. */
  2814. _ACEOF
  2815. cat confdefs.h >>conftest.$ac_ext
  2816. cat >>conftest.$ac_ext <<_ACEOF
  2817. /* end confdefs.h. */
  2818. int
  2819. main ()
  2820. {
  2821. ;
  2822. return 0;
  2823. }
  2824. _ACEOF
  2825. rm -f conftest.$ac_objext
  2826. if { (ac_try="$ac_compile"
  2827. case "(($ac_try" in
  2828. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2829. *) ac_try_echo=$ac_try;;
  2830. esac
  2831. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2832. (eval "$ac_compile") 2>conftest.er1
  2833. ac_status=$?
  2834. grep -v '^ *+' conftest.er1 >conftest.err
  2835. rm -f conftest.er1
  2836. cat conftest.err >&5
  2837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2838. (exit $ac_status); } && {
  2839. test -z "$ac_c_werror_flag" ||
  2840. test ! -s conftest.err
  2841. } && test -s conftest.$ac_objext; then
  2842. ac_cv_prog_cc_g=yes
  2843. else
  2844. echo "$as_me: failed program was:" >&5
  2845. sed 's/^/| /' conftest.$ac_ext >&5
  2846. CFLAGS=""
  2847. cat >conftest.$ac_ext <<_ACEOF
  2848. /* confdefs.h. */
  2849. _ACEOF
  2850. cat confdefs.h >>conftest.$ac_ext
  2851. cat >>conftest.$ac_ext <<_ACEOF
  2852. /* end confdefs.h. */
  2853. int
  2854. main ()
  2855. {
  2856. ;
  2857. return 0;
  2858. }
  2859. _ACEOF
  2860. rm -f conftest.$ac_objext
  2861. if { (ac_try="$ac_compile"
  2862. case "(($ac_try" in
  2863. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2864. *) ac_try_echo=$ac_try;;
  2865. esac
  2866. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2867. (eval "$ac_compile") 2>conftest.er1
  2868. ac_status=$?
  2869. grep -v '^ *+' conftest.er1 >conftest.err
  2870. rm -f conftest.er1
  2871. cat conftest.err >&5
  2872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2873. (exit $ac_status); } && {
  2874. test -z "$ac_c_werror_flag" ||
  2875. test ! -s conftest.err
  2876. } && test -s conftest.$ac_objext; then
  2877. :
  2878. else
  2879. echo "$as_me: failed program was:" >&5
  2880. sed 's/^/| /' conftest.$ac_ext >&5
  2881. ac_c_werror_flag=$ac_save_c_werror_flag
  2882. CFLAGS="-g"
  2883. cat >conftest.$ac_ext <<_ACEOF
  2884. /* confdefs.h. */
  2885. _ACEOF
  2886. cat confdefs.h >>conftest.$ac_ext
  2887. cat >>conftest.$ac_ext <<_ACEOF
  2888. /* end confdefs.h. */
  2889. int
  2890. main ()
  2891. {
  2892. ;
  2893. return 0;
  2894. }
  2895. _ACEOF
  2896. rm -f conftest.$ac_objext
  2897. if { (ac_try="$ac_compile"
  2898. case "(($ac_try" in
  2899. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2900. *) ac_try_echo=$ac_try;;
  2901. esac
  2902. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2903. (eval "$ac_compile") 2>conftest.er1
  2904. ac_status=$?
  2905. grep -v '^ *+' conftest.er1 >conftest.err
  2906. rm -f conftest.er1
  2907. cat conftest.err >&5
  2908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2909. (exit $ac_status); } && {
  2910. test -z "$ac_c_werror_flag" ||
  2911. test ! -s conftest.err
  2912. } && test -s conftest.$ac_objext; then
  2913. ac_cv_prog_cc_g=yes
  2914. else
  2915. echo "$as_me: failed program was:" >&5
  2916. sed 's/^/| /' conftest.$ac_ext >&5
  2917. fi
  2918. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2919. fi
  2920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2921. fi
  2922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2923. ac_c_werror_flag=$ac_save_c_werror_flag
  2924. fi
  2925. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2926. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2927. if test "$ac_test_CFLAGS" = set; then
  2928. CFLAGS=$ac_save_CFLAGS
  2929. elif test $ac_cv_prog_cc_g = yes; then
  2930. if test "$GCC" = yes; then
  2931. CFLAGS="-g -O2"
  2932. else
  2933. CFLAGS="-g"
  2934. fi
  2935. else
  2936. if test "$GCC" = yes; then
  2937. CFLAGS="-O2"
  2938. else
  2939. CFLAGS=
  2940. fi
  2941. fi
  2942. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2943. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  2944. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2945. echo $ECHO_N "(cached) $ECHO_C" >&6
  2946. else
  2947. ac_cv_prog_cc_c89=no
  2948. ac_save_CC=$CC
  2949. cat >conftest.$ac_ext <<_ACEOF
  2950. /* confdefs.h. */
  2951. _ACEOF
  2952. cat confdefs.h >>conftest.$ac_ext
  2953. cat >>conftest.$ac_ext <<_ACEOF
  2954. /* end confdefs.h. */
  2955. #include <stdarg.h>
  2956. #include <stdio.h>
  2957. #include <sys/types.h>
  2958. #include <sys/stat.h>
  2959. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2960. struct buf { int x; };
  2961. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2962. static char *e (p, i)
  2963. char **p;
  2964. int i;
  2965. {
  2966. return p[i];
  2967. }
  2968. static char *f (char * (*g) (char **, int), char **p, ...)
  2969. {
  2970. char *s;
  2971. va_list v;
  2972. va_start (v,p);
  2973. s = g (p, va_arg (v,int));
  2974. va_end (v);
  2975. return s;
  2976. }
  2977. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2978. function prototypes and stuff, but not '\xHH' hex character constants.
  2979. These don't provoke an error unfortunately, instead are silently treated
  2980. as 'x'. The following induces an error, until -std is added to get
  2981. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2982. array size at least. It's necessary to write '\x00'==0 to get something
  2983. that's true only with -std. */
  2984. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2985. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2986. inside strings and character constants. */
  2987. #define FOO(x) 'x'
  2988. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2989. int test (int i, double x);
  2990. struct s1 {int (*f) (int a);};
  2991. struct s2 {int (*f) (double a);};
  2992. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2993. int argc;
  2994. char **argv;
  2995. int
  2996. main ()
  2997. {
  2998. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2999. ;
  3000. return 0;
  3001. }
  3002. _ACEOF
  3003. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3004. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3005. do
  3006. CC="$ac_save_CC $ac_arg"
  3007. rm -f conftest.$ac_objext
  3008. if { (ac_try="$ac_compile"
  3009. case "(($ac_try" in
  3010. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3011. *) ac_try_echo=$ac_try;;
  3012. esac
  3013. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3014. (eval "$ac_compile") 2>conftest.er1
  3015. ac_status=$?
  3016. grep -v '^ *+' conftest.er1 >conftest.err
  3017. rm -f conftest.er1
  3018. cat conftest.err >&5
  3019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3020. (exit $ac_status); } && {
  3021. test -z "$ac_c_werror_flag" ||
  3022. test ! -s conftest.err
  3023. } && test -s conftest.$ac_objext; then
  3024. ac_cv_prog_cc_c89=$ac_arg
  3025. else
  3026. echo "$as_me: failed program was:" >&5
  3027. sed 's/^/| /' conftest.$ac_ext >&5
  3028. fi
  3029. rm -f core conftest.err conftest.$ac_objext
  3030. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3031. done
  3032. rm -f conftest.$ac_ext
  3033. CC=$ac_save_CC
  3034. fi
  3035. # AC_CACHE_VAL
  3036. case "x$ac_cv_prog_cc_c89" in
  3037. x)
  3038. { echo "$as_me:$LINENO: result: none needed" >&5
  3039. echo "${ECHO_T}none needed" >&6; } ;;
  3040. xno)
  3041. { echo "$as_me:$LINENO: result: unsupported" >&5
  3042. echo "${ECHO_T}unsupported" >&6; } ;;
  3043. *)
  3044. CC="$CC $ac_cv_prog_cc_c89"
  3045. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3046. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3047. esac
  3048. ac_ext=c
  3049. ac_cpp='$CPP $CPPFLAGS'
  3050. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3051. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3052. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3053. DEPDIR="${am__leading_dot}deps"
  3054. ac_config_commands="$ac_config_commands depfiles"
  3055. am_make=${MAKE-make}
  3056. cat > confinc << 'END'
  3057. am__doit:
  3058. @echo done
  3059. .PHONY: am__doit
  3060. END
  3061. # If we don't find an include directive, just comment out the code.
  3062. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3063. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  3064. am__include="#"
  3065. am__quote=
  3066. _am_result=none
  3067. # First try GNU make style include.
  3068. echo "include confinc" > confmf
  3069. # We grep out `Entering directory' and `Leaving directory'
  3070. # messages which can occur if `w' ends up in MAKEFLAGS.
  3071. # In particular we don't look at `^make:' because GNU make might
  3072. # be invoked under some other name (usually "gmake"), in which
  3073. # case it prints its new name instead of `make'.
  3074. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3075. am__include=include
  3076. am__quote=
  3077. _am_result=GNU
  3078. fi
  3079. # Now try BSD make style include.
  3080. if test "$am__include" = "#"; then
  3081. echo '.include "confinc"' > confmf
  3082. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3083. am__include=.include
  3084. am__quote="\""
  3085. _am_result=BSD
  3086. fi
  3087. fi
  3088. { echo "$as_me:$LINENO: result: $_am_result" >&5
  3089. echo "${ECHO_T}$_am_result" >&6; }
  3090. rm -f confinc confmf
  3091. # Check whether --enable-dependency-tracking was given.
  3092. if test "${enable_dependency_tracking+set}" = set; then
  3093. enableval=$enable_dependency_tracking;
  3094. fi
  3095. if test "x$enable_dependency_tracking" != xno; then
  3096. am_depcomp="$ac_aux_dir/depcomp"
  3097. AMDEPBACKSLASH='\'
  3098. fi
  3099. if test "x$enable_dependency_tracking" != xno; then
  3100. AMDEP_TRUE=
  3101. AMDEP_FALSE='#'
  3102. else
  3103. AMDEP_TRUE='#'
  3104. AMDEP_FALSE=
  3105. fi
  3106. depcc="$CC" am_compiler_list=
  3107. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3108. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3109. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3110. echo $ECHO_N "(cached) $ECHO_C" >&6
  3111. else
  3112. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3113. # We make a subdir and do the tests there. Otherwise we can end up
  3114. # making bogus files that we don't know about and never remove. For
  3115. # instance it was reported that on HP-UX the gcc test will end up
  3116. # making a dummy file named `D' -- because `-MD' means `put the output
  3117. # in D'.
  3118. mkdir conftest.dir
  3119. # Copy depcomp to subdir because otherwise we won't find it if we're
  3120. # using a relative directory.
  3121. cp "$am_depcomp" conftest.dir
  3122. cd conftest.dir
  3123. # We will build objects and dependencies in a subdirectory because
  3124. # it helps to detect inapplicable dependency modes. For instance
  3125. # both Tru64's cc and ICC support -MD to output dependencies as a
  3126. # side effect of compilation, but ICC will put the dependencies in
  3127. # the current directory while Tru64 will put them in the object
  3128. # directory.
  3129. mkdir sub
  3130. am_cv_CC_dependencies_compiler_type=none
  3131. if test "$am_compiler_list" = ""; then
  3132. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3133. fi
  3134. for depmode in $am_compiler_list; do
  3135. # Setup a source with many dependencies, because some compilers
  3136. # like to wrap large dependency lists on column 80 (with \), and
  3137. # we should not choose a depcomp mode which is confused by this.
  3138. #
  3139. # We need to recreate these files for each test, as the compiler may
  3140. # overwrite some of them when testing with obscure command lines.
  3141. # This happens at least with the AIX C compiler.
  3142. : > sub/conftest.c
  3143. for i in 1 2 3 4 5 6; do
  3144. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3145. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3146. # Solaris 8's {/usr,}/bin/sh.
  3147. touch sub/conftst$i.h
  3148. done
  3149. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3150. case $depmode in
  3151. nosideeffect)
  3152. # after this tag, mechanisms are not by side-effect, so they'll
  3153. # only be used when explicitly requested
  3154. if test "x$enable_dependency_tracking" = xyes; then
  3155. continue
  3156. else
  3157. break
  3158. fi
  3159. ;;
  3160. none) break ;;
  3161. esac
  3162. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3163. # mode. It turns out that the SunPro C++ compiler does not properly
  3164. # handle `-M -o', and we need to detect this.
  3165. if depmode=$depmode \
  3166. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3167. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3168. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3169. >/dev/null 2>conftest.err &&
  3170. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3171. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3172. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3173. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3174. # icc doesn't choke on unknown options, it will just issue warnings
  3175. # or remarks (even with -Werror). So we grep stderr for any message
  3176. # that says an option was ignored or not supported.
  3177. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3178. # icc: Command line warning: ignoring option '-M'; no argument required
  3179. # The diagnosis changed in icc 8.0:
  3180. # icc: Command line remark: option '-MP' not supported
  3181. if (grep 'ignoring option' conftest.err ||
  3182. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3183. am_cv_CC_dependencies_compiler_type=$depmode
  3184. break
  3185. fi
  3186. fi
  3187. done
  3188. cd ..
  3189. rm -rf conftest.dir
  3190. else
  3191. am_cv_CC_dependencies_compiler_type=none
  3192. fi
  3193. fi
  3194. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3195. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3196. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3197. if
  3198. test "x$enable_dependency_tracking" != xno \
  3199. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3200. am__fastdepCC_TRUE=
  3201. am__fastdepCC_FALSE='#'
  3202. else
  3203. am__fastdepCC_TRUE='#'
  3204. am__fastdepCC_FALSE=
  3205. fi
  3206. # Find a good install program. We prefer a C program (faster),
  3207. # so one script is as good as another. But avoid the broken or
  3208. # incompatible versions:
  3209. # SysV /etc/install, /usr/sbin/install
  3210. # SunOS /usr/etc/install
  3211. # IRIX /sbin/install
  3212. # AIX /bin/install
  3213. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3214. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3215. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3216. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3217. # OS/2's system install, which has a completely different semantic
  3218. # ./install, which can be erroneously created by make from ./install.sh.
  3219. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3220. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3221. if test -z "$INSTALL"; then
  3222. if test "${ac_cv_path_install+set}" = set; then
  3223. echo $ECHO_N "(cached) $ECHO_C" >&6
  3224. else
  3225. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3226. for as_dir in $PATH
  3227. do
  3228. IFS=$as_save_IFS
  3229. test -z "$as_dir" && as_dir=.
  3230. # Account for people who put trailing slashes in PATH elements.
  3231. case $as_dir/ in
  3232. ./ | .// | /cC/* | \
  3233. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3234. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3235. /usr/ucb/* ) ;;
  3236. *)
  3237. # OSF1 and SCO ODT 3.0 have their own names for install.
  3238. # Don't use installbsd from OSF since it installs stuff as root
  3239. # by default.
  3240. for ac_prog in ginstall scoinst install; do
  3241. for ac_exec_ext in '' $ac_executable_extensions; do
  3242. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3243. if test $ac_prog = install &&
  3244. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3245. # AIX install. It has an incompatible calling convention.
  3246. :
  3247. elif test $ac_prog = install &&
  3248. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3249. # program-specific install script used by HP pwplus--don't use.
  3250. :
  3251. else
  3252. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3253. break 3
  3254. fi
  3255. fi
  3256. done
  3257. done
  3258. ;;
  3259. esac
  3260. done
  3261. IFS=$as_save_IFS
  3262. fi
  3263. if test "${ac_cv_path_install+set}" = set; then
  3264. INSTALL=$ac_cv_path_install
  3265. else
  3266. # As a last resort, use the slow shell script. Don't cache a
  3267. # value for INSTALL within a source directory, because that will
  3268. # break other packages using the cache if that directory is
  3269. # removed, or if the value is a relative name.
  3270. INSTALL=$ac_install_sh
  3271. fi
  3272. fi
  3273. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3274. echo "${ECHO_T}$INSTALL" >&6; }
  3275. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3276. # It thinks the first close brace ends the variable substitution.
  3277. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3278. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3279. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3280. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3281. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  3282. LN_S=$as_ln_s
  3283. if test "$LN_S" = "ln -s"; then
  3284. { echo "$as_me:$LINENO: result: yes" >&5
  3285. echo "${ECHO_T}yes" >&6; }
  3286. else
  3287. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3288. echo "${ECHO_T}no, using $LN_S" >&6; }
  3289. fi
  3290. # Check whether --enable-shared was given.
  3291. if test "${enable_shared+set}" = set; then
  3292. enableval=$enable_shared; p=${PACKAGE-default}
  3293. case $enableval in
  3294. yes) enable_shared=yes ;;
  3295. no) enable_shared=no ;;
  3296. *)
  3297. enable_shared=no
  3298. # Look at the argument we got. We use all the common list separators.
  3299. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3300. for pkg in $enableval; do
  3301. IFS="$lt_save_ifs"
  3302. if test "X$pkg" = "X$p"; then
  3303. enable_shared=yes
  3304. fi
  3305. done
  3306. IFS="$lt_save_ifs"
  3307. ;;
  3308. esac
  3309. else
  3310. enable_shared=yes
  3311. fi
  3312. # Check whether --enable-static was given.
  3313. if test "${enable_static+set}" = set; then
  3314. enableval=$enable_static; p=${PACKAGE-default}
  3315. case $enableval in
  3316. yes) enable_static=yes ;;
  3317. no) enable_static=no ;;
  3318. *)
  3319. enable_static=no
  3320. # Look at the argument we got. We use all the common list separators.
  3321. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3322. for pkg in $enableval; do
  3323. IFS="$lt_save_ifs"
  3324. if test "X$pkg" = "X$p"; then
  3325. enable_static=yes
  3326. fi
  3327. done
  3328. IFS="$lt_save_ifs"
  3329. ;;
  3330. esac
  3331. else
  3332. enable_static=yes
  3333. fi
  3334. # Check whether --enable-fast-install was given.
  3335. if test "${enable_fast_install+set}" = set; then
  3336. enableval=$enable_fast_install; p=${PACKAGE-default}
  3337. case $enableval in
  3338. yes) enable_fast_install=yes ;;
  3339. no) enable_fast_install=no ;;
  3340. *)
  3341. enable_fast_install=no
  3342. # Look at the argument we got. We use all the common list separators.
  3343. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3344. for pkg in $enableval; do
  3345. IFS="$lt_save_ifs"
  3346. if test "X$pkg" = "X$p"; then
  3347. enable_fast_install=yes
  3348. fi
  3349. done
  3350. IFS="$lt_save_ifs"
  3351. ;;
  3352. esac
  3353. else
  3354. enable_fast_install=yes
  3355. fi
  3356. # Make sure we can run config.sub.
  3357. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3358. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  3359. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  3360. { (exit 1); exit 1; }; }
  3361. { echo "$as_me:$LINENO: checking build system type" >&5
  3362. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  3363. if test "${ac_cv_build+set}" = set; then
  3364. echo $ECHO_N "(cached) $ECHO_C" >&6
  3365. else
  3366. ac_build_alias=$build_alias
  3367. test "x$ac_build_alias" = x &&
  3368. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3369. test "x$ac_build_alias" = x &&
  3370. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  3371. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  3372. { (exit 1); exit 1; }; }
  3373. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3374. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  3375. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  3376. { (exit 1); exit 1; }; }
  3377. fi
  3378. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  3379. echo "${ECHO_T}$ac_cv_build" >&6; }
  3380. case $ac_cv_build in
  3381. *-*-*) ;;
  3382. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  3383. echo "$as_me: error: invalid value of canonical build" >&2;}
  3384. { (exit 1); exit 1; }; };;
  3385. esac
  3386. build=$ac_cv_build
  3387. ac_save_IFS=$IFS; IFS='-'
  3388. set x $ac_cv_build
  3389. shift
  3390. build_cpu=$1
  3391. build_vendor=$2
  3392. shift; shift
  3393. # Remember, the first character of IFS is used to create $*,
  3394. # except with old shells:
  3395. build_os=$*
  3396. IFS=$ac_save_IFS
  3397. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3398. { echo "$as_me:$LINENO: checking host system type" >&5
  3399. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  3400. if test "${ac_cv_host+set}" = set; then
  3401. echo $ECHO_N "(cached) $ECHO_C" >&6
  3402. else
  3403. if test "x$host_alias" = x; then
  3404. ac_cv_host=$ac_cv_build
  3405. else
  3406. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3407. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  3408. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  3409. { (exit 1); exit 1; }; }
  3410. fi
  3411. fi
  3412. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  3413. echo "${ECHO_T}$ac_cv_host" >&6; }
  3414. case $ac_cv_host in
  3415. *-*-*) ;;
  3416. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  3417. echo "$as_me: error: invalid value of canonical host" >&2;}
  3418. { (exit 1); exit 1; }; };;
  3419. esac
  3420. host=$ac_cv_host
  3421. ac_save_IFS=$IFS; IFS='-'
  3422. set x $ac_cv_host
  3423. shift
  3424. host_cpu=$1
  3425. host_vendor=$2
  3426. shift; shift
  3427. # Remember, the first character of IFS is used to create $*,
  3428. # except with old shells:
  3429. host_os=$*
  3430. IFS=$ac_save_IFS
  3431. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3432. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3433. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  3434. if test "${lt_cv_path_SED+set}" = set; then
  3435. echo $ECHO_N "(cached) $ECHO_C" >&6
  3436. else
  3437. # Loop through the user's path and test for sed and gsed.
  3438. # Then use that list of sed's as ones to test for truncation.
  3439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3440. for as_dir in $PATH
  3441. do
  3442. IFS=$as_save_IFS
  3443. test -z "$as_dir" && as_dir=.
  3444. for lt_ac_prog in sed gsed; do
  3445. for ac_exec_ext in '' $ac_executable_extensions; do
  3446. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  3447. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3448. fi
  3449. done
  3450. done
  3451. done
  3452. lt_ac_max=0
  3453. lt_ac_count=0
  3454. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3455. # along with /bin/sed that truncates output.
  3456. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3457. test ! -f $lt_ac_sed && continue
  3458. cat /dev/null > conftest.in
  3459. lt_ac_count=0
  3460. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3461. # Check for GNU sed and select it if it is found.
  3462. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3463. lt_cv_path_SED=$lt_ac_sed
  3464. break
  3465. fi
  3466. while true; do
  3467. cat conftest.in conftest.in >conftest.tmp
  3468. mv conftest.tmp conftest.in
  3469. cp conftest.in conftest.nl
  3470. echo >>conftest.nl
  3471. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3472. cmp -s conftest.out conftest.nl || break
  3473. # 10000 chars as input seems more than enough
  3474. test $lt_ac_count -gt 10 && break
  3475. lt_ac_count=`expr $lt_ac_count + 1`
  3476. if test $lt_ac_count -gt $lt_ac_max; then
  3477. lt_ac_max=$lt_ac_count
  3478. lt_cv_path_SED=$lt_ac_sed
  3479. fi
  3480. done
  3481. done
  3482. fi
  3483. SED=$lt_cv_path_SED
  3484. { echo "$as_me:$LINENO: result: $SED" >&5
  3485. echo "${ECHO_T}$SED" >&6; }
  3486. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3487. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  3488. if test "${ac_cv_path_GREP+set}" = set; then
  3489. echo $ECHO_N "(cached) $ECHO_C" >&6
  3490. else
  3491. # Extract the first word of "grep ggrep" to use in msg output
  3492. if test -z "$GREP"; then
  3493. set dummy grep ggrep; ac_prog_name=$2
  3494. if test "${ac_cv_path_GREP+set}" = set; then
  3495. echo $ECHO_N "(cached) $ECHO_C" >&6
  3496. else
  3497. ac_path_GREP_found=false
  3498. # Loop through the user's path and test for each of PROGNAME-LIST
  3499. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3500. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3501. do
  3502. IFS=$as_save_IFS
  3503. test -z "$as_dir" && as_dir=.
  3504. for ac_prog in grep ggrep; do
  3505. for ac_exec_ext in '' $ac_executable_extensions; do
  3506. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3507. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3508. # Check for GNU ac_path_GREP and select it if it is found.
  3509. # Check for GNU $ac_path_GREP
  3510. case `"$ac_path_GREP" --version 2>&1` in
  3511. *GNU*)
  3512. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3513. *)
  3514. ac_count=0
  3515. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3516. while :
  3517. do
  3518. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3519. mv "conftest.tmp" "conftest.in"
  3520. cp "conftest.in" "conftest.nl"
  3521. echo 'GREP' >> "conftest.nl"
  3522. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3523. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3524. ac_count=`expr $ac_count + 1`
  3525. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3526. # Best one so far, save it but keep looking for a better one
  3527. ac_cv_path_GREP="$ac_path_GREP"
  3528. ac_path_GREP_max=$ac_count
  3529. fi
  3530. # 10*(2^10) chars as input seems more than enough
  3531. test $ac_count -gt 10 && break
  3532. done
  3533. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3534. esac
  3535. $ac_path_GREP_found && break 3
  3536. done
  3537. done
  3538. done
  3539. IFS=$as_save_IFS
  3540. fi
  3541. GREP="$ac_cv_path_GREP"
  3542. if test -z "$GREP"; then
  3543. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3544. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3545. { (exit 1); exit 1; }; }
  3546. fi
  3547. else
  3548. ac_cv_path_GREP=$GREP
  3549. fi
  3550. fi
  3551. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3552. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  3553. GREP="$ac_cv_path_GREP"
  3554. { echo "$as_me:$LINENO: checking for egrep" >&5
  3555. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  3556. if test "${ac_cv_path_EGREP+set}" = set; then
  3557. echo $ECHO_N "(cached) $ECHO_C" >&6
  3558. else
  3559. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3560. then ac_cv_path_EGREP="$GREP -E"
  3561. else
  3562. # Extract the first word of "egrep" to use in msg output
  3563. if test -z "$EGREP"; then
  3564. set dummy egrep; ac_prog_name=$2
  3565. if test "${ac_cv_path_EGREP+set}" = set; then
  3566. echo $ECHO_N "(cached) $ECHO_C" >&6
  3567. else
  3568. ac_path_EGREP_found=false
  3569. # Loop through the user's path and test for each of PROGNAME-LIST
  3570. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3571. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3572. do
  3573. IFS=$as_save_IFS
  3574. test -z "$as_dir" && as_dir=.
  3575. for ac_prog in egrep; do
  3576. for ac_exec_ext in '' $ac_executable_extensions; do
  3577. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3578. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3579. # Check for GNU ac_path_EGREP and select it if it is found.
  3580. # Check for GNU $ac_path_EGREP
  3581. case `"$ac_path_EGREP" --version 2>&1` in
  3582. *GNU*)
  3583. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3584. *)
  3585. ac_count=0
  3586. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3587. while :
  3588. do
  3589. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3590. mv "conftest.tmp" "conftest.in"
  3591. cp "conftest.in" "conftest.nl"
  3592. echo 'EGREP' >> "conftest.nl"
  3593. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3594. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3595. ac_count=`expr $ac_count + 1`
  3596. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3597. # Best one so far, save it but keep looking for a better one
  3598. ac_cv_path_EGREP="$ac_path_EGREP"
  3599. ac_path_EGREP_max=$ac_count
  3600. fi
  3601. # 10*(2^10) chars as input seems more than enough
  3602. test $ac_count -gt 10 && break
  3603. done
  3604. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3605. esac
  3606. $ac_path_EGREP_found && break 3
  3607. done
  3608. done
  3609. done
  3610. IFS=$as_save_IFS
  3611. fi
  3612. EGREP="$ac_cv_path_EGREP"
  3613. if test -z "$EGREP"; then
  3614. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3615. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3616. { (exit 1); exit 1; }; }
  3617. fi
  3618. else
  3619. ac_cv_path_EGREP=$EGREP
  3620. fi
  3621. fi
  3622. fi
  3623. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3624. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  3625. EGREP="$ac_cv_path_EGREP"
  3626. # Check whether --with-gnu-ld was given.
  3627. if test "${with_gnu_ld+set}" = set; then
  3628. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3629. else
  3630. with_gnu_ld=no
  3631. fi
  3632. ac_prog=ld
  3633. if test "$GCC" = yes; then
  3634. # Check if gcc -print-prog-name=ld gives a path.
  3635. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3636. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  3637. case $host in
  3638. *-*-mingw*)
  3639. # gcc leaves a trailing carriage return which upsets mingw
  3640. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3641. *)
  3642. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3643. esac
  3644. case $ac_prog in
  3645. # Accept absolute paths.
  3646. [\\/]* | ?:[\\/]*)
  3647. re_direlt='/[^/][^/]*/\.\./'
  3648. # Canonicalize the pathname of ld
  3649. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3650. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3651. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3652. done
  3653. test -z "$LD" && LD="$ac_prog"
  3654. ;;
  3655. "")
  3656. # If it fails, then pretend we aren't using GCC.
  3657. ac_prog=ld
  3658. ;;
  3659. *)
  3660. # If it is relative, then search for the first ld in PATH.
  3661. with_gnu_ld=unknown
  3662. ;;
  3663. esac
  3664. elif test "$with_gnu_ld" = yes; then
  3665. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  3666. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  3667. else
  3668. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3669. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  3670. fi
  3671. if test "${lt_cv_path_LD+set}" = set; then
  3672. echo $ECHO_N "(cached) $ECHO_C" >&6
  3673. else
  3674. if test -z "$LD"; then
  3675. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3676. for ac_dir in $PATH; do
  3677. IFS="$lt_save_ifs"
  3678. test -z "$ac_dir" && ac_dir=.
  3679. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3680. lt_cv_path_LD="$ac_dir/$ac_prog"
  3681. # Check to see if the program is GNU ld. I'd rather use --version,
  3682. # but apparently some GNU ld's only accept -v.
  3683. # Break only if it was the GNU/non-GNU ld that we prefer.
  3684. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3685. *GNU* | *'with BFD'*)
  3686. test "$with_gnu_ld" != no && break
  3687. ;;
  3688. *)
  3689. test "$with_gnu_ld" != yes && break
  3690. ;;
  3691. esac
  3692. fi
  3693. done
  3694. IFS="$lt_save_ifs"
  3695. else
  3696. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3697. fi
  3698. fi
  3699. LD="$lt_cv_path_LD"
  3700. if test -n "$LD"; then
  3701. { echo "$as_me:$LINENO: result: $LD" >&5
  3702. echo "${ECHO_T}$LD" >&6; }
  3703. else
  3704. { echo "$as_me:$LINENO: result: no" >&5
  3705. echo "${ECHO_T}no" >&6; }
  3706. fi
  3707. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3708. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3709. { (exit 1); exit 1; }; }
  3710. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3711. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  3712. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3713. echo $ECHO_N "(cached) $ECHO_C" >&6
  3714. else
  3715. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  3716. case `$LD -v 2>&1 </dev/null` in
  3717. *GNU* | *'with BFD'*)
  3718. lt_cv_prog_gnu_ld=yes
  3719. ;;
  3720. *)
  3721. lt_cv_prog_gnu_ld=no
  3722. ;;
  3723. esac
  3724. fi
  3725. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3726. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  3727. with_gnu_ld=$lt_cv_prog_gnu_ld
  3728. { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3729. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  3730. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3731. echo $ECHO_N "(cached) $ECHO_C" >&6
  3732. else
  3733. lt_cv_ld_reload_flag='-r'
  3734. fi
  3735. { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3736. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  3737. reload_flag=$lt_cv_ld_reload_flag
  3738. case $reload_flag in
  3739. "" | " "*) ;;
  3740. *) reload_flag=" $reload_flag" ;;
  3741. esac
  3742. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3743. case $host_os in
  3744. darwin*)
  3745. if test "$GCC" = yes; then
  3746. reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
  3747. else
  3748. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3749. fi
  3750. ;;
  3751. esac
  3752. { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3753. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  3754. if test "${lt_cv_path_NM+set}" = set; then
  3755. echo $ECHO_N "(cached) $ECHO_C" >&6
  3756. else
  3757. if test -n "$NM"; then
  3758. # Let the user override the test.
  3759. lt_cv_path_NM="$NM"
  3760. else
  3761. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3762. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  3763. IFS="$lt_save_ifs"
  3764. test -z "$ac_dir" && ac_dir=.
  3765. tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  3766. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3767. # Check to see if the nm accepts a BSD-compat flag.
  3768. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3769. # nm: unknown option "B" ignored
  3770. # Tru64's nm complains that /dev/null is an invalid object file
  3771. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3772. */dev/null* | *'Invalid file or object type'*)
  3773. lt_cv_path_NM="$tmp_nm -B"
  3774. break
  3775. ;;
  3776. *)
  3777. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3778. */dev/null*)
  3779. lt_cv_path_NM="$tmp_nm -p"
  3780. break
  3781. ;;
  3782. *)
  3783. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3784. continue # so that we can try to find one that supports BSD flags
  3785. ;;
  3786. esac
  3787. esac
  3788. fi
  3789. done
  3790. IFS="$lt_save_ifs"
  3791. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3792. fi
  3793. fi
  3794. { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3795. echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  3796. NM="$lt_cv_path_NM"
  3797. { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  3798. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
  3799. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3800. echo $ECHO_N "(cached) $ECHO_C" >&6
  3801. else
  3802. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3803. lt_cv_file_magic_test_file=
  3804. lt_cv_deplibs_check_method='unknown'
  3805. # Need to set the preceding variable on all platforms that support
  3806. # interlibrary dependencies.
  3807. # 'none' -- dependencies not supported.
  3808. # `unknown' -- same as none, but documents that we really don't know.
  3809. # 'pass_all' -- all dependencies passed with no checks.
  3810. # 'test_compile' -- check by making test program.
  3811. # 'file_magic [[regex]]' -- check by looking for files in library path
  3812. # which responds to the $file_magic_cmd with a given extended regex.
  3813. # If you have `file' or equivalent on your system and you're not sure
  3814. # whether `pass_all' will *always* work, you probably want this one.
  3815. case $host_os in
  3816. aix4* | aix5*)
  3817. lt_cv_deplibs_check_method=pass_all
  3818. ;;
  3819. beos*)
  3820. lt_cv_deplibs_check_method=pass_all
  3821. ;;
  3822. bsdi[45]*)
  3823. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3824. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3825. lt_cv_file_magic_test_file=/shlib/libc.so
  3826. ;;
  3827. cygwin*)
  3828. # func_win32_libid is a shell function defined in ltmain.sh
  3829. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3830. lt_cv_file_magic_cmd='func_win32_libid'
  3831. ;;
  3832. mingw* | pw32*)
  3833. # Base MSYS/MinGW do not provide the 'file' command needed by
  3834. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  3835. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3836. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3837. ;;
  3838. darwin* | rhapsody*)
  3839. lt_cv_deplibs_check_method=pass_all
  3840. ;;
  3841. freebsd* | kfreebsd*-gnu | dragonfly*)
  3842. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3843. case $host_cpu in
  3844. i*86 )
  3845. # Not sure whether the presence of OpenBSD here was a mistake.
  3846. # Let's accept both of them until this is cleared up.
  3847. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  3848. lt_cv_file_magic_cmd=/usr/bin/file
  3849. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3850. ;;
  3851. esac
  3852. else
  3853. lt_cv_deplibs_check_method=pass_all
  3854. fi
  3855. ;;
  3856. gnu*)
  3857. lt_cv_deplibs_check_method=pass_all
  3858. ;;
  3859. hpux10.20* | hpux11*)
  3860. lt_cv_file_magic_cmd=/usr/bin/file
  3861. case "$host_cpu" in
  3862. ia64*)
  3863. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3864. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3865. ;;
  3866. hppa*64*)
  3867. 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]'
  3868. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3869. ;;
  3870. *)
  3871. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3872. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3873. ;;
  3874. esac
  3875. ;;
  3876. irix5* | irix6* | nonstopux*)
  3877. case $LD in
  3878. *-32|*"-32 ") libmagic=32-bit;;
  3879. *-n32|*"-n32 ") libmagic=N32;;
  3880. *-64|*"-64 ") libmagic=64-bit;;
  3881. *) libmagic=never-match;;
  3882. esac
  3883. lt_cv_deplibs_check_method=pass_all
  3884. ;;
  3885. # This must be Linux ELF.
  3886. linux*)
  3887. lt_cv_deplibs_check_method=pass_all
  3888. ;;
  3889. netbsd*)
  3890. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3891. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3892. else
  3893. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3894. fi
  3895. ;;
  3896. newos6*)
  3897. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3898. lt_cv_file_magic_cmd=/usr/bin/file
  3899. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3900. ;;
  3901. nto-qnx*)
  3902. lt_cv_deplibs_check_method=unknown
  3903. ;;
  3904. openbsd*)
  3905. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3906. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  3907. else
  3908. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3909. fi
  3910. ;;
  3911. osf3* | osf4* | osf5*)
  3912. lt_cv_deplibs_check_method=pass_all
  3913. ;;
  3914. sco3.2v5*)
  3915. lt_cv_deplibs_check_method=pass_all
  3916. ;;
  3917. solaris*)
  3918. lt_cv_deplibs_check_method=pass_all
  3919. ;;
  3920. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  3921. case $host_vendor in
  3922. motorola)
  3923. 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]'
  3924. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3925. ;;
  3926. ncr)
  3927. lt_cv_deplibs_check_method=pass_all
  3928. ;;
  3929. sequent)
  3930. lt_cv_file_magic_cmd='/bin/file'
  3931. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  3932. ;;
  3933. sni)
  3934. lt_cv_file_magic_cmd='/bin/file'
  3935. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  3936. lt_cv_file_magic_test_file=/lib/libc.so
  3937. ;;
  3938. siemens)
  3939. lt_cv_deplibs_check_method=pass_all
  3940. ;;
  3941. esac
  3942. ;;
  3943. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
  3944. lt_cv_deplibs_check_method=pass_all
  3945. ;;
  3946. esac
  3947. fi
  3948. { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  3949. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  3950. file_magic_cmd=$lt_cv_file_magic_cmd
  3951. deplibs_check_method=$lt_cv_deplibs_check_method
  3952. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3953. # If no C compiler was specified, use CC.
  3954. LTCC=${LTCC-"$CC"}
  3955. # Allow CC to be a program name with arguments.
  3956. compiler=$CC
  3957. # Check whether --enable-libtool-lock was given.
  3958. if test "${enable_libtool_lock+set}" = set; then
  3959. enableval=$enable_libtool_lock;
  3960. fi
  3961. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  3962. # Some flags need to be propagated to the compiler or linker for good
  3963. # libtool support.
  3964. case $host in
  3965. ia64-*-hpux*)
  3966. # Find out which ABI we are using.
  3967. echo 'int i;' > conftest.$ac_ext
  3968. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3969. (eval $ac_compile) 2>&5
  3970. ac_status=$?
  3971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3972. (exit $ac_status); }; then
  3973. case `/usr/bin/file conftest.$ac_objext` in
  3974. *ELF-32*)
  3975. HPUX_IA64_MODE="32"
  3976. ;;
  3977. *ELF-64*)
  3978. HPUX_IA64_MODE="64"
  3979. ;;
  3980. esac
  3981. fi
  3982. rm -rf conftest*
  3983. ;;
  3984. *-*-irix6*)
  3985. # Find out which ABI we are using.
  3986. echo '#line 4487 "configure"' > conftest.$ac_ext
  3987. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3988. (eval $ac_compile) 2>&5
  3989. ac_status=$?
  3990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3991. (exit $ac_status); }; then
  3992. if test "$lt_cv_prog_gnu_ld" = yes; then
  3993. case `/usr/bin/file conftest.$ac_objext` in
  3994. *32-bit*)
  3995. LD="${LD-ld} -melf32bsmip"
  3996. ;;
  3997. *N32*)
  3998. LD="${LD-ld} -melf32bmipn32"
  3999. ;;
  4000. *64-bit*)
  4001. LD="${LD-ld} -melf64bmip"
  4002. ;;
  4003. esac
  4004. else
  4005. case `/usr/bin/file conftest.$ac_objext` in
  4006. *32-bit*)
  4007. LD="${LD-ld} -32"
  4008. ;;
  4009. *N32*)
  4010. LD="${LD-ld} -n32"
  4011. ;;
  4012. *64-bit*)
  4013. LD="${LD-ld} -64"
  4014. ;;
  4015. esac
  4016. fi
  4017. fi
  4018. rm -rf conftest*
  4019. ;;
  4020. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  4021. # Find out which ABI we are using.
  4022. echo 'int i;' > conftest.$ac_ext
  4023. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4024. (eval $ac_compile) 2>&5
  4025. ac_status=$?
  4026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4027. (exit $ac_status); }; then
  4028. case "`/usr/bin/file conftest.o`" in
  4029. *32-bit*)
  4030. case $host in
  4031. x86_64-*linux*)
  4032. LD="${LD-ld} -m elf_i386"
  4033. ;;
  4034. ppc64-*linux*|powerpc64-*linux*)
  4035. LD="${LD-ld} -m elf32ppclinux"
  4036. ;;
  4037. s390x-*linux*)
  4038. LD="${LD-ld} -m elf_s390"
  4039. ;;
  4040. sparc64-*linux*)
  4041. LD="${LD-ld} -m elf32_sparc"
  4042. ;;
  4043. esac
  4044. ;;
  4045. *64-bit*)
  4046. case $host in
  4047. x86_64-*linux*)
  4048. LD="${LD-ld} -m elf_x86_64"
  4049. ;;
  4050. ppc*-*linux*|powerpc*-*linux*)
  4051. LD="${LD-ld} -m elf64ppc"
  4052. ;;
  4053. s390*-*linux*)
  4054. LD="${LD-ld} -m elf64_s390"
  4055. ;;
  4056. sparc*-*linux*)
  4057. LD="${LD-ld} -m elf64_sparc"
  4058. ;;
  4059. esac
  4060. ;;
  4061. esac
  4062. fi
  4063. rm -rf conftest*
  4064. ;;
  4065. *-*-sco3.2v5*)
  4066. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4067. SAVE_CFLAGS="$CFLAGS"
  4068. CFLAGS="$CFLAGS -belf"
  4069. { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4070. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  4071. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4072. echo $ECHO_N "(cached) $ECHO_C" >&6
  4073. else
  4074. ac_ext=c
  4075. ac_cpp='$CPP $CPPFLAGS'
  4076. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4077. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4078. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4079. cat >conftest.$ac_ext <<_ACEOF
  4080. /* confdefs.h. */
  4081. _ACEOF
  4082. cat confdefs.h >>conftest.$ac_ext
  4083. cat >>conftest.$ac_ext <<_ACEOF
  4084. /* end confdefs.h. */
  4085. int
  4086. main ()
  4087. {
  4088. ;
  4089. return 0;
  4090. }
  4091. _ACEOF
  4092. rm -f conftest.$ac_objext conftest$ac_exeext
  4093. if { (ac_try="$ac_link"
  4094. case "(($ac_try" in
  4095. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4096. *) ac_try_echo=$ac_try;;
  4097. esac
  4098. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4099. (eval "$ac_link") 2>conftest.er1
  4100. ac_status=$?
  4101. grep -v '^ *+' conftest.er1 >conftest.err
  4102. rm -f conftest.er1
  4103. cat conftest.err >&5
  4104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4105. (exit $ac_status); } && {
  4106. test -z "$ac_c_werror_flag" ||
  4107. test ! -s conftest.err
  4108. } && test -s conftest$ac_exeext &&
  4109. $as_test_x conftest$ac_exeext; then
  4110. lt_cv_cc_needs_belf=yes
  4111. else
  4112. echo "$as_me: failed program was:" >&5
  4113. sed 's/^/| /' conftest.$ac_ext >&5
  4114. lt_cv_cc_needs_belf=no
  4115. fi
  4116. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4117. conftest$ac_exeext conftest.$ac_ext
  4118. ac_ext=c
  4119. ac_cpp='$CPP $CPPFLAGS'
  4120. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4121. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4122. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4123. fi
  4124. { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4125. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  4126. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4127. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4128. CFLAGS="$SAVE_CFLAGS"
  4129. fi
  4130. ;;
  4131. esac
  4132. need_locks="$enable_libtool_lock"
  4133. ac_ext=c
  4134. ac_cpp='$CPP $CPPFLAGS'
  4135. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4136. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4137. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4138. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4139. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  4140. # On Suns, sometimes $CPP names a directory.
  4141. if test -n "$CPP" && test -d "$CPP"; then
  4142. CPP=
  4143. fi
  4144. if test -z "$CPP"; then
  4145. if test "${ac_cv_prog_CPP+set}" = set; then
  4146. echo $ECHO_N "(cached) $ECHO_C" >&6
  4147. else
  4148. # Double quotes because CPP needs to be expanded
  4149. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4150. do
  4151. ac_preproc_ok=false
  4152. for ac_c_preproc_warn_flag in '' yes
  4153. do
  4154. # Use a header file that comes with gcc, so configuring glibc
  4155. # with a fresh cross-compiler works.
  4156. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4157. # <limits.h> exists even on freestanding compilers.
  4158. # On the NeXT, cc -E runs the code through the compiler's parser,
  4159. # not just through cpp. "Syntax error" is here to catch this case.
  4160. cat >conftest.$ac_ext <<_ACEOF
  4161. /* confdefs.h. */
  4162. _ACEOF
  4163. cat confdefs.h >>conftest.$ac_ext
  4164. cat >>conftest.$ac_ext <<_ACEOF
  4165. /* end confdefs.h. */
  4166. #ifdef __STDC__
  4167. # include <limits.h>
  4168. #else
  4169. # include <assert.h>
  4170. #endif
  4171. Syntax error
  4172. _ACEOF
  4173. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4174. case "(($ac_try" in
  4175. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4176. *) ac_try_echo=$ac_try;;
  4177. esac
  4178. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4179. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4180. ac_status=$?
  4181. grep -v '^ *+' conftest.er1 >conftest.err
  4182. rm -f conftest.er1
  4183. cat conftest.err >&5
  4184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4185. (exit $ac_status); } >/dev/null && {
  4186. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4187. test ! -s conftest.err
  4188. }; then
  4189. :
  4190. else
  4191. echo "$as_me: failed program was:" >&5
  4192. sed 's/^/| /' conftest.$ac_ext >&5
  4193. # Broken: fails on valid input.
  4194. continue
  4195. fi
  4196. rm -f conftest.err conftest.$ac_ext
  4197. # OK, works on sane cases. Now check whether nonexistent headers
  4198. # can be detected and how.
  4199. cat >conftest.$ac_ext <<_ACEOF
  4200. /* confdefs.h. */
  4201. _ACEOF
  4202. cat confdefs.h >>conftest.$ac_ext
  4203. cat >>conftest.$ac_ext <<_ACEOF
  4204. /* end confdefs.h. */
  4205. #include <ac_nonexistent.h>
  4206. _ACEOF
  4207. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4208. case "(($ac_try" in
  4209. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4210. *) ac_try_echo=$ac_try;;
  4211. esac
  4212. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4213. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4214. ac_status=$?
  4215. grep -v '^ *+' conftest.er1 >conftest.err
  4216. rm -f conftest.er1
  4217. cat conftest.err >&5
  4218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4219. (exit $ac_status); } >/dev/null && {
  4220. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4221. test ! -s conftest.err
  4222. }; then
  4223. # Broken: success on invalid input.
  4224. continue
  4225. else
  4226. echo "$as_me: failed program was:" >&5
  4227. sed 's/^/| /' conftest.$ac_ext >&5
  4228. # Passes both tests.
  4229. ac_preproc_ok=:
  4230. break
  4231. fi
  4232. rm -f conftest.err conftest.$ac_ext
  4233. done
  4234. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4235. rm -f conftest.err conftest.$ac_ext
  4236. if $ac_preproc_ok; then
  4237. break
  4238. fi
  4239. done
  4240. ac_cv_prog_CPP=$CPP
  4241. fi
  4242. CPP=$ac_cv_prog_CPP
  4243. else
  4244. ac_cv_prog_CPP=$CPP
  4245. fi
  4246. { echo "$as_me:$LINENO: result: $CPP" >&5
  4247. echo "${ECHO_T}$CPP" >&6; }
  4248. ac_preproc_ok=false
  4249. for ac_c_preproc_warn_flag in '' yes
  4250. do
  4251. # Use a header file that comes with gcc, so configuring glibc
  4252. # with a fresh cross-compiler works.
  4253. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4254. # <limits.h> exists even on freestanding compilers.
  4255. # On the NeXT, cc -E runs the code through the compiler's parser,
  4256. # not just through cpp. "Syntax error" is here to catch this case.
  4257. cat >conftest.$ac_ext <<_ACEOF
  4258. /* confdefs.h. */
  4259. _ACEOF
  4260. cat confdefs.h >>conftest.$ac_ext
  4261. cat >>conftest.$ac_ext <<_ACEOF
  4262. /* end confdefs.h. */
  4263. #ifdef __STDC__
  4264. # include <limits.h>
  4265. #else
  4266. # include <assert.h>
  4267. #endif
  4268. Syntax error
  4269. _ACEOF
  4270. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4271. case "(($ac_try" in
  4272. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4273. *) ac_try_echo=$ac_try;;
  4274. esac
  4275. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4276. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4277. ac_status=$?
  4278. grep -v '^ *+' conftest.er1 >conftest.err
  4279. rm -f conftest.er1
  4280. cat conftest.err >&5
  4281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4282. (exit $ac_status); } >/dev/null && {
  4283. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4284. test ! -s conftest.err
  4285. }; then
  4286. :
  4287. else
  4288. echo "$as_me: failed program was:" >&5
  4289. sed 's/^/| /' conftest.$ac_ext >&5
  4290. # Broken: fails on valid input.
  4291. continue
  4292. fi
  4293. rm -f conftest.err conftest.$ac_ext
  4294. # OK, works on sane cases. Now check whether nonexistent headers
  4295. # can be detected and how.
  4296. cat >conftest.$ac_ext <<_ACEOF
  4297. /* confdefs.h. */
  4298. _ACEOF
  4299. cat confdefs.h >>conftest.$ac_ext
  4300. cat >>conftest.$ac_ext <<_ACEOF
  4301. /* end confdefs.h. */
  4302. #include <ac_nonexistent.h>
  4303. _ACEOF
  4304. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4305. case "(($ac_try" in
  4306. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4307. *) ac_try_echo=$ac_try;;
  4308. esac
  4309. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4310. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4311. ac_status=$?
  4312. grep -v '^ *+' conftest.er1 >conftest.err
  4313. rm -f conftest.er1
  4314. cat conftest.err >&5
  4315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4316. (exit $ac_status); } >/dev/null && {
  4317. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4318. test ! -s conftest.err
  4319. }; then
  4320. # Broken: success on invalid input.
  4321. continue
  4322. else
  4323. echo "$as_me: failed program was:" >&5
  4324. sed 's/^/| /' conftest.$ac_ext >&5
  4325. # Passes both tests.
  4326. ac_preproc_ok=:
  4327. break
  4328. fi
  4329. rm -f conftest.err conftest.$ac_ext
  4330. done
  4331. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4332. rm -f conftest.err conftest.$ac_ext
  4333. if $ac_preproc_ok; then
  4334. :
  4335. else
  4336. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4337. See \`config.log' for more details." >&5
  4338. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4339. See \`config.log' for more details." >&2;}
  4340. { (exit 1); exit 1; }; }
  4341. fi
  4342. ac_ext=c
  4343. ac_cpp='$CPP $CPPFLAGS'
  4344. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4345. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4346. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4347. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4348. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4349. if test "${ac_cv_header_stdc+set}" = set; then
  4350. echo $ECHO_N "(cached) $ECHO_C" >&6
  4351. else
  4352. cat >conftest.$ac_ext <<_ACEOF
  4353. /* confdefs.h. */
  4354. _ACEOF
  4355. cat confdefs.h >>conftest.$ac_ext
  4356. cat >>conftest.$ac_ext <<_ACEOF
  4357. /* end confdefs.h. */
  4358. #include <stdlib.h>
  4359. #include <stdarg.h>
  4360. #include <string.h>
  4361. #include <float.h>
  4362. int
  4363. main ()
  4364. {
  4365. ;
  4366. return 0;
  4367. }
  4368. _ACEOF
  4369. rm -f conftest.$ac_objext
  4370. if { (ac_try="$ac_compile"
  4371. case "(($ac_try" in
  4372. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4373. *) ac_try_echo=$ac_try;;
  4374. esac
  4375. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4376. (eval "$ac_compile") 2>conftest.er1
  4377. ac_status=$?
  4378. grep -v '^ *+' conftest.er1 >conftest.err
  4379. rm -f conftest.er1
  4380. cat conftest.err >&5
  4381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4382. (exit $ac_status); } && {
  4383. test -z "$ac_c_werror_flag" ||
  4384. test ! -s conftest.err
  4385. } && test -s conftest.$ac_objext; then
  4386. ac_cv_header_stdc=yes
  4387. else
  4388. echo "$as_me: failed program was:" >&5
  4389. sed 's/^/| /' conftest.$ac_ext >&5
  4390. ac_cv_header_stdc=no
  4391. fi
  4392. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4393. if test $ac_cv_header_stdc = yes; then
  4394. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4395. cat >conftest.$ac_ext <<_ACEOF
  4396. /* confdefs.h. */
  4397. _ACEOF
  4398. cat confdefs.h >>conftest.$ac_ext
  4399. cat >>conftest.$ac_ext <<_ACEOF
  4400. /* end confdefs.h. */
  4401. #include <string.h>
  4402. _ACEOF
  4403. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4404. $EGREP "memchr" >/dev/null 2>&1; then
  4405. :
  4406. else
  4407. ac_cv_header_stdc=no
  4408. fi
  4409. rm -f conftest*
  4410. fi
  4411. if test $ac_cv_header_stdc = yes; then
  4412. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4413. cat >conftest.$ac_ext <<_ACEOF
  4414. /* confdefs.h. */
  4415. _ACEOF
  4416. cat confdefs.h >>conftest.$ac_ext
  4417. cat >>conftest.$ac_ext <<_ACEOF
  4418. /* end confdefs.h. */
  4419. #include <stdlib.h>
  4420. _ACEOF
  4421. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4422. $EGREP "free" >/dev/null 2>&1; then
  4423. :
  4424. else
  4425. ac_cv_header_stdc=no
  4426. fi
  4427. rm -f conftest*
  4428. fi
  4429. if test $ac_cv_header_stdc = yes; then
  4430. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4431. if test "$cross_compiling" = yes; then
  4432. :
  4433. else
  4434. cat >conftest.$ac_ext <<_ACEOF
  4435. /* confdefs.h. */
  4436. _ACEOF
  4437. cat confdefs.h >>conftest.$ac_ext
  4438. cat >>conftest.$ac_ext <<_ACEOF
  4439. /* end confdefs.h. */
  4440. #include <ctype.h>
  4441. #include <stdlib.h>
  4442. #if ((' ' & 0x0FF) == 0x020)
  4443. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4444. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4445. #else
  4446. # define ISLOWER(c) \
  4447. (('a' <= (c) && (c) <= 'i') \
  4448. || ('j' <= (c) && (c) <= 'r') \
  4449. || ('s' <= (c) && (c) <= 'z'))
  4450. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4451. #endif
  4452. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4453. int
  4454. main ()
  4455. {
  4456. int i;
  4457. for (i = 0; i < 256; i++)
  4458. if (XOR (islower (i), ISLOWER (i))
  4459. || toupper (i) != TOUPPER (i))
  4460. return 2;
  4461. return 0;
  4462. }
  4463. _ACEOF
  4464. rm -f conftest$ac_exeext
  4465. if { (ac_try="$ac_link"
  4466. case "(($ac_try" in
  4467. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4468. *) ac_try_echo=$ac_try;;
  4469. esac
  4470. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4471. (eval "$ac_link") 2>&5
  4472. ac_status=$?
  4473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4474. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4475. { (case "(($ac_try" in
  4476. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4477. *) ac_try_echo=$ac_try;;
  4478. esac
  4479. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4480. (eval "$ac_try") 2>&5
  4481. ac_status=$?
  4482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4483. (exit $ac_status); }; }; then
  4484. :
  4485. else
  4486. echo "$as_me: program exited with status $ac_status" >&5
  4487. echo "$as_me: failed program was:" >&5
  4488. sed 's/^/| /' conftest.$ac_ext >&5
  4489. ( exit $ac_status )
  4490. ac_cv_header_stdc=no
  4491. fi
  4492. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4493. fi
  4494. fi
  4495. fi
  4496. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4497. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4498. if test $ac_cv_header_stdc = yes; then
  4499. cat >>confdefs.h <<\_ACEOF
  4500. #define STDC_HEADERS 1
  4501. _ACEOF
  4502. fi
  4503. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4504. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4505. inttypes.h stdint.h unistd.h
  4506. do
  4507. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4508. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4509. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4510. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4511. echo $ECHO_N "(cached) $ECHO_C" >&6
  4512. else
  4513. cat >conftest.$ac_ext <<_ACEOF
  4514. /* confdefs.h. */
  4515. _ACEOF
  4516. cat confdefs.h >>conftest.$ac_ext
  4517. cat >>conftest.$ac_ext <<_ACEOF
  4518. /* end confdefs.h. */
  4519. $ac_includes_default
  4520. #include <$ac_header>
  4521. _ACEOF
  4522. rm -f conftest.$ac_objext
  4523. if { (ac_try="$ac_compile"
  4524. case "(($ac_try" in
  4525. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4526. *) ac_try_echo=$ac_try;;
  4527. esac
  4528. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4529. (eval "$ac_compile") 2>conftest.er1
  4530. ac_status=$?
  4531. grep -v '^ *+' conftest.er1 >conftest.err
  4532. rm -f conftest.er1
  4533. cat conftest.err >&5
  4534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4535. (exit $ac_status); } && {
  4536. test -z "$ac_c_werror_flag" ||
  4537. test ! -s conftest.err
  4538. } && test -s conftest.$ac_objext; then
  4539. eval "$as_ac_Header=yes"
  4540. else
  4541. echo "$as_me: failed program was:" >&5
  4542. sed 's/^/| /' conftest.$ac_ext >&5
  4543. eval "$as_ac_Header=no"
  4544. fi
  4545. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4546. fi
  4547. ac_res=`eval echo '${'$as_ac_Header'}'`
  4548. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4549. echo "${ECHO_T}$ac_res" >&6; }
  4550. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4551. cat >>confdefs.h <<_ACEOF
  4552. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4553. _ACEOF
  4554. fi
  4555. done
  4556. for ac_header in dlfcn.h
  4557. do
  4558. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4559. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4560. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4561. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4562. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4563. echo $ECHO_N "(cached) $ECHO_C" >&6
  4564. fi
  4565. ac_res=`eval echo '${'$as_ac_Header'}'`
  4566. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4567. echo "${ECHO_T}$ac_res" >&6; }
  4568. else
  4569. # Is the header compilable?
  4570. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4571. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4572. cat >conftest.$ac_ext <<_ACEOF
  4573. /* confdefs.h. */
  4574. _ACEOF
  4575. cat confdefs.h >>conftest.$ac_ext
  4576. cat >>conftest.$ac_ext <<_ACEOF
  4577. /* end confdefs.h. */
  4578. $ac_includes_default
  4579. #include <$ac_header>
  4580. _ACEOF
  4581. rm -f conftest.$ac_objext
  4582. if { (ac_try="$ac_compile"
  4583. case "(($ac_try" in
  4584. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4585. *) ac_try_echo=$ac_try;;
  4586. esac
  4587. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4588. (eval "$ac_compile") 2>conftest.er1
  4589. ac_status=$?
  4590. grep -v '^ *+' conftest.er1 >conftest.err
  4591. rm -f conftest.er1
  4592. cat conftest.err >&5
  4593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4594. (exit $ac_status); } && {
  4595. test -z "$ac_c_werror_flag" ||
  4596. test ! -s conftest.err
  4597. } && test -s conftest.$ac_objext; then
  4598. ac_header_compiler=yes
  4599. else
  4600. echo "$as_me: failed program was:" >&5
  4601. sed 's/^/| /' conftest.$ac_ext >&5
  4602. ac_header_compiler=no
  4603. fi
  4604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4605. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4606. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4607. # Is the header present?
  4608. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4609. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4610. cat >conftest.$ac_ext <<_ACEOF
  4611. /* confdefs.h. */
  4612. _ACEOF
  4613. cat confdefs.h >>conftest.$ac_ext
  4614. cat >>conftest.$ac_ext <<_ACEOF
  4615. /* end confdefs.h. */
  4616. #include <$ac_header>
  4617. _ACEOF
  4618. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4619. case "(($ac_try" in
  4620. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4621. *) ac_try_echo=$ac_try;;
  4622. esac
  4623. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4624. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4625. ac_status=$?
  4626. grep -v '^ *+' conftest.er1 >conftest.err
  4627. rm -f conftest.er1
  4628. cat conftest.err >&5
  4629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4630. (exit $ac_status); } >/dev/null && {
  4631. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4632. test ! -s conftest.err
  4633. }; then
  4634. ac_header_preproc=yes
  4635. else
  4636. echo "$as_me: failed program was:" >&5
  4637. sed 's/^/| /' conftest.$ac_ext >&5
  4638. ac_header_preproc=no
  4639. fi
  4640. rm -f conftest.err conftest.$ac_ext
  4641. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4642. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4643. # So? What about this header?
  4644. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4645. yes:no: )
  4646. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4647. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4648. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4649. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4650. ac_header_preproc=yes
  4651. ;;
  4652. no:yes:* )
  4653. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4654. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4655. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4656. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4657. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4658. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4659. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4660. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4661. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4662. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4663. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4664. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4665. ;;
  4666. esac
  4667. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4668. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4669. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4670. echo $ECHO_N "(cached) $ECHO_C" >&6
  4671. else
  4672. eval "$as_ac_Header=\$ac_header_preproc"
  4673. fi
  4674. ac_res=`eval echo '${'$as_ac_Header'}'`
  4675. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4676. echo "${ECHO_T}$ac_res" >&6; }
  4677. fi
  4678. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4679. cat >>confdefs.h <<_ACEOF
  4680. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4681. _ACEOF
  4682. fi
  4683. done
  4684. ac_ext=cpp
  4685. ac_cpp='$CXXCPP $CPPFLAGS'
  4686. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4687. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4688. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4689. if test -z "$CXX"; then
  4690. if test -n "$CCC"; then
  4691. CXX=$CCC
  4692. else
  4693. if test -n "$ac_tool_prefix"; then
  4694. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4695. do
  4696. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4697. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4698. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4699. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4700. if test "${ac_cv_prog_CXX+set}" = set; then
  4701. echo $ECHO_N "(cached) $ECHO_C" >&6
  4702. else
  4703. if test -n "$CXX"; then
  4704. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4705. else
  4706. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4707. for as_dir in $PATH
  4708. do
  4709. IFS=$as_save_IFS
  4710. test -z "$as_dir" && as_dir=.
  4711. for ac_exec_ext in '' $ac_executable_extensions; do
  4712. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4713. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4714. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4715. break 2
  4716. fi
  4717. done
  4718. done
  4719. IFS=$as_save_IFS
  4720. fi
  4721. fi
  4722. CXX=$ac_cv_prog_CXX
  4723. if test -n "$CXX"; then
  4724. { echo "$as_me:$LINENO: result: $CXX" >&5
  4725. echo "${ECHO_T}$CXX" >&6; }
  4726. else
  4727. { echo "$as_me:$LINENO: result: no" >&5
  4728. echo "${ECHO_T}no" >&6; }
  4729. fi
  4730. test -n "$CXX" && break
  4731. done
  4732. fi
  4733. if test -z "$CXX"; then
  4734. ac_ct_CXX=$CXX
  4735. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4736. do
  4737. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4738. set dummy $ac_prog; ac_word=$2
  4739. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4740. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4741. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  4742. echo $ECHO_N "(cached) $ECHO_C" >&6
  4743. else
  4744. if test -n "$ac_ct_CXX"; then
  4745. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4746. else
  4747. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4748. for as_dir in $PATH
  4749. do
  4750. IFS=$as_save_IFS
  4751. test -z "$as_dir" && as_dir=.
  4752. for ac_exec_ext in '' $ac_executable_extensions; do
  4753. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4754. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4755. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4756. break 2
  4757. fi
  4758. done
  4759. done
  4760. IFS=$as_save_IFS
  4761. fi
  4762. fi
  4763. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4764. if test -n "$ac_ct_CXX"; then
  4765. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  4766. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  4767. else
  4768. { echo "$as_me:$LINENO: result: no" >&5
  4769. echo "${ECHO_T}no" >&6; }
  4770. fi
  4771. test -n "$ac_ct_CXX" && break
  4772. done
  4773. if test "x$ac_ct_CXX" = x; then
  4774. CXX="g++"
  4775. else
  4776. case $cross_compiling:$ac_tool_warned in
  4777. yes:)
  4778. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4779. whose name does not start with the host triplet. If you think this
  4780. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4781. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4782. whose name does not start with the host triplet. If you think this
  4783. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4784. ac_tool_warned=yes ;;
  4785. esac
  4786. CXX=$ac_ct_CXX
  4787. fi
  4788. fi
  4789. fi
  4790. fi
  4791. # Provide some information about the compiler.
  4792. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  4793. ac_compiler=`set X $ac_compile; echo $2`
  4794. { (ac_try="$ac_compiler --version >&5"
  4795. case "(($ac_try" in
  4796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4797. *) ac_try_echo=$ac_try;;
  4798. esac
  4799. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4800. (eval "$ac_compiler --version >&5") 2>&5
  4801. ac_status=$?
  4802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4803. (exit $ac_status); }
  4804. { (ac_try="$ac_compiler -v >&5"
  4805. case "(($ac_try" in
  4806. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4807. *) ac_try_echo=$ac_try;;
  4808. esac
  4809. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4810. (eval "$ac_compiler -v >&5") 2>&5
  4811. ac_status=$?
  4812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4813. (exit $ac_status); }
  4814. { (ac_try="$ac_compiler -V >&5"
  4815. case "(($ac_try" in
  4816. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4817. *) ac_try_echo=$ac_try;;
  4818. esac
  4819. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4820. (eval "$ac_compiler -V >&5") 2>&5
  4821. ac_status=$?
  4822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4823. (exit $ac_status); }
  4824. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  4825. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  4826. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  4827. echo $ECHO_N "(cached) $ECHO_C" >&6
  4828. else
  4829. cat >conftest.$ac_ext <<_ACEOF
  4830. /* confdefs.h. */
  4831. _ACEOF
  4832. cat confdefs.h >>conftest.$ac_ext
  4833. cat >>conftest.$ac_ext <<_ACEOF
  4834. /* end confdefs.h. */
  4835. int
  4836. main ()
  4837. {
  4838. #ifndef __GNUC__
  4839. choke me
  4840. #endif
  4841. ;
  4842. return 0;
  4843. }
  4844. _ACEOF
  4845. rm -f conftest.$ac_objext
  4846. if { (ac_try="$ac_compile"
  4847. case "(($ac_try" in
  4848. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4849. *) ac_try_echo=$ac_try;;
  4850. esac
  4851. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4852. (eval "$ac_compile") 2>conftest.er1
  4853. ac_status=$?
  4854. grep -v '^ *+' conftest.er1 >conftest.err
  4855. rm -f conftest.er1
  4856. cat conftest.err >&5
  4857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4858. (exit $ac_status); } && {
  4859. test -z "$ac_cxx_werror_flag" ||
  4860. test ! -s conftest.err
  4861. } && test -s conftest.$ac_objext; then
  4862. ac_compiler_gnu=yes
  4863. else
  4864. echo "$as_me: failed program was:" >&5
  4865. sed 's/^/| /' conftest.$ac_ext >&5
  4866. ac_compiler_gnu=no
  4867. fi
  4868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4869. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4870. fi
  4871. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  4872. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  4873. GXX=`test $ac_compiler_gnu = yes && echo yes`
  4874. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4875. ac_save_CXXFLAGS=$CXXFLAGS
  4876. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  4877. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  4878. if test "${ac_cv_prog_cxx_g+set}" = set; then
  4879. echo $ECHO_N "(cached) $ECHO_C" >&6
  4880. else
  4881. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4882. ac_cxx_werror_flag=yes
  4883. ac_cv_prog_cxx_g=no
  4884. CXXFLAGS="-g"
  4885. cat >conftest.$ac_ext <<_ACEOF
  4886. /* confdefs.h. */
  4887. _ACEOF
  4888. cat confdefs.h >>conftest.$ac_ext
  4889. cat >>conftest.$ac_ext <<_ACEOF
  4890. /* end confdefs.h. */
  4891. int
  4892. main ()
  4893. {
  4894. ;
  4895. return 0;
  4896. }
  4897. _ACEOF
  4898. rm -f conftest.$ac_objext
  4899. if { (ac_try="$ac_compile"
  4900. case "(($ac_try" in
  4901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4902. *) ac_try_echo=$ac_try;;
  4903. esac
  4904. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4905. (eval "$ac_compile") 2>conftest.er1
  4906. ac_status=$?
  4907. grep -v '^ *+' conftest.er1 >conftest.err
  4908. rm -f conftest.er1
  4909. cat conftest.err >&5
  4910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4911. (exit $ac_status); } && {
  4912. test -z "$ac_cxx_werror_flag" ||
  4913. test ! -s conftest.err
  4914. } && test -s conftest.$ac_objext; then
  4915. ac_cv_prog_cxx_g=yes
  4916. else
  4917. echo "$as_me: failed program was:" >&5
  4918. sed 's/^/| /' conftest.$ac_ext >&5
  4919. CXXFLAGS=""
  4920. cat >conftest.$ac_ext <<_ACEOF
  4921. /* confdefs.h. */
  4922. _ACEOF
  4923. cat confdefs.h >>conftest.$ac_ext
  4924. cat >>conftest.$ac_ext <<_ACEOF
  4925. /* end confdefs.h. */
  4926. int
  4927. main ()
  4928. {
  4929. ;
  4930. return 0;
  4931. }
  4932. _ACEOF
  4933. rm -f conftest.$ac_objext
  4934. if { (ac_try="$ac_compile"
  4935. case "(($ac_try" in
  4936. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4937. *) ac_try_echo=$ac_try;;
  4938. esac
  4939. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4940. (eval "$ac_compile") 2>conftest.er1
  4941. ac_status=$?
  4942. grep -v '^ *+' conftest.er1 >conftest.err
  4943. rm -f conftest.er1
  4944. cat conftest.err >&5
  4945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4946. (exit $ac_status); } && {
  4947. test -z "$ac_cxx_werror_flag" ||
  4948. test ! -s conftest.err
  4949. } && test -s conftest.$ac_objext; then
  4950. :
  4951. else
  4952. echo "$as_me: failed program was:" >&5
  4953. sed 's/^/| /' conftest.$ac_ext >&5
  4954. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4955. CXXFLAGS="-g"
  4956. cat >conftest.$ac_ext <<_ACEOF
  4957. /* confdefs.h. */
  4958. _ACEOF
  4959. cat confdefs.h >>conftest.$ac_ext
  4960. cat >>conftest.$ac_ext <<_ACEOF
  4961. /* end confdefs.h. */
  4962. int
  4963. main ()
  4964. {
  4965. ;
  4966. return 0;
  4967. }
  4968. _ACEOF
  4969. rm -f conftest.$ac_objext
  4970. if { (ac_try="$ac_compile"
  4971. case "(($ac_try" in
  4972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4973. *) ac_try_echo=$ac_try;;
  4974. esac
  4975. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4976. (eval "$ac_compile") 2>conftest.er1
  4977. ac_status=$?
  4978. grep -v '^ *+' conftest.er1 >conftest.err
  4979. rm -f conftest.er1
  4980. cat conftest.err >&5
  4981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4982. (exit $ac_status); } && {
  4983. test -z "$ac_cxx_werror_flag" ||
  4984. test ! -s conftest.err
  4985. } && test -s conftest.$ac_objext; then
  4986. ac_cv_prog_cxx_g=yes
  4987. else
  4988. echo "$as_me: failed program was:" >&5
  4989. sed 's/^/| /' conftest.$ac_ext >&5
  4990. fi
  4991. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4992. fi
  4993. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4994. fi
  4995. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4996. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4997. fi
  4998. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  4999. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  5000. if test "$ac_test_CXXFLAGS" = set; then
  5001. CXXFLAGS=$ac_save_CXXFLAGS
  5002. elif test $ac_cv_prog_cxx_g = yes; then
  5003. if test "$GXX" = yes; then
  5004. CXXFLAGS="-g -O2"
  5005. else
  5006. CXXFLAGS="-g"
  5007. fi
  5008. else
  5009. if test "$GXX" = yes; then
  5010. CXXFLAGS="-O2"
  5011. else
  5012. CXXFLAGS=
  5013. fi
  5014. fi
  5015. ac_ext=cpp
  5016. ac_cpp='$CXXCPP $CPPFLAGS'
  5017. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5018. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5019. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5020. depcc="$CXX" am_compiler_list=
  5021. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5022. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  5023. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  5024. echo $ECHO_N "(cached) $ECHO_C" >&6
  5025. else
  5026. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5027. # We make a subdir and do the tests there. Otherwise we can end up
  5028. # making bogus files that we don't know about and never remove. For
  5029. # instance it was reported that on HP-UX the gcc test will end up
  5030. # making a dummy file named `D' -- because `-MD' means `put the output
  5031. # in D'.
  5032. mkdir conftest.dir
  5033. # Copy depcomp to subdir because otherwise we won't find it if we're
  5034. # using a relative directory.
  5035. cp "$am_depcomp" conftest.dir
  5036. cd conftest.dir
  5037. # We will build objects and dependencies in a subdirectory because
  5038. # it helps to detect inapplicable dependency modes. For instance
  5039. # both Tru64's cc and ICC support -MD to output dependencies as a
  5040. # side effect of compilation, but ICC will put the dependencies in
  5041. # the current directory while Tru64 will put them in the object
  5042. # directory.
  5043. mkdir sub
  5044. am_cv_CXX_dependencies_compiler_type=none
  5045. if test "$am_compiler_list" = ""; then
  5046. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5047. fi
  5048. for depmode in $am_compiler_list; do
  5049. # Setup a source with many dependencies, because some compilers
  5050. # like to wrap large dependency lists on column 80 (with \), and
  5051. # we should not choose a depcomp mode which is confused by this.
  5052. #
  5053. # We need to recreate these files for each test, as the compiler may
  5054. # overwrite some of them when testing with obscure command lines.
  5055. # This happens at least with the AIX C compiler.
  5056. : > sub/conftest.c
  5057. for i in 1 2 3 4 5 6; do
  5058. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5059. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5060. # Solaris 8's {/usr,}/bin/sh.
  5061. touch sub/conftst$i.h
  5062. done
  5063. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5064. case $depmode in
  5065. nosideeffect)
  5066. # after this tag, mechanisms are not by side-effect, so they'll
  5067. # only be used when explicitly requested
  5068. if test "x$enable_dependency_tracking" = xyes; then
  5069. continue
  5070. else
  5071. break
  5072. fi
  5073. ;;
  5074. none) break ;;
  5075. esac
  5076. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5077. # mode. It turns out that the SunPro C++ compiler does not properly
  5078. # handle `-M -o', and we need to detect this.
  5079. if depmode=$depmode \
  5080. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5081. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5082. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5083. >/dev/null 2>conftest.err &&
  5084. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5085. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5086. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5087. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5088. # icc doesn't choke on unknown options, it will just issue warnings
  5089. # or remarks (even with -Werror). So we grep stderr for any message
  5090. # that says an option was ignored or not supported.
  5091. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5092. # icc: Command line warning: ignoring option '-M'; no argument required
  5093. # The diagnosis changed in icc 8.0:
  5094. # icc: Command line remark: option '-MP' not supported
  5095. if (grep 'ignoring option' conftest.err ||
  5096. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5097. am_cv_CXX_dependencies_compiler_type=$depmode
  5098. break
  5099. fi
  5100. fi
  5101. done
  5102. cd ..
  5103. rm -rf conftest.dir
  5104. else
  5105. am_cv_CXX_dependencies_compiler_type=none
  5106. fi
  5107. fi
  5108. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  5109. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  5110. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  5111. if
  5112. test "x$enable_dependency_tracking" != xno \
  5113. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  5114. am__fastdepCXX_TRUE=
  5115. am__fastdepCXX_FALSE='#'
  5116. else
  5117. am__fastdepCXX_TRUE='#'
  5118. am__fastdepCXX_FALSE=
  5119. fi
  5120. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5121. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5122. (test "X$CXX" != "Xg++"))) ; then
  5123. ac_ext=cpp
  5124. ac_cpp='$CXXCPP $CPPFLAGS'
  5125. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5126. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5127. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5128. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  5129. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  5130. if test -z "$CXXCPP"; then
  5131. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  5132. echo $ECHO_N "(cached) $ECHO_C" >&6
  5133. else
  5134. # Double quotes because CXXCPP needs to be expanded
  5135. for CXXCPP in "$CXX -E" "/lib/cpp"
  5136. do
  5137. ac_preproc_ok=false
  5138. for ac_cxx_preproc_warn_flag in '' yes
  5139. do
  5140. # Use a header file that comes with gcc, so configuring glibc
  5141. # with a fresh cross-compiler works.
  5142. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5143. # <limits.h> exists even on freestanding compilers.
  5144. # On the NeXT, cc -E runs the code through the compiler's parser,
  5145. # not just through cpp. "Syntax error" is here to catch this case.
  5146. cat >conftest.$ac_ext <<_ACEOF
  5147. /* confdefs.h. */
  5148. _ACEOF
  5149. cat confdefs.h >>conftest.$ac_ext
  5150. cat >>conftest.$ac_ext <<_ACEOF
  5151. /* end confdefs.h. */
  5152. #ifdef __STDC__
  5153. # include <limits.h>
  5154. #else
  5155. # include <assert.h>
  5156. #endif
  5157. Syntax error
  5158. _ACEOF
  5159. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5160. case "(($ac_try" in
  5161. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5162. *) ac_try_echo=$ac_try;;
  5163. esac
  5164. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5165. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5166. ac_status=$?
  5167. grep -v '^ *+' conftest.er1 >conftest.err
  5168. rm -f conftest.er1
  5169. cat conftest.err >&5
  5170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5171. (exit $ac_status); } >/dev/null && {
  5172. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5173. test ! -s conftest.err
  5174. }; then
  5175. :
  5176. else
  5177. echo "$as_me: failed program was:" >&5
  5178. sed 's/^/| /' conftest.$ac_ext >&5
  5179. # Broken: fails on valid input.
  5180. continue
  5181. fi
  5182. rm -f conftest.err conftest.$ac_ext
  5183. # OK, works on sane cases. Now check whether nonexistent headers
  5184. # can be detected and how.
  5185. cat >conftest.$ac_ext <<_ACEOF
  5186. /* confdefs.h. */
  5187. _ACEOF
  5188. cat confdefs.h >>conftest.$ac_ext
  5189. cat >>conftest.$ac_ext <<_ACEOF
  5190. /* end confdefs.h. */
  5191. #include <ac_nonexistent.h>
  5192. _ACEOF
  5193. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5194. case "(($ac_try" in
  5195. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5196. *) ac_try_echo=$ac_try;;
  5197. esac
  5198. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5199. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5200. ac_status=$?
  5201. grep -v '^ *+' conftest.er1 >conftest.err
  5202. rm -f conftest.er1
  5203. cat conftest.err >&5
  5204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5205. (exit $ac_status); } >/dev/null && {
  5206. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5207. test ! -s conftest.err
  5208. }; then
  5209. # Broken: success on invalid input.
  5210. continue
  5211. else
  5212. echo "$as_me: failed program was:" >&5
  5213. sed 's/^/| /' conftest.$ac_ext >&5
  5214. # Passes both tests.
  5215. ac_preproc_ok=:
  5216. break
  5217. fi
  5218. rm -f conftest.err conftest.$ac_ext
  5219. done
  5220. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5221. rm -f conftest.err conftest.$ac_ext
  5222. if $ac_preproc_ok; then
  5223. break
  5224. fi
  5225. done
  5226. ac_cv_prog_CXXCPP=$CXXCPP
  5227. fi
  5228. CXXCPP=$ac_cv_prog_CXXCPP
  5229. else
  5230. ac_cv_prog_CXXCPP=$CXXCPP
  5231. fi
  5232. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  5233. echo "${ECHO_T}$CXXCPP" >&6; }
  5234. ac_preproc_ok=false
  5235. for ac_cxx_preproc_warn_flag in '' yes
  5236. do
  5237. # Use a header file that comes with gcc, so configuring glibc
  5238. # with a fresh cross-compiler works.
  5239. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5240. # <limits.h> exists even on freestanding compilers.
  5241. # On the NeXT, cc -E runs the code through the compiler's parser,
  5242. # not just through cpp. "Syntax error" is here to catch this case.
  5243. cat >conftest.$ac_ext <<_ACEOF
  5244. /* confdefs.h. */
  5245. _ACEOF
  5246. cat confdefs.h >>conftest.$ac_ext
  5247. cat >>conftest.$ac_ext <<_ACEOF
  5248. /* end confdefs.h. */
  5249. #ifdef __STDC__
  5250. # include <limits.h>
  5251. #else
  5252. # include <assert.h>
  5253. #endif
  5254. Syntax error
  5255. _ACEOF
  5256. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5257. case "(($ac_try" in
  5258. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5259. *) ac_try_echo=$ac_try;;
  5260. esac
  5261. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5262. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5263. ac_status=$?
  5264. grep -v '^ *+' conftest.er1 >conftest.err
  5265. rm -f conftest.er1
  5266. cat conftest.err >&5
  5267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5268. (exit $ac_status); } >/dev/null && {
  5269. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5270. test ! -s conftest.err
  5271. }; then
  5272. :
  5273. else
  5274. echo "$as_me: failed program was:" >&5
  5275. sed 's/^/| /' conftest.$ac_ext >&5
  5276. # Broken: fails on valid input.
  5277. continue
  5278. fi
  5279. rm -f conftest.err conftest.$ac_ext
  5280. # OK, works on sane cases. Now check whether nonexistent headers
  5281. # can be detected and how.
  5282. cat >conftest.$ac_ext <<_ACEOF
  5283. /* confdefs.h. */
  5284. _ACEOF
  5285. cat confdefs.h >>conftest.$ac_ext
  5286. cat >>conftest.$ac_ext <<_ACEOF
  5287. /* end confdefs.h. */
  5288. #include <ac_nonexistent.h>
  5289. _ACEOF
  5290. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5291. case "(($ac_try" in
  5292. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5293. *) ac_try_echo=$ac_try;;
  5294. esac
  5295. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5296. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5297. ac_status=$?
  5298. grep -v '^ *+' conftest.er1 >conftest.err
  5299. rm -f conftest.er1
  5300. cat conftest.err >&5
  5301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5302. (exit $ac_status); } >/dev/null && {
  5303. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5304. test ! -s conftest.err
  5305. }; then
  5306. # Broken: success on invalid input.
  5307. continue
  5308. else
  5309. echo "$as_me: failed program was:" >&5
  5310. sed 's/^/| /' conftest.$ac_ext >&5
  5311. # Passes both tests.
  5312. ac_preproc_ok=:
  5313. break
  5314. fi
  5315. rm -f conftest.err conftest.$ac_ext
  5316. done
  5317. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5318. rm -f conftest.err conftest.$ac_ext
  5319. if $ac_preproc_ok; then
  5320. :
  5321. else
  5322. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5323. See \`config.log' for more details." >&5
  5324. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5325. See \`config.log' for more details." >&2;}
  5326. { (exit 1); exit 1; }; }
  5327. fi
  5328. ac_ext=cpp
  5329. ac_cpp='$CXXCPP $CPPFLAGS'
  5330. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5331. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5332. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5333. fi
  5334. ac_ext=f
  5335. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  5336. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5337. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  5338. if test -n "$ac_tool_prefix"; then
  5339. for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  5340. do
  5341. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5342. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5343. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5344. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5345. if test "${ac_cv_prog_F77+set}" = set; then
  5346. echo $ECHO_N "(cached) $ECHO_C" >&6
  5347. else
  5348. if test -n "$F77"; then
  5349. ac_cv_prog_F77="$F77" # Let the user override the test.
  5350. else
  5351. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5352. for as_dir in $PATH
  5353. do
  5354. IFS=$as_save_IFS
  5355. test -z "$as_dir" && as_dir=.
  5356. for ac_exec_ext in '' $ac_executable_extensions; do
  5357. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5358. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  5359. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5360. break 2
  5361. fi
  5362. done
  5363. done
  5364. IFS=$as_save_IFS
  5365. fi
  5366. fi
  5367. F77=$ac_cv_prog_F77
  5368. if test -n "$F77"; then
  5369. { echo "$as_me:$LINENO: result: $F77" >&5
  5370. echo "${ECHO_T}$F77" >&6; }
  5371. else
  5372. { echo "$as_me:$LINENO: result: no" >&5
  5373. echo "${ECHO_T}no" >&6; }
  5374. fi
  5375. test -n "$F77" && break
  5376. done
  5377. fi
  5378. if test -z "$F77"; then
  5379. ac_ct_F77=$F77
  5380. for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  5381. do
  5382. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5383. set dummy $ac_prog; ac_word=$2
  5384. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5385. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5386. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  5387. echo $ECHO_N "(cached) $ECHO_C" >&6
  5388. else
  5389. if test -n "$ac_ct_F77"; then
  5390. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  5391. else
  5392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5393. for as_dir in $PATH
  5394. do
  5395. IFS=$as_save_IFS
  5396. test -z "$as_dir" && as_dir=.
  5397. for ac_exec_ext in '' $ac_executable_extensions; do
  5398. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5399. ac_cv_prog_ac_ct_F77="$ac_prog"
  5400. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5401. break 2
  5402. fi
  5403. done
  5404. done
  5405. IFS=$as_save_IFS
  5406. fi
  5407. fi
  5408. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  5409. if test -n "$ac_ct_F77"; then
  5410. { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  5411. echo "${ECHO_T}$ac_ct_F77" >&6; }
  5412. else
  5413. { echo "$as_me:$LINENO: result: no" >&5
  5414. echo "${ECHO_T}no" >&6; }
  5415. fi
  5416. test -n "$ac_ct_F77" && break
  5417. done
  5418. if test "x$ac_ct_F77" = x; then
  5419. F77=""
  5420. else
  5421. case $cross_compiling:$ac_tool_warned in
  5422. yes:)
  5423. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5424. whose name does not start with the host triplet. If you think this
  5425. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5426. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5427. whose name does not start with the host triplet. If you think this
  5428. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5429. ac_tool_warned=yes ;;
  5430. esac
  5431. F77=$ac_ct_F77
  5432. fi
  5433. fi
  5434. # Provide some information about the compiler.
  5435. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  5436. ac_compiler=`set X $ac_compile; echo $2`
  5437. { (ac_try="$ac_compiler --version >&5"
  5438. case "(($ac_try" in
  5439. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5440. *) ac_try_echo=$ac_try;;
  5441. esac
  5442. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5443. (eval "$ac_compiler --version >&5") 2>&5
  5444. ac_status=$?
  5445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5446. (exit $ac_status); }
  5447. { (ac_try="$ac_compiler -v >&5"
  5448. case "(($ac_try" in
  5449. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5450. *) ac_try_echo=$ac_try;;
  5451. esac
  5452. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5453. (eval "$ac_compiler -v >&5") 2>&5
  5454. ac_status=$?
  5455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5456. (exit $ac_status); }
  5457. { (ac_try="$ac_compiler -V >&5"
  5458. case "(($ac_try" in
  5459. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5460. *) ac_try_echo=$ac_try;;
  5461. esac
  5462. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5463. (eval "$ac_compiler -V >&5") 2>&5
  5464. ac_status=$?
  5465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5466. (exit $ac_status); }
  5467. rm -f a.out
  5468. # If we don't use `.F' as extension, the preprocessor is not run on the
  5469. # input file. (Note that this only needs to work for GNU compilers.)
  5470. ac_save_ext=$ac_ext
  5471. ac_ext=F
  5472. { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  5473. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  5474. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  5475. echo $ECHO_N "(cached) $ECHO_C" >&6
  5476. else
  5477. cat >conftest.$ac_ext <<_ACEOF
  5478. program main
  5479. #ifndef __GNUC__
  5480. choke me
  5481. #endif
  5482. end
  5483. _ACEOF
  5484. rm -f conftest.$ac_objext
  5485. if { (ac_try="$ac_compile"
  5486. case "(($ac_try" in
  5487. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5488. *) ac_try_echo=$ac_try;;
  5489. esac
  5490. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5491. (eval "$ac_compile") 2>conftest.er1
  5492. ac_status=$?
  5493. grep -v '^ *+' conftest.er1 >conftest.err
  5494. rm -f conftest.er1
  5495. cat conftest.err >&5
  5496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5497. (exit $ac_status); } && {
  5498. test -z "$ac_f77_werror_flag" ||
  5499. test ! -s conftest.err
  5500. } && test -s conftest.$ac_objext; then
  5501. ac_compiler_gnu=yes
  5502. else
  5503. echo "$as_me: failed program was:" >&5
  5504. sed 's/^/| /' conftest.$ac_ext >&5
  5505. ac_compiler_gnu=no
  5506. fi
  5507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5508. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5509. fi
  5510. { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5511. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  5512. ac_ext=$ac_save_ext
  5513. ac_test_FFLAGS=${FFLAGS+set}
  5514. ac_save_FFLAGS=$FFLAGS
  5515. FFLAGS=
  5516. { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5517. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  5518. if test "${ac_cv_prog_f77_g+set}" = set; then
  5519. echo $ECHO_N "(cached) $ECHO_C" >&6
  5520. else
  5521. FFLAGS=-g
  5522. cat >conftest.$ac_ext <<_ACEOF
  5523. program main
  5524. end
  5525. _ACEOF
  5526. rm -f conftest.$ac_objext
  5527. if { (ac_try="$ac_compile"
  5528. case "(($ac_try" in
  5529. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5530. *) ac_try_echo=$ac_try;;
  5531. esac
  5532. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5533. (eval "$ac_compile") 2>conftest.er1
  5534. ac_status=$?
  5535. grep -v '^ *+' conftest.er1 >conftest.err
  5536. rm -f conftest.er1
  5537. cat conftest.err >&5
  5538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5539. (exit $ac_status); } && {
  5540. test -z "$ac_f77_werror_flag" ||
  5541. test ! -s conftest.err
  5542. } && test -s conftest.$ac_objext; then
  5543. ac_cv_prog_f77_g=yes
  5544. else
  5545. echo "$as_me: failed program was:" >&5
  5546. sed 's/^/| /' conftest.$ac_ext >&5
  5547. ac_cv_prog_f77_g=no
  5548. fi
  5549. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5550. fi
  5551. { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5552. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  5553. if test "$ac_test_FFLAGS" = set; then
  5554. FFLAGS=$ac_save_FFLAGS
  5555. elif test $ac_cv_prog_f77_g = yes; then
  5556. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5557. FFLAGS="-g -O2"
  5558. else
  5559. FFLAGS="-g"
  5560. fi
  5561. else
  5562. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5563. FFLAGS="-O2"
  5564. else
  5565. FFLAGS=
  5566. fi
  5567. fi
  5568. G77=`test $ac_compiler_gnu = yes && echo yes`
  5569. ac_ext=c
  5570. ac_cpp='$CPP $CPPFLAGS'
  5571. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5572. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5573. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5574. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5575. # find the maximum length of command line arguments
  5576. { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5577. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  5578. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5579. echo $ECHO_N "(cached) $ECHO_C" >&6
  5580. else
  5581. i=0
  5582. teststring="ABCD"
  5583. case $build_os in
  5584. msdosdjgpp*)
  5585. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5586. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5587. # during glob expansion). Even if it were fixed, the result of this
  5588. # check would be larger than it should be.
  5589. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5590. ;;
  5591. gnu*)
  5592. # Under GNU Hurd, this test is not required because there is
  5593. # no limit to the length of command line arguments.
  5594. # Libtool will interpret -1 as no limit whatsoever
  5595. lt_cv_sys_max_cmd_len=-1;
  5596. ;;
  5597. cygwin* | mingw*)
  5598. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5599. # about 5 minutes as the teststring grows exponentially.
  5600. # Worse, since 9x/ME are not pre-emptively multitasking,
  5601. # you end up with a "frozen" computer, even though with patience
  5602. # the test eventually succeeds (with a max line length of 256k).
  5603. # Instead, let's just punt: use the minimum linelength reported by
  5604. # all of the supported platforms: 8192 (on NT/2K/XP).
  5605. lt_cv_sys_max_cmd_len=8192;
  5606. ;;
  5607. amigaos*)
  5608. # On AmigaOS with pdksh, this test takes hours, literally.
  5609. # So we just punt and use a minimum line length of 8192.
  5610. lt_cv_sys_max_cmd_len=8192;
  5611. ;;
  5612. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5613. # This has been around since 386BSD, at least. Likely further.
  5614. if test -x /sbin/sysctl; then
  5615. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5616. elif test -x /usr/sbin/sysctl; then
  5617. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5618. else
  5619. lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
  5620. fi
  5621. # And add a safety zone
  5622. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5623. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5624. ;;
  5625. osf*)
  5626. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5627. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5628. # nice to cause kernel panics so lets avoid the loop below.
  5629. # First set a reasonable default.
  5630. lt_cv_sys_max_cmd_len=16384
  5631. #
  5632. if test -x /sbin/sysconfig; then
  5633. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5634. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5635. esac
  5636. fi
  5637. ;;
  5638. *)
  5639. # If test is not a shell built-in, we'll probably end up computing a
  5640. # maximum length that is only half of the actual maximum length, but
  5641. # we can't tell.
  5642. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5643. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5644. = "XX$teststring") >/dev/null 2>&1 &&
  5645. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5646. lt_cv_sys_max_cmd_len=$new_result &&
  5647. test $i != 17 # 1/2 MB should be enough
  5648. do
  5649. i=`expr $i + 1`
  5650. teststring=$teststring$teststring
  5651. done
  5652. teststring=
  5653. # Add a significant safety factor because C++ compilers can tack on massive
  5654. # amounts of additional arguments before passing them to the linker.
  5655. # It appears as though 1/2 is a usable value.
  5656. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5657. ;;
  5658. esac
  5659. fi
  5660. if test -n $lt_cv_sys_max_cmd_len ; then
  5661. { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5662. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  5663. else
  5664. { echo "$as_me:$LINENO: result: none" >&5
  5665. echo "${ECHO_T}none" >&6; }
  5666. fi
  5667. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5668. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5669. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  5670. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5671. echo $ECHO_N "(cached) $ECHO_C" >&6
  5672. else
  5673. # These are sane defaults that work on at least a few old systems.
  5674. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5675. # Character class describing NM global symbol codes.
  5676. symcode='[BCDEGRST]'
  5677. # Regexp to match symbols that can be accessed directly from C.
  5678. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5679. # Transform an extracted symbol line into a proper C declaration
  5680. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5681. # Transform an extracted symbol line into symbol name and symbol address
  5682. 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'"
  5683. # Define system-specific variables.
  5684. case $host_os in
  5685. aix*)
  5686. symcode='[BCDT]'
  5687. ;;
  5688. cygwin* | mingw* | pw32*)
  5689. symcode='[ABCDGISTW]'
  5690. ;;
  5691. hpux*) # Its linker distinguishes data from code symbols
  5692. if test "$host_cpu" = ia64; then
  5693. symcode='[ABCDEGRST]'
  5694. fi
  5695. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5696. 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'"
  5697. ;;
  5698. linux*)
  5699. if test "$host_cpu" = ia64; then
  5700. symcode='[ABCDGIRSTW]'
  5701. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5702. 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'"
  5703. fi
  5704. ;;
  5705. irix* | nonstopux*)
  5706. symcode='[BCDEGRST]'
  5707. ;;
  5708. osf*)
  5709. symcode='[BCDEGQRST]'
  5710. ;;
  5711. solaris* | sysv5*)
  5712. symcode='[BDRT]'
  5713. ;;
  5714. sysv4)
  5715. symcode='[DFNSTU]'
  5716. ;;
  5717. esac
  5718. # Handle CRLF in mingw tool chain
  5719. opt_cr=
  5720. case $build_os in
  5721. mingw*)
  5722. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5723. ;;
  5724. esac
  5725. # If we're using GNU nm, then use its standard symbol codes.
  5726. case `$NM -V 2>&1` in
  5727. *GNU* | *'with BFD'*)
  5728. symcode='[ABCDGIRSTW]' ;;
  5729. esac
  5730. # Try without a prefix undercore, then with it.
  5731. for ac_symprfx in "" "_"; do
  5732. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5733. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5734. # Write the raw and C identifiers.
  5735. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5736. # Check to see that the pipe works correctly.
  5737. pipe_works=no
  5738. rm -f conftest*
  5739. cat > conftest.$ac_ext <<EOF
  5740. #ifdef __cplusplus
  5741. extern "C" {
  5742. #endif
  5743. char nm_test_var;
  5744. void nm_test_func(){}
  5745. #ifdef __cplusplus
  5746. }
  5747. #endif
  5748. int main(){nm_test_var='a';nm_test_func();return(0);}
  5749. EOF
  5750. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5751. (eval $ac_compile) 2>&5
  5752. ac_status=$?
  5753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5754. (exit $ac_status); }; then
  5755. # Now try to grab the symbols.
  5756. nlist=conftest.nm
  5757. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5758. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5759. ac_status=$?
  5760. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5761. (exit $ac_status); } && test -s "$nlist"; then
  5762. # Try sorting and uniquifying the output.
  5763. if sort "$nlist" | uniq > "$nlist"T; then
  5764. mv -f "$nlist"T "$nlist"
  5765. else
  5766. rm -f "$nlist"T
  5767. fi
  5768. # Make sure that we snagged all the symbols we need.
  5769. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5770. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5771. cat <<EOF > conftest.$ac_ext
  5772. #ifdef __cplusplus
  5773. extern "C" {
  5774. #endif
  5775. EOF
  5776. # Now generate the symbol file.
  5777. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5778. cat <<EOF >> conftest.$ac_ext
  5779. #if defined (__STDC__) && __STDC__
  5780. # define lt_ptr_t void *
  5781. #else
  5782. # define lt_ptr_t char *
  5783. # define const
  5784. #endif
  5785. /* The mapping between symbol names and symbols. */
  5786. const struct {
  5787. const char *name;
  5788. lt_ptr_t address;
  5789. }
  5790. lt_preloaded_symbols[] =
  5791. {
  5792. EOF
  5793. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5794. cat <<\EOF >> conftest.$ac_ext
  5795. {0, (lt_ptr_t) 0}
  5796. };
  5797. #ifdef __cplusplus
  5798. }
  5799. #endif
  5800. EOF
  5801. # Now try linking the two files.
  5802. mv conftest.$ac_objext conftstm.$ac_objext
  5803. lt_save_LIBS="$LIBS"
  5804. lt_save_CFLAGS="$CFLAGS"
  5805. LIBS="conftstm.$ac_objext"
  5806. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5807. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5808. (eval $ac_link) 2>&5
  5809. ac_status=$?
  5810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5811. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5812. pipe_works=yes
  5813. fi
  5814. LIBS="$lt_save_LIBS"
  5815. CFLAGS="$lt_save_CFLAGS"
  5816. else
  5817. echo "cannot find nm_test_func in $nlist" >&5
  5818. fi
  5819. else
  5820. echo "cannot find nm_test_var in $nlist" >&5
  5821. fi
  5822. else
  5823. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5824. fi
  5825. else
  5826. echo "$progname: failed program was:" >&5
  5827. cat conftest.$ac_ext >&5
  5828. fi
  5829. rm -f conftest* conftst*
  5830. # Do not use the global_symbol_pipe unless it works.
  5831. if test "$pipe_works" = yes; then
  5832. break
  5833. else
  5834. lt_cv_sys_global_symbol_pipe=
  5835. fi
  5836. done
  5837. fi
  5838. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5839. lt_cv_sys_global_symbol_to_cdecl=
  5840. fi
  5841. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5842. { echo "$as_me:$LINENO: result: failed" >&5
  5843. echo "${ECHO_T}failed" >&6; }
  5844. else
  5845. { echo "$as_me:$LINENO: result: ok" >&5
  5846. echo "${ECHO_T}ok" >&6; }
  5847. fi
  5848. { echo "$as_me:$LINENO: checking for objdir" >&5
  5849. echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  5850. if test "${lt_cv_objdir+set}" = set; then
  5851. echo $ECHO_N "(cached) $ECHO_C" >&6
  5852. else
  5853. rm -f .libs 2>/dev/null
  5854. mkdir .libs 2>/dev/null
  5855. if test -d .libs; then
  5856. lt_cv_objdir=.libs
  5857. else
  5858. # MS-DOS does not allow filenames that begin with a dot.
  5859. lt_cv_objdir=_libs
  5860. fi
  5861. rmdir .libs 2>/dev/null
  5862. fi
  5863. { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  5864. echo "${ECHO_T}$lt_cv_objdir" >&6; }
  5865. objdir=$lt_cv_objdir
  5866. case $host_os in
  5867. aix3*)
  5868. # AIX sometimes has problems with the GCC collect2 program. For some
  5869. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5870. # vanish in a puff of smoke.
  5871. if test "X${COLLECT_NAMES+set}" != Xset; then
  5872. COLLECT_NAMES=
  5873. export COLLECT_NAMES
  5874. fi
  5875. ;;
  5876. esac
  5877. # Sed substitution that helps us do robust quoting. It backslashifies
  5878. # metacharacters that are still active within double-quoted strings.
  5879. Xsed='sed -e 1s/^X//'
  5880. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  5881. # Same as above, but do not quote variable references.
  5882. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  5883. # Sed substitution to delay expansion of an escaped shell variable in a
  5884. # double_quote_subst'ed string.
  5885. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5886. # Sed substitution to avoid accidental globbing in evaled expressions
  5887. no_glob_subst='s/\*/\\\*/g'
  5888. # Constants:
  5889. rm="rm -f"
  5890. # Global variables:
  5891. default_ofile=libtool
  5892. can_build_shared=yes
  5893. # All known linkers require a `.a' archive for static linking (except M$VC,
  5894. # which needs '.lib').
  5895. libext=a
  5896. ltmain="$ac_aux_dir/ltmain.sh"
  5897. ofile="$default_ofile"
  5898. with_gnu_ld="$lt_cv_prog_gnu_ld"
  5899. if test -n "$ac_tool_prefix"; then
  5900. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5901. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5902. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5903. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5904. if test "${ac_cv_prog_AR+set}" = set; then
  5905. echo $ECHO_N "(cached) $ECHO_C" >&6
  5906. else
  5907. if test -n "$AR"; then
  5908. ac_cv_prog_AR="$AR" # Let the user override the test.
  5909. else
  5910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5911. for as_dir in $PATH
  5912. do
  5913. IFS=$as_save_IFS
  5914. test -z "$as_dir" && as_dir=.
  5915. for ac_exec_ext in '' $ac_executable_extensions; do
  5916. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5917. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5918. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5919. break 2
  5920. fi
  5921. done
  5922. done
  5923. IFS=$as_save_IFS
  5924. fi
  5925. fi
  5926. AR=$ac_cv_prog_AR
  5927. if test -n "$AR"; then
  5928. { echo "$as_me:$LINENO: result: $AR" >&5
  5929. echo "${ECHO_T}$AR" >&6; }
  5930. else
  5931. { echo "$as_me:$LINENO: result: no" >&5
  5932. echo "${ECHO_T}no" >&6; }
  5933. fi
  5934. fi
  5935. if test -z "$ac_cv_prog_AR"; then
  5936. ac_ct_AR=$AR
  5937. # Extract the first word of "ar", so it can be a program name with args.
  5938. set dummy ar; ac_word=$2
  5939. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5940. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5941. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  5942. echo $ECHO_N "(cached) $ECHO_C" >&6
  5943. else
  5944. if test -n "$ac_ct_AR"; then
  5945. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5946. else
  5947. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5948. for as_dir in $PATH
  5949. do
  5950. IFS=$as_save_IFS
  5951. test -z "$as_dir" && as_dir=.
  5952. for ac_exec_ext in '' $ac_executable_extensions; do
  5953. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5954. ac_cv_prog_ac_ct_AR="ar"
  5955. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5956. break 2
  5957. fi
  5958. done
  5959. done
  5960. IFS=$as_save_IFS
  5961. fi
  5962. fi
  5963. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5964. if test -n "$ac_ct_AR"; then
  5965. { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  5966. echo "${ECHO_T}$ac_ct_AR" >&6; }
  5967. else
  5968. { echo "$as_me:$LINENO: result: no" >&5
  5969. echo "${ECHO_T}no" >&6; }
  5970. fi
  5971. if test "x$ac_ct_AR" = x; then
  5972. AR="false"
  5973. else
  5974. case $cross_compiling:$ac_tool_warned in
  5975. yes:)
  5976. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5977. whose name does not start with the host triplet. If you think this
  5978. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5979. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5980. whose name does not start with the host triplet. If you think this
  5981. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5982. ac_tool_warned=yes ;;
  5983. esac
  5984. AR=$ac_ct_AR
  5985. fi
  5986. else
  5987. AR="$ac_cv_prog_AR"
  5988. fi
  5989. if test -n "$ac_tool_prefix"; then
  5990. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5991. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5992. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5993. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5994. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5995. echo $ECHO_N "(cached) $ECHO_C" >&6
  5996. else
  5997. if test -n "$RANLIB"; then
  5998. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5999. else
  6000. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6001. for as_dir in $PATH
  6002. do
  6003. IFS=$as_save_IFS
  6004. test -z "$as_dir" && as_dir=.
  6005. for ac_exec_ext in '' $ac_executable_extensions; do
  6006. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6007. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6008. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6009. break 2
  6010. fi
  6011. done
  6012. done
  6013. IFS=$as_save_IFS
  6014. fi
  6015. fi
  6016. RANLIB=$ac_cv_prog_RANLIB
  6017. if test -n "$RANLIB"; then
  6018. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  6019. echo "${ECHO_T}$RANLIB" >&6; }
  6020. else
  6021. { echo "$as_me:$LINENO: result: no" >&5
  6022. echo "${ECHO_T}no" >&6; }
  6023. fi
  6024. fi
  6025. if test -z "$ac_cv_prog_RANLIB"; then
  6026. ac_ct_RANLIB=$RANLIB
  6027. # Extract the first word of "ranlib", so it can be a program name with args.
  6028. set dummy ranlib; ac_word=$2
  6029. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6030. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6031. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  6032. echo $ECHO_N "(cached) $ECHO_C" >&6
  6033. else
  6034. if test -n "$ac_ct_RANLIB"; then
  6035. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6036. else
  6037. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6038. for as_dir in $PATH
  6039. do
  6040. IFS=$as_save_IFS
  6041. test -z "$as_dir" && as_dir=.
  6042. for ac_exec_ext in '' $ac_executable_extensions; do
  6043. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6044. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6045. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6046. break 2
  6047. fi
  6048. done
  6049. done
  6050. IFS=$as_save_IFS
  6051. fi
  6052. fi
  6053. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6054. if test -n "$ac_ct_RANLIB"; then
  6055. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  6056. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  6057. else
  6058. { echo "$as_me:$LINENO: result: no" >&5
  6059. echo "${ECHO_T}no" >&6; }
  6060. fi
  6061. if test "x$ac_ct_RANLIB" = x; then
  6062. RANLIB=":"
  6063. else
  6064. case $cross_compiling:$ac_tool_warned in
  6065. yes:)
  6066. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6067. whose name does not start with the host triplet. If you think this
  6068. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6069. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6070. whose name does not start with the host triplet. If you think this
  6071. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6072. ac_tool_warned=yes ;;
  6073. esac
  6074. RANLIB=$ac_ct_RANLIB
  6075. fi
  6076. else
  6077. RANLIB="$ac_cv_prog_RANLIB"
  6078. fi
  6079. if test -n "$ac_tool_prefix"; then
  6080. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6081. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6082. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6083. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6084. if test "${ac_cv_prog_STRIP+set}" = set; then
  6085. echo $ECHO_N "(cached) $ECHO_C" >&6
  6086. else
  6087. if test -n "$STRIP"; then
  6088. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6089. else
  6090. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6091. for as_dir in $PATH
  6092. do
  6093. IFS=$as_save_IFS
  6094. test -z "$as_dir" && as_dir=.
  6095. for ac_exec_ext in '' $ac_executable_extensions; do
  6096. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6097. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6098. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6099. break 2
  6100. fi
  6101. done
  6102. done
  6103. IFS=$as_save_IFS
  6104. fi
  6105. fi
  6106. STRIP=$ac_cv_prog_STRIP
  6107. if test -n "$STRIP"; then
  6108. { echo "$as_me:$LINENO: result: $STRIP" >&5
  6109. echo "${ECHO_T}$STRIP" >&6; }
  6110. else
  6111. { echo "$as_me:$LINENO: result: no" >&5
  6112. echo "${ECHO_T}no" >&6; }
  6113. fi
  6114. fi
  6115. if test -z "$ac_cv_prog_STRIP"; then
  6116. ac_ct_STRIP=$STRIP
  6117. # Extract the first word of "strip", so it can be a program name with args.
  6118. set dummy strip; ac_word=$2
  6119. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6120. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6121. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  6122. echo $ECHO_N "(cached) $ECHO_C" >&6
  6123. else
  6124. if test -n "$ac_ct_STRIP"; then
  6125. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6126. else
  6127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6128. for as_dir in $PATH
  6129. do
  6130. IFS=$as_save_IFS
  6131. test -z "$as_dir" && as_dir=.
  6132. for ac_exec_ext in '' $ac_executable_extensions; do
  6133. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6134. ac_cv_prog_ac_ct_STRIP="strip"
  6135. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6136. break 2
  6137. fi
  6138. done
  6139. done
  6140. IFS=$as_save_IFS
  6141. fi
  6142. fi
  6143. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6144. if test -n "$ac_ct_STRIP"; then
  6145. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  6146. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  6147. else
  6148. { echo "$as_me:$LINENO: result: no" >&5
  6149. echo "${ECHO_T}no" >&6; }
  6150. fi
  6151. if test "x$ac_ct_STRIP" = x; then
  6152. STRIP=":"
  6153. else
  6154. case $cross_compiling:$ac_tool_warned in
  6155. yes:)
  6156. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6157. whose name does not start with the host triplet. If you think this
  6158. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6159. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6160. whose name does not start with the host triplet. If you think this
  6161. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6162. ac_tool_warned=yes ;;
  6163. esac
  6164. STRIP=$ac_ct_STRIP
  6165. fi
  6166. else
  6167. STRIP="$ac_cv_prog_STRIP"
  6168. fi
  6169. old_CC="$CC"
  6170. old_CFLAGS="$CFLAGS"
  6171. # Set sane defaults for various variables
  6172. test -z "$AR" && AR=ar
  6173. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6174. test -z "$AS" && AS=as
  6175. test -z "$CC" && CC=cc
  6176. test -z "$LTCC" && LTCC=$CC
  6177. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6178. test -z "$LD" && LD=ld
  6179. test -z "$LN_S" && LN_S="ln -s"
  6180. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6181. test -z "$NM" && NM=nm
  6182. test -z "$SED" && SED=sed
  6183. test -z "$OBJDUMP" && OBJDUMP=objdump
  6184. test -z "$RANLIB" && RANLIB=:
  6185. test -z "$STRIP" && STRIP=:
  6186. test -z "$ac_objext" && ac_objext=o
  6187. # Determine commands to create old-style static archives.
  6188. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  6189. old_postinstall_cmds='chmod 644 $oldlib'
  6190. old_postuninstall_cmds=
  6191. if test -n "$RANLIB"; then
  6192. case $host_os in
  6193. openbsd*)
  6194. old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  6195. ;;
  6196. *)
  6197. old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  6198. ;;
  6199. esac
  6200. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6201. fi
  6202. for cc_temp in $compiler""; do
  6203. case $cc_temp in
  6204. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6205. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6206. \-*) ;;
  6207. *) break;;
  6208. esac
  6209. done
  6210. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6211. # Only perform the check for file, if the check method requires it
  6212. case $deplibs_check_method in
  6213. file_magic*)
  6214. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6215. { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6216. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  6217. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6218. echo $ECHO_N "(cached) $ECHO_C" >&6
  6219. else
  6220. case $MAGIC_CMD in
  6221. [\\/*] | ?:[\\/]*)
  6222. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6223. ;;
  6224. *)
  6225. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6226. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6227. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6228. for ac_dir in $ac_dummy; do
  6229. IFS="$lt_save_ifs"
  6230. test -z "$ac_dir" && ac_dir=.
  6231. if test -f $ac_dir/${ac_tool_prefix}file; then
  6232. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6233. if test -n "$file_magic_test_file"; then
  6234. case $deplibs_check_method in
  6235. "file_magic "*)
  6236. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  6237. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6238. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6239. $EGREP "$file_magic_regex" > /dev/null; then
  6240. :
  6241. else
  6242. cat <<EOF 1>&2
  6243. *** Warning: the command libtool uses to detect shared libraries,
  6244. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6245. *** The result is that libtool may fail to recognize shared libraries
  6246. *** as such. This will affect the creation of libtool libraries that
  6247. *** depend on shared libraries, but programs linked with such libtool
  6248. *** libraries will work regardless of this problem. Nevertheless, you
  6249. *** may want to report the problem to your system manager and/or to
  6250. *** bug-libtool@gnu.org
  6251. EOF
  6252. fi ;;
  6253. esac
  6254. fi
  6255. break
  6256. fi
  6257. done
  6258. IFS="$lt_save_ifs"
  6259. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6260. ;;
  6261. esac
  6262. fi
  6263. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6264. if test -n "$MAGIC_CMD"; then
  6265. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6266. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6267. else
  6268. { echo "$as_me:$LINENO: result: no" >&5
  6269. echo "${ECHO_T}no" >&6; }
  6270. fi
  6271. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6272. if test -n "$ac_tool_prefix"; then
  6273. { echo "$as_me:$LINENO: checking for file" >&5
  6274. echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  6275. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6276. echo $ECHO_N "(cached) $ECHO_C" >&6
  6277. else
  6278. case $MAGIC_CMD in
  6279. [\\/*] | ?:[\\/]*)
  6280. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6281. ;;
  6282. *)
  6283. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6284. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6285. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6286. for ac_dir in $ac_dummy; do
  6287. IFS="$lt_save_ifs"
  6288. test -z "$ac_dir" && ac_dir=.
  6289. if test -f $ac_dir/file; then
  6290. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6291. if test -n "$file_magic_test_file"; then
  6292. case $deplibs_check_method in
  6293. "file_magic "*)
  6294. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  6295. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6296. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6297. $EGREP "$file_magic_regex" > /dev/null; then
  6298. :
  6299. else
  6300. cat <<EOF 1>&2
  6301. *** Warning: the command libtool uses to detect shared libraries,
  6302. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6303. *** The result is that libtool may fail to recognize shared libraries
  6304. *** as such. This will affect the creation of libtool libraries that
  6305. *** depend on shared libraries, but programs linked with such libtool
  6306. *** libraries will work regardless of this problem. Nevertheless, you
  6307. *** may want to report the problem to your system manager and/or to
  6308. *** bug-libtool@gnu.org
  6309. EOF
  6310. fi ;;
  6311. esac
  6312. fi
  6313. break
  6314. fi
  6315. done
  6316. IFS="$lt_save_ifs"
  6317. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6318. ;;
  6319. esac
  6320. fi
  6321. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6322. if test -n "$MAGIC_CMD"; then
  6323. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6324. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6325. else
  6326. { echo "$as_me:$LINENO: result: no" >&5
  6327. echo "${ECHO_T}no" >&6; }
  6328. fi
  6329. else
  6330. MAGIC_CMD=:
  6331. fi
  6332. fi
  6333. fi
  6334. ;;
  6335. esac
  6336. enable_dlopen=no
  6337. enable_win32_dll=no
  6338. # Check whether --enable-libtool-lock was given.
  6339. if test "${enable_libtool_lock+set}" = set; then
  6340. enableval=$enable_libtool_lock;
  6341. fi
  6342. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6343. # Check whether --with-pic was given.
  6344. if test "${with_pic+set}" = set; then
  6345. withval=$with_pic; pic_mode="$withval"
  6346. else
  6347. pic_mode=default
  6348. fi
  6349. test -z "$pic_mode" && pic_mode=default
  6350. # Use C for the default configuration in the libtool script
  6351. tagname=
  6352. lt_save_CC="$CC"
  6353. ac_ext=c
  6354. ac_cpp='$CPP $CPPFLAGS'
  6355. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6356. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6357. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6358. # Source file extension for C test sources.
  6359. ac_ext=c
  6360. # Object file extension for compiled C test sources.
  6361. objext=o
  6362. objext=$objext
  6363. # Code to be used in simple compile tests
  6364. lt_simple_compile_test_code="int some_variable = 0;\n"
  6365. # Code to be used in simple link tests
  6366. lt_simple_link_test_code='int main(){return(0);}\n'
  6367. # If no C compiler was specified, use CC.
  6368. LTCC=${LTCC-"$CC"}
  6369. # Allow CC to be a program name with arguments.
  6370. compiler=$CC
  6371. # save warnings/boilerplate of simple test code
  6372. ac_outfile=conftest.$ac_objext
  6373. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  6374. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  6375. _lt_compiler_boilerplate=`cat conftest.err`
  6376. $rm conftest*
  6377. ac_outfile=conftest.$ac_objext
  6378. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  6379. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  6380. _lt_linker_boilerplate=`cat conftest.err`
  6381. $rm conftest*
  6382. #
  6383. # Check for any special shared library compilation flags.
  6384. #
  6385. lt_prog_cc_shlib=
  6386. if test "$GCC" = no; then
  6387. case $host_os in
  6388. sco3.2v5*)
  6389. lt_prog_cc_shlib='-belf'
  6390. ;;
  6391. esac
  6392. fi
  6393. if test -n "$lt_prog_cc_shlib"; then
  6394. { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
  6395. echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
  6396. if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
  6397. else
  6398. { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  6399. echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  6400. lt_cv_prog_cc_can_build_shared=no
  6401. fi
  6402. fi
  6403. #
  6404. # Check to make sure the static flag actually works.
  6405. #
  6406. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
  6407. echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
  6408. if test "${lt_prog_compiler_static_works+set}" = set; then
  6409. echo $ECHO_N "(cached) $ECHO_C" >&6
  6410. else
  6411. lt_prog_compiler_static_works=no
  6412. save_LDFLAGS="$LDFLAGS"
  6413. LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
  6414. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  6415. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6416. # The compiler can only warn and ignore the option if not recognized
  6417. # So say no if there are warnings
  6418. if test -s conftest.err; then
  6419. # Append any errors to the config.log.
  6420. cat conftest.err 1>&5
  6421. $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
  6422. $SED '/^$/d' conftest.err >conftest.er2
  6423. if diff conftest.exp conftest.er2 >/dev/null; then
  6424. lt_prog_compiler_static_works=yes
  6425. fi
  6426. else
  6427. lt_prog_compiler_static_works=yes
  6428. fi
  6429. fi
  6430. $rm conftest*
  6431. LDFLAGS="$save_LDFLAGS"
  6432. fi
  6433. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  6434. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
  6435. if test x"$lt_prog_compiler_static_works" = xyes; then
  6436. :
  6437. else
  6438. lt_prog_compiler_static=
  6439. fi
  6440. lt_prog_compiler_no_builtin_flag=
  6441. if test "$GCC" = yes; then
  6442. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6443. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6444. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  6445. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  6446. echo $ECHO_N "(cached) $ECHO_C" >&6
  6447. else
  6448. lt_cv_prog_compiler_rtti_exceptions=no
  6449. ac_outfile=conftest.$ac_objext
  6450. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6451. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6452. # Insert the option either (1) after the last *FLAGS variable, or
  6453. # (2) before a word containing "conftest.", or (3) at the end.
  6454. # Note that $ac_compile itself does not contain backslashes and begins
  6455. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6456. # The option is referenced via a variable to avoid confusing sed.
  6457. lt_compile=`echo "$ac_compile" | $SED \
  6458. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  6459. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6460. -e 's:$: $lt_compiler_flag:'`
  6461. (eval echo "\"\$as_me:7228: $lt_compile\"" >&5)
  6462. (eval "$lt_compile" 2>conftest.err)
  6463. ac_status=$?
  6464. cat conftest.err >&5
  6465. echo "$as_me:7232: \$? = $ac_status" >&5
  6466. if (exit $ac_status) && test -s "$ac_outfile"; then
  6467. # The compiler can only warn and ignore the option if not recognized
  6468. # So say no if there are warnings other than the usual output.
  6469. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  6470. $SED '/^$/d' conftest.err >conftest.er2
  6471. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  6472. lt_cv_prog_compiler_rtti_exceptions=yes
  6473. fi
  6474. fi
  6475. $rm conftest*
  6476. fi
  6477. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6478. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6479. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6480. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6481. else
  6482. :
  6483. fi
  6484. fi
  6485. lt_prog_compiler_wl=
  6486. lt_prog_compiler_pic=
  6487. lt_prog_compiler_static=
  6488. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  6489. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  6490. if test "$GCC" = yes; then
  6491. lt_prog_compiler_wl='-Wl,'
  6492. lt_prog_compiler_static='-static'
  6493. case $host_os in
  6494. aix*)
  6495. # All AIX code is PIC.
  6496. if test "$host_cpu" = ia64; then
  6497. # AIX 5 now supports IA64 processor
  6498. lt_prog_compiler_static='-Bstatic'
  6499. fi
  6500. ;;
  6501. amigaos*)
  6502. # FIXME: we need at least 68020 code to build shared libraries, but
  6503. # adding the `-m68020' flag to GCC prevents building anything better,
  6504. # like `-m68040'.
  6505. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6506. ;;
  6507. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6508. # PIC is the default for these OSes.
  6509. ;;
  6510. mingw* | pw32* | os2*)
  6511. # This hack is so that the source file can tell whether it is being
  6512. # built for inclusion in a dll (and should export symbols for example).
  6513. lt_prog_compiler_pic='-DDLL_EXPORT'
  6514. ;;
  6515. darwin* | rhapsody*)
  6516. # PIC is the default on this platform
  6517. # Common symbols not allowed in MH_DYLIB files
  6518. lt_prog_compiler_pic='-fno-common'
  6519. ;;
  6520. msdosdjgpp*)
  6521. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6522. # on systems that don't support them.
  6523. lt_prog_compiler_can_build_shared=no
  6524. enable_shared=no
  6525. ;;
  6526. sysv4*MP*)
  6527. if test -d /usr/nec; then
  6528. lt_prog_compiler_pic=-Kconform_pic
  6529. fi
  6530. ;;
  6531. hpux*)
  6532. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6533. # not for PA HP-UX.
  6534. case "$host_cpu" in
  6535. hppa*64*|ia64*)
  6536. # +Z the default
  6537. ;;
  6538. *)
  6539. lt_prog_compiler_pic='-fPIC'
  6540. ;;
  6541. esac
  6542. ;;
  6543. *)
  6544. lt_prog_compiler_pic='-fPIC'
  6545. ;;
  6546. esac
  6547. else
  6548. # PORTME Check for flag to pass linker flags through the system compiler.
  6549. case $host_os in
  6550. aix*)
  6551. lt_prog_compiler_wl='-Wl,'
  6552. if test "$host_cpu" = ia64; then
  6553. # AIX 5 now supports IA64 processor
  6554. lt_prog_compiler_static='-Bstatic'
  6555. else
  6556. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6557. fi
  6558. ;;
  6559. darwin*)
  6560. # PIC is the default on this platform
  6561. # Common symbols not allowed in MH_DYLIB files
  6562. case $cc_basename in
  6563. xlc*)
  6564. lt_prog_compiler_pic='-qnocommon'
  6565. lt_prog_compiler_wl='-Wl,'
  6566. ;;
  6567. esac
  6568. ;;
  6569. mingw* | pw32* | os2*)
  6570. # This hack is so that the source file can tell whether it is being
  6571. # built for inclusion in a dll (and should export symbols for example).
  6572. lt_prog_compiler_pic='-DDLL_EXPORT'
  6573. ;;
  6574. hpux9* | hpux10* | hpux11*)
  6575. lt_prog_compiler_wl='-Wl,'
  6576. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6577. # not for PA HP-UX.
  6578. case "$host_cpu" in
  6579. hppa*64*|ia64*)
  6580. # +Z the default
  6581. ;;
  6582. *)
  6583. lt_prog_compiler_pic='+Z'
  6584. ;;
  6585. esac
  6586. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6587. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6588. ;;
  6589. irix5* | irix6* | nonstopux*)
  6590. lt_prog_compiler_wl='-Wl,'
  6591. # PIC (with -KPIC) is the default.
  6592. lt_prog_compiler_static='-non_shared'
  6593. ;;
  6594. newsos6)
  6595. lt_prog_compiler_pic='-KPIC'
  6596. lt_prog_compiler_static='-Bstatic'
  6597. ;;
  6598. linux*)
  6599. case $cc_basename in
  6600. icc* | ecc*)
  6601. lt_prog_compiler_wl='-Wl,'
  6602. lt_prog_compiler_pic='-KPIC'
  6603. lt_prog_compiler_static='-static'
  6604. ;;
  6605. pgcc* | pgf77* | pgf90*)
  6606. # Portland Group compilers (*not* the Pentium gcc compiler,
  6607. # which looks to be a dead project)
  6608. lt_prog_compiler_wl='-Wl,'
  6609. lt_prog_compiler_pic='-fpic'
  6610. lt_prog_compiler_static='-static'
  6611. ;;
  6612. ccc*)
  6613. lt_prog_compiler_wl='-Wl,'
  6614. # All Alpha code is PIC.
  6615. lt_prog_compiler_static='-non_shared'
  6616. ;;
  6617. esac
  6618. ;;
  6619. osf3* | osf4* | osf5*)
  6620. lt_prog_compiler_wl='-Wl,'
  6621. # All OSF/1 code is PIC.
  6622. lt_prog_compiler_static='-non_shared'
  6623. ;;
  6624. sco3.2v5*)
  6625. lt_prog_compiler_pic='-Kpic'
  6626. lt_prog_compiler_static='-dn'
  6627. ;;
  6628. solaris*)
  6629. lt_prog_compiler_pic='-KPIC'
  6630. lt_prog_compiler_static='-Bstatic'
  6631. case $cc_basename in
  6632. f77* | f90* | f95*)
  6633. lt_prog_compiler_wl='-Qoption ld ';;
  6634. *)
  6635. lt_prog_compiler_wl='-Wl,';;
  6636. esac
  6637. ;;
  6638. sunos4*)
  6639. lt_prog_compiler_wl='-Qoption ld '
  6640. lt_prog_compiler_pic='-PIC'
  6641. lt_prog_compiler_static='-Bstatic'
  6642. ;;
  6643. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  6644. lt_prog_compiler_wl='-Wl,'
  6645. lt_prog_compiler_pic='-KPIC'
  6646. lt_prog_compiler_static='-Bstatic'
  6647. ;;
  6648. sysv4*MP*)
  6649. if test -d /usr/nec ;then
  6650. lt_prog_compiler_pic='-Kconform_pic'
  6651. lt_prog_compiler_static='-Bstatic'
  6652. fi
  6653. ;;
  6654. unicos*)
  6655. lt_prog_compiler_wl='-Wl,'
  6656. lt_prog_compiler_can_build_shared=no
  6657. ;;
  6658. uts4*)
  6659. lt_prog_compiler_pic='-pic'
  6660. lt_prog_compiler_static='-Bstatic'
  6661. ;;
  6662. *)
  6663. lt_prog_compiler_can_build_shared=no
  6664. ;;
  6665. esac
  6666. fi
  6667. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6668. echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  6669. #
  6670. # Check to make sure the PIC flag actually works.
  6671. #
  6672. if test -n "$lt_prog_compiler_pic"; then
  6673. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6674. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  6675. if test "${lt_prog_compiler_pic_works+set}" = set; then
  6676. echo $ECHO_N "(cached) $ECHO_C" >&6
  6677. else
  6678. lt_prog_compiler_pic_works=no
  6679. ac_outfile=conftest.$ac_objext
  6680. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6681. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6682. # Insert the option either (1) after the last *FLAGS variable, or
  6683. # (2) before a word containing "conftest.", or (3) at the end.
  6684. # Note that $ac_compile itself does not contain backslashes and begins
  6685. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6686. # The option is referenced via a variable to avoid confusing sed.
  6687. lt_compile=`echo "$ac_compile" | $SED \
  6688. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  6689. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6690. -e 's:$: $lt_compiler_flag:'`
  6691. (eval echo "\"\$as_me:7490: $lt_compile\"" >&5)
  6692. (eval "$lt_compile" 2>conftest.err)
  6693. ac_status=$?
  6694. cat conftest.err >&5
  6695. echo "$as_me:7494: \$? = $ac_status" >&5
  6696. if (exit $ac_status) && test -s "$ac_outfile"; then
  6697. # The compiler can only warn and ignore the option if not recognized
  6698. # So say no if there are warnings other than the usual output.
  6699. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  6700. $SED '/^$/d' conftest.err >conftest.er2
  6701. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  6702. lt_prog_compiler_pic_works=yes
  6703. fi
  6704. fi
  6705. $rm conftest*
  6706. fi
  6707. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  6708. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
  6709. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6710. case $lt_prog_compiler_pic in
  6711. "" | " "*) ;;
  6712. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6713. esac
  6714. else
  6715. lt_prog_compiler_pic=
  6716. lt_prog_compiler_can_build_shared=no
  6717. fi
  6718. fi
  6719. case "$host_os" in
  6720. # For platforms which do not support PIC, -DPIC is meaningless:
  6721. *djgpp*)
  6722. lt_prog_compiler_pic=
  6723. ;;
  6724. *)
  6725. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6726. ;;
  6727. esac
  6728. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6729. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  6730. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6731. echo $ECHO_N "(cached) $ECHO_C" >&6
  6732. else
  6733. lt_cv_prog_compiler_c_o=no
  6734. $rm -r conftest 2>/dev/null
  6735. mkdir conftest
  6736. cd conftest
  6737. mkdir out
  6738. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6739. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6740. # Insert the option either (1) after the last *FLAGS variable, or
  6741. # (2) before a word containing "conftest.", or (3) at the end.
  6742. # Note that $ac_compile itself does not contain backslashes and begins
  6743. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6744. lt_compile=`echo "$ac_compile" | $SED \
  6745. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  6746. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6747. -e 's:$: $lt_compiler_flag:'`
  6748. (eval echo "\"\$as_me:7552: $lt_compile\"" >&5)
  6749. (eval "$lt_compile" 2>out/conftest.err)
  6750. ac_status=$?
  6751. cat out/conftest.err >&5
  6752. echo "$as_me:7556: \$? = $ac_status" >&5
  6753. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6754. then
  6755. # The compiler can only warn and ignore the option if not recognized
  6756. # So say no if there are warnings
  6757. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  6758. $SED '/^$/d' out/conftest.err >out/conftest.er2
  6759. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6760. lt_cv_prog_compiler_c_o=yes
  6761. fi
  6762. fi
  6763. chmod u+w .
  6764. $rm conftest*
  6765. # SGI C++ compiler will create directory out/ii_files/ for
  6766. # template instantiation
  6767. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  6768. $rm out/* && rmdir out
  6769. cd ..
  6770. rmdir conftest
  6771. $rm conftest*
  6772. fi
  6773. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6774. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  6775. hard_links="nottested"
  6776. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6777. # do not overwrite the value of need_locks provided by the user
  6778. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6779. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  6780. hard_links=yes
  6781. $rm conftest*
  6782. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6783. touch conftest.a
  6784. ln conftest.a conftest.b 2>&5 || hard_links=no
  6785. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6786. { echo "$as_me:$LINENO: result: $hard_links" >&5
  6787. echo "${ECHO_T}$hard_links" >&6; }
  6788. if test "$hard_links" = no; then
  6789. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6790. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6791. need_locks=warn
  6792. fi
  6793. else
  6794. need_locks=no
  6795. fi
  6796. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6797. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  6798. runpath_var=
  6799. allow_undefined_flag=
  6800. enable_shared_with_static_runtimes=no
  6801. archive_cmds=
  6802. archive_expsym_cmds=
  6803. old_archive_From_new_cmds=
  6804. old_archive_from_expsyms_cmds=
  6805. export_dynamic_flag_spec=
  6806. whole_archive_flag_spec=
  6807. thread_safe_flag_spec=
  6808. hardcode_libdir_flag_spec=
  6809. hardcode_libdir_flag_spec_ld=
  6810. hardcode_libdir_separator=
  6811. hardcode_direct=no
  6812. hardcode_minus_L=no
  6813. hardcode_shlibpath_var=unsupported
  6814. link_all_deplibs=unknown
  6815. hardcode_automatic=no
  6816. module_cmds=
  6817. module_expsym_cmds=
  6818. always_export_symbols=no
  6819. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6820. # include_expsyms should be a list of space-separated symbols to be *always*
  6821. # included in the symbol list
  6822. include_expsyms=
  6823. # exclude_expsyms can be an extended regexp of symbols to exclude
  6824. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6825. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6826. # as well as any symbol that contains `d'.
  6827. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  6828. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6829. # platforms (ab)use it in PIC code, but their linkers get confused if
  6830. # the symbol is explicitly referenced. Since portable code cannot
  6831. # rely on this symbol name, it's probably fine to never include it in
  6832. # preloaded symbol tables.
  6833. extract_expsyms_cmds=
  6834. # Just being paranoid about ensuring that cc_basename is set.
  6835. for cc_temp in $compiler""; do
  6836. case $cc_temp in
  6837. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6838. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6839. \-*) ;;
  6840. *) break;;
  6841. esac
  6842. done
  6843. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6844. case $host_os in
  6845. cygwin* | mingw* | pw32*)
  6846. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6847. # When not using gcc, we currently assume that we are using
  6848. # Microsoft Visual C++.
  6849. if test "$GCC" != yes; then
  6850. with_gnu_ld=no
  6851. fi
  6852. ;;
  6853. openbsd*)
  6854. with_gnu_ld=no
  6855. ;;
  6856. esac
  6857. ld_shlibs=yes
  6858. if test "$with_gnu_ld" = yes; then
  6859. # If archive_cmds runs LD, not CC, wlarc should be empty
  6860. wlarc='${wl}'
  6861. # Set some defaults for GNU ld with shared library support. These
  6862. # are reset later if shared libraries are not supported. Putting them
  6863. # here allows them to be overridden if necessary.
  6864. runpath_var=LD_RUN_PATH
  6865. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  6866. export_dynamic_flag_spec='${wl}--export-dynamic'
  6867. # ancient GNU ld didn't support --whole-archive et. al.
  6868. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  6869. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6870. else
  6871. whole_archive_flag_spec=
  6872. fi
  6873. supports_anon_versioning=no
  6874. case `$LD -v 2>/dev/null` in
  6875. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6876. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6877. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6878. *\ 2.11.*) ;; # other 2.11 versions
  6879. *) supports_anon_versioning=yes ;;
  6880. esac
  6881. # See if GNU ld supports shared libraries.
  6882. case $host_os in
  6883. aix3* | aix4* | aix5*)
  6884. # On AIX/PPC, the GNU linker is very broken
  6885. if test "$host_cpu" != ia64; then
  6886. ld_shlibs=no
  6887. cat <<EOF 1>&2
  6888. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6889. *** to be unable to reliably create shared libraries on AIX.
  6890. *** Therefore, libtool is disabling shared libraries support. If you
  6891. *** really care for shared libraries, you may want to modify your PATH
  6892. *** so that a non-GNU linker is found, and then restart.
  6893. EOF
  6894. fi
  6895. ;;
  6896. amigaos*)
  6897. 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)'
  6898. hardcode_libdir_flag_spec='-L$libdir'
  6899. hardcode_minus_L=yes
  6900. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  6901. # that the semantics of dynamic libraries on AmigaOS, at least up
  6902. # to version 4, is to share data among multiple programs linked
  6903. # with the same dynamic library. Since this doesn't match the
  6904. # behavior of shared libraries on other platforms, we can't use
  6905. # them.
  6906. ld_shlibs=no
  6907. ;;
  6908. beos*)
  6909. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6910. allow_undefined_flag=unsupported
  6911. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  6912. # support --undefined. This deserves some investigation. FIXME
  6913. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6914. else
  6915. ld_shlibs=no
  6916. fi
  6917. ;;
  6918. cygwin* | mingw* | pw32*)
  6919. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6920. # as there is no search path for DLLs.
  6921. hardcode_libdir_flag_spec='-L$libdir'
  6922. allow_undefined_flag=unsupported
  6923. always_export_symbols=no
  6924. enable_shared_with_static_runtimes=yes
  6925. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  6926. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  6927. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  6928. # If the export-symbols file already is a .def file (1st line
  6929. # is EXPORTS), use it as is; otherwise, prepend...
  6930. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6931. cp $export_symbols $output_objdir/$soname.def;
  6932. else
  6933. echo EXPORTS > $output_objdir/$soname.def;
  6934. cat $export_symbols >> $output_objdir/$soname.def;
  6935. fi~
  6936. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  6937. else
  6938. ld_shlibs=no
  6939. fi
  6940. ;;
  6941. linux*)
  6942. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6943. tmp_addflag=
  6944. case $cc_basename,$host_cpu in
  6945. pgcc*) # Portland Group C compiler
  6946. 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'
  6947. tmp_addflag=' $pic_flag'
  6948. ;;
  6949. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  6950. 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'
  6951. tmp_addflag=' $pic_flag -Mnomain' ;;
  6952. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  6953. tmp_addflag=' -i_dynamic' ;;
  6954. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  6955. tmp_addflag=' -i_dynamic -nofor_main' ;;
  6956. ifc* | ifort*) # Intel Fortran compiler
  6957. tmp_addflag=' -nofor_main' ;;
  6958. esac
  6959. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6960. if test $supports_anon_versioning = yes; then
  6961. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  6962. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6963. $echo "local: *; };" >> $output_objdir/$libname.ver~
  6964. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6965. fi
  6966. else
  6967. ld_shlibs=no
  6968. fi
  6969. ;;
  6970. netbsd*)
  6971. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6972. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6973. wlarc=
  6974. else
  6975. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6976. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6977. fi
  6978. ;;
  6979. solaris* | sysv5*)
  6980. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  6981. ld_shlibs=no
  6982. cat <<EOF 1>&2
  6983. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6984. *** create shared libraries on Solaris systems. Therefore, libtool
  6985. *** is disabling shared libraries support. We urge you to upgrade GNU
  6986. *** binutils to release 2.9.1 or newer. Another option is to modify
  6987. *** your PATH or compiler configuration so that the native linker is
  6988. *** used, and then restart.
  6989. EOF
  6990. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6991. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6992. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6993. else
  6994. ld_shlibs=no
  6995. fi
  6996. ;;
  6997. sunos4*)
  6998. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6999. wlarc=
  7000. hardcode_direct=yes
  7001. hardcode_shlibpath_var=no
  7002. ;;
  7003. *)
  7004. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7005. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7006. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7007. else
  7008. ld_shlibs=no
  7009. fi
  7010. ;;
  7011. esac
  7012. if test "$ld_shlibs" = no; then
  7013. runpath_var=
  7014. hardcode_libdir_flag_spec=
  7015. export_dynamic_flag_spec=
  7016. whole_archive_flag_spec=
  7017. fi
  7018. else
  7019. # PORTME fill in a description of your system's linker (not GNU ld)
  7020. case $host_os in
  7021. aix3*)
  7022. allow_undefined_flag=unsupported
  7023. always_export_symbols=yes
  7024. 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'
  7025. # Note: this linker hardcodes the directories in LIBPATH if there
  7026. # are no directories specified by -L.
  7027. hardcode_minus_L=yes
  7028. if test "$GCC" = yes && test -z "$link_static_flag"; then
  7029. # Neither direct hardcoding nor static linking is supported with a
  7030. # broken collect2.
  7031. hardcode_direct=unsupported
  7032. fi
  7033. ;;
  7034. aix4* | aix5*)
  7035. if test "$host_cpu" = ia64; then
  7036. # On IA64, the linker does run time linking by default, so we don't
  7037. # have to do anything special.
  7038. aix_use_runtimelinking=no
  7039. exp_sym_flag='-Bexport'
  7040. no_entry_flag=""
  7041. else
  7042. # If we're using GNU nm, then we don't want the "-C" option.
  7043. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7044. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  7045. 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'
  7046. else
  7047. 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'
  7048. fi
  7049. aix_use_runtimelinking=no
  7050. # Test if we are trying to use run time linking or normal
  7051. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7052. # need to do runtime linking.
  7053. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  7054. for ld_flag in $LDFLAGS; do
  7055. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7056. aix_use_runtimelinking=yes
  7057. break
  7058. fi
  7059. done
  7060. esac
  7061. exp_sym_flag='-bexport'
  7062. no_entry_flag='-bnoentry'
  7063. fi
  7064. # When large executables or shared objects are built, AIX ld can
  7065. # have problems creating the table of contents. If linking a library
  7066. # or program results in "error TOC overflow" add -mminimal-toc to
  7067. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7068. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7069. archive_cmds=''
  7070. hardcode_direct=yes
  7071. hardcode_libdir_separator=':'
  7072. link_all_deplibs=yes
  7073. if test "$GCC" = yes; then
  7074. case $host_os in aix4.[012]|aix4.[012].*)
  7075. # We only want to do this on AIX 4.2 and lower, the check
  7076. # below for broken collect2 doesn't work under 4.3+
  7077. collect2name=`${CC} -print-prog-name=collect2`
  7078. if test -f "$collect2name" && \
  7079. strings "$collect2name" | grep resolve_lib_name >/dev/null
  7080. then
  7081. # We have reworked collect2
  7082. hardcode_direct=yes
  7083. else
  7084. # We have old collect2
  7085. hardcode_direct=unsupported
  7086. # It fails to find uninstalled libraries when the uninstalled
  7087. # path is not listed in the libpath. Setting hardcode_minus_L
  7088. # to unsupported forces relinking
  7089. hardcode_minus_L=yes
  7090. hardcode_libdir_flag_spec='-L$libdir'
  7091. hardcode_libdir_separator=
  7092. fi
  7093. esac
  7094. shared_flag='-shared'
  7095. if test "$aix_use_runtimelinking" = yes; then
  7096. shared_flag="$shared_flag "'${wl}-G'
  7097. fi
  7098. else
  7099. # not using gcc
  7100. if test "$host_cpu" = ia64; then
  7101. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7102. # chokes on -Wl,-G. The following line is correct:
  7103. shared_flag='-G'
  7104. else
  7105. if test "$aix_use_runtimelinking" = yes; then
  7106. shared_flag='${wl}-G'
  7107. else
  7108. shared_flag='${wl}-bM:SRE'
  7109. fi
  7110. fi
  7111. fi
  7112. # It seems that -bexpall does not export symbols beginning with
  7113. # underscore (_), so it is better to generate a list of symbols to export.
  7114. always_export_symbols=yes
  7115. if test "$aix_use_runtimelinking" = yes; then
  7116. # Warning - without using the other runtime loading flags (-brtl),
  7117. # -berok will link without error, but may produce a broken library.
  7118. allow_undefined_flag='-berok'
  7119. # Determine the default libpath from the value encoded in an empty executable.
  7120. cat >conftest.$ac_ext <<_ACEOF
  7121. /* confdefs.h. */
  7122. _ACEOF
  7123. cat confdefs.h >>conftest.$ac_ext
  7124. cat >>conftest.$ac_ext <<_ACEOF
  7125. /* end confdefs.h. */
  7126. int
  7127. main ()
  7128. {
  7129. ;
  7130. return 0;
  7131. }
  7132. _ACEOF
  7133. rm -f conftest.$ac_objext conftest$ac_exeext
  7134. if { (ac_try="$ac_link"
  7135. case "(($ac_try" in
  7136. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7137. *) ac_try_echo=$ac_try;;
  7138. esac
  7139. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7140. (eval "$ac_link") 2>conftest.er1
  7141. ac_status=$?
  7142. grep -v '^ *+' conftest.er1 >conftest.err
  7143. rm -f conftest.er1
  7144. cat conftest.err >&5
  7145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7146. (exit $ac_status); } && {
  7147. test -z "$ac_c_werror_flag" ||
  7148. test ! -s conftest.err
  7149. } && test -s conftest$ac_exeext &&
  7150. $as_test_x conftest$ac_exeext; then
  7151. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7152. }'`
  7153. # Check for a 64-bit object if we didn't find anything.
  7154. 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; }
  7155. }'`; fi
  7156. else
  7157. echo "$as_me: failed program was:" >&5
  7158. sed 's/^/| /' conftest.$ac_ext >&5
  7159. fi
  7160. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7161. conftest$ac_exeext conftest.$ac_ext
  7162. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7163. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7164. 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"
  7165. else
  7166. if test "$host_cpu" = ia64; then
  7167. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7168. allow_undefined_flag="-z nodefs"
  7169. 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"
  7170. else
  7171. # Determine the default libpath from the value encoded in an empty executable.
  7172. cat >conftest.$ac_ext <<_ACEOF
  7173. /* confdefs.h. */
  7174. _ACEOF
  7175. cat confdefs.h >>conftest.$ac_ext
  7176. cat >>conftest.$ac_ext <<_ACEOF
  7177. /* end confdefs.h. */
  7178. int
  7179. main ()
  7180. {
  7181. ;
  7182. return 0;
  7183. }
  7184. _ACEOF
  7185. rm -f conftest.$ac_objext conftest$ac_exeext
  7186. if { (ac_try="$ac_link"
  7187. case "(($ac_try" in
  7188. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7189. *) ac_try_echo=$ac_try;;
  7190. esac
  7191. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7192. (eval "$ac_link") 2>conftest.er1
  7193. ac_status=$?
  7194. grep -v '^ *+' conftest.er1 >conftest.err
  7195. rm -f conftest.er1
  7196. cat conftest.err >&5
  7197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7198. (exit $ac_status); } && {
  7199. test -z "$ac_c_werror_flag" ||
  7200. test ! -s conftest.err
  7201. } && test -s conftest$ac_exeext &&
  7202. $as_test_x conftest$ac_exeext; then
  7203. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7204. }'`
  7205. # Check for a 64-bit object if we didn't find anything.
  7206. 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; }
  7207. }'`; fi
  7208. else
  7209. echo "$as_me: failed program was:" >&5
  7210. sed 's/^/| /' conftest.$ac_ext >&5
  7211. fi
  7212. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7213. conftest$ac_exeext conftest.$ac_ext
  7214. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7215. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7216. # Warning - without using the other run time loading flags,
  7217. # -berok will link without error, but may produce a broken library.
  7218. no_undefined_flag=' ${wl}-bernotok'
  7219. allow_undefined_flag=' ${wl}-berok'
  7220. # -bexpall does not export symbols beginning with underscore (_)
  7221. always_export_symbols=yes
  7222. # Exported symbols can be pulled into shared objects from archives
  7223. whole_archive_flag_spec=' '
  7224. archive_cmds_need_lc=yes
  7225. # This is similar to how AIX traditionally builds it's shared libraries.
  7226. 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'
  7227. fi
  7228. fi
  7229. ;;
  7230. amigaos*)
  7231. 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)'
  7232. hardcode_libdir_flag_spec='-L$libdir'
  7233. hardcode_minus_L=yes
  7234. # see comment about different semantics on the GNU ld section
  7235. ld_shlibs=no
  7236. ;;
  7237. bsdi[45]*)
  7238. export_dynamic_flag_spec=-rdynamic
  7239. ;;
  7240. cygwin* | mingw* | pw32*)
  7241. # When not using gcc, we currently assume that we are using
  7242. # Microsoft Visual C++.
  7243. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7244. # no search path for DLLs.
  7245. hardcode_libdir_flag_spec=' '
  7246. allow_undefined_flag=unsupported
  7247. # Tell ltmain to make .lib files, not .a files.
  7248. libext=lib
  7249. # Tell ltmain to make .dll files, not .so files.
  7250. shrext_cmds=".dll"
  7251. # FIXME: Setting linknames here is a bad hack.
  7252. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7253. # The linker will automatically build a .lib file if we build a DLL.
  7254. old_archive_From_new_cmds='true'
  7255. # FIXME: Should let the user specify the lib program.
  7256. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  7257. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7258. enable_shared_with_static_runtimes=yes
  7259. ;;
  7260. darwin* | rhapsody*)
  7261. case "$host_os" in
  7262. rhapsody* | darwin1.[012])
  7263. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  7264. ;;
  7265. *) # Darwin 1.3 on
  7266. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  7267. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7268. else
  7269. case ${MACOSX_DEPLOYMENT_TARGET} in
  7270. 10.[012])
  7271. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7272. ;;
  7273. 10.*)
  7274. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  7275. ;;
  7276. esac
  7277. fi
  7278. ;;
  7279. esac
  7280. archive_cmds_need_lc=no
  7281. hardcode_direct=no
  7282. hardcode_automatic=yes
  7283. hardcode_shlibpath_var=unsupported
  7284. whole_archive_flag_spec=''
  7285. link_all_deplibs=yes
  7286. if test "$GCC" = yes ; then
  7287. output_verbose_link_cmd='echo'
  7288. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  7289. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7290. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  7291. 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}'
  7292. 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}'
  7293. else
  7294. case $cc_basename in
  7295. xlc*)
  7296. output_verbose_link_cmd='echo'
  7297. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  7298. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7299. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  7300. 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}'
  7301. 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}'
  7302. ;;
  7303. *)
  7304. ld_shlibs=no
  7305. ;;
  7306. esac
  7307. fi
  7308. ;;
  7309. dgux*)
  7310. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7311. hardcode_libdir_flag_spec='-L$libdir'
  7312. hardcode_shlibpath_var=no
  7313. ;;
  7314. freebsd1*)
  7315. ld_shlibs=no
  7316. ;;
  7317. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7318. # support. Future versions do this automatically, but an explicit c++rt0.o
  7319. # does not break anything, and helps significantly (at the cost of a little
  7320. # extra space).
  7321. freebsd2.2*)
  7322. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7323. hardcode_libdir_flag_spec='-R$libdir'
  7324. hardcode_direct=yes
  7325. hardcode_shlibpath_var=no
  7326. ;;
  7327. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7328. freebsd2*)
  7329. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7330. hardcode_direct=yes
  7331. hardcode_minus_L=yes
  7332. hardcode_shlibpath_var=no
  7333. ;;
  7334. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7335. freebsd* | kfreebsd*-gnu | dragonfly*)
  7336. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7337. hardcode_libdir_flag_spec='-R$libdir'
  7338. hardcode_direct=yes
  7339. hardcode_shlibpath_var=no
  7340. ;;
  7341. hpux9*)
  7342. if test "$GCC" = yes; then
  7343. 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'
  7344. else
  7345. 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'
  7346. fi
  7347. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7348. hardcode_libdir_separator=:
  7349. hardcode_direct=yes
  7350. # hardcode_minus_L: Not really in the search PATH,
  7351. # but as the default location of the library.
  7352. hardcode_minus_L=yes
  7353. export_dynamic_flag_spec='${wl}-E'
  7354. ;;
  7355. hpux10* | hpux11*)
  7356. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7357. case "$host_cpu" in
  7358. hppa*64*|ia64*)
  7359. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7360. ;;
  7361. *)
  7362. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7363. ;;
  7364. esac
  7365. else
  7366. case "$host_cpu" in
  7367. hppa*64*|ia64*)
  7368. archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  7369. ;;
  7370. *)
  7371. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7372. ;;
  7373. esac
  7374. fi
  7375. if test "$with_gnu_ld" = no; then
  7376. case "$host_cpu" in
  7377. hppa*64*)
  7378. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7379. hardcode_libdir_flag_spec_ld='+b $libdir'
  7380. hardcode_libdir_separator=:
  7381. hardcode_direct=no
  7382. hardcode_shlibpath_var=no
  7383. ;;
  7384. ia64*)
  7385. hardcode_libdir_flag_spec='-L$libdir'
  7386. hardcode_direct=no
  7387. hardcode_shlibpath_var=no
  7388. # hardcode_minus_L: Not really in the search PATH,
  7389. # but as the default location of the library.
  7390. hardcode_minus_L=yes
  7391. ;;
  7392. *)
  7393. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7394. hardcode_libdir_separator=:
  7395. hardcode_direct=yes
  7396. export_dynamic_flag_spec='${wl}-E'
  7397. # hardcode_minus_L: Not really in the search PATH,
  7398. # but as the default location of the library.
  7399. hardcode_minus_L=yes
  7400. ;;
  7401. esac
  7402. fi
  7403. ;;
  7404. irix5* | irix6* | nonstopux*)
  7405. if test "$GCC" = yes; then
  7406. 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'
  7407. else
  7408. 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'
  7409. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7410. fi
  7411. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7412. hardcode_libdir_separator=:
  7413. link_all_deplibs=yes
  7414. ;;
  7415. netbsd*)
  7416. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7417. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7418. else
  7419. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7420. fi
  7421. hardcode_libdir_flag_spec='-R$libdir'
  7422. hardcode_direct=yes
  7423. hardcode_shlibpath_var=no
  7424. ;;
  7425. newsos6)
  7426. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7427. hardcode_direct=yes
  7428. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7429. hardcode_libdir_separator=:
  7430. hardcode_shlibpath_var=no
  7431. ;;
  7432. openbsd*)
  7433. hardcode_direct=yes
  7434. hardcode_shlibpath_var=no
  7435. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7436. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7437. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7438. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7439. export_dynamic_flag_spec='${wl}-E'
  7440. else
  7441. case $host_os in
  7442. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7443. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7444. hardcode_libdir_flag_spec='-R$libdir'
  7445. ;;
  7446. *)
  7447. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7448. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7449. ;;
  7450. esac
  7451. fi
  7452. ;;
  7453. os2*)
  7454. hardcode_libdir_flag_spec='-L$libdir'
  7455. hardcode_minus_L=yes
  7456. allow_undefined_flag=unsupported
  7457. 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'
  7458. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7459. ;;
  7460. osf3*)
  7461. if test "$GCC" = yes; then
  7462. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7463. 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'
  7464. else
  7465. allow_undefined_flag=' -expect_unresolved \*'
  7466. 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'
  7467. fi
  7468. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7469. hardcode_libdir_separator=:
  7470. ;;
  7471. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7472. if test "$GCC" = yes; then
  7473. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7474. 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'
  7475. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7476. else
  7477. allow_undefined_flag=' -expect_unresolved \*'
  7478. 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'
  7479. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  7480. $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'
  7481. # Both c and cxx compiler support -rpath directly
  7482. hardcode_libdir_flag_spec='-rpath $libdir'
  7483. fi
  7484. hardcode_libdir_separator=:
  7485. ;;
  7486. sco3.2v5*)
  7487. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7488. hardcode_shlibpath_var=no
  7489. export_dynamic_flag_spec='${wl}-Bexport'
  7490. runpath_var=LD_RUN_PATH
  7491. hardcode_runpath_var=yes
  7492. ;;
  7493. solaris*)
  7494. no_undefined_flag=' -z text'
  7495. if test "$GCC" = yes; then
  7496. wlarc='${wl}'
  7497. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7498. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7499. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7500. else
  7501. wlarc=''
  7502. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7503. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7504. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7505. fi
  7506. hardcode_libdir_flag_spec='-R$libdir'
  7507. hardcode_shlibpath_var=no
  7508. case $host_os in
  7509. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7510. *)
  7511. # The compiler driver will combine linker options so we
  7512. # cannot just pass the convience library names through
  7513. # without $wl, iff we do not link with $LD.
  7514. # Luckily, gcc supports the same syntax we need for Sun Studio.
  7515. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7516. case $wlarc in
  7517. '')
  7518. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  7519. *)
  7520. 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' ;;
  7521. esac ;;
  7522. esac
  7523. link_all_deplibs=yes
  7524. ;;
  7525. sunos4*)
  7526. if test "x$host_vendor" = xsequent; then
  7527. # Use $CC to link under sequent, because it throws in some extra .o
  7528. # files that make .init and .fini sections work.
  7529. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7530. else
  7531. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7532. fi
  7533. hardcode_libdir_flag_spec='-L$libdir'
  7534. hardcode_direct=yes
  7535. hardcode_minus_L=yes
  7536. hardcode_shlibpath_var=no
  7537. ;;
  7538. sysv4)
  7539. case $host_vendor in
  7540. sni)
  7541. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7542. hardcode_direct=yes # is this really true???
  7543. ;;
  7544. siemens)
  7545. ## LD is ld it makes a PLAMLIB
  7546. ## CC just makes a GrossModule.
  7547. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7548. reload_cmds='$CC -r -o $output$reload_objs'
  7549. hardcode_direct=no
  7550. ;;
  7551. motorola)
  7552. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7553. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7554. ;;
  7555. esac
  7556. runpath_var='LD_RUN_PATH'
  7557. hardcode_shlibpath_var=no
  7558. ;;
  7559. sysv4.3*)
  7560. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7561. hardcode_shlibpath_var=no
  7562. export_dynamic_flag_spec='-Bexport'
  7563. ;;
  7564. sysv4*MP*)
  7565. if test -d /usr/nec; then
  7566. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7567. hardcode_shlibpath_var=no
  7568. runpath_var=LD_RUN_PATH
  7569. hardcode_runpath_var=yes
  7570. ld_shlibs=yes
  7571. fi
  7572. ;;
  7573. sysv4.2uw2*)
  7574. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7575. hardcode_direct=yes
  7576. hardcode_minus_L=no
  7577. hardcode_shlibpath_var=no
  7578. hardcode_runpath_var=yes
  7579. runpath_var=LD_RUN_PATH
  7580. ;;
  7581. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  7582. no_undefined_flag='${wl}-z ${wl}text'
  7583. if test "$GCC" = yes; then
  7584. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7585. else
  7586. archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7587. fi
  7588. runpath_var='LD_RUN_PATH'
  7589. hardcode_shlibpath_var=no
  7590. ;;
  7591. sysv5*)
  7592. no_undefined_flag=' -z text'
  7593. # $CC -shared without GNU ld will not create a library from C++
  7594. # object files and a static libstdc++, better avoid it by now
  7595. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7596. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7597. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7598. hardcode_libdir_flag_spec=
  7599. hardcode_shlibpath_var=no
  7600. runpath_var='LD_RUN_PATH'
  7601. ;;
  7602. uts4*)
  7603. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7604. hardcode_libdir_flag_spec='-L$libdir'
  7605. hardcode_shlibpath_var=no
  7606. ;;
  7607. *)
  7608. ld_shlibs=no
  7609. ;;
  7610. esac
  7611. fi
  7612. { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7613. echo "${ECHO_T}$ld_shlibs" >&6; }
  7614. test "$ld_shlibs" = no && can_build_shared=no
  7615. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  7616. if test "$GCC" = yes; then
  7617. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  7618. fi
  7619. #
  7620. # Do we need to explicitly link libc?
  7621. #
  7622. case "x$archive_cmds_need_lc" in
  7623. x|xyes)
  7624. # Assume -lc should be added
  7625. archive_cmds_need_lc=yes
  7626. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7627. case $archive_cmds in
  7628. *'~'*)
  7629. # FIXME: we may have to deal with multi-command sequences.
  7630. ;;
  7631. '$CC '*)
  7632. # Test whether the compiler implicitly links with -lc since on some
  7633. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7634. # to ld, don't add -lc before -lgcc.
  7635. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7636. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  7637. $rm conftest*
  7638. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7639. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7640. (eval $ac_compile) 2>&5
  7641. ac_status=$?
  7642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7643. (exit $ac_status); } 2>conftest.err; then
  7644. soname=conftest
  7645. lib=conftest
  7646. libobjs=conftest.$ac_objext
  7647. deplibs=
  7648. wl=$lt_prog_compiler_wl
  7649. compiler_flags=-v
  7650. linker_flags=-v
  7651. verstring=
  7652. output_objdir=.
  7653. libname=conftest
  7654. lt_save_allow_undefined_flag=$allow_undefined_flag
  7655. allow_undefined_flag=
  7656. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7657. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7658. ac_status=$?
  7659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7660. (exit $ac_status); }
  7661. then
  7662. archive_cmds_need_lc=no
  7663. else
  7664. archive_cmds_need_lc=yes
  7665. fi
  7666. allow_undefined_flag=$lt_save_allow_undefined_flag
  7667. else
  7668. cat conftest.err 1>&5
  7669. fi
  7670. $rm conftest*
  7671. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7672. echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  7673. ;;
  7674. esac
  7675. fi
  7676. ;;
  7677. esac
  7678. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7679. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  7680. library_names_spec=
  7681. libname_spec='lib$name'
  7682. soname_spec=
  7683. shrext_cmds=".so"
  7684. postinstall_cmds=
  7685. postuninstall_cmds=
  7686. finish_cmds=
  7687. finish_eval=
  7688. shlibpath_var=
  7689. shlibpath_overrides_runpath=unknown
  7690. version_type=none
  7691. dynamic_linker="$host_os ld.so"
  7692. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7693. if test "$GCC" = yes; then
  7694. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7695. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  7696. # if the path contains ";" then we assume it to be the separator
  7697. # otherwise default to the standard path separator (i.e. ":") - it is
  7698. # assumed that no part of a normal pathname contains ";" but that should
  7699. # okay in the real world where ";" in dirpaths is itself problematic.
  7700. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7701. else
  7702. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7703. fi
  7704. else
  7705. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7706. fi
  7707. need_lib_prefix=unknown
  7708. hardcode_into_libs=no
  7709. # when you set need_version to no, make sure it does not cause -set_version
  7710. # flags to be left without arguments
  7711. need_version=unknown
  7712. case $host_os in
  7713. aix3*)
  7714. version_type=linux
  7715. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7716. shlibpath_var=LIBPATH
  7717. # AIX 3 has no versioning support, so we append a major version to the name.
  7718. soname_spec='${libname}${release}${shared_ext}$major'
  7719. ;;
  7720. aix4* | aix5*)
  7721. version_type=linux
  7722. need_lib_prefix=no
  7723. need_version=no
  7724. hardcode_into_libs=yes
  7725. if test "$host_cpu" = ia64; then
  7726. # AIX 5 supports IA64
  7727. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7728. shlibpath_var=LD_LIBRARY_PATH
  7729. else
  7730. # With GCC up to 2.95.x, collect2 would create an import file
  7731. # for dependence libraries. The import file would start with
  7732. # the line `#! .'. This would cause the generated library to
  7733. # depend on `.', always an invalid library. This was fixed in
  7734. # development snapshots of GCC prior to 3.0.
  7735. case $host_os in
  7736. aix4 | aix4.[01] | aix4.[01].*)
  7737. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7738. echo ' yes '
  7739. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  7740. :
  7741. else
  7742. can_build_shared=no
  7743. fi
  7744. ;;
  7745. esac
  7746. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7747. # soname into executable. Probably we can add versioning support to
  7748. # collect2, so additional links can be useful in future.
  7749. if test "$aix_use_runtimelinking" = yes; then
  7750. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7751. # instead of lib<name>.a to let people know that these are not
  7752. # typical AIX shared libraries.
  7753. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7754. else
  7755. # We preserve .a as extension for shared libraries through AIX4.2
  7756. # and later when we are not doing run time linking.
  7757. library_names_spec='${libname}${release}.a $libname.a'
  7758. soname_spec='${libname}${release}${shared_ext}$major'
  7759. fi
  7760. shlibpath_var=LIBPATH
  7761. fi
  7762. ;;
  7763. amigaos*)
  7764. library_names_spec='$libname.ixlibrary $libname.a'
  7765. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7766. 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'
  7767. ;;
  7768. beos*)
  7769. library_names_spec='${libname}${shared_ext}'
  7770. dynamic_linker="$host_os ld.so"
  7771. shlibpath_var=LIBRARY_PATH
  7772. ;;
  7773. bsdi[45]*)
  7774. version_type=linux
  7775. need_version=no
  7776. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7777. soname_spec='${libname}${release}${shared_ext}$major'
  7778. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7779. shlibpath_var=LD_LIBRARY_PATH
  7780. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7781. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7782. # the default ld.so.conf also contains /usr/contrib/lib and
  7783. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7784. # libtool to hard-code these into programs
  7785. ;;
  7786. cygwin* | mingw* | pw32*)
  7787. version_type=windows
  7788. shrext_cmds=".dll"
  7789. need_version=no
  7790. need_lib_prefix=no
  7791. case $GCC,$host_os in
  7792. yes,cygwin* | yes,mingw* | yes,pw32*)
  7793. library_names_spec='$libname.dll.a'
  7794. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7795. postinstall_cmds='base_file=`basename \${file}`~
  7796. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  7797. dldir=$destdir/`dirname \$dlpath`~
  7798. test -d \$dldir || mkdir -p \$dldir~
  7799. $install_prog $dir/$dlname \$dldir/$dlname'
  7800. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7801. dlpath=$dir/\$dldll~
  7802. $rm \$dlpath'
  7803. shlibpath_overrides_runpath=yes
  7804. case $host_os in
  7805. cygwin*)
  7806. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7807. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7808. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7809. ;;
  7810. mingw*)
  7811. # MinGW DLLs use traditional 'lib' prefix
  7812. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7813. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7814. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  7815. # It is most probably a Windows format PATH printed by
  7816. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7817. # path with ; separators, and with drive letters. We can handle the
  7818. # drive letters (cygwin fileutils understands them), so leave them,
  7819. # especially as we might pass files found there to a mingw objdump,
  7820. # which wouldn't understand a cygwinified path. Ahh.
  7821. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7822. else
  7823. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7824. fi
  7825. ;;
  7826. pw32*)
  7827. # pw32 DLLs use 'pw' prefix rather than 'lib'
  7828. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7829. ;;
  7830. esac
  7831. ;;
  7832. *)
  7833. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  7834. ;;
  7835. esac
  7836. dynamic_linker='Win32 ld.exe'
  7837. # FIXME: first we should search . and the directory the executable is in
  7838. shlibpath_var=PATH
  7839. ;;
  7840. darwin* | rhapsody*)
  7841. dynamic_linker="$host_os dyld"
  7842. version_type=darwin
  7843. need_lib_prefix=no
  7844. need_version=no
  7845. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  7846. soname_spec='${libname}${release}${major}$shared_ext'
  7847. shlibpath_overrides_runpath=yes
  7848. shlibpath_var=DYLD_LIBRARY_PATH
  7849. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  7850. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  7851. if test "$GCC" = yes; then
  7852. 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"`
  7853. else
  7854. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  7855. fi
  7856. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  7857. ;;
  7858. dgux*)
  7859. version_type=linux
  7860. need_lib_prefix=no
  7861. need_version=no
  7862. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  7863. soname_spec='${libname}${release}${shared_ext}$major'
  7864. shlibpath_var=LD_LIBRARY_PATH
  7865. ;;
  7866. freebsd1*)
  7867. dynamic_linker=no
  7868. ;;
  7869. kfreebsd*-gnu)
  7870. version_type=linux
  7871. need_lib_prefix=no
  7872. need_version=no
  7873. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7874. soname_spec='${libname}${release}${shared_ext}$major'
  7875. shlibpath_var=LD_LIBRARY_PATH
  7876. shlibpath_overrides_runpath=no
  7877. hardcode_into_libs=yes
  7878. dynamic_linker='GNU ld.so'
  7879. ;;
  7880. freebsd* | dragonfly*)
  7881. # DragonFly does not have aout. When/if they implement a new
  7882. # versioning mechanism, adjust this.
  7883. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  7884. version_type=freebsd-$objformat
  7885. case $version_type in
  7886. freebsd-elf*)
  7887. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7888. need_version=no
  7889. need_lib_prefix=no
  7890. ;;
  7891. freebsd-*)
  7892. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  7893. need_version=yes
  7894. ;;
  7895. esac
  7896. shlibpath_var=LD_LIBRARY_PATH
  7897. case $host_os in
  7898. freebsd2*)
  7899. shlibpath_overrides_runpath=yes
  7900. ;;
  7901. freebsd3.[01]* | freebsdelf3.[01]*)
  7902. shlibpath_overrides_runpath=yes
  7903. hardcode_into_libs=yes
  7904. ;;
  7905. *) # from 3.2 on
  7906. shlibpath_overrides_runpath=no
  7907. hardcode_into_libs=yes
  7908. ;;
  7909. esac
  7910. ;;
  7911. gnu*)
  7912. version_type=linux
  7913. need_lib_prefix=no
  7914. need_version=no
  7915. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  7916. soname_spec='${libname}${release}${shared_ext}$major'
  7917. shlibpath_var=LD_LIBRARY_PATH
  7918. hardcode_into_libs=yes
  7919. ;;
  7920. hpux9* | hpux10* | hpux11*)
  7921. # Give a soname corresponding to the major version so that dld.sl refuses to
  7922. # link against other versions.
  7923. version_type=sunos
  7924. need_lib_prefix=no
  7925. need_version=no
  7926. case "$host_cpu" in
  7927. ia64*)
  7928. shrext_cmds='.so'
  7929. hardcode_into_libs=yes
  7930. dynamic_linker="$host_os dld.so"
  7931. shlibpath_var=LD_LIBRARY_PATH
  7932. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7933. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7934. soname_spec='${libname}${release}${shared_ext}$major'
  7935. if test "X$HPUX_IA64_MODE" = X32; then
  7936. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  7937. else
  7938. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  7939. fi
  7940. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7941. ;;
  7942. hppa*64*)
  7943. shrext_cmds='.sl'
  7944. hardcode_into_libs=yes
  7945. dynamic_linker="$host_os dld.sl"
  7946. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  7947. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7948. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7949. soname_spec='${libname}${release}${shared_ext}$major'
  7950. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  7951. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7952. ;;
  7953. *)
  7954. shrext_cmds='.sl'
  7955. dynamic_linker="$host_os dld.sl"
  7956. shlibpath_var=SHLIB_PATH
  7957. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  7958. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7959. soname_spec='${libname}${release}${shared_ext}$major'
  7960. ;;
  7961. esac
  7962. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  7963. postinstall_cmds='chmod 555 $lib'
  7964. ;;
  7965. irix5* | irix6* | nonstopux*)
  7966. case $host_os in
  7967. nonstopux*) version_type=nonstopux ;;
  7968. *)
  7969. if test "$lt_cv_prog_gnu_ld" = yes; then
  7970. version_type=linux
  7971. else
  7972. version_type=irix
  7973. fi ;;
  7974. esac
  7975. need_lib_prefix=no
  7976. need_version=no
  7977. soname_spec='${libname}${release}${shared_ext}$major'
  7978. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  7979. case $host_os in
  7980. irix5* | nonstopux*)
  7981. libsuff= shlibsuff=
  7982. ;;
  7983. *)
  7984. case $LD in # libtool.m4 will add one of these switches to LD
  7985. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  7986. libsuff= shlibsuff= libmagic=32-bit;;
  7987. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  7988. libsuff=32 shlibsuff=N32 libmagic=N32;;
  7989. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  7990. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  7991. *) libsuff= shlibsuff= libmagic=never-match;;
  7992. esac
  7993. ;;
  7994. esac
  7995. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  7996. shlibpath_overrides_runpath=no
  7997. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  7998. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  7999. hardcode_into_libs=yes
  8000. ;;
  8001. # No shared lib support for Linux oldld, aout, or coff.
  8002. linux*oldld* | linux*aout* | linux*coff*)
  8003. dynamic_linker=no
  8004. ;;
  8005. # This must be Linux ELF.
  8006. linux*)
  8007. version_type=linux
  8008. need_lib_prefix=no
  8009. need_version=no
  8010. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8011. soname_spec='${libname}${release}${shared_ext}$major'
  8012. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8013. shlibpath_var=LD_LIBRARY_PATH
  8014. shlibpath_overrides_runpath=no
  8015. # This implies no fast_install, which is unacceptable.
  8016. # Some rework will be needed to allow for fast_install
  8017. # before this can be enabled.
  8018. hardcode_into_libs=yes
  8019. # Append ld.so.conf contents to the search path
  8020. if test -f /etc/ld.so.conf; then
  8021. 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' ' '`
  8022. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8023. fi
  8024. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8025. # powerpc, because MkLinux only supported shared libraries with the
  8026. # GNU dynamic linker. Since this was broken with cross compilers,
  8027. # most powerpc-linux boxes support dynamic linking these days and
  8028. # people can always --disable-shared, the test was removed, and we
  8029. # assume the GNU/Linux dynamic linker is in use.
  8030. dynamic_linker='GNU/Linux ld.so'
  8031. ;;
  8032. knetbsd*-gnu)
  8033. version_type=linux
  8034. need_lib_prefix=no
  8035. need_version=no
  8036. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8037. soname_spec='${libname}${release}${shared_ext}$major'
  8038. shlibpath_var=LD_LIBRARY_PATH
  8039. shlibpath_overrides_runpath=no
  8040. hardcode_into_libs=yes
  8041. dynamic_linker='GNU ld.so'
  8042. ;;
  8043. netbsd*)
  8044. version_type=sunos
  8045. need_lib_prefix=no
  8046. need_version=no
  8047. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8048. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8049. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8050. dynamic_linker='NetBSD (a.out) ld.so'
  8051. else
  8052. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8053. soname_spec='${libname}${release}${shared_ext}$major'
  8054. dynamic_linker='NetBSD ld.elf_so'
  8055. fi
  8056. shlibpath_var=LD_LIBRARY_PATH
  8057. shlibpath_overrides_runpath=yes
  8058. hardcode_into_libs=yes
  8059. ;;
  8060. newsos6)
  8061. version_type=linux
  8062. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8063. shlibpath_var=LD_LIBRARY_PATH
  8064. shlibpath_overrides_runpath=yes
  8065. ;;
  8066. nto-qnx*)
  8067. version_type=linux
  8068. need_lib_prefix=no
  8069. need_version=no
  8070. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8071. soname_spec='${libname}${release}${shared_ext}$major'
  8072. shlibpath_var=LD_LIBRARY_PATH
  8073. shlibpath_overrides_runpath=yes
  8074. ;;
  8075. openbsd*)
  8076. version_type=sunos
  8077. need_lib_prefix=no
  8078. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8079. case $host_os in
  8080. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8081. *) need_version=no ;;
  8082. esac
  8083. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8084. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8085. shlibpath_var=LD_LIBRARY_PATH
  8086. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8087. case $host_os in
  8088. openbsd2.[89] | openbsd2.[89].*)
  8089. shlibpath_overrides_runpath=no
  8090. ;;
  8091. *)
  8092. shlibpath_overrides_runpath=yes
  8093. ;;
  8094. esac
  8095. else
  8096. shlibpath_overrides_runpath=yes
  8097. fi
  8098. ;;
  8099. os2*)
  8100. libname_spec='$name'
  8101. shrext_cmds=".dll"
  8102. need_lib_prefix=no
  8103. library_names_spec='$libname${shared_ext} $libname.a'
  8104. dynamic_linker='OS/2 ld.exe'
  8105. shlibpath_var=LIBPATH
  8106. ;;
  8107. osf3* | osf4* | osf5*)
  8108. version_type=osf
  8109. need_lib_prefix=no
  8110. need_version=no
  8111. soname_spec='${libname}${release}${shared_ext}$major'
  8112. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8113. shlibpath_var=LD_LIBRARY_PATH
  8114. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8115. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8116. ;;
  8117. sco3.2v5*)
  8118. version_type=osf
  8119. soname_spec='${libname}${release}${shared_ext}$major'
  8120. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8121. shlibpath_var=LD_LIBRARY_PATH
  8122. ;;
  8123. solaris*)
  8124. version_type=linux
  8125. need_lib_prefix=no
  8126. need_version=no
  8127. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8128. soname_spec='${libname}${release}${shared_ext}$major'
  8129. shlibpath_var=LD_LIBRARY_PATH
  8130. shlibpath_overrides_runpath=yes
  8131. hardcode_into_libs=yes
  8132. # ldd complains unless libraries are executable
  8133. postinstall_cmds='chmod +x $lib'
  8134. ;;
  8135. sunos4*)
  8136. version_type=sunos
  8137. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8138. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8139. shlibpath_var=LD_LIBRARY_PATH
  8140. shlibpath_overrides_runpath=yes
  8141. if test "$with_gnu_ld" = yes; then
  8142. need_lib_prefix=no
  8143. fi
  8144. need_version=yes
  8145. ;;
  8146. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8147. version_type=linux
  8148. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8149. soname_spec='${libname}${release}${shared_ext}$major'
  8150. shlibpath_var=LD_LIBRARY_PATH
  8151. case $host_vendor in
  8152. sni)
  8153. shlibpath_overrides_runpath=no
  8154. need_lib_prefix=no
  8155. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8156. runpath_var=LD_RUN_PATH
  8157. ;;
  8158. siemens)
  8159. need_lib_prefix=no
  8160. ;;
  8161. motorola)
  8162. need_lib_prefix=no
  8163. need_version=no
  8164. shlibpath_overrides_runpath=no
  8165. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8166. ;;
  8167. esac
  8168. ;;
  8169. sysv4*MP*)
  8170. if test -d /usr/nec ;then
  8171. version_type=linux
  8172. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8173. soname_spec='$libname${shared_ext}.$major'
  8174. shlibpath_var=LD_LIBRARY_PATH
  8175. fi
  8176. ;;
  8177. uts4*)
  8178. version_type=linux
  8179. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8180. soname_spec='${libname}${release}${shared_ext}$major'
  8181. shlibpath_var=LD_LIBRARY_PATH
  8182. ;;
  8183. *)
  8184. dynamic_linker=no
  8185. ;;
  8186. esac
  8187. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8188. echo "${ECHO_T}$dynamic_linker" >&6; }
  8189. test "$dynamic_linker" = no && can_build_shared=no
  8190. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8191. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  8192. hardcode_action=
  8193. if test -n "$hardcode_libdir_flag_spec" || \
  8194. test -n "$runpath_var" || \
  8195. test "X$hardcode_automatic" = "Xyes" ; then
  8196. # We can hardcode non-existant directories.
  8197. if test "$hardcode_direct" != no &&
  8198. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8199. # have to relink, otherwise we might link with an installed library
  8200. # when we should be linking with a yet-to-be-installed one
  8201. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8202. test "$hardcode_minus_L" != no; then
  8203. # Linking always hardcodes the temporary library directory.
  8204. hardcode_action=relink
  8205. else
  8206. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8207. hardcode_action=immediate
  8208. fi
  8209. else
  8210. # We cannot hardcode anything, or else we can only hardcode existing
  8211. # directories.
  8212. hardcode_action=unsupported
  8213. fi
  8214. { echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8215. echo "${ECHO_T}$hardcode_action" >&6; }
  8216. if test "$hardcode_action" = relink; then
  8217. # Fast installation is not supported
  8218. enable_fast_install=no
  8219. elif test "$shlibpath_overrides_runpath" = yes ||
  8220. test "$enable_shared" = no; then
  8221. # Fast installation is not necessary
  8222. enable_fast_install=needless
  8223. fi
  8224. striplib=
  8225. old_striplib=
  8226. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  8227. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  8228. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  8229. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  8230. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  8231. { echo "$as_me:$LINENO: result: yes" >&5
  8232. echo "${ECHO_T}yes" >&6; }
  8233. else
  8234. # FIXME - insert some real tests, host_os isn't really good enough
  8235. case $host_os in
  8236. darwin*)
  8237. if test -n "$STRIP" ; then
  8238. striplib="$STRIP -x"
  8239. { echo "$as_me:$LINENO: result: yes" >&5
  8240. echo "${ECHO_T}yes" >&6; }
  8241. else
  8242. { echo "$as_me:$LINENO: result: no" >&5
  8243. echo "${ECHO_T}no" >&6; }
  8244. fi
  8245. ;;
  8246. *)
  8247. { echo "$as_me:$LINENO: result: no" >&5
  8248. echo "${ECHO_T}no" >&6; }
  8249. ;;
  8250. esac
  8251. fi
  8252. if test "x$enable_dlopen" != xyes; then
  8253. enable_dlopen=unknown
  8254. enable_dlopen_self=unknown
  8255. enable_dlopen_self_static=unknown
  8256. else
  8257. lt_cv_dlopen=no
  8258. lt_cv_dlopen_libs=
  8259. case $host_os in
  8260. beos*)
  8261. lt_cv_dlopen="load_add_on"
  8262. lt_cv_dlopen_libs=
  8263. lt_cv_dlopen_self=yes
  8264. ;;
  8265. mingw* | pw32*)
  8266. lt_cv_dlopen="LoadLibrary"
  8267. lt_cv_dlopen_libs=
  8268. ;;
  8269. cygwin*)
  8270. lt_cv_dlopen="dlopen"
  8271. lt_cv_dlopen_libs=
  8272. ;;
  8273. darwin*)
  8274. # if libdl is installed we need to link against it
  8275. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8276. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8277. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8278. echo $ECHO_N "(cached) $ECHO_C" >&6
  8279. else
  8280. ac_check_lib_save_LIBS=$LIBS
  8281. LIBS="-ldl $LIBS"
  8282. cat >conftest.$ac_ext <<_ACEOF
  8283. /* confdefs.h. */
  8284. _ACEOF
  8285. cat confdefs.h >>conftest.$ac_ext
  8286. cat >>conftest.$ac_ext <<_ACEOF
  8287. /* end confdefs.h. */
  8288. /* Override any GCC internal prototype to avoid an error.
  8289. Use char because int might match the return type of a GCC
  8290. builtin and then its argument prototype would still apply. */
  8291. #ifdef __cplusplus
  8292. extern "C"
  8293. #endif
  8294. char dlopen ();
  8295. int
  8296. main ()
  8297. {
  8298. return dlopen ();
  8299. ;
  8300. return 0;
  8301. }
  8302. _ACEOF
  8303. rm -f conftest.$ac_objext conftest$ac_exeext
  8304. if { (ac_try="$ac_link"
  8305. case "(($ac_try" in
  8306. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8307. *) ac_try_echo=$ac_try;;
  8308. esac
  8309. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8310. (eval "$ac_link") 2>conftest.er1
  8311. ac_status=$?
  8312. grep -v '^ *+' conftest.er1 >conftest.err
  8313. rm -f conftest.er1
  8314. cat conftest.err >&5
  8315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8316. (exit $ac_status); } && {
  8317. test -z "$ac_c_werror_flag" ||
  8318. test ! -s conftest.err
  8319. } && test -s conftest$ac_exeext &&
  8320. $as_test_x conftest$ac_exeext; then
  8321. ac_cv_lib_dl_dlopen=yes
  8322. else
  8323. echo "$as_me: failed program was:" >&5
  8324. sed 's/^/| /' conftest.$ac_ext >&5
  8325. ac_cv_lib_dl_dlopen=no
  8326. fi
  8327. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8328. conftest$ac_exeext conftest.$ac_ext
  8329. LIBS=$ac_check_lib_save_LIBS
  8330. fi
  8331. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8332. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8333. if test $ac_cv_lib_dl_dlopen = yes; then
  8334. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8335. else
  8336. lt_cv_dlopen="dyld"
  8337. lt_cv_dlopen_libs=
  8338. lt_cv_dlopen_self=yes
  8339. fi
  8340. ;;
  8341. *)
  8342. { echo "$as_me:$LINENO: checking for shl_load" >&5
  8343. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  8344. if test "${ac_cv_func_shl_load+set}" = set; then
  8345. echo $ECHO_N "(cached) $ECHO_C" >&6
  8346. else
  8347. cat >conftest.$ac_ext <<_ACEOF
  8348. /* confdefs.h. */
  8349. _ACEOF
  8350. cat confdefs.h >>conftest.$ac_ext
  8351. cat >>conftest.$ac_ext <<_ACEOF
  8352. /* end confdefs.h. */
  8353. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8354. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8355. #define shl_load innocuous_shl_load
  8356. /* System header to define __stub macros and hopefully few prototypes,
  8357. which can conflict with char shl_load (); below.
  8358. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8359. <limits.h> exists even on freestanding compilers. */
  8360. #ifdef __STDC__
  8361. # include <limits.h>
  8362. #else
  8363. # include <assert.h>
  8364. #endif
  8365. #undef shl_load
  8366. /* Override any GCC internal prototype to avoid an error.
  8367. Use char because int might match the return type of a GCC
  8368. builtin and then its argument prototype would still apply. */
  8369. #ifdef __cplusplus
  8370. extern "C"
  8371. #endif
  8372. char shl_load ();
  8373. /* The GNU C library defines this for functions which it implements
  8374. to always fail with ENOSYS. Some functions are actually named
  8375. something starting with __ and the normal name is an alias. */
  8376. #if defined __stub_shl_load || defined __stub___shl_load
  8377. choke me
  8378. #endif
  8379. int
  8380. main ()
  8381. {
  8382. return shl_load ();
  8383. ;
  8384. return 0;
  8385. }
  8386. _ACEOF
  8387. rm -f conftest.$ac_objext conftest$ac_exeext
  8388. if { (ac_try="$ac_link"
  8389. case "(($ac_try" in
  8390. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8391. *) ac_try_echo=$ac_try;;
  8392. esac
  8393. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8394. (eval "$ac_link") 2>conftest.er1
  8395. ac_status=$?
  8396. grep -v '^ *+' conftest.er1 >conftest.err
  8397. rm -f conftest.er1
  8398. cat conftest.err >&5
  8399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8400. (exit $ac_status); } && {
  8401. test -z "$ac_c_werror_flag" ||
  8402. test ! -s conftest.err
  8403. } && test -s conftest$ac_exeext &&
  8404. $as_test_x conftest$ac_exeext; then
  8405. ac_cv_func_shl_load=yes
  8406. else
  8407. echo "$as_me: failed program was:" >&5
  8408. sed 's/^/| /' conftest.$ac_ext >&5
  8409. ac_cv_func_shl_load=no
  8410. fi
  8411. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8412. conftest$ac_exeext conftest.$ac_ext
  8413. fi
  8414. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8415. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  8416. if test $ac_cv_func_shl_load = yes; then
  8417. lt_cv_dlopen="shl_load"
  8418. else
  8419. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8420. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  8421. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8422. echo $ECHO_N "(cached) $ECHO_C" >&6
  8423. else
  8424. ac_check_lib_save_LIBS=$LIBS
  8425. LIBS="-ldld $LIBS"
  8426. cat >conftest.$ac_ext <<_ACEOF
  8427. /* confdefs.h. */
  8428. _ACEOF
  8429. cat confdefs.h >>conftest.$ac_ext
  8430. cat >>conftest.$ac_ext <<_ACEOF
  8431. /* end confdefs.h. */
  8432. /* Override any GCC internal prototype to avoid an error.
  8433. Use char because int might match the return type of a GCC
  8434. builtin and then its argument prototype would still apply. */
  8435. #ifdef __cplusplus
  8436. extern "C"
  8437. #endif
  8438. char shl_load ();
  8439. int
  8440. main ()
  8441. {
  8442. return shl_load ();
  8443. ;
  8444. return 0;
  8445. }
  8446. _ACEOF
  8447. rm -f conftest.$ac_objext conftest$ac_exeext
  8448. if { (ac_try="$ac_link"
  8449. case "(($ac_try" in
  8450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8451. *) ac_try_echo=$ac_try;;
  8452. esac
  8453. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8454. (eval "$ac_link") 2>conftest.er1
  8455. ac_status=$?
  8456. grep -v '^ *+' conftest.er1 >conftest.err
  8457. rm -f conftest.er1
  8458. cat conftest.err >&5
  8459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8460. (exit $ac_status); } && {
  8461. test -z "$ac_c_werror_flag" ||
  8462. test ! -s conftest.err
  8463. } && test -s conftest$ac_exeext &&
  8464. $as_test_x conftest$ac_exeext; then
  8465. ac_cv_lib_dld_shl_load=yes
  8466. else
  8467. echo "$as_me: failed program was:" >&5
  8468. sed 's/^/| /' conftest.$ac_ext >&5
  8469. ac_cv_lib_dld_shl_load=no
  8470. fi
  8471. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8472. conftest$ac_exeext conftest.$ac_ext
  8473. LIBS=$ac_check_lib_save_LIBS
  8474. fi
  8475. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8476. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  8477. if test $ac_cv_lib_dld_shl_load = yes; then
  8478. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8479. else
  8480. { echo "$as_me:$LINENO: checking for dlopen" >&5
  8481. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  8482. if test "${ac_cv_func_dlopen+set}" = set; then
  8483. echo $ECHO_N "(cached) $ECHO_C" >&6
  8484. else
  8485. cat >conftest.$ac_ext <<_ACEOF
  8486. /* confdefs.h. */
  8487. _ACEOF
  8488. cat confdefs.h >>conftest.$ac_ext
  8489. cat >>conftest.$ac_ext <<_ACEOF
  8490. /* end confdefs.h. */
  8491. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8492. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8493. #define dlopen innocuous_dlopen
  8494. /* System header to define __stub macros and hopefully few prototypes,
  8495. which can conflict with char dlopen (); below.
  8496. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8497. <limits.h> exists even on freestanding compilers. */
  8498. #ifdef __STDC__
  8499. # include <limits.h>
  8500. #else
  8501. # include <assert.h>
  8502. #endif
  8503. #undef dlopen
  8504. /* Override any GCC internal prototype to avoid an error.
  8505. Use char because int might match the return type of a GCC
  8506. builtin and then its argument prototype would still apply. */
  8507. #ifdef __cplusplus
  8508. extern "C"
  8509. #endif
  8510. char dlopen ();
  8511. /* The GNU C library defines this for functions which it implements
  8512. to always fail with ENOSYS. Some functions are actually named
  8513. something starting with __ and the normal name is an alias. */
  8514. #if defined __stub_dlopen || defined __stub___dlopen
  8515. choke me
  8516. #endif
  8517. int
  8518. main ()
  8519. {
  8520. return dlopen ();
  8521. ;
  8522. return 0;
  8523. }
  8524. _ACEOF
  8525. rm -f conftest.$ac_objext conftest$ac_exeext
  8526. if { (ac_try="$ac_link"
  8527. case "(($ac_try" in
  8528. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8529. *) ac_try_echo=$ac_try;;
  8530. esac
  8531. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8532. (eval "$ac_link") 2>conftest.er1
  8533. ac_status=$?
  8534. grep -v '^ *+' conftest.er1 >conftest.err
  8535. rm -f conftest.er1
  8536. cat conftest.err >&5
  8537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8538. (exit $ac_status); } && {
  8539. test -z "$ac_c_werror_flag" ||
  8540. test ! -s conftest.err
  8541. } && test -s conftest$ac_exeext &&
  8542. $as_test_x conftest$ac_exeext; then
  8543. ac_cv_func_dlopen=yes
  8544. else
  8545. echo "$as_me: failed program was:" >&5
  8546. sed 's/^/| /' conftest.$ac_ext >&5
  8547. ac_cv_func_dlopen=no
  8548. fi
  8549. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8550. conftest$ac_exeext conftest.$ac_ext
  8551. fi
  8552. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8553. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  8554. if test $ac_cv_func_dlopen = yes; then
  8555. lt_cv_dlopen="dlopen"
  8556. else
  8557. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8558. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8559. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8560. echo $ECHO_N "(cached) $ECHO_C" >&6
  8561. else
  8562. ac_check_lib_save_LIBS=$LIBS
  8563. LIBS="-ldl $LIBS"
  8564. cat >conftest.$ac_ext <<_ACEOF
  8565. /* confdefs.h. */
  8566. _ACEOF
  8567. cat confdefs.h >>conftest.$ac_ext
  8568. cat >>conftest.$ac_ext <<_ACEOF
  8569. /* end confdefs.h. */
  8570. /* Override any GCC internal prototype to avoid an error.
  8571. Use char because int might match the return type of a GCC
  8572. builtin and then its argument prototype would still apply. */
  8573. #ifdef __cplusplus
  8574. extern "C"
  8575. #endif
  8576. char dlopen ();
  8577. int
  8578. main ()
  8579. {
  8580. return dlopen ();
  8581. ;
  8582. return 0;
  8583. }
  8584. _ACEOF
  8585. rm -f conftest.$ac_objext conftest$ac_exeext
  8586. if { (ac_try="$ac_link"
  8587. case "(($ac_try" in
  8588. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8589. *) ac_try_echo=$ac_try;;
  8590. esac
  8591. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8592. (eval "$ac_link") 2>conftest.er1
  8593. ac_status=$?
  8594. grep -v '^ *+' conftest.er1 >conftest.err
  8595. rm -f conftest.er1
  8596. cat conftest.err >&5
  8597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8598. (exit $ac_status); } && {
  8599. test -z "$ac_c_werror_flag" ||
  8600. test ! -s conftest.err
  8601. } && test -s conftest$ac_exeext &&
  8602. $as_test_x conftest$ac_exeext; then
  8603. ac_cv_lib_dl_dlopen=yes
  8604. else
  8605. echo "$as_me: failed program was:" >&5
  8606. sed 's/^/| /' conftest.$ac_ext >&5
  8607. ac_cv_lib_dl_dlopen=no
  8608. fi
  8609. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8610. conftest$ac_exeext conftest.$ac_ext
  8611. LIBS=$ac_check_lib_save_LIBS
  8612. fi
  8613. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8614. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8615. if test $ac_cv_lib_dl_dlopen = yes; then
  8616. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8617. else
  8618. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8619. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  8620. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8621. echo $ECHO_N "(cached) $ECHO_C" >&6
  8622. else
  8623. ac_check_lib_save_LIBS=$LIBS
  8624. LIBS="-lsvld $LIBS"
  8625. cat >conftest.$ac_ext <<_ACEOF
  8626. /* confdefs.h. */
  8627. _ACEOF
  8628. cat confdefs.h >>conftest.$ac_ext
  8629. cat >>conftest.$ac_ext <<_ACEOF
  8630. /* end confdefs.h. */
  8631. /* Override any GCC internal prototype to avoid an error.
  8632. Use char because int might match the return type of a GCC
  8633. builtin and then its argument prototype would still apply. */
  8634. #ifdef __cplusplus
  8635. extern "C"
  8636. #endif
  8637. char dlopen ();
  8638. int
  8639. main ()
  8640. {
  8641. return dlopen ();
  8642. ;
  8643. return 0;
  8644. }
  8645. _ACEOF
  8646. rm -f conftest.$ac_objext conftest$ac_exeext
  8647. if { (ac_try="$ac_link"
  8648. case "(($ac_try" in
  8649. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8650. *) ac_try_echo=$ac_try;;
  8651. esac
  8652. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8653. (eval "$ac_link") 2>conftest.er1
  8654. ac_status=$?
  8655. grep -v '^ *+' conftest.er1 >conftest.err
  8656. rm -f conftest.er1
  8657. cat conftest.err >&5
  8658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8659. (exit $ac_status); } && {
  8660. test -z "$ac_c_werror_flag" ||
  8661. test ! -s conftest.err
  8662. } && test -s conftest$ac_exeext &&
  8663. $as_test_x conftest$ac_exeext; then
  8664. ac_cv_lib_svld_dlopen=yes
  8665. else
  8666. echo "$as_me: failed program was:" >&5
  8667. sed 's/^/| /' conftest.$ac_ext >&5
  8668. ac_cv_lib_svld_dlopen=no
  8669. fi
  8670. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8671. conftest$ac_exeext conftest.$ac_ext
  8672. LIBS=$ac_check_lib_save_LIBS
  8673. fi
  8674. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8675. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  8676. if test $ac_cv_lib_svld_dlopen = yes; then
  8677. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8678. else
  8679. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8680. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  8681. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8682. echo $ECHO_N "(cached) $ECHO_C" >&6
  8683. else
  8684. ac_check_lib_save_LIBS=$LIBS
  8685. LIBS="-ldld $LIBS"
  8686. cat >conftest.$ac_ext <<_ACEOF
  8687. /* confdefs.h. */
  8688. _ACEOF
  8689. cat confdefs.h >>conftest.$ac_ext
  8690. cat >>conftest.$ac_ext <<_ACEOF
  8691. /* end confdefs.h. */
  8692. /* Override any GCC internal prototype to avoid an error.
  8693. Use char because int might match the return type of a GCC
  8694. builtin and then its argument prototype would still apply. */
  8695. #ifdef __cplusplus
  8696. extern "C"
  8697. #endif
  8698. char dld_link ();
  8699. int
  8700. main ()
  8701. {
  8702. return dld_link ();
  8703. ;
  8704. return 0;
  8705. }
  8706. _ACEOF
  8707. rm -f conftest.$ac_objext conftest$ac_exeext
  8708. if { (ac_try="$ac_link"
  8709. case "(($ac_try" in
  8710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8711. *) ac_try_echo=$ac_try;;
  8712. esac
  8713. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8714. (eval "$ac_link") 2>conftest.er1
  8715. ac_status=$?
  8716. grep -v '^ *+' conftest.er1 >conftest.err
  8717. rm -f conftest.er1
  8718. cat conftest.err >&5
  8719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8720. (exit $ac_status); } && {
  8721. test -z "$ac_c_werror_flag" ||
  8722. test ! -s conftest.err
  8723. } && test -s conftest$ac_exeext &&
  8724. $as_test_x conftest$ac_exeext; then
  8725. ac_cv_lib_dld_dld_link=yes
  8726. else
  8727. echo "$as_me: failed program was:" >&5
  8728. sed 's/^/| /' conftest.$ac_ext >&5
  8729. ac_cv_lib_dld_dld_link=no
  8730. fi
  8731. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8732. conftest$ac_exeext conftest.$ac_ext
  8733. LIBS=$ac_check_lib_save_LIBS
  8734. fi
  8735. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  8736. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  8737. if test $ac_cv_lib_dld_dld_link = yes; then
  8738. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  8739. fi
  8740. fi
  8741. fi
  8742. fi
  8743. fi
  8744. fi
  8745. ;;
  8746. esac
  8747. if test "x$lt_cv_dlopen" != xno; then
  8748. enable_dlopen=yes
  8749. else
  8750. enable_dlopen=no
  8751. fi
  8752. case $lt_cv_dlopen in
  8753. dlopen)
  8754. save_CPPFLAGS="$CPPFLAGS"
  8755. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8756. save_LDFLAGS="$LDFLAGS"
  8757. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8758. save_LIBS="$LIBS"
  8759. LIBS="$lt_cv_dlopen_libs $LIBS"
  8760. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  8761. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  8762. if test "${lt_cv_dlopen_self+set}" = set; then
  8763. echo $ECHO_N "(cached) $ECHO_C" >&6
  8764. else
  8765. if test "$cross_compiling" = yes; then :
  8766. lt_cv_dlopen_self=cross
  8767. else
  8768. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8769. lt_status=$lt_dlunknown
  8770. cat > conftest.$ac_ext <<EOF
  8771. #line 9755 "configure"
  8772. #include "confdefs.h"
  8773. #if HAVE_DLFCN_H
  8774. #include <dlfcn.h>
  8775. #endif
  8776. #include <stdio.h>
  8777. #ifdef RTLD_GLOBAL
  8778. # define LT_DLGLOBAL RTLD_GLOBAL
  8779. #else
  8780. # ifdef DL_GLOBAL
  8781. # define LT_DLGLOBAL DL_GLOBAL
  8782. # else
  8783. # define LT_DLGLOBAL 0
  8784. # endif
  8785. #endif
  8786. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8787. find out it does not work in some platform. */
  8788. #ifndef LT_DLLAZY_OR_NOW
  8789. # ifdef RTLD_LAZY
  8790. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8791. # else
  8792. # ifdef DL_LAZY
  8793. # define LT_DLLAZY_OR_NOW DL_LAZY
  8794. # else
  8795. # ifdef RTLD_NOW
  8796. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8797. # else
  8798. # ifdef DL_NOW
  8799. # define LT_DLLAZY_OR_NOW DL_NOW
  8800. # else
  8801. # define LT_DLLAZY_OR_NOW 0
  8802. # endif
  8803. # endif
  8804. # endif
  8805. # endif
  8806. #endif
  8807. #ifdef __cplusplus
  8808. extern "C" void exit (int);
  8809. #endif
  8810. void fnord() { int i=42;}
  8811. int main ()
  8812. {
  8813. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8814. int status = $lt_dlunknown;
  8815. if (self)
  8816. {
  8817. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8818. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8819. /* dlclose (self); */
  8820. }
  8821. exit (status);
  8822. }
  8823. EOF
  8824. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8825. (eval $ac_link) 2>&5
  8826. ac_status=$?
  8827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8828. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8829. (./conftest; exit; ) 2>/dev/null
  8830. lt_status=$?
  8831. case x$lt_status in
  8832. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8833. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8834. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  8835. esac
  8836. else :
  8837. # compilation failed
  8838. lt_cv_dlopen_self=no
  8839. fi
  8840. fi
  8841. rm -fr conftest*
  8842. fi
  8843. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  8844. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  8845. if test "x$lt_cv_dlopen_self" = xyes; then
  8846. LDFLAGS="$LDFLAGS $link_static_flag"
  8847. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  8848. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  8849. if test "${lt_cv_dlopen_self_static+set}" = set; then
  8850. echo $ECHO_N "(cached) $ECHO_C" >&6
  8851. else
  8852. if test "$cross_compiling" = yes; then :
  8853. lt_cv_dlopen_self_static=cross
  8854. else
  8855. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8856. lt_status=$lt_dlunknown
  8857. cat > conftest.$ac_ext <<EOF
  8858. #line 9853 "configure"
  8859. #include "confdefs.h"
  8860. #if HAVE_DLFCN_H
  8861. #include <dlfcn.h>
  8862. #endif
  8863. #include <stdio.h>
  8864. #ifdef RTLD_GLOBAL
  8865. # define LT_DLGLOBAL RTLD_GLOBAL
  8866. #else
  8867. # ifdef DL_GLOBAL
  8868. # define LT_DLGLOBAL DL_GLOBAL
  8869. # else
  8870. # define LT_DLGLOBAL 0
  8871. # endif
  8872. #endif
  8873. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8874. find out it does not work in some platform. */
  8875. #ifndef LT_DLLAZY_OR_NOW
  8876. # ifdef RTLD_LAZY
  8877. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8878. # else
  8879. # ifdef DL_LAZY
  8880. # define LT_DLLAZY_OR_NOW DL_LAZY
  8881. # else
  8882. # ifdef RTLD_NOW
  8883. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8884. # else
  8885. # ifdef DL_NOW
  8886. # define LT_DLLAZY_OR_NOW DL_NOW
  8887. # else
  8888. # define LT_DLLAZY_OR_NOW 0
  8889. # endif
  8890. # endif
  8891. # endif
  8892. # endif
  8893. #endif
  8894. #ifdef __cplusplus
  8895. extern "C" void exit (int);
  8896. #endif
  8897. void fnord() { int i=42;}
  8898. int main ()
  8899. {
  8900. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8901. int status = $lt_dlunknown;
  8902. if (self)
  8903. {
  8904. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8905. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8906. /* dlclose (self); */
  8907. }
  8908. exit (status);
  8909. }
  8910. EOF
  8911. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8912. (eval $ac_link) 2>&5
  8913. ac_status=$?
  8914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8915. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8916. (./conftest; exit; ) 2>/dev/null
  8917. lt_status=$?
  8918. case x$lt_status in
  8919. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  8920. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  8921. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  8922. esac
  8923. else :
  8924. # compilation failed
  8925. lt_cv_dlopen_self_static=no
  8926. fi
  8927. fi
  8928. rm -fr conftest*
  8929. fi
  8930. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  8931. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  8932. fi
  8933. CPPFLAGS="$save_CPPFLAGS"
  8934. LDFLAGS="$save_LDFLAGS"
  8935. LIBS="$save_LIBS"
  8936. ;;
  8937. esac
  8938. case $lt_cv_dlopen_self in
  8939. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  8940. *) enable_dlopen_self=unknown ;;
  8941. esac
  8942. case $lt_cv_dlopen_self_static in
  8943. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  8944. *) enable_dlopen_self_static=unknown ;;
  8945. esac
  8946. fi
  8947. # Report which librarie types wil actually be built
  8948. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  8949. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  8950. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  8951. echo "${ECHO_T}$can_build_shared" >&6; }
  8952. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  8953. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  8954. test "$can_build_shared" = "no" && enable_shared=no
  8955. # On AIX, shared libraries and static libraries use the same namespace, and
  8956. # are all built from PIC.
  8957. case "$host_os" in
  8958. aix3*)
  8959. test "$enable_shared" = yes && enable_static=no
  8960. if test -n "$RANLIB"; then
  8961. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8962. postinstall_cmds='$RANLIB $lib'
  8963. fi
  8964. ;;
  8965. aix4* | aix5*)
  8966. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8967. test "$enable_shared" = yes && enable_static=no
  8968. fi
  8969. ;;
  8970. esac
  8971. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  8972. echo "${ECHO_T}$enable_shared" >&6; }
  8973. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  8974. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  8975. # Make sure either enable_shared or enable_static is yes.
  8976. test "$enable_shared" = yes || enable_static=yes
  8977. { echo "$as_me:$LINENO: result: $enable_static" >&5
  8978. echo "${ECHO_T}$enable_static" >&6; }
  8979. # The else clause should only fire when bootstrapping the
  8980. # libtool distribution, otherwise you forgot to ship ltmain.sh
  8981. # with your package, and you will get complaints that there are
  8982. # no rules to generate ltmain.sh.
  8983. if test -f "$ltmain"; then
  8984. # See if we are running on zsh, and set the options which allow our commands through
  8985. # without removal of \ escapes.
  8986. if test -n "${ZSH_VERSION+set}" ; then
  8987. setopt NO_GLOB_SUBST
  8988. fi
  8989. # Now quote all the things that may contain metacharacters while being
  8990. # careful not to overquote the AC_SUBSTed values. We take copies of the
  8991. # variables and quote the copies for generation of the libtool script.
  8992. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  8993. SED SHELL STRIP \
  8994. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  8995. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  8996. deplibs_check_method reload_flag reload_cmds need_locks \
  8997. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  8998. lt_cv_sys_global_symbol_to_c_name_address \
  8999. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  9000. old_postinstall_cmds old_postuninstall_cmds \
  9001. compiler \
  9002. CC \
  9003. LD \
  9004. lt_prog_compiler_wl \
  9005. lt_prog_compiler_pic \
  9006. lt_prog_compiler_static \
  9007. lt_prog_compiler_no_builtin_flag \
  9008. export_dynamic_flag_spec \
  9009. thread_safe_flag_spec \
  9010. whole_archive_flag_spec \
  9011. enable_shared_with_static_runtimes \
  9012. old_archive_cmds \
  9013. old_archive_from_new_cmds \
  9014. predep_objects \
  9015. postdep_objects \
  9016. predeps \
  9017. postdeps \
  9018. compiler_lib_search_path \
  9019. archive_cmds \
  9020. archive_expsym_cmds \
  9021. postinstall_cmds \
  9022. postuninstall_cmds \
  9023. old_archive_from_expsyms_cmds \
  9024. allow_undefined_flag \
  9025. no_undefined_flag \
  9026. export_symbols_cmds \
  9027. hardcode_libdir_flag_spec \
  9028. hardcode_libdir_flag_spec_ld \
  9029. hardcode_libdir_separator \
  9030. hardcode_automatic \
  9031. module_cmds \
  9032. module_expsym_cmds \
  9033. lt_cv_prog_compiler_c_o \
  9034. exclude_expsyms \
  9035. include_expsyms; do
  9036. case $var in
  9037. old_archive_cmds | \
  9038. old_archive_from_new_cmds | \
  9039. archive_cmds | \
  9040. archive_expsym_cmds | \
  9041. module_cmds | \
  9042. module_expsym_cmds | \
  9043. old_archive_from_expsyms_cmds | \
  9044. export_symbols_cmds | \
  9045. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  9046. postinstall_cmds | postuninstall_cmds | \
  9047. old_postinstall_cmds | old_postuninstall_cmds | \
  9048. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  9049. # Double-quote double-evaled strings.
  9050. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  9051. ;;
  9052. *)
  9053. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  9054. ;;
  9055. esac
  9056. done
  9057. case $lt_echo in
  9058. *'\$0 --fallback-echo"')
  9059. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  9060. ;;
  9061. esac
  9062. cfgfile="${ofile}T"
  9063. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  9064. $rm -f "$cfgfile"
  9065. { echo "$as_me:$LINENO: creating $ofile" >&5
  9066. echo "$as_me: creating $ofile" >&6;}
  9067. cat <<__EOF__ >> "$cfgfile"
  9068. #! $SHELL
  9069. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  9070. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  9071. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  9072. #
  9073. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  9074. # Free Software Foundation, Inc.
  9075. #
  9076. # This file is part of GNU Libtool:
  9077. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  9078. #
  9079. # This program is free software; you can redistribute it and/or modify
  9080. # it under the terms of the GNU General Public License as published by
  9081. # the Free Software Foundation; either version 2 of the License, or
  9082. # (at your option) any later version.
  9083. #
  9084. # This program is distributed in the hope that it will be useful, but
  9085. # WITHOUT ANY WARRANTY; without even the implied warranty of
  9086. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  9087. # General Public License for more details.
  9088. #
  9089. # You should have received a copy of the GNU General Public License
  9090. # along with this program; if not, write to the Free Software
  9091. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  9092. #
  9093. # As a special exception to the GNU General Public License, if you
  9094. # distribute this file as part of a program that contains a
  9095. # configuration script generated by Autoconf, you may include it under
  9096. # the same distribution terms that you use for the rest of that program.
  9097. # A sed program that does not truncate output.
  9098. SED=$lt_SED
  9099. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  9100. Xsed="$SED -e 1s/^X//"
  9101. # The HP-UX ksh and POSIX shell print the target directory to stdout
  9102. # if CDPATH is set.
  9103. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9104. # The names of the tagged configurations supported by this script.
  9105. available_tags=
  9106. # ### BEGIN LIBTOOL CONFIG
  9107. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  9108. # Shell to use when invoking shell scripts.
  9109. SHELL=$lt_SHELL
  9110. # Whether or not to build shared libraries.
  9111. build_libtool_libs=$enable_shared
  9112. # Whether or not to build static libraries.
  9113. build_old_libs=$enable_static
  9114. # Whether or not to add -lc for building shared libraries.
  9115. build_libtool_need_lc=$archive_cmds_need_lc
  9116. # Whether or not to disallow shared libs when runtime libs are static
  9117. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  9118. # Whether or not to optimize for fast installation.
  9119. fast_install=$enable_fast_install
  9120. # The host system.
  9121. host_alias=$host_alias
  9122. host=$host
  9123. host_os=$host_os
  9124. # The build system.
  9125. build_alias=$build_alias
  9126. build=$build
  9127. build_os=$build_os
  9128. # An echo program that does not interpret backslashes.
  9129. echo=$lt_echo
  9130. # The archiver.
  9131. AR=$lt_AR
  9132. AR_FLAGS=$lt_AR_FLAGS
  9133. # A C compiler.
  9134. LTCC=$lt_LTCC
  9135. # A language-specific compiler.
  9136. CC=$lt_compiler
  9137. # Is the compiler the GNU C compiler?
  9138. with_gcc=$GCC
  9139. # An ERE matcher.
  9140. EGREP=$lt_EGREP
  9141. # The linker used to build libraries.
  9142. LD=$lt_LD
  9143. # Whether we need hard or soft links.
  9144. LN_S=$lt_LN_S
  9145. # A BSD-compatible nm program.
  9146. NM=$lt_NM
  9147. # A symbol stripping program
  9148. STRIP=$lt_STRIP
  9149. # Used to examine libraries when file_magic_cmd begins "file"
  9150. MAGIC_CMD=$MAGIC_CMD
  9151. # Used on cygwin: DLL creation program.
  9152. DLLTOOL="$DLLTOOL"
  9153. # Used on cygwin: object dumper.
  9154. OBJDUMP="$OBJDUMP"
  9155. # Used on cygwin: assembler.
  9156. AS="$AS"
  9157. # The name of the directory that contains temporary libtool files.
  9158. objdir=$objdir
  9159. # How to create reloadable object files.
  9160. reload_flag=$lt_reload_flag
  9161. reload_cmds=$lt_reload_cmds
  9162. # How to pass a linker flag through the compiler.
  9163. wl=$lt_lt_prog_compiler_wl
  9164. # Object file suffix (normally "o").
  9165. objext="$ac_objext"
  9166. # Old archive suffix (normally "a").
  9167. libext="$libext"
  9168. # Shared library suffix (normally ".so").
  9169. shrext_cmds='$shrext_cmds'
  9170. # Executable file suffix (normally "").
  9171. exeext="$exeext"
  9172. # Additional compiler flags for building library objects.
  9173. pic_flag=$lt_lt_prog_compiler_pic
  9174. pic_mode=$pic_mode
  9175. # What is the maximum length of a command?
  9176. max_cmd_len=$lt_cv_sys_max_cmd_len
  9177. # Does compiler simultaneously support -c and -o options?
  9178. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  9179. # Must we lock files when doing compilation?
  9180. need_locks=$lt_need_locks
  9181. # Do we need the lib prefix for modules?
  9182. need_lib_prefix=$need_lib_prefix
  9183. # Do we need a version for libraries?
  9184. need_version=$need_version
  9185. # Whether dlopen is supported.
  9186. dlopen_support=$enable_dlopen
  9187. # Whether dlopen of programs is supported.
  9188. dlopen_self=$enable_dlopen_self
  9189. # Whether dlopen of statically linked programs is supported.
  9190. dlopen_self_static=$enable_dlopen_self_static
  9191. # Compiler flag to prevent dynamic linking.
  9192. link_static_flag=$lt_lt_prog_compiler_static
  9193. # Compiler flag to turn off builtin functions.
  9194. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  9195. # Compiler flag to allow reflexive dlopens.
  9196. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  9197. # Compiler flag to generate shared objects directly from archives.
  9198. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  9199. # Compiler flag to generate thread-safe objects.
  9200. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  9201. # Library versioning type.
  9202. version_type=$version_type
  9203. # Format of library name prefix.
  9204. libname_spec=$lt_libname_spec
  9205. # List of archive names. First name is the real one, the rest are links.
  9206. # The last name is the one that the linker finds with -lNAME.
  9207. library_names_spec=$lt_library_names_spec
  9208. # The coded name of the library, if different from the real name.
  9209. soname_spec=$lt_soname_spec
  9210. # Commands used to build and install an old-style archive.
  9211. RANLIB=$lt_RANLIB
  9212. old_archive_cmds=$lt_old_archive_cmds
  9213. old_postinstall_cmds=$lt_old_postinstall_cmds
  9214. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  9215. # Create an old-style archive from a shared archive.
  9216. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  9217. # Create a temporary old-style archive to link instead of a shared archive.
  9218. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  9219. # Commands used to build and install a shared archive.
  9220. archive_cmds=$lt_archive_cmds
  9221. archive_expsym_cmds=$lt_archive_expsym_cmds
  9222. postinstall_cmds=$lt_postinstall_cmds
  9223. postuninstall_cmds=$lt_postuninstall_cmds
  9224. # Commands used to build a loadable module (assumed same as above if empty)
  9225. module_cmds=$lt_module_cmds
  9226. module_expsym_cmds=$lt_module_expsym_cmds
  9227. # Commands to strip libraries.
  9228. old_striplib=$lt_old_striplib
  9229. striplib=$lt_striplib
  9230. # Dependencies to place before the objects being linked to create a
  9231. # shared library.
  9232. predep_objects=$lt_predep_objects
  9233. # Dependencies to place after the objects being linked to create a
  9234. # shared library.
  9235. postdep_objects=$lt_postdep_objects
  9236. # Dependencies to place before the objects being linked to create a
  9237. # shared library.
  9238. predeps=$lt_predeps
  9239. # Dependencies to place after the objects being linked to create a
  9240. # shared library.
  9241. postdeps=$lt_postdeps
  9242. # The library search path used internally by the compiler when linking
  9243. # a shared library.
  9244. compiler_lib_search_path=$lt_compiler_lib_search_path
  9245. # Method to check whether dependent libraries are shared objects.
  9246. deplibs_check_method=$lt_deplibs_check_method
  9247. # Command to use when deplibs_check_method == file_magic.
  9248. file_magic_cmd=$lt_file_magic_cmd
  9249. # Flag that allows shared libraries with undefined symbols to be built.
  9250. allow_undefined_flag=$lt_allow_undefined_flag
  9251. # Flag that forces no undefined symbols.
  9252. no_undefined_flag=$lt_no_undefined_flag
  9253. # Commands used to finish a libtool library installation in a directory.
  9254. finish_cmds=$lt_finish_cmds
  9255. # Same as above, but a single script fragment to be evaled but not shown.
  9256. finish_eval=$lt_finish_eval
  9257. # Take the output of nm and produce a listing of raw symbols and C names.
  9258. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  9259. # Transform the output of nm in a proper C declaration
  9260. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  9261. # Transform the output of nm in a C name address pair
  9262. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  9263. # This is the shared library runtime path variable.
  9264. runpath_var=$runpath_var
  9265. # This is the shared library path variable.
  9266. shlibpath_var=$shlibpath_var
  9267. # Is shlibpath searched before the hard-coded library search path?
  9268. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  9269. # How to hardcode a shared library path into an executable.
  9270. hardcode_action=$hardcode_action
  9271. # Whether we should hardcode library paths into libraries.
  9272. hardcode_into_libs=$hardcode_into_libs
  9273. # Flag to hardcode \$libdir into a binary during linking.
  9274. # This must work even if \$libdir does not exist.
  9275. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  9276. # If ld is used when linking, flag to hardcode \$libdir into
  9277. # a binary during linking. This must work even if \$libdir does
  9278. # not exist.
  9279. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  9280. # Whether we need a single -rpath flag with a separated argument.
  9281. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  9282. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  9283. # resulting binary.
  9284. hardcode_direct=$hardcode_direct
  9285. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  9286. # resulting binary.
  9287. hardcode_minus_L=$hardcode_minus_L
  9288. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  9289. # the resulting binary.
  9290. hardcode_shlibpath_var=$hardcode_shlibpath_var
  9291. # Set to yes if building a shared library automatically hardcodes DIR into the library
  9292. # and all subsequent libraries and executables linked against it.
  9293. hardcode_automatic=$hardcode_automatic
  9294. # Variables whose values should be saved in libtool wrapper scripts and
  9295. # restored at relink time.
  9296. variables_saved_for_relink="$variables_saved_for_relink"
  9297. # Whether libtool must link a program against all its dependency libraries.
  9298. link_all_deplibs=$link_all_deplibs
  9299. # Compile-time system search path for libraries
  9300. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  9301. # Run-time system search path for libraries
  9302. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  9303. # Fix the shell variable \$srcfile for the compiler.
  9304. fix_srcfile_path="$fix_srcfile_path"
  9305. # Set to yes if exported symbols are required.
  9306. always_export_symbols=$always_export_symbols
  9307. # The commands to list exported symbols.
  9308. export_symbols_cmds=$lt_export_symbols_cmds
  9309. # The commands to extract the exported symbol list from a shared archive.
  9310. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  9311. # Symbols that should not be listed in the preloaded symbols.
  9312. exclude_expsyms=$lt_exclude_expsyms
  9313. # Symbols that must always be exported.
  9314. include_expsyms=$lt_include_expsyms
  9315. # ### END LIBTOOL CONFIG
  9316. __EOF__
  9317. case $host_os in
  9318. aix3*)
  9319. cat <<\EOF >> "$cfgfile"
  9320. # AIX sometimes has problems with the GCC collect2 program. For some
  9321. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9322. # vanish in a puff of smoke.
  9323. if test "X${COLLECT_NAMES+set}" != Xset; then
  9324. COLLECT_NAMES=
  9325. export COLLECT_NAMES
  9326. fi
  9327. EOF
  9328. ;;
  9329. esac
  9330. # We use sed instead of cat because bash on DJGPP gets confused if
  9331. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  9332. # text mode, it properly converts lines to CR/LF. This bash problem
  9333. # is reportedly fixed, but why not run on old versions too?
  9334. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  9335. mv -f "$cfgfile" "$ofile" || \
  9336. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  9337. chmod +x "$ofile"
  9338. else
  9339. # If there is no Makefile yet, we rely on a make rule to execute
  9340. # `config.status --recheck' to rerun these tests and create the
  9341. # libtool script then.
  9342. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  9343. if test -f "$ltmain_in"; then
  9344. test -f Makefile && make "$ltmain"
  9345. fi
  9346. fi
  9347. ac_ext=c
  9348. ac_cpp='$CPP $CPPFLAGS'
  9349. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9350. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9351. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9352. CC="$lt_save_CC"
  9353. # Check whether --with-tags was given.
  9354. if test "${with_tags+set}" = set; then
  9355. withval=$with_tags; tagnames="$withval"
  9356. fi
  9357. if test -f "$ltmain" && test -n "$tagnames"; then
  9358. if test ! -f "${ofile}"; then
  9359. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  9360. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  9361. fi
  9362. if test -z "$LTCC"; then
  9363. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  9364. if test -z "$LTCC"; then
  9365. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  9366. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  9367. else
  9368. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  9369. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  9370. fi
  9371. fi
  9372. # Extract list of available tagged configurations in $ofile.
  9373. # Note that this assumes the entire list is on one line.
  9374. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  9375. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9376. for tagname in $tagnames; do
  9377. IFS="$lt_save_ifs"
  9378. # Check whether tagname contains only valid characters
  9379. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  9380. "") ;;
  9381. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  9382. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  9383. { (exit 1); exit 1; }; }
  9384. ;;
  9385. esac
  9386. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  9387. then
  9388. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  9389. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  9390. { (exit 1); exit 1; }; }
  9391. fi
  9392. # Update the list of available tags.
  9393. if test -n "$tagname"; then
  9394. echo appending configuration tag \"$tagname\" to $ofile
  9395. case $tagname in
  9396. CXX)
  9397. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9398. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9399. (test "X$CXX" != "Xg++"))) ; then
  9400. ac_ext=cpp
  9401. ac_cpp='$CXXCPP $CPPFLAGS'
  9402. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9403. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9404. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9405. archive_cmds_need_lc_CXX=no
  9406. allow_undefined_flag_CXX=
  9407. always_export_symbols_CXX=no
  9408. archive_expsym_cmds_CXX=
  9409. export_dynamic_flag_spec_CXX=
  9410. hardcode_direct_CXX=no
  9411. hardcode_libdir_flag_spec_CXX=
  9412. hardcode_libdir_flag_spec_ld_CXX=
  9413. hardcode_libdir_separator_CXX=
  9414. hardcode_minus_L_CXX=no
  9415. hardcode_automatic_CXX=no
  9416. module_cmds_CXX=
  9417. module_expsym_cmds_CXX=
  9418. link_all_deplibs_CXX=unknown
  9419. old_archive_cmds_CXX=$old_archive_cmds
  9420. no_undefined_flag_CXX=
  9421. whole_archive_flag_spec_CXX=
  9422. enable_shared_with_static_runtimes_CXX=no
  9423. # Dependencies to place before and after the object being linked:
  9424. predep_objects_CXX=
  9425. postdep_objects_CXX=
  9426. predeps_CXX=
  9427. postdeps_CXX=
  9428. compiler_lib_search_path_CXX=
  9429. # Source file extension for C++ test sources.
  9430. ac_ext=cc
  9431. # Object file extension for compiled C++ test sources.
  9432. objext=o
  9433. objext_CXX=$objext
  9434. # Code to be used in simple compile tests
  9435. lt_simple_compile_test_code="int some_variable = 0;\n"
  9436. # Code to be used in simple link tests
  9437. lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
  9438. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9439. # If no C compiler was specified, use CC.
  9440. LTCC=${LTCC-"$CC"}
  9441. # Allow CC to be a program name with arguments.
  9442. compiler=$CC
  9443. # save warnings/boilerplate of simple test code
  9444. ac_outfile=conftest.$ac_objext
  9445. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  9446. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  9447. _lt_compiler_boilerplate=`cat conftest.err`
  9448. $rm conftest*
  9449. ac_outfile=conftest.$ac_objext
  9450. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  9451. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  9452. _lt_linker_boilerplate=`cat conftest.err`
  9453. $rm conftest*
  9454. # Allow CC to be a program name with arguments.
  9455. lt_save_CC=$CC
  9456. lt_save_LD=$LD
  9457. lt_save_GCC=$GCC
  9458. GCC=$GXX
  9459. lt_save_with_gnu_ld=$with_gnu_ld
  9460. lt_save_path_LD=$lt_cv_path_LD
  9461. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9462. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9463. else
  9464. unset lt_cv_prog_gnu_ld
  9465. fi
  9466. if test -n "${lt_cv_path_LDCXX+set}"; then
  9467. lt_cv_path_LD=$lt_cv_path_LDCXX
  9468. else
  9469. unset lt_cv_path_LD
  9470. fi
  9471. test -z "${LDCXX+set}" || LD=$LDCXX
  9472. CC=${CXX-"c++"}
  9473. compiler=$CC
  9474. compiler_CXX=$CC
  9475. for cc_temp in $compiler""; do
  9476. case $cc_temp in
  9477. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9478. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9479. \-*) ;;
  9480. *) break;;
  9481. esac
  9482. done
  9483. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9484. # We don't want -fno-exception wen compiling C++ code, so set the
  9485. # no_builtin_flag separately
  9486. if test "$GXX" = yes; then
  9487. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9488. else
  9489. lt_prog_compiler_no_builtin_flag_CXX=
  9490. fi
  9491. if test "$GXX" = yes; then
  9492. # Set up default GNU C++ configuration
  9493. # Check whether --with-gnu-ld was given.
  9494. if test "${with_gnu_ld+set}" = set; then
  9495. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9496. else
  9497. with_gnu_ld=no
  9498. fi
  9499. ac_prog=ld
  9500. if test "$GCC" = yes; then
  9501. # Check if gcc -print-prog-name=ld gives a path.
  9502. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  9503. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  9504. case $host in
  9505. *-*-mingw*)
  9506. # gcc leaves a trailing carriage return which upsets mingw
  9507. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9508. *)
  9509. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9510. esac
  9511. case $ac_prog in
  9512. # Accept absolute paths.
  9513. [\\/]* | ?:[\\/]*)
  9514. re_direlt='/[^/][^/]*/\.\./'
  9515. # Canonicalize the pathname of ld
  9516. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  9517. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9518. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  9519. done
  9520. test -z "$LD" && LD="$ac_prog"
  9521. ;;
  9522. "")
  9523. # If it fails, then pretend we aren't using GCC.
  9524. ac_prog=ld
  9525. ;;
  9526. *)
  9527. # If it is relative, then search for the first ld in PATH.
  9528. with_gnu_ld=unknown
  9529. ;;
  9530. esac
  9531. elif test "$with_gnu_ld" = yes; then
  9532. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  9533. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  9534. else
  9535. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9536. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  9537. fi
  9538. if test "${lt_cv_path_LD+set}" = set; then
  9539. echo $ECHO_N "(cached) $ECHO_C" >&6
  9540. else
  9541. if test -z "$LD"; then
  9542. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9543. for ac_dir in $PATH; do
  9544. IFS="$lt_save_ifs"
  9545. test -z "$ac_dir" && ac_dir=.
  9546. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9547. lt_cv_path_LD="$ac_dir/$ac_prog"
  9548. # Check to see if the program is GNU ld. I'd rather use --version,
  9549. # but apparently some GNU ld's only accept -v.
  9550. # Break only if it was the GNU/non-GNU ld that we prefer.
  9551. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9552. *GNU* | *'with BFD'*)
  9553. test "$with_gnu_ld" != no && break
  9554. ;;
  9555. *)
  9556. test "$with_gnu_ld" != yes && break
  9557. ;;
  9558. esac
  9559. fi
  9560. done
  9561. IFS="$lt_save_ifs"
  9562. else
  9563. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9564. fi
  9565. fi
  9566. LD="$lt_cv_path_LD"
  9567. if test -n "$LD"; then
  9568. { echo "$as_me:$LINENO: result: $LD" >&5
  9569. echo "${ECHO_T}$LD" >&6; }
  9570. else
  9571. { echo "$as_me:$LINENO: result: no" >&5
  9572. echo "${ECHO_T}no" >&6; }
  9573. fi
  9574. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  9575. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  9576. { (exit 1); exit 1; }; }
  9577. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  9578. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  9579. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  9580. echo $ECHO_N "(cached) $ECHO_C" >&6
  9581. else
  9582. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  9583. case `$LD -v 2>&1 </dev/null` in
  9584. *GNU* | *'with BFD'*)
  9585. lt_cv_prog_gnu_ld=yes
  9586. ;;
  9587. *)
  9588. lt_cv_prog_gnu_ld=no
  9589. ;;
  9590. esac
  9591. fi
  9592. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  9593. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  9594. with_gnu_ld=$lt_cv_prog_gnu_ld
  9595. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9596. # archiving commands below assume that GNU ld is being used.
  9597. if test "$with_gnu_ld" = yes; then
  9598. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9599. 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'
  9600. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9601. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9602. # If archive_cmds runs LD, not CC, wlarc should be empty
  9603. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9604. # investigate it a little bit more. (MM)
  9605. wlarc='${wl}'
  9606. # ancient GNU ld didn't support --whole-archive et. al.
  9607. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  9608. grep 'no-whole-archive' > /dev/null; then
  9609. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9610. else
  9611. whole_archive_flag_spec_CXX=
  9612. fi
  9613. else
  9614. with_gnu_ld=no
  9615. wlarc=
  9616. # A generic and very simple default shared library creation
  9617. # command for GNU C++ for the case where it uses the native
  9618. # linker, instead of GNU ld. If possible, this setting should
  9619. # overridden to take advantage of the native linker features on
  9620. # the platform it is being used on.
  9621. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9622. fi
  9623. # Commands to make compiler produce verbose output that lists
  9624. # what "hidden" libraries, object files and flags are used when
  9625. # linking a shared library.
  9626. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9627. else
  9628. GXX=no
  9629. with_gnu_ld=no
  9630. wlarc=
  9631. fi
  9632. # PORTME: fill in a description of your system's C++ link characteristics
  9633. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9634. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  9635. ld_shlibs_CXX=yes
  9636. case $host_os in
  9637. aix3*)
  9638. # FIXME: insert proper C++ library support
  9639. ld_shlibs_CXX=no
  9640. ;;
  9641. aix4* | aix5*)
  9642. if test "$host_cpu" = ia64; then
  9643. # On IA64, the linker does run time linking by default, so we don't
  9644. # have to do anything special.
  9645. aix_use_runtimelinking=no
  9646. exp_sym_flag='-Bexport'
  9647. no_entry_flag=""
  9648. else
  9649. aix_use_runtimelinking=no
  9650. # Test if we are trying to use run time linking or normal
  9651. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9652. # need to do runtime linking.
  9653. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  9654. for ld_flag in $LDFLAGS; do
  9655. case $ld_flag in
  9656. *-brtl*)
  9657. aix_use_runtimelinking=yes
  9658. break
  9659. ;;
  9660. esac
  9661. done
  9662. esac
  9663. exp_sym_flag='-bexport'
  9664. no_entry_flag='-bnoentry'
  9665. fi
  9666. # When large executables or shared objects are built, AIX ld can
  9667. # have problems creating the table of contents. If linking a library
  9668. # or program results in "error TOC overflow" add -mminimal-toc to
  9669. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9670. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9671. archive_cmds_CXX=''
  9672. hardcode_direct_CXX=yes
  9673. hardcode_libdir_separator_CXX=':'
  9674. link_all_deplibs_CXX=yes
  9675. if test "$GXX" = yes; then
  9676. case $host_os in aix4.[012]|aix4.[012].*)
  9677. # We only want to do this on AIX 4.2 and lower, the check
  9678. # below for broken collect2 doesn't work under 4.3+
  9679. collect2name=`${CC} -print-prog-name=collect2`
  9680. if test -f "$collect2name" && \
  9681. strings "$collect2name" | grep resolve_lib_name >/dev/null
  9682. then
  9683. # We have reworked collect2
  9684. hardcode_direct_CXX=yes
  9685. else
  9686. # We have old collect2
  9687. hardcode_direct_CXX=unsupported
  9688. # It fails to find uninstalled libraries when the uninstalled
  9689. # path is not listed in the libpath. Setting hardcode_minus_L
  9690. # to unsupported forces relinking
  9691. hardcode_minus_L_CXX=yes
  9692. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9693. hardcode_libdir_separator_CXX=
  9694. fi
  9695. esac
  9696. shared_flag='-shared'
  9697. if test "$aix_use_runtimelinking" = yes; then
  9698. shared_flag="$shared_flag "'${wl}-G'
  9699. fi
  9700. else
  9701. # not using gcc
  9702. if test "$host_cpu" = ia64; then
  9703. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9704. # chokes on -Wl,-G. The following line is correct:
  9705. shared_flag='-G'
  9706. else
  9707. if test "$aix_use_runtimelinking" = yes; then
  9708. shared_flag='${wl}-G'
  9709. else
  9710. shared_flag='${wl}-bM:SRE'
  9711. fi
  9712. fi
  9713. fi
  9714. # It seems that -bexpall does not export symbols beginning with
  9715. # underscore (_), so it is better to generate a list of symbols to export.
  9716. always_export_symbols_CXX=yes
  9717. if test "$aix_use_runtimelinking" = yes; then
  9718. # Warning - without using the other runtime loading flags (-brtl),
  9719. # -berok will link without error, but may produce a broken library.
  9720. allow_undefined_flag_CXX='-berok'
  9721. # Determine the default libpath from the value encoded in an empty executable.
  9722. cat >conftest.$ac_ext <<_ACEOF
  9723. /* confdefs.h. */
  9724. _ACEOF
  9725. cat confdefs.h >>conftest.$ac_ext
  9726. cat >>conftest.$ac_ext <<_ACEOF
  9727. /* end confdefs.h. */
  9728. int
  9729. main ()
  9730. {
  9731. ;
  9732. return 0;
  9733. }
  9734. _ACEOF
  9735. rm -f conftest.$ac_objext conftest$ac_exeext
  9736. if { (ac_try="$ac_link"
  9737. case "(($ac_try" in
  9738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9739. *) ac_try_echo=$ac_try;;
  9740. esac
  9741. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9742. (eval "$ac_link") 2>conftest.er1
  9743. ac_status=$?
  9744. grep -v '^ *+' conftest.er1 >conftest.err
  9745. rm -f conftest.er1
  9746. cat conftest.err >&5
  9747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9748. (exit $ac_status); } && {
  9749. test -z "$ac_cxx_werror_flag" ||
  9750. test ! -s conftest.err
  9751. } && test -s conftest$ac_exeext &&
  9752. $as_test_x conftest$ac_exeext; then
  9753. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9754. }'`
  9755. # Check for a 64-bit object if we didn't find anything.
  9756. 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; }
  9757. }'`; fi
  9758. else
  9759. echo "$as_me: failed program was:" >&5
  9760. sed 's/^/| /' conftest.$ac_ext >&5
  9761. fi
  9762. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9763. conftest$ac_exeext conftest.$ac_ext
  9764. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9765. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9766. 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"
  9767. else
  9768. if test "$host_cpu" = ia64; then
  9769. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  9770. allow_undefined_flag_CXX="-z nodefs"
  9771. 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"
  9772. else
  9773. # Determine the default libpath from the value encoded in an empty executable.
  9774. cat >conftest.$ac_ext <<_ACEOF
  9775. /* confdefs.h. */
  9776. _ACEOF
  9777. cat confdefs.h >>conftest.$ac_ext
  9778. cat >>conftest.$ac_ext <<_ACEOF
  9779. /* end confdefs.h. */
  9780. int
  9781. main ()
  9782. {
  9783. ;
  9784. return 0;
  9785. }
  9786. _ACEOF
  9787. rm -f conftest.$ac_objext conftest$ac_exeext
  9788. if { (ac_try="$ac_link"
  9789. case "(($ac_try" in
  9790. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9791. *) ac_try_echo=$ac_try;;
  9792. esac
  9793. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9794. (eval "$ac_link") 2>conftest.er1
  9795. ac_status=$?
  9796. grep -v '^ *+' conftest.er1 >conftest.err
  9797. rm -f conftest.er1
  9798. cat conftest.err >&5
  9799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9800. (exit $ac_status); } && {
  9801. test -z "$ac_cxx_werror_flag" ||
  9802. test ! -s conftest.err
  9803. } && test -s conftest$ac_exeext &&
  9804. $as_test_x conftest$ac_exeext; then
  9805. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9806. }'`
  9807. # Check for a 64-bit object if we didn't find anything.
  9808. 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; }
  9809. }'`; fi
  9810. else
  9811. echo "$as_me: failed program was:" >&5
  9812. sed 's/^/| /' conftest.$ac_ext >&5
  9813. fi
  9814. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9815. conftest$ac_exeext conftest.$ac_ext
  9816. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9817. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9818. # Warning - without using the other run time loading flags,
  9819. # -berok will link without error, but may produce a broken library.
  9820. no_undefined_flag_CXX=' ${wl}-bernotok'
  9821. allow_undefined_flag_CXX=' ${wl}-berok'
  9822. # -bexpall does not export symbols beginning with underscore (_)
  9823. always_export_symbols_CXX=yes
  9824. # Exported symbols can be pulled into shared objects from archives
  9825. whole_archive_flag_spec_CXX=' '
  9826. archive_cmds_need_lc_CXX=yes
  9827. # This is similar to how AIX traditionally builds it's shared libraries.
  9828. 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'
  9829. fi
  9830. fi
  9831. ;;
  9832. chorus*)
  9833. case $cc_basename in
  9834. *)
  9835. # FIXME: insert proper C++ library support
  9836. ld_shlibs_CXX=no
  9837. ;;
  9838. esac
  9839. ;;
  9840. cygwin* | mingw* | pw32*)
  9841. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  9842. # as there is no search path for DLLs.
  9843. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9844. allow_undefined_flag_CXX=unsupported
  9845. always_export_symbols_CXX=no
  9846. enable_shared_with_static_runtimes_CXX=yes
  9847. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9848. 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'
  9849. # If the export-symbols file already is a .def file (1st line
  9850. # is EXPORTS), use it as is; otherwise, prepend...
  9851. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9852. cp $export_symbols $output_objdir/$soname.def;
  9853. else
  9854. echo EXPORTS > $output_objdir/$soname.def;
  9855. cat $export_symbols >> $output_objdir/$soname.def;
  9856. fi~
  9857. $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'
  9858. else
  9859. ld_shlibs_CXX=no
  9860. fi
  9861. ;;
  9862. darwin* | rhapsody*)
  9863. case "$host_os" in
  9864. rhapsody* | darwin1.[012])
  9865. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  9866. ;;
  9867. *) # Darwin 1.3 on
  9868. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  9869. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9870. else
  9871. case ${MACOSX_DEPLOYMENT_TARGET} in
  9872. 10.[012])
  9873. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9874. ;;
  9875. 10.*)
  9876. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  9877. ;;
  9878. esac
  9879. fi
  9880. ;;
  9881. esac
  9882. archive_cmds_need_lc_CXX=no
  9883. hardcode_direct_CXX=no
  9884. hardcode_automatic_CXX=yes
  9885. hardcode_shlibpath_var_CXX=unsupported
  9886. whole_archive_flag_spec_CXX=''
  9887. link_all_deplibs_CXX=yes
  9888. if test "$GXX" = yes ; then
  9889. lt_int_apple_cc_single_mod=no
  9890. output_verbose_link_cmd='echo'
  9891. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  9892. lt_int_apple_cc_single_mod=yes
  9893. fi
  9894. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9895. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  9896. else
  9897. 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'
  9898. fi
  9899. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9900. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  9901. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9902. 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}'
  9903. else
  9904. 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}'
  9905. fi
  9906. 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}'
  9907. else
  9908. case $cc_basename in
  9909. xlc*)
  9910. output_verbose_link_cmd='echo'
  9911. 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'
  9912. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9913. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  9914. 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}'
  9915. 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}'
  9916. ;;
  9917. *)
  9918. ld_shlibs_CXX=no
  9919. ;;
  9920. esac
  9921. fi
  9922. ;;
  9923. dgux*)
  9924. case $cc_basename in
  9925. ec++*)
  9926. # FIXME: insert proper C++ library support
  9927. ld_shlibs_CXX=no
  9928. ;;
  9929. ghcx*)
  9930. # Green Hills C++ Compiler
  9931. # FIXME: insert proper C++ library support
  9932. ld_shlibs_CXX=no
  9933. ;;
  9934. *)
  9935. # FIXME: insert proper C++ library support
  9936. ld_shlibs_CXX=no
  9937. ;;
  9938. esac
  9939. ;;
  9940. freebsd[12]*)
  9941. # C++ shared libraries reported to be fairly broken before switch to ELF
  9942. ld_shlibs_CXX=no
  9943. ;;
  9944. freebsd-elf*)
  9945. archive_cmds_need_lc_CXX=no
  9946. ;;
  9947. freebsd* | kfreebsd*-gnu | dragonfly*)
  9948. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9949. # conventions
  9950. ld_shlibs_CXX=yes
  9951. ;;
  9952. gnu*)
  9953. ;;
  9954. hpux9*)
  9955. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9956. hardcode_libdir_separator_CXX=:
  9957. export_dynamic_flag_spec_CXX='${wl}-E'
  9958. hardcode_direct_CXX=yes
  9959. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9960. # but as the default
  9961. # location of the library.
  9962. case $cc_basename in
  9963. CC*)
  9964. # FIXME: insert proper C++ library support
  9965. ld_shlibs_CXX=no
  9966. ;;
  9967. aCC*)
  9968. 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'
  9969. # Commands to make compiler produce verbose output that lists
  9970. # what "hidden" libraries, object files and flags are used when
  9971. # linking a shared library.
  9972. #
  9973. # There doesn't appear to be a way to prevent this compiler from
  9974. # explicitly linking system object files so we need to strip them
  9975. # from the output so that they don't get included in the library
  9976. # dependencies.
  9977. 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'
  9978. ;;
  9979. *)
  9980. if test "$GXX" = yes; then
  9981. 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'
  9982. else
  9983. # FIXME: insert proper C++ library support
  9984. ld_shlibs_CXX=no
  9985. fi
  9986. ;;
  9987. esac
  9988. ;;
  9989. hpux10*|hpux11*)
  9990. if test $with_gnu_ld = no; then
  9991. case "$host_cpu" in
  9992. hppa*64*)
  9993. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9994. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  9995. hardcode_libdir_separator_CXX=:
  9996. ;;
  9997. ia64*)
  9998. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9999. ;;
  10000. *)
  10001. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10002. hardcode_libdir_separator_CXX=:
  10003. export_dynamic_flag_spec_CXX='${wl}-E'
  10004. ;;
  10005. esac
  10006. fi
  10007. case "$host_cpu" in
  10008. hppa*64*)
  10009. hardcode_direct_CXX=no
  10010. hardcode_shlibpath_var_CXX=no
  10011. ;;
  10012. ia64*)
  10013. hardcode_direct_CXX=no
  10014. hardcode_shlibpath_var_CXX=no
  10015. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10016. # but as the default
  10017. # location of the library.
  10018. ;;
  10019. *)
  10020. hardcode_direct_CXX=yes
  10021. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10022. # but as the default
  10023. # location of the library.
  10024. ;;
  10025. esac
  10026. case $cc_basename in
  10027. CC*)
  10028. # FIXME: insert proper C++ library support
  10029. ld_shlibs_CXX=no
  10030. ;;
  10031. aCC*)
  10032. case "$host_cpu" in
  10033. hppa*64*|ia64*)
  10034. archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  10035. ;;
  10036. *)
  10037. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10038. ;;
  10039. esac
  10040. # Commands to make compiler produce verbose output that lists
  10041. # what "hidden" libraries, object files and flags are used when
  10042. # linking a shared library.
  10043. #
  10044. # There doesn't appear to be a way to prevent this compiler from
  10045. # explicitly linking system object files so we need to strip them
  10046. # from the output so that they don't get included in the library
  10047. # dependencies.
  10048. 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'
  10049. ;;
  10050. *)
  10051. if test "$GXX" = yes; then
  10052. if test $with_gnu_ld = no; then
  10053. case "$host_cpu" in
  10054. ia64*|hppa*64*)
  10055. archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  10056. ;;
  10057. *)
  10058. 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'
  10059. ;;
  10060. esac
  10061. fi
  10062. else
  10063. # FIXME: insert proper C++ library support
  10064. ld_shlibs_CXX=no
  10065. fi
  10066. ;;
  10067. esac
  10068. ;;
  10069. irix5* | irix6*)
  10070. case $cc_basename in
  10071. CC*)
  10072. # SGI C++
  10073. 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'
  10074. # Archives containing C++ object files must be created using
  10075. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10076. # necessary to make sure instantiated templates are included
  10077. # in the archive.
  10078. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10079. ;;
  10080. *)
  10081. if test "$GXX" = yes; then
  10082. if test "$with_gnu_ld" = no; then
  10083. 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'
  10084. else
  10085. 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'
  10086. fi
  10087. fi
  10088. link_all_deplibs_CXX=yes
  10089. ;;
  10090. esac
  10091. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10092. hardcode_libdir_separator_CXX=:
  10093. ;;
  10094. linux*)
  10095. case $cc_basename in
  10096. KCC*)
  10097. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10098. # KCC will only create a shared library if the output file
  10099. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10100. # to its proper name (with version) after linking.
  10101. 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'
  10102. 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'
  10103. # Commands to make compiler produce verbose output that lists
  10104. # what "hidden" libraries, object files and flags are used when
  10105. # linking a shared library.
  10106. #
  10107. # There doesn't appear to be a way to prevent this compiler from
  10108. # explicitly linking system object files so we need to strip them
  10109. # from the output so that they don't get included in the library
  10110. # dependencies.
  10111. 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'
  10112. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  10113. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10114. # Archives containing C++ object files must be created using
  10115. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10116. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10117. ;;
  10118. icpc*)
  10119. # Intel C++
  10120. with_gnu_ld=yes
  10121. # version 8.0 and above of icpc choke on multiply defined symbols
  10122. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10123. # earlier do not add the objects themselves.
  10124. case `$CC -V 2>&1` in
  10125. *"Version 7."*)
  10126. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10127. 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'
  10128. ;;
  10129. *) # Version 8.0 or newer
  10130. tmp_idyn=
  10131. case $host_cpu in
  10132. ia64*) tmp_idyn=' -i_dynamic';;
  10133. esac
  10134. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10135. 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'
  10136. ;;
  10137. esac
  10138. archive_cmds_need_lc_CXX=no
  10139. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10140. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10141. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10142. ;;
  10143. pgCC*)
  10144. # Portland Group C++ compiler
  10145. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10146. 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'
  10147. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10148. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10149. 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'
  10150. ;;
  10151. cxx*)
  10152. # Compaq C++
  10153. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10154. 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'
  10155. runpath_var=LD_RUN_PATH
  10156. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10157. hardcode_libdir_separator_CXX=:
  10158. # Commands to make compiler produce verbose output that lists
  10159. # what "hidden" libraries, object files and flags are used when
  10160. # linking a shared library.
  10161. #
  10162. # There doesn't appear to be a way to prevent this compiler from
  10163. # explicitly linking system object files so we need to strip them
  10164. # from the output so that they don't get included in the library
  10165. # dependencies.
  10166. 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'
  10167. ;;
  10168. esac
  10169. ;;
  10170. lynxos*)
  10171. # FIXME: insert proper C++ library support
  10172. ld_shlibs_CXX=no
  10173. ;;
  10174. m88k*)
  10175. # FIXME: insert proper C++ library support
  10176. ld_shlibs_CXX=no
  10177. ;;
  10178. mvs*)
  10179. case $cc_basename in
  10180. cxx*)
  10181. # FIXME: insert proper C++ library support
  10182. ld_shlibs_CXX=no
  10183. ;;
  10184. *)
  10185. # FIXME: insert proper C++ library support
  10186. ld_shlibs_CXX=no
  10187. ;;
  10188. esac
  10189. ;;
  10190. netbsd*)
  10191. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10192. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10193. wlarc=
  10194. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10195. hardcode_direct_CXX=yes
  10196. hardcode_shlibpath_var_CXX=no
  10197. fi
  10198. # Workaround some broken pre-1.5 toolchains
  10199. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10200. ;;
  10201. openbsd2*)
  10202. # C++ shared libraries are fairly broken
  10203. ld_shlibs_CXX=no
  10204. ;;
  10205. openbsd*)
  10206. hardcode_direct_CXX=yes
  10207. hardcode_shlibpath_var_CXX=no
  10208. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10209. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10210. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10211. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10212. export_dynamic_flag_spec_CXX='${wl}-E'
  10213. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10214. fi
  10215. output_verbose_link_cmd='echo'
  10216. ;;
  10217. osf3*)
  10218. case $cc_basename in
  10219. KCC*)
  10220. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10221. # KCC will only create a shared library if the output file
  10222. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10223. # to its proper name (with version) after linking.
  10224. 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'
  10225. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10226. hardcode_libdir_separator_CXX=:
  10227. # Archives containing C++ object files must be created using
  10228. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10229. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10230. ;;
  10231. RCC*)
  10232. # Rational C++ 2.4.1
  10233. # FIXME: insert proper C++ library support
  10234. ld_shlibs_CXX=no
  10235. ;;
  10236. cxx*)
  10237. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10238. 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'
  10239. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10240. hardcode_libdir_separator_CXX=:
  10241. # Commands to make compiler produce verbose output that lists
  10242. # what "hidden" libraries, object files and flags are used when
  10243. # linking a shared library.
  10244. #
  10245. # There doesn't appear to be a way to prevent this compiler from
  10246. # explicitly linking system object files so we need to strip them
  10247. # from the output so that they don't get included in the library
  10248. # dependencies.
  10249. 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'
  10250. ;;
  10251. *)
  10252. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10253. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10254. 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'
  10255. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10256. hardcode_libdir_separator_CXX=:
  10257. # Commands to make compiler produce verbose output that lists
  10258. # what "hidden" libraries, object files and flags are used when
  10259. # linking a shared library.
  10260. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10261. else
  10262. # FIXME: insert proper C++ library support
  10263. ld_shlibs_CXX=no
  10264. fi
  10265. ;;
  10266. esac
  10267. ;;
  10268. osf4* | osf5*)
  10269. case $cc_basename in
  10270. KCC*)
  10271. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10272. # KCC will only create a shared library if the output file
  10273. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10274. # to its proper name (with version) after linking.
  10275. 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'
  10276. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10277. hardcode_libdir_separator_CXX=:
  10278. # Archives containing C++ object files must be created using
  10279. # the KAI C++ compiler.
  10280. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  10281. ;;
  10282. RCC*)
  10283. # Rational C++ 2.4.1
  10284. # FIXME: insert proper C++ library support
  10285. ld_shlibs_CXX=no
  10286. ;;
  10287. cxx*)
  10288. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10289. 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'
  10290. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10291. echo "-hidden">> $lib.exp~
  10292. $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~
  10293. $rm $lib.exp'
  10294. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10295. hardcode_libdir_separator_CXX=:
  10296. # Commands to make compiler produce verbose output that lists
  10297. # what "hidden" libraries, object files and flags are used when
  10298. # linking a shared library.
  10299. #
  10300. # There doesn't appear to be a way to prevent this compiler from
  10301. # explicitly linking system object files so we need to strip them
  10302. # from the output so that they don't get included in the library
  10303. # dependencies.
  10304. 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'
  10305. ;;
  10306. *)
  10307. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10308. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10309. 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'
  10310. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10311. hardcode_libdir_separator_CXX=:
  10312. # Commands to make compiler produce verbose output that lists
  10313. # what "hidden" libraries, object files and flags are used when
  10314. # linking a shared library.
  10315. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10316. else
  10317. # FIXME: insert proper C++ library support
  10318. ld_shlibs_CXX=no
  10319. fi
  10320. ;;
  10321. esac
  10322. ;;
  10323. psos*)
  10324. # FIXME: insert proper C++ library support
  10325. ld_shlibs_CXX=no
  10326. ;;
  10327. sco*)
  10328. archive_cmds_need_lc_CXX=no
  10329. case $cc_basename in
  10330. CC*)
  10331. # FIXME: insert proper C++ library support
  10332. ld_shlibs_CXX=no
  10333. ;;
  10334. *)
  10335. # FIXME: insert proper C++ library support
  10336. ld_shlibs_CXX=no
  10337. ;;
  10338. esac
  10339. ;;
  10340. sunos4*)
  10341. case $cc_basename in
  10342. CC*)
  10343. # Sun C++ 4.x
  10344. # FIXME: insert proper C++ library support
  10345. ld_shlibs_CXX=no
  10346. ;;
  10347. lcc*)
  10348. # Lucid
  10349. # FIXME: insert proper C++ library support
  10350. ld_shlibs_CXX=no
  10351. ;;
  10352. *)
  10353. # FIXME: insert proper C++ library support
  10354. ld_shlibs_CXX=no
  10355. ;;
  10356. esac
  10357. ;;
  10358. solaris*)
  10359. case $cc_basename in
  10360. CC*)
  10361. # Sun C++ 4.2, 5.x and Centerline C++
  10362. no_undefined_flag_CXX=' -zdefs'
  10363. archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10364. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10365. $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'
  10366. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10367. hardcode_shlibpath_var_CXX=no
  10368. case $host_os in
  10369. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10370. *)
  10371. # The C++ compiler is used as linker so we must use $wl
  10372. # flag to pass the commands to the underlying system
  10373. # linker. We must also pass each convience library through
  10374. # to the system linker between allextract/defaultextract.
  10375. # The C++ compiler will combine linker options so we
  10376. # cannot just pass the convience library names through
  10377. # without $wl.
  10378. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10379. 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'
  10380. ;;
  10381. esac
  10382. link_all_deplibs_CXX=yes
  10383. # Commands to make compiler produce verbose output that lists
  10384. # what "hidden" libraries, object files and flags are used when
  10385. # linking a shared library.
  10386. #
  10387. # There doesn't appear to be a way to prevent this compiler from
  10388. # explicitly linking system object files so we need to strip them
  10389. # from the output so that they don't get included in the library
  10390. # dependencies.
  10391. 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'
  10392. # Archives containing C++ object files must be created using
  10393. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10394. # necessary to make sure instantiated templates are included
  10395. # in the archive.
  10396. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10397. ;;
  10398. gcx*)
  10399. # Green Hills C++ Compiler
  10400. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10401. # The C++ compiler must be used to create the archive.
  10402. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10403. ;;
  10404. *)
  10405. # GNU C++ compiler with Solaris linker
  10406. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10407. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10408. if $CC --version | grep -v '^2\.7' > /dev/null; then
  10409. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10410. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10411. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10412. # Commands to make compiler produce verbose output that lists
  10413. # what "hidden" libraries, object files and flags are used when
  10414. # linking a shared library.
  10415. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10416. else
  10417. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10418. # platform.
  10419. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10420. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10421. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10422. # Commands to make compiler produce verbose output that lists
  10423. # what "hidden" libraries, object files and flags are used when
  10424. # linking a shared library.
  10425. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10426. fi
  10427. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10428. fi
  10429. ;;
  10430. esac
  10431. ;;
  10432. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  10433. archive_cmds_need_lc_CXX=no
  10434. ;;
  10435. tandem*)
  10436. case $cc_basename in
  10437. NCC*)
  10438. # NonStop-UX NCC 3.20
  10439. # FIXME: insert proper C++ library support
  10440. ld_shlibs_CXX=no
  10441. ;;
  10442. *)
  10443. # FIXME: insert proper C++ library support
  10444. ld_shlibs_CXX=no
  10445. ;;
  10446. esac
  10447. ;;
  10448. vxworks*)
  10449. # FIXME: insert proper C++ library support
  10450. ld_shlibs_CXX=no
  10451. ;;
  10452. *)
  10453. # FIXME: insert proper C++ library support
  10454. ld_shlibs_CXX=no
  10455. ;;
  10456. esac
  10457. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10458. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  10459. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10460. GCC_CXX="$GXX"
  10461. LD_CXX="$LD"
  10462. cat > conftest.$ac_ext <<EOF
  10463. class Foo
  10464. {
  10465. public:
  10466. Foo (void) { a = 0; }
  10467. private:
  10468. int a;
  10469. };
  10470. EOF
  10471. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10472. (eval $ac_compile) 2>&5
  10473. ac_status=$?
  10474. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10475. (exit $ac_status); }; then
  10476. # Parse the compiler output and extract the necessary
  10477. # objects, libraries and library flags.
  10478. # Sentinel used to keep track of whether or not we are before
  10479. # the conftest object file.
  10480. pre_test_object_deps_done=no
  10481. # The `*' in the case matches for architectures that use `case' in
  10482. # $output_verbose_cmd can trigger glob expansion during the loop
  10483. # eval without this substitution.
  10484. output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  10485. for p in `eval $output_verbose_link_cmd`; do
  10486. case $p in
  10487. -L* | -R* | -l*)
  10488. # Some compilers place space between "-{L,R}" and the path.
  10489. # Remove the space.
  10490. if test $p = "-L" \
  10491. || test $p = "-R"; then
  10492. prev=$p
  10493. continue
  10494. else
  10495. prev=
  10496. fi
  10497. if test "$pre_test_object_deps_done" = no; then
  10498. case $p in
  10499. -L* | -R*)
  10500. # Internal compiler library paths should come after those
  10501. # provided the user. The postdeps already come after the
  10502. # user supplied libs so there is no need to process them.
  10503. if test -z "$compiler_lib_search_path_CXX"; then
  10504. compiler_lib_search_path_CXX="${prev}${p}"
  10505. else
  10506. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10507. fi
  10508. ;;
  10509. # The "-l" case would never come before the object being
  10510. # linked, so don't bother handling this case.
  10511. esac
  10512. else
  10513. if test -z "$postdeps_CXX"; then
  10514. postdeps_CXX="${prev}${p}"
  10515. else
  10516. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10517. fi
  10518. fi
  10519. ;;
  10520. *.$objext)
  10521. # This assumes that the test object file only shows up
  10522. # once in the compiler output.
  10523. if test "$p" = "conftest.$objext"; then
  10524. pre_test_object_deps_done=yes
  10525. continue
  10526. fi
  10527. if test "$pre_test_object_deps_done" = no; then
  10528. if test -z "$predep_objects_CXX"; then
  10529. predep_objects_CXX="$p"
  10530. else
  10531. predep_objects_CXX="$predep_objects_CXX $p"
  10532. fi
  10533. else
  10534. if test -z "$postdep_objects_CXX"; then
  10535. postdep_objects_CXX="$p"
  10536. else
  10537. postdep_objects_CXX="$postdep_objects_CXX $p"
  10538. fi
  10539. fi
  10540. ;;
  10541. *) ;; # Ignore the rest.
  10542. esac
  10543. done
  10544. # Clean up.
  10545. rm -f a.out a.exe
  10546. else
  10547. echo "libtool.m4: error: problem compiling CXX test program"
  10548. fi
  10549. $rm -f confest.$objext
  10550. case " $postdeps_CXX " in
  10551. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10552. esac
  10553. lt_prog_compiler_wl_CXX=
  10554. lt_prog_compiler_pic_CXX=
  10555. lt_prog_compiler_static_CXX=
  10556. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  10557. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  10558. # C++ specific cases for pic, static, wl, etc.
  10559. if test "$GXX" = yes; then
  10560. lt_prog_compiler_wl_CXX='-Wl,'
  10561. lt_prog_compiler_static_CXX='-static'
  10562. case $host_os in
  10563. aix*)
  10564. # All AIX code is PIC.
  10565. if test "$host_cpu" = ia64; then
  10566. # AIX 5 now supports IA64 processor
  10567. lt_prog_compiler_static_CXX='-Bstatic'
  10568. fi
  10569. ;;
  10570. amigaos*)
  10571. # FIXME: we need at least 68020 code to build shared libraries, but
  10572. # adding the `-m68020' flag to GCC prevents building anything better,
  10573. # like `-m68040'.
  10574. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  10575. ;;
  10576. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10577. # PIC is the default for these OSes.
  10578. ;;
  10579. mingw* | os2* | pw32*)
  10580. # This hack is so that the source file can tell whether it is being
  10581. # built for inclusion in a dll (and should export symbols for example).
  10582. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  10583. ;;
  10584. darwin* | rhapsody*)
  10585. # PIC is the default on this platform
  10586. # Common symbols not allowed in MH_DYLIB files
  10587. lt_prog_compiler_pic_CXX='-fno-common'
  10588. ;;
  10589. *djgpp*)
  10590. # DJGPP does not support shared libraries at all
  10591. lt_prog_compiler_pic_CXX=
  10592. ;;
  10593. sysv4*MP*)
  10594. if test -d /usr/nec; then
  10595. lt_prog_compiler_pic_CXX=-Kconform_pic
  10596. fi
  10597. ;;
  10598. hpux*)
  10599. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10600. # not for PA HP-UX.
  10601. case "$host_cpu" in
  10602. hppa*64*|ia64*)
  10603. ;;
  10604. *)
  10605. lt_prog_compiler_pic_CXX='-fPIC'
  10606. ;;
  10607. esac
  10608. ;;
  10609. *)
  10610. lt_prog_compiler_pic_CXX='-fPIC'
  10611. ;;
  10612. esac
  10613. else
  10614. case $host_os in
  10615. aix4* | aix5*)
  10616. # All AIX code is PIC.
  10617. if test "$host_cpu" = ia64; then
  10618. # AIX 5 now supports IA64 processor
  10619. lt_prog_compiler_static_CXX='-Bstatic'
  10620. else
  10621. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  10622. fi
  10623. ;;
  10624. chorus*)
  10625. case $cc_basename in
  10626. cxch68*)
  10627. # Green Hills C++ Compiler
  10628. # _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"
  10629. ;;
  10630. esac
  10631. ;;
  10632. darwin*)
  10633. # PIC is the default on this platform
  10634. # Common symbols not allowed in MH_DYLIB files
  10635. case $cc_basename in
  10636. xlc*)
  10637. lt_prog_compiler_pic_CXX='-qnocommon'
  10638. lt_prog_compiler_wl_CXX='-Wl,'
  10639. ;;
  10640. esac
  10641. ;;
  10642. dgux*)
  10643. case $cc_basename in
  10644. ec++*)
  10645. lt_prog_compiler_pic_CXX='-KPIC'
  10646. ;;
  10647. ghcx*)
  10648. # Green Hills C++ Compiler
  10649. lt_prog_compiler_pic_CXX='-pic'
  10650. ;;
  10651. *)
  10652. ;;
  10653. esac
  10654. ;;
  10655. freebsd* | kfreebsd*-gnu | dragonfly*)
  10656. # FreeBSD uses GNU C++
  10657. ;;
  10658. hpux9* | hpux10* | hpux11*)
  10659. case $cc_basename in
  10660. CC*)
  10661. lt_prog_compiler_wl_CXX='-Wl,'
  10662. lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  10663. if test "$host_cpu" != ia64; then
  10664. lt_prog_compiler_pic_CXX='+Z'
  10665. fi
  10666. ;;
  10667. aCC*)
  10668. lt_prog_compiler_wl_CXX='-Wl,'
  10669. lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  10670. case "$host_cpu" in
  10671. hppa*64*|ia64*)
  10672. # +Z the default
  10673. ;;
  10674. *)
  10675. lt_prog_compiler_pic_CXX='+Z'
  10676. ;;
  10677. esac
  10678. ;;
  10679. *)
  10680. ;;
  10681. esac
  10682. ;;
  10683. irix5* | irix6* | nonstopux*)
  10684. case $cc_basename in
  10685. CC*)
  10686. lt_prog_compiler_wl_CXX='-Wl,'
  10687. lt_prog_compiler_static_CXX='-non_shared'
  10688. # CC pic flag -KPIC is the default.
  10689. ;;
  10690. *)
  10691. ;;
  10692. esac
  10693. ;;
  10694. linux*)
  10695. case $cc_basename in
  10696. KCC*)
  10697. # KAI C++ Compiler
  10698. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10699. lt_prog_compiler_pic_CXX='-fPIC'
  10700. ;;
  10701. icpc* | ecpc*)
  10702. # Intel C++
  10703. lt_prog_compiler_wl_CXX='-Wl,'
  10704. lt_prog_compiler_pic_CXX='-KPIC'
  10705. lt_prog_compiler_static_CXX='-static'
  10706. ;;
  10707. pgCC*)
  10708. # Portland Group C++ compiler.
  10709. lt_prog_compiler_wl_CXX='-Wl,'
  10710. lt_prog_compiler_pic_CXX='-fpic'
  10711. lt_prog_compiler_static_CXX='-static'
  10712. ;;
  10713. cxx*)
  10714. # Compaq C++
  10715. # Make sure the PIC flag is empty. It appears that all Alpha
  10716. # Linux and Compaq Tru64 Unix objects are PIC.
  10717. lt_prog_compiler_pic_CXX=
  10718. lt_prog_compiler_static_CXX='-non_shared'
  10719. ;;
  10720. *)
  10721. ;;
  10722. esac
  10723. ;;
  10724. lynxos*)
  10725. ;;
  10726. m88k*)
  10727. ;;
  10728. mvs*)
  10729. case $cc_basename in
  10730. cxx*)
  10731. lt_prog_compiler_pic_CXX='-W c,exportall'
  10732. ;;
  10733. *)
  10734. ;;
  10735. esac
  10736. ;;
  10737. netbsd*)
  10738. ;;
  10739. osf3* | osf4* | osf5*)
  10740. case $cc_basename in
  10741. KCC*)
  10742. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10743. ;;
  10744. RCC*)
  10745. # Rational C++ 2.4.1
  10746. lt_prog_compiler_pic_CXX='-pic'
  10747. ;;
  10748. cxx*)
  10749. # Digital/Compaq C++
  10750. lt_prog_compiler_wl_CXX='-Wl,'
  10751. # Make sure the PIC flag is empty. It appears that all Alpha
  10752. # Linux and Compaq Tru64 Unix objects are PIC.
  10753. lt_prog_compiler_pic_CXX=
  10754. lt_prog_compiler_static_CXX='-non_shared'
  10755. ;;
  10756. *)
  10757. ;;
  10758. esac
  10759. ;;
  10760. psos*)
  10761. ;;
  10762. sco*)
  10763. case $cc_basename in
  10764. CC*)
  10765. lt_prog_compiler_pic_CXX='-fPIC'
  10766. ;;
  10767. *)
  10768. ;;
  10769. esac
  10770. ;;
  10771. solaris*)
  10772. case $cc_basename in
  10773. CC*)
  10774. # Sun C++ 4.2, 5.x and Centerline C++
  10775. lt_prog_compiler_pic_CXX='-KPIC'
  10776. lt_prog_compiler_static_CXX='-Bstatic'
  10777. lt_prog_compiler_wl_CXX='-Qoption ld '
  10778. ;;
  10779. gcx*)
  10780. # Green Hills C++ Compiler
  10781. lt_prog_compiler_pic_CXX='-PIC'
  10782. ;;
  10783. *)
  10784. ;;
  10785. esac
  10786. ;;
  10787. sunos4*)
  10788. case $cc_basename in
  10789. CC*)
  10790. # Sun C++ 4.x
  10791. lt_prog_compiler_pic_CXX='-pic'
  10792. lt_prog_compiler_static_CXX='-Bstatic'
  10793. ;;
  10794. lcc*)
  10795. # Lucid
  10796. lt_prog_compiler_pic_CXX='-pic'
  10797. ;;
  10798. *)
  10799. ;;
  10800. esac
  10801. ;;
  10802. tandem*)
  10803. case $cc_basename in
  10804. NCC*)
  10805. # NonStop-UX NCC 3.20
  10806. lt_prog_compiler_pic_CXX='-KPIC'
  10807. ;;
  10808. *)
  10809. ;;
  10810. esac
  10811. ;;
  10812. unixware*)
  10813. ;;
  10814. vxworks*)
  10815. ;;
  10816. *)
  10817. lt_prog_compiler_can_build_shared_CXX=no
  10818. ;;
  10819. esac
  10820. fi
  10821. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  10822. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  10823. #
  10824. # Check to make sure the PIC flag actually works.
  10825. #
  10826. if test -n "$lt_prog_compiler_pic_CXX"; then
  10827. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  10828. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  10829. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  10830. echo $ECHO_N "(cached) $ECHO_C" >&6
  10831. else
  10832. lt_prog_compiler_pic_works_CXX=no
  10833. ac_outfile=conftest.$ac_objext
  10834. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10835. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  10836. # Insert the option either (1) after the last *FLAGS variable, or
  10837. # (2) before a word containing "conftest.", or (3) at the end.
  10838. # Note that $ac_compile itself does not contain backslashes and begins
  10839. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10840. # The option is referenced via a variable to avoid confusing sed.
  10841. lt_compile=`echo "$ac_compile" | $SED \
  10842. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  10843. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10844. -e 's:$: $lt_compiler_flag:'`
  10845. (eval echo "\"\$as_me:12097: $lt_compile\"" >&5)
  10846. (eval "$lt_compile" 2>conftest.err)
  10847. ac_status=$?
  10848. cat conftest.err >&5
  10849. echo "$as_me:12101: \$? = $ac_status" >&5
  10850. if (exit $ac_status) && test -s "$ac_outfile"; then
  10851. # The compiler can only warn and ignore the option if not recognized
  10852. # So say no if there are warnings other than the usual output.
  10853. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  10854. $SED '/^$/d' conftest.err >conftest.er2
  10855. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  10856. lt_prog_compiler_pic_works_CXX=yes
  10857. fi
  10858. fi
  10859. $rm conftest*
  10860. fi
  10861. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  10862. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
  10863. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  10864. case $lt_prog_compiler_pic_CXX in
  10865. "" | " "*) ;;
  10866. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  10867. esac
  10868. else
  10869. lt_prog_compiler_pic_CXX=
  10870. lt_prog_compiler_can_build_shared_CXX=no
  10871. fi
  10872. fi
  10873. case "$host_os" in
  10874. # For platforms which do not support PIC, -DPIC is meaningless:
  10875. *djgpp*)
  10876. lt_prog_compiler_pic_CXX=
  10877. ;;
  10878. *)
  10879. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  10880. ;;
  10881. esac
  10882. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  10883. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  10884. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  10885. echo $ECHO_N "(cached) $ECHO_C" >&6
  10886. else
  10887. lt_cv_prog_compiler_c_o_CXX=no
  10888. $rm -r conftest 2>/dev/null
  10889. mkdir conftest
  10890. cd conftest
  10891. mkdir out
  10892. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10893. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10894. # Insert the option either (1) after the last *FLAGS variable, or
  10895. # (2) before a word containing "conftest.", or (3) at the end.
  10896. # Note that $ac_compile itself does not contain backslashes and begins
  10897. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10898. lt_compile=`echo "$ac_compile" | $SED \
  10899. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  10900. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10901. -e 's:$: $lt_compiler_flag:'`
  10902. (eval echo "\"\$as_me:12159: $lt_compile\"" >&5)
  10903. (eval "$lt_compile" 2>out/conftest.err)
  10904. ac_status=$?
  10905. cat out/conftest.err >&5
  10906. echo "$as_me:12163: \$? = $ac_status" >&5
  10907. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10908. then
  10909. # The compiler can only warn and ignore the option if not recognized
  10910. # So say no if there are warnings
  10911. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  10912. $SED '/^$/d' out/conftest.err >out/conftest.er2
  10913. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10914. lt_cv_prog_compiler_c_o_CXX=yes
  10915. fi
  10916. fi
  10917. chmod u+w .
  10918. $rm conftest*
  10919. # SGI C++ compiler will create directory out/ii_files/ for
  10920. # template instantiation
  10921. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  10922. $rm out/* && rmdir out
  10923. cd ..
  10924. rmdir conftest
  10925. $rm conftest*
  10926. fi
  10927. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  10928. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  10929. hard_links="nottested"
  10930. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  10931. # do not overwrite the value of need_locks provided by the user
  10932. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  10933. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  10934. hard_links=yes
  10935. $rm conftest*
  10936. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10937. touch conftest.a
  10938. ln conftest.a conftest.b 2>&5 || hard_links=no
  10939. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10940. { echo "$as_me:$LINENO: result: $hard_links" >&5
  10941. echo "${ECHO_T}$hard_links" >&6; }
  10942. if test "$hard_links" = no; then
  10943. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  10944. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  10945. need_locks=warn
  10946. fi
  10947. else
  10948. need_locks=no
  10949. fi
  10950. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10951. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  10952. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10953. case $host_os in
  10954. aix4* | aix5*)
  10955. # If we're using GNU nm, then we don't want the "-C" option.
  10956. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  10957. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  10958. 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'
  10959. else
  10960. 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'
  10961. fi
  10962. ;;
  10963. pw32*)
  10964. export_symbols_cmds_CXX="$ltdll_cmds"
  10965. ;;
  10966. cygwin* | mingw*)
  10967. 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'
  10968. ;;
  10969. *)
  10970. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10971. ;;
  10972. esac
  10973. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10974. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  10975. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10976. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10977. if test "$GCC" = yes; then
  10978. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10979. fi
  10980. #
  10981. # Do we need to explicitly link libc?
  10982. #
  10983. case "x$archive_cmds_need_lc_CXX" in
  10984. x|xyes)
  10985. # Assume -lc should be added
  10986. archive_cmds_need_lc_CXX=yes
  10987. if test "$enable_shared" = yes && test "$GCC" = yes; then
  10988. case $archive_cmds_CXX in
  10989. *'~'*)
  10990. # FIXME: we may have to deal with multi-command sequences.
  10991. ;;
  10992. '$CC '*)
  10993. # Test whether the compiler implicitly links with -lc since on some
  10994. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10995. # to ld, don't add -lc before -lgcc.
  10996. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  10997. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  10998. $rm conftest*
  10999. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11000. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11001. (eval $ac_compile) 2>&5
  11002. ac_status=$?
  11003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11004. (exit $ac_status); } 2>conftest.err; then
  11005. soname=conftest
  11006. lib=conftest
  11007. libobjs=conftest.$ac_objext
  11008. deplibs=
  11009. wl=$lt_prog_compiler_wl_CXX
  11010. compiler_flags=-v
  11011. linker_flags=-v
  11012. verstring=
  11013. output_objdir=.
  11014. libname=conftest
  11015. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11016. allow_undefined_flag_CXX=
  11017. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  11018. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11019. ac_status=$?
  11020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11021. (exit $ac_status); }
  11022. then
  11023. archive_cmds_need_lc_CXX=no
  11024. else
  11025. archive_cmds_need_lc_CXX=yes
  11026. fi
  11027. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11028. else
  11029. cat conftest.err 1>&5
  11030. fi
  11031. $rm conftest*
  11032. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  11033. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  11034. ;;
  11035. esac
  11036. fi
  11037. ;;
  11038. esac
  11039. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  11040. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  11041. library_names_spec=
  11042. libname_spec='lib$name'
  11043. soname_spec=
  11044. shrext_cmds=".so"
  11045. postinstall_cmds=
  11046. postuninstall_cmds=
  11047. finish_cmds=
  11048. finish_eval=
  11049. shlibpath_var=
  11050. shlibpath_overrides_runpath=unknown
  11051. version_type=none
  11052. dynamic_linker="$host_os ld.so"
  11053. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11054. if test "$GCC" = yes; then
  11055. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11056. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  11057. # if the path contains ";" then we assume it to be the separator
  11058. # otherwise default to the standard path separator (i.e. ":") - it is
  11059. # assumed that no part of a normal pathname contains ";" but that should
  11060. # okay in the real world where ";" in dirpaths is itself problematic.
  11061. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11062. else
  11063. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11064. fi
  11065. else
  11066. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11067. fi
  11068. need_lib_prefix=unknown
  11069. hardcode_into_libs=no
  11070. # when you set need_version to no, make sure it does not cause -set_version
  11071. # flags to be left without arguments
  11072. need_version=unknown
  11073. case $host_os in
  11074. aix3*)
  11075. version_type=linux
  11076. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11077. shlibpath_var=LIBPATH
  11078. # AIX 3 has no versioning support, so we append a major version to the name.
  11079. soname_spec='${libname}${release}${shared_ext}$major'
  11080. ;;
  11081. aix4* | aix5*)
  11082. version_type=linux
  11083. need_lib_prefix=no
  11084. need_version=no
  11085. hardcode_into_libs=yes
  11086. if test "$host_cpu" = ia64; then
  11087. # AIX 5 supports IA64
  11088. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11089. shlibpath_var=LD_LIBRARY_PATH
  11090. else
  11091. # With GCC up to 2.95.x, collect2 would create an import file
  11092. # for dependence libraries. The import file would start with
  11093. # the line `#! .'. This would cause the generated library to
  11094. # depend on `.', always an invalid library. This was fixed in
  11095. # development snapshots of GCC prior to 3.0.
  11096. case $host_os in
  11097. aix4 | aix4.[01] | aix4.[01].*)
  11098. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11099. echo ' yes '
  11100. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  11101. :
  11102. else
  11103. can_build_shared=no
  11104. fi
  11105. ;;
  11106. esac
  11107. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11108. # soname into executable. Probably we can add versioning support to
  11109. # collect2, so additional links can be useful in future.
  11110. if test "$aix_use_runtimelinking" = yes; then
  11111. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11112. # instead of lib<name>.a to let people know that these are not
  11113. # typical AIX shared libraries.
  11114. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11115. else
  11116. # We preserve .a as extension for shared libraries through AIX4.2
  11117. # and later when we are not doing run time linking.
  11118. library_names_spec='${libname}${release}.a $libname.a'
  11119. soname_spec='${libname}${release}${shared_ext}$major'
  11120. fi
  11121. shlibpath_var=LIBPATH
  11122. fi
  11123. ;;
  11124. amigaos*)
  11125. library_names_spec='$libname.ixlibrary $libname.a'
  11126. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11127. 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'
  11128. ;;
  11129. beos*)
  11130. library_names_spec='${libname}${shared_ext}'
  11131. dynamic_linker="$host_os ld.so"
  11132. shlibpath_var=LIBRARY_PATH
  11133. ;;
  11134. bsdi[45]*)
  11135. version_type=linux
  11136. need_version=no
  11137. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11138. soname_spec='${libname}${release}${shared_ext}$major'
  11139. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11140. shlibpath_var=LD_LIBRARY_PATH
  11141. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11142. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11143. # the default ld.so.conf also contains /usr/contrib/lib and
  11144. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11145. # libtool to hard-code these into programs
  11146. ;;
  11147. cygwin* | mingw* | pw32*)
  11148. version_type=windows
  11149. shrext_cmds=".dll"
  11150. need_version=no
  11151. need_lib_prefix=no
  11152. case $GCC,$host_os in
  11153. yes,cygwin* | yes,mingw* | yes,pw32*)
  11154. library_names_spec='$libname.dll.a'
  11155. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11156. postinstall_cmds='base_file=`basename \${file}`~
  11157. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  11158. dldir=$destdir/`dirname \$dlpath`~
  11159. test -d \$dldir || mkdir -p \$dldir~
  11160. $install_prog $dir/$dlname \$dldir/$dlname'
  11161. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11162. dlpath=$dir/\$dldll~
  11163. $rm \$dlpath'
  11164. shlibpath_overrides_runpath=yes
  11165. case $host_os in
  11166. cygwin*)
  11167. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11168. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11169. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11170. ;;
  11171. mingw*)
  11172. # MinGW DLLs use traditional 'lib' prefix
  11173. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11174. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11175. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  11176. # It is most probably a Windows format PATH printed by
  11177. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11178. # path with ; separators, and with drive letters. We can handle the
  11179. # drive letters (cygwin fileutils understands them), so leave them,
  11180. # especially as we might pass files found there to a mingw objdump,
  11181. # which wouldn't understand a cygwinified path. Ahh.
  11182. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11183. else
  11184. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11185. fi
  11186. ;;
  11187. pw32*)
  11188. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11189. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11190. ;;
  11191. esac
  11192. ;;
  11193. *)
  11194. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11195. ;;
  11196. esac
  11197. dynamic_linker='Win32 ld.exe'
  11198. # FIXME: first we should search . and the directory the executable is in
  11199. shlibpath_var=PATH
  11200. ;;
  11201. darwin* | rhapsody*)
  11202. dynamic_linker="$host_os dyld"
  11203. version_type=darwin
  11204. need_lib_prefix=no
  11205. need_version=no
  11206. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11207. soname_spec='${libname}${release}${major}$shared_ext'
  11208. shlibpath_overrides_runpath=yes
  11209. shlibpath_var=DYLD_LIBRARY_PATH
  11210. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  11211. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  11212. if test "$GCC" = yes; then
  11213. 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"`
  11214. else
  11215. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  11216. fi
  11217. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11218. ;;
  11219. dgux*)
  11220. version_type=linux
  11221. need_lib_prefix=no
  11222. need_version=no
  11223. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11224. soname_spec='${libname}${release}${shared_ext}$major'
  11225. shlibpath_var=LD_LIBRARY_PATH
  11226. ;;
  11227. freebsd1*)
  11228. dynamic_linker=no
  11229. ;;
  11230. kfreebsd*-gnu)
  11231. version_type=linux
  11232. need_lib_prefix=no
  11233. need_version=no
  11234. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11235. soname_spec='${libname}${release}${shared_ext}$major'
  11236. shlibpath_var=LD_LIBRARY_PATH
  11237. shlibpath_overrides_runpath=no
  11238. hardcode_into_libs=yes
  11239. dynamic_linker='GNU ld.so'
  11240. ;;
  11241. freebsd* | dragonfly*)
  11242. # DragonFly does not have aout. When/if they implement a new
  11243. # versioning mechanism, adjust this.
  11244. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  11245. version_type=freebsd-$objformat
  11246. case $version_type in
  11247. freebsd-elf*)
  11248. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11249. need_version=no
  11250. need_lib_prefix=no
  11251. ;;
  11252. freebsd-*)
  11253. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11254. need_version=yes
  11255. ;;
  11256. esac
  11257. shlibpath_var=LD_LIBRARY_PATH
  11258. case $host_os in
  11259. freebsd2*)
  11260. shlibpath_overrides_runpath=yes
  11261. ;;
  11262. freebsd3.[01]* | freebsdelf3.[01]*)
  11263. shlibpath_overrides_runpath=yes
  11264. hardcode_into_libs=yes
  11265. ;;
  11266. *) # from 3.2 on
  11267. shlibpath_overrides_runpath=no
  11268. hardcode_into_libs=yes
  11269. ;;
  11270. esac
  11271. ;;
  11272. gnu*)
  11273. version_type=linux
  11274. need_lib_prefix=no
  11275. need_version=no
  11276. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11277. soname_spec='${libname}${release}${shared_ext}$major'
  11278. shlibpath_var=LD_LIBRARY_PATH
  11279. hardcode_into_libs=yes
  11280. ;;
  11281. hpux9* | hpux10* | hpux11*)
  11282. # Give a soname corresponding to the major version so that dld.sl refuses to
  11283. # link against other versions.
  11284. version_type=sunos
  11285. need_lib_prefix=no
  11286. need_version=no
  11287. case "$host_cpu" in
  11288. ia64*)
  11289. shrext_cmds='.so'
  11290. hardcode_into_libs=yes
  11291. dynamic_linker="$host_os dld.so"
  11292. shlibpath_var=LD_LIBRARY_PATH
  11293. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11294. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11295. soname_spec='${libname}${release}${shared_ext}$major'
  11296. if test "X$HPUX_IA64_MODE" = X32; then
  11297. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11298. else
  11299. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11300. fi
  11301. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11302. ;;
  11303. hppa*64*)
  11304. shrext_cmds='.sl'
  11305. hardcode_into_libs=yes
  11306. dynamic_linker="$host_os dld.sl"
  11307. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11308. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11309. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11310. soname_spec='${libname}${release}${shared_ext}$major'
  11311. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11312. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11313. ;;
  11314. *)
  11315. shrext_cmds='.sl'
  11316. dynamic_linker="$host_os dld.sl"
  11317. shlibpath_var=SHLIB_PATH
  11318. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11319. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11320. soname_spec='${libname}${release}${shared_ext}$major'
  11321. ;;
  11322. esac
  11323. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11324. postinstall_cmds='chmod 555 $lib'
  11325. ;;
  11326. irix5* | irix6* | nonstopux*)
  11327. case $host_os in
  11328. nonstopux*) version_type=nonstopux ;;
  11329. *)
  11330. if test "$lt_cv_prog_gnu_ld" = yes; then
  11331. version_type=linux
  11332. else
  11333. version_type=irix
  11334. fi ;;
  11335. esac
  11336. need_lib_prefix=no
  11337. need_version=no
  11338. soname_spec='${libname}${release}${shared_ext}$major'
  11339. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11340. case $host_os in
  11341. irix5* | nonstopux*)
  11342. libsuff= shlibsuff=
  11343. ;;
  11344. *)
  11345. case $LD in # libtool.m4 will add one of these switches to LD
  11346. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11347. libsuff= shlibsuff= libmagic=32-bit;;
  11348. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11349. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11350. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11351. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11352. *) libsuff= shlibsuff= libmagic=never-match;;
  11353. esac
  11354. ;;
  11355. esac
  11356. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11357. shlibpath_overrides_runpath=no
  11358. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11359. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11360. hardcode_into_libs=yes
  11361. ;;
  11362. # No shared lib support for Linux oldld, aout, or coff.
  11363. linux*oldld* | linux*aout* | linux*coff*)
  11364. dynamic_linker=no
  11365. ;;
  11366. # This must be Linux ELF.
  11367. linux*)
  11368. version_type=linux
  11369. need_lib_prefix=no
  11370. need_version=no
  11371. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11372. soname_spec='${libname}${release}${shared_ext}$major'
  11373. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11374. shlibpath_var=LD_LIBRARY_PATH
  11375. shlibpath_overrides_runpath=no
  11376. # This implies no fast_install, which is unacceptable.
  11377. # Some rework will be needed to allow for fast_install
  11378. # before this can be enabled.
  11379. hardcode_into_libs=yes
  11380. # Append ld.so.conf contents to the search path
  11381. if test -f /etc/ld.so.conf; then
  11382. 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' ' '`
  11383. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11384. fi
  11385. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11386. # powerpc, because MkLinux only supported shared libraries with the
  11387. # GNU dynamic linker. Since this was broken with cross compilers,
  11388. # most powerpc-linux boxes support dynamic linking these days and
  11389. # people can always --disable-shared, the test was removed, and we
  11390. # assume the GNU/Linux dynamic linker is in use.
  11391. dynamic_linker='GNU/Linux ld.so'
  11392. ;;
  11393. knetbsd*-gnu)
  11394. version_type=linux
  11395. need_lib_prefix=no
  11396. need_version=no
  11397. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11398. soname_spec='${libname}${release}${shared_ext}$major'
  11399. shlibpath_var=LD_LIBRARY_PATH
  11400. shlibpath_overrides_runpath=no
  11401. hardcode_into_libs=yes
  11402. dynamic_linker='GNU ld.so'
  11403. ;;
  11404. netbsd*)
  11405. version_type=sunos
  11406. need_lib_prefix=no
  11407. need_version=no
  11408. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11409. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11410. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11411. dynamic_linker='NetBSD (a.out) ld.so'
  11412. else
  11413. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11414. soname_spec='${libname}${release}${shared_ext}$major'
  11415. dynamic_linker='NetBSD ld.elf_so'
  11416. fi
  11417. shlibpath_var=LD_LIBRARY_PATH
  11418. shlibpath_overrides_runpath=yes
  11419. hardcode_into_libs=yes
  11420. ;;
  11421. newsos6)
  11422. version_type=linux
  11423. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11424. shlibpath_var=LD_LIBRARY_PATH
  11425. shlibpath_overrides_runpath=yes
  11426. ;;
  11427. nto-qnx*)
  11428. version_type=linux
  11429. need_lib_prefix=no
  11430. need_version=no
  11431. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11432. soname_spec='${libname}${release}${shared_ext}$major'
  11433. shlibpath_var=LD_LIBRARY_PATH
  11434. shlibpath_overrides_runpath=yes
  11435. ;;
  11436. openbsd*)
  11437. version_type=sunos
  11438. need_lib_prefix=no
  11439. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11440. case $host_os in
  11441. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11442. *) need_version=no ;;
  11443. esac
  11444. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11445. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11446. shlibpath_var=LD_LIBRARY_PATH
  11447. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11448. case $host_os in
  11449. openbsd2.[89] | openbsd2.[89].*)
  11450. shlibpath_overrides_runpath=no
  11451. ;;
  11452. *)
  11453. shlibpath_overrides_runpath=yes
  11454. ;;
  11455. esac
  11456. else
  11457. shlibpath_overrides_runpath=yes
  11458. fi
  11459. ;;
  11460. os2*)
  11461. libname_spec='$name'
  11462. shrext_cmds=".dll"
  11463. need_lib_prefix=no
  11464. library_names_spec='$libname${shared_ext} $libname.a'
  11465. dynamic_linker='OS/2 ld.exe'
  11466. shlibpath_var=LIBPATH
  11467. ;;
  11468. osf3* | osf4* | osf5*)
  11469. version_type=osf
  11470. need_lib_prefix=no
  11471. need_version=no
  11472. soname_spec='${libname}${release}${shared_ext}$major'
  11473. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11474. shlibpath_var=LD_LIBRARY_PATH
  11475. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11476. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11477. ;;
  11478. sco3.2v5*)
  11479. version_type=osf
  11480. soname_spec='${libname}${release}${shared_ext}$major'
  11481. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11482. shlibpath_var=LD_LIBRARY_PATH
  11483. ;;
  11484. solaris*)
  11485. version_type=linux
  11486. need_lib_prefix=no
  11487. need_version=no
  11488. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11489. soname_spec='${libname}${release}${shared_ext}$major'
  11490. shlibpath_var=LD_LIBRARY_PATH
  11491. shlibpath_overrides_runpath=yes
  11492. hardcode_into_libs=yes
  11493. # ldd complains unless libraries are executable
  11494. postinstall_cmds='chmod +x $lib'
  11495. ;;
  11496. sunos4*)
  11497. version_type=sunos
  11498. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11499. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11500. shlibpath_var=LD_LIBRARY_PATH
  11501. shlibpath_overrides_runpath=yes
  11502. if test "$with_gnu_ld" = yes; then
  11503. need_lib_prefix=no
  11504. fi
  11505. need_version=yes
  11506. ;;
  11507. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11508. version_type=linux
  11509. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11510. soname_spec='${libname}${release}${shared_ext}$major'
  11511. shlibpath_var=LD_LIBRARY_PATH
  11512. case $host_vendor in
  11513. sni)
  11514. shlibpath_overrides_runpath=no
  11515. need_lib_prefix=no
  11516. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11517. runpath_var=LD_RUN_PATH
  11518. ;;
  11519. siemens)
  11520. need_lib_prefix=no
  11521. ;;
  11522. motorola)
  11523. need_lib_prefix=no
  11524. need_version=no
  11525. shlibpath_overrides_runpath=no
  11526. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11527. ;;
  11528. esac
  11529. ;;
  11530. sysv4*MP*)
  11531. if test -d /usr/nec ;then
  11532. version_type=linux
  11533. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11534. soname_spec='$libname${shared_ext}.$major'
  11535. shlibpath_var=LD_LIBRARY_PATH
  11536. fi
  11537. ;;
  11538. uts4*)
  11539. version_type=linux
  11540. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11541. soname_spec='${libname}${release}${shared_ext}$major'
  11542. shlibpath_var=LD_LIBRARY_PATH
  11543. ;;
  11544. *)
  11545. dynamic_linker=no
  11546. ;;
  11547. esac
  11548. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  11549. echo "${ECHO_T}$dynamic_linker" >&6; }
  11550. test "$dynamic_linker" = no && can_build_shared=no
  11551. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  11552. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  11553. hardcode_action_CXX=
  11554. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  11555. test -n "$runpath_var_CXX" || \
  11556. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  11557. # We can hardcode non-existant directories.
  11558. if test "$hardcode_direct_CXX" != no &&
  11559. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11560. # have to relink, otherwise we might link with an installed library
  11561. # when we should be linking with a yet-to-be-installed one
  11562. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  11563. test "$hardcode_minus_L_CXX" != no; then
  11564. # Linking always hardcodes the temporary library directory.
  11565. hardcode_action_CXX=relink
  11566. else
  11567. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11568. hardcode_action_CXX=immediate
  11569. fi
  11570. else
  11571. # We cannot hardcode anything, or else we can only hardcode existing
  11572. # directories.
  11573. hardcode_action_CXX=unsupported
  11574. fi
  11575. { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  11576. echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  11577. if test "$hardcode_action_CXX" = relink; then
  11578. # Fast installation is not supported
  11579. enable_fast_install=no
  11580. elif test "$shlibpath_overrides_runpath" = yes ||
  11581. test "$enable_shared" = no; then
  11582. # Fast installation is not necessary
  11583. enable_fast_install=needless
  11584. fi
  11585. striplib=
  11586. old_striplib=
  11587. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  11588. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  11589. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  11590. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11591. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11592. { echo "$as_me:$LINENO: result: yes" >&5
  11593. echo "${ECHO_T}yes" >&6; }
  11594. else
  11595. # FIXME - insert some real tests, host_os isn't really good enough
  11596. case $host_os in
  11597. darwin*)
  11598. if test -n "$STRIP" ; then
  11599. striplib="$STRIP -x"
  11600. { echo "$as_me:$LINENO: result: yes" >&5
  11601. echo "${ECHO_T}yes" >&6; }
  11602. else
  11603. { echo "$as_me:$LINENO: result: no" >&5
  11604. echo "${ECHO_T}no" >&6; }
  11605. fi
  11606. ;;
  11607. *)
  11608. { echo "$as_me:$LINENO: result: no" >&5
  11609. echo "${ECHO_T}no" >&6; }
  11610. ;;
  11611. esac
  11612. fi
  11613. if test "x$enable_dlopen" != xyes; then
  11614. enable_dlopen=unknown
  11615. enable_dlopen_self=unknown
  11616. enable_dlopen_self_static=unknown
  11617. else
  11618. lt_cv_dlopen=no
  11619. lt_cv_dlopen_libs=
  11620. case $host_os in
  11621. beos*)
  11622. lt_cv_dlopen="load_add_on"
  11623. lt_cv_dlopen_libs=
  11624. lt_cv_dlopen_self=yes
  11625. ;;
  11626. mingw* | pw32*)
  11627. lt_cv_dlopen="LoadLibrary"
  11628. lt_cv_dlopen_libs=
  11629. ;;
  11630. cygwin*)
  11631. lt_cv_dlopen="dlopen"
  11632. lt_cv_dlopen_libs=
  11633. ;;
  11634. darwin*)
  11635. # if libdl is installed we need to link against it
  11636. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  11637. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  11638. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  11639. echo $ECHO_N "(cached) $ECHO_C" >&6
  11640. else
  11641. ac_check_lib_save_LIBS=$LIBS
  11642. LIBS="-ldl $LIBS"
  11643. cat >conftest.$ac_ext <<_ACEOF
  11644. /* confdefs.h. */
  11645. _ACEOF
  11646. cat confdefs.h >>conftest.$ac_ext
  11647. cat >>conftest.$ac_ext <<_ACEOF
  11648. /* end confdefs.h. */
  11649. /* Override any GCC internal prototype to avoid an error.
  11650. Use char because int might match the return type of a GCC
  11651. builtin and then its argument prototype would still apply. */
  11652. #ifdef __cplusplus
  11653. extern "C"
  11654. #endif
  11655. char dlopen ();
  11656. int
  11657. main ()
  11658. {
  11659. return dlopen ();
  11660. ;
  11661. return 0;
  11662. }
  11663. _ACEOF
  11664. rm -f conftest.$ac_objext conftest$ac_exeext
  11665. if { (ac_try="$ac_link"
  11666. case "(($ac_try" in
  11667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11668. *) ac_try_echo=$ac_try;;
  11669. esac
  11670. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11671. (eval "$ac_link") 2>conftest.er1
  11672. ac_status=$?
  11673. grep -v '^ *+' conftest.er1 >conftest.err
  11674. rm -f conftest.er1
  11675. cat conftest.err >&5
  11676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11677. (exit $ac_status); } && {
  11678. test -z "$ac_cxx_werror_flag" ||
  11679. test ! -s conftest.err
  11680. } && test -s conftest$ac_exeext &&
  11681. $as_test_x conftest$ac_exeext; then
  11682. ac_cv_lib_dl_dlopen=yes
  11683. else
  11684. echo "$as_me: failed program was:" >&5
  11685. sed 's/^/| /' conftest.$ac_ext >&5
  11686. ac_cv_lib_dl_dlopen=no
  11687. fi
  11688. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11689. conftest$ac_exeext conftest.$ac_ext
  11690. LIBS=$ac_check_lib_save_LIBS
  11691. fi
  11692. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  11693. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  11694. if test $ac_cv_lib_dl_dlopen = yes; then
  11695. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11696. else
  11697. lt_cv_dlopen="dyld"
  11698. lt_cv_dlopen_libs=
  11699. lt_cv_dlopen_self=yes
  11700. fi
  11701. ;;
  11702. *)
  11703. { echo "$as_me:$LINENO: checking for shl_load" >&5
  11704. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  11705. if test "${ac_cv_func_shl_load+set}" = set; then
  11706. echo $ECHO_N "(cached) $ECHO_C" >&6
  11707. else
  11708. cat >conftest.$ac_ext <<_ACEOF
  11709. /* confdefs.h. */
  11710. _ACEOF
  11711. cat confdefs.h >>conftest.$ac_ext
  11712. cat >>conftest.$ac_ext <<_ACEOF
  11713. /* end confdefs.h. */
  11714. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  11715. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11716. #define shl_load innocuous_shl_load
  11717. /* System header to define __stub macros and hopefully few prototypes,
  11718. which can conflict with char shl_load (); below.
  11719. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11720. <limits.h> exists even on freestanding compilers. */
  11721. #ifdef __STDC__
  11722. # include <limits.h>
  11723. #else
  11724. # include <assert.h>
  11725. #endif
  11726. #undef shl_load
  11727. /* Override any GCC internal prototype to avoid an error.
  11728. Use char because int might match the return type of a GCC
  11729. builtin and then its argument prototype would still apply. */
  11730. #ifdef __cplusplus
  11731. extern "C"
  11732. #endif
  11733. char shl_load ();
  11734. /* The GNU C library defines this for functions which it implements
  11735. to always fail with ENOSYS. Some functions are actually named
  11736. something starting with __ and the normal name is an alias. */
  11737. #if defined __stub_shl_load || defined __stub___shl_load
  11738. choke me
  11739. #endif
  11740. int
  11741. main ()
  11742. {
  11743. return shl_load ();
  11744. ;
  11745. return 0;
  11746. }
  11747. _ACEOF
  11748. rm -f conftest.$ac_objext conftest$ac_exeext
  11749. if { (ac_try="$ac_link"
  11750. case "(($ac_try" in
  11751. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11752. *) ac_try_echo=$ac_try;;
  11753. esac
  11754. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11755. (eval "$ac_link") 2>conftest.er1
  11756. ac_status=$?
  11757. grep -v '^ *+' conftest.er1 >conftest.err
  11758. rm -f conftest.er1
  11759. cat conftest.err >&5
  11760. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11761. (exit $ac_status); } && {
  11762. test -z "$ac_cxx_werror_flag" ||
  11763. test ! -s conftest.err
  11764. } && test -s conftest$ac_exeext &&
  11765. $as_test_x conftest$ac_exeext; then
  11766. ac_cv_func_shl_load=yes
  11767. else
  11768. echo "$as_me: failed program was:" >&5
  11769. sed 's/^/| /' conftest.$ac_ext >&5
  11770. ac_cv_func_shl_load=no
  11771. fi
  11772. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11773. conftest$ac_exeext conftest.$ac_ext
  11774. fi
  11775. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  11776. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  11777. if test $ac_cv_func_shl_load = yes; then
  11778. lt_cv_dlopen="shl_load"
  11779. else
  11780. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  11781. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  11782. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  11783. echo $ECHO_N "(cached) $ECHO_C" >&6
  11784. else
  11785. ac_check_lib_save_LIBS=$LIBS
  11786. LIBS="-ldld $LIBS"
  11787. cat >conftest.$ac_ext <<_ACEOF
  11788. /* confdefs.h. */
  11789. _ACEOF
  11790. cat confdefs.h >>conftest.$ac_ext
  11791. cat >>conftest.$ac_ext <<_ACEOF
  11792. /* end confdefs.h. */
  11793. /* Override any GCC internal prototype to avoid an error.
  11794. Use char because int might match the return type of a GCC
  11795. builtin and then its argument prototype would still apply. */
  11796. #ifdef __cplusplus
  11797. extern "C"
  11798. #endif
  11799. char shl_load ();
  11800. int
  11801. main ()
  11802. {
  11803. return shl_load ();
  11804. ;
  11805. return 0;
  11806. }
  11807. _ACEOF
  11808. rm -f conftest.$ac_objext conftest$ac_exeext
  11809. if { (ac_try="$ac_link"
  11810. case "(($ac_try" in
  11811. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11812. *) ac_try_echo=$ac_try;;
  11813. esac
  11814. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11815. (eval "$ac_link") 2>conftest.er1
  11816. ac_status=$?
  11817. grep -v '^ *+' conftest.er1 >conftest.err
  11818. rm -f conftest.er1
  11819. cat conftest.err >&5
  11820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11821. (exit $ac_status); } && {
  11822. test -z "$ac_cxx_werror_flag" ||
  11823. test ! -s conftest.err
  11824. } && test -s conftest$ac_exeext &&
  11825. $as_test_x conftest$ac_exeext; then
  11826. ac_cv_lib_dld_shl_load=yes
  11827. else
  11828. echo "$as_me: failed program was:" >&5
  11829. sed 's/^/| /' conftest.$ac_ext >&5
  11830. ac_cv_lib_dld_shl_load=no
  11831. fi
  11832. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11833. conftest$ac_exeext conftest.$ac_ext
  11834. LIBS=$ac_check_lib_save_LIBS
  11835. fi
  11836. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  11837. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  11838. if test $ac_cv_lib_dld_shl_load = yes; then
  11839. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  11840. else
  11841. { echo "$as_me:$LINENO: checking for dlopen" >&5
  11842. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  11843. if test "${ac_cv_func_dlopen+set}" = set; then
  11844. echo $ECHO_N "(cached) $ECHO_C" >&6
  11845. else
  11846. cat >conftest.$ac_ext <<_ACEOF
  11847. /* confdefs.h. */
  11848. _ACEOF
  11849. cat confdefs.h >>conftest.$ac_ext
  11850. cat >>conftest.$ac_ext <<_ACEOF
  11851. /* end confdefs.h. */
  11852. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  11853. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11854. #define dlopen innocuous_dlopen
  11855. /* System header to define __stub macros and hopefully few prototypes,
  11856. which can conflict with char dlopen (); below.
  11857. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11858. <limits.h> exists even on freestanding compilers. */
  11859. #ifdef __STDC__
  11860. # include <limits.h>
  11861. #else
  11862. # include <assert.h>
  11863. #endif
  11864. #undef dlopen
  11865. /* Override any GCC internal prototype to avoid an error.
  11866. Use char because int might match the return type of a GCC
  11867. builtin and then its argument prototype would still apply. */
  11868. #ifdef __cplusplus
  11869. extern "C"
  11870. #endif
  11871. char dlopen ();
  11872. /* The GNU C library defines this for functions which it implements
  11873. to always fail with ENOSYS. Some functions are actually named
  11874. something starting with __ and the normal name is an alias. */
  11875. #if defined __stub_dlopen || defined __stub___dlopen
  11876. choke me
  11877. #endif
  11878. int
  11879. main ()
  11880. {
  11881. return dlopen ();
  11882. ;
  11883. return 0;
  11884. }
  11885. _ACEOF
  11886. rm -f conftest.$ac_objext conftest$ac_exeext
  11887. if { (ac_try="$ac_link"
  11888. case "(($ac_try" in
  11889. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11890. *) ac_try_echo=$ac_try;;
  11891. esac
  11892. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11893. (eval "$ac_link") 2>conftest.er1
  11894. ac_status=$?
  11895. grep -v '^ *+' conftest.er1 >conftest.err
  11896. rm -f conftest.er1
  11897. cat conftest.err >&5
  11898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11899. (exit $ac_status); } && {
  11900. test -z "$ac_cxx_werror_flag" ||
  11901. test ! -s conftest.err
  11902. } && test -s conftest$ac_exeext &&
  11903. $as_test_x conftest$ac_exeext; then
  11904. ac_cv_func_dlopen=yes
  11905. else
  11906. echo "$as_me: failed program was:" >&5
  11907. sed 's/^/| /' conftest.$ac_ext >&5
  11908. ac_cv_func_dlopen=no
  11909. fi
  11910. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11911. conftest$ac_exeext conftest.$ac_ext
  11912. fi
  11913. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  11914. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  11915. if test $ac_cv_func_dlopen = yes; then
  11916. lt_cv_dlopen="dlopen"
  11917. else
  11918. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  11919. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  11920. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  11921. echo $ECHO_N "(cached) $ECHO_C" >&6
  11922. else
  11923. ac_check_lib_save_LIBS=$LIBS
  11924. LIBS="-ldl $LIBS"
  11925. cat >conftest.$ac_ext <<_ACEOF
  11926. /* confdefs.h. */
  11927. _ACEOF
  11928. cat confdefs.h >>conftest.$ac_ext
  11929. cat >>conftest.$ac_ext <<_ACEOF
  11930. /* end confdefs.h. */
  11931. /* Override any GCC internal prototype to avoid an error.
  11932. Use char because int might match the return type of a GCC
  11933. builtin and then its argument prototype would still apply. */
  11934. #ifdef __cplusplus
  11935. extern "C"
  11936. #endif
  11937. char dlopen ();
  11938. int
  11939. main ()
  11940. {
  11941. return dlopen ();
  11942. ;
  11943. return 0;
  11944. }
  11945. _ACEOF
  11946. rm -f conftest.$ac_objext conftest$ac_exeext
  11947. if { (ac_try="$ac_link"
  11948. case "(($ac_try" in
  11949. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11950. *) ac_try_echo=$ac_try;;
  11951. esac
  11952. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11953. (eval "$ac_link") 2>conftest.er1
  11954. ac_status=$?
  11955. grep -v '^ *+' conftest.er1 >conftest.err
  11956. rm -f conftest.er1
  11957. cat conftest.err >&5
  11958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11959. (exit $ac_status); } && {
  11960. test -z "$ac_cxx_werror_flag" ||
  11961. test ! -s conftest.err
  11962. } && test -s conftest$ac_exeext &&
  11963. $as_test_x conftest$ac_exeext; then
  11964. ac_cv_lib_dl_dlopen=yes
  11965. else
  11966. echo "$as_me: failed program was:" >&5
  11967. sed 's/^/| /' conftest.$ac_ext >&5
  11968. ac_cv_lib_dl_dlopen=no
  11969. fi
  11970. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11971. conftest$ac_exeext conftest.$ac_ext
  11972. LIBS=$ac_check_lib_save_LIBS
  11973. fi
  11974. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  11975. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  11976. if test $ac_cv_lib_dl_dlopen = yes; then
  11977. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11978. else
  11979. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  11980. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  11981. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  11982. echo $ECHO_N "(cached) $ECHO_C" >&6
  11983. else
  11984. ac_check_lib_save_LIBS=$LIBS
  11985. LIBS="-lsvld $LIBS"
  11986. cat >conftest.$ac_ext <<_ACEOF
  11987. /* confdefs.h. */
  11988. _ACEOF
  11989. cat confdefs.h >>conftest.$ac_ext
  11990. cat >>conftest.$ac_ext <<_ACEOF
  11991. /* end confdefs.h. */
  11992. /* Override any GCC internal prototype to avoid an error.
  11993. Use char because int might match the return type of a GCC
  11994. builtin and then its argument prototype would still apply. */
  11995. #ifdef __cplusplus
  11996. extern "C"
  11997. #endif
  11998. char dlopen ();
  11999. int
  12000. main ()
  12001. {
  12002. return dlopen ();
  12003. ;
  12004. return 0;
  12005. }
  12006. _ACEOF
  12007. rm -f conftest.$ac_objext conftest$ac_exeext
  12008. if { (ac_try="$ac_link"
  12009. case "(($ac_try" in
  12010. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12011. *) ac_try_echo=$ac_try;;
  12012. esac
  12013. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12014. (eval "$ac_link") 2>conftest.er1
  12015. ac_status=$?
  12016. grep -v '^ *+' conftest.er1 >conftest.err
  12017. rm -f conftest.er1
  12018. cat conftest.err >&5
  12019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12020. (exit $ac_status); } && {
  12021. test -z "$ac_cxx_werror_flag" ||
  12022. test ! -s conftest.err
  12023. } && test -s conftest$ac_exeext &&
  12024. $as_test_x conftest$ac_exeext; then
  12025. ac_cv_lib_svld_dlopen=yes
  12026. else
  12027. echo "$as_me: failed program was:" >&5
  12028. sed 's/^/| /' conftest.$ac_ext >&5
  12029. ac_cv_lib_svld_dlopen=no
  12030. fi
  12031. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12032. conftest$ac_exeext conftest.$ac_ext
  12033. LIBS=$ac_check_lib_save_LIBS
  12034. fi
  12035. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  12036. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  12037. if test $ac_cv_lib_svld_dlopen = yes; then
  12038. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  12039. else
  12040. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  12041. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  12042. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  12043. echo $ECHO_N "(cached) $ECHO_C" >&6
  12044. else
  12045. ac_check_lib_save_LIBS=$LIBS
  12046. LIBS="-ldld $LIBS"
  12047. cat >conftest.$ac_ext <<_ACEOF
  12048. /* confdefs.h. */
  12049. _ACEOF
  12050. cat confdefs.h >>conftest.$ac_ext
  12051. cat >>conftest.$ac_ext <<_ACEOF
  12052. /* end confdefs.h. */
  12053. /* Override any GCC internal prototype to avoid an error.
  12054. Use char because int might match the return type of a GCC
  12055. builtin and then its argument prototype would still apply. */
  12056. #ifdef __cplusplus
  12057. extern "C"
  12058. #endif
  12059. char dld_link ();
  12060. int
  12061. main ()
  12062. {
  12063. return dld_link ();
  12064. ;
  12065. return 0;
  12066. }
  12067. _ACEOF
  12068. rm -f conftest.$ac_objext conftest$ac_exeext
  12069. if { (ac_try="$ac_link"
  12070. case "(($ac_try" in
  12071. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12072. *) ac_try_echo=$ac_try;;
  12073. esac
  12074. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12075. (eval "$ac_link") 2>conftest.er1
  12076. ac_status=$?
  12077. grep -v '^ *+' conftest.er1 >conftest.err
  12078. rm -f conftest.er1
  12079. cat conftest.err >&5
  12080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12081. (exit $ac_status); } && {
  12082. test -z "$ac_cxx_werror_flag" ||
  12083. test ! -s conftest.err
  12084. } && test -s conftest$ac_exeext &&
  12085. $as_test_x conftest$ac_exeext; then
  12086. ac_cv_lib_dld_dld_link=yes
  12087. else
  12088. echo "$as_me: failed program was:" >&5
  12089. sed 's/^/| /' conftest.$ac_ext >&5
  12090. ac_cv_lib_dld_dld_link=no
  12091. fi
  12092. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12093. conftest$ac_exeext conftest.$ac_ext
  12094. LIBS=$ac_check_lib_save_LIBS
  12095. fi
  12096. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  12097. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  12098. if test $ac_cv_lib_dld_dld_link = yes; then
  12099. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  12100. fi
  12101. fi
  12102. fi
  12103. fi
  12104. fi
  12105. fi
  12106. ;;
  12107. esac
  12108. if test "x$lt_cv_dlopen" != xno; then
  12109. enable_dlopen=yes
  12110. else
  12111. enable_dlopen=no
  12112. fi
  12113. case $lt_cv_dlopen in
  12114. dlopen)
  12115. save_CPPFLAGS="$CPPFLAGS"
  12116. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  12117. save_LDFLAGS="$LDFLAGS"
  12118. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  12119. save_LIBS="$LIBS"
  12120. LIBS="$lt_cv_dlopen_libs $LIBS"
  12121. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  12122. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  12123. if test "${lt_cv_dlopen_self+set}" = set; then
  12124. echo $ECHO_N "(cached) $ECHO_C" >&6
  12125. else
  12126. if test "$cross_compiling" = yes; then :
  12127. lt_cv_dlopen_self=cross
  12128. else
  12129. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12130. lt_status=$lt_dlunknown
  12131. cat > conftest.$ac_ext <<EOF
  12132. #line 13495 "configure"
  12133. #include "confdefs.h"
  12134. #if HAVE_DLFCN_H
  12135. #include <dlfcn.h>
  12136. #endif
  12137. #include <stdio.h>
  12138. #ifdef RTLD_GLOBAL
  12139. # define LT_DLGLOBAL RTLD_GLOBAL
  12140. #else
  12141. # ifdef DL_GLOBAL
  12142. # define LT_DLGLOBAL DL_GLOBAL
  12143. # else
  12144. # define LT_DLGLOBAL 0
  12145. # endif
  12146. #endif
  12147. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12148. find out it does not work in some platform. */
  12149. #ifndef LT_DLLAZY_OR_NOW
  12150. # ifdef RTLD_LAZY
  12151. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12152. # else
  12153. # ifdef DL_LAZY
  12154. # define LT_DLLAZY_OR_NOW DL_LAZY
  12155. # else
  12156. # ifdef RTLD_NOW
  12157. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12158. # else
  12159. # ifdef DL_NOW
  12160. # define LT_DLLAZY_OR_NOW DL_NOW
  12161. # else
  12162. # define LT_DLLAZY_OR_NOW 0
  12163. # endif
  12164. # endif
  12165. # endif
  12166. # endif
  12167. #endif
  12168. #ifdef __cplusplus
  12169. extern "C" void exit (int);
  12170. #endif
  12171. void fnord() { int i=42;}
  12172. int main ()
  12173. {
  12174. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12175. int status = $lt_dlunknown;
  12176. if (self)
  12177. {
  12178. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12179. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12180. /* dlclose (self); */
  12181. }
  12182. exit (status);
  12183. }
  12184. EOF
  12185. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12186. (eval $ac_link) 2>&5
  12187. ac_status=$?
  12188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12189. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  12190. (./conftest; exit; ) 2>/dev/null
  12191. lt_status=$?
  12192. case x$lt_status in
  12193. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  12194. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  12195. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  12196. esac
  12197. else :
  12198. # compilation failed
  12199. lt_cv_dlopen_self=no
  12200. fi
  12201. fi
  12202. rm -fr conftest*
  12203. fi
  12204. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  12205. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  12206. if test "x$lt_cv_dlopen_self" = xyes; then
  12207. LDFLAGS="$LDFLAGS $link_static_flag"
  12208. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  12209. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  12210. if test "${lt_cv_dlopen_self_static+set}" = set; then
  12211. echo $ECHO_N "(cached) $ECHO_C" >&6
  12212. else
  12213. if test "$cross_compiling" = yes; then :
  12214. lt_cv_dlopen_self_static=cross
  12215. else
  12216. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12217. lt_status=$lt_dlunknown
  12218. cat > conftest.$ac_ext <<EOF
  12219. #line 13593 "configure"
  12220. #include "confdefs.h"
  12221. #if HAVE_DLFCN_H
  12222. #include <dlfcn.h>
  12223. #endif
  12224. #include <stdio.h>
  12225. #ifdef RTLD_GLOBAL
  12226. # define LT_DLGLOBAL RTLD_GLOBAL
  12227. #else
  12228. # ifdef DL_GLOBAL
  12229. # define LT_DLGLOBAL DL_GLOBAL
  12230. # else
  12231. # define LT_DLGLOBAL 0
  12232. # endif
  12233. #endif
  12234. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12235. find out it does not work in some platform. */
  12236. #ifndef LT_DLLAZY_OR_NOW
  12237. # ifdef RTLD_LAZY
  12238. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12239. # else
  12240. # ifdef DL_LAZY
  12241. # define LT_DLLAZY_OR_NOW DL_LAZY
  12242. # else
  12243. # ifdef RTLD_NOW
  12244. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12245. # else
  12246. # ifdef DL_NOW
  12247. # define LT_DLLAZY_OR_NOW DL_NOW
  12248. # else
  12249. # define LT_DLLAZY_OR_NOW 0
  12250. # endif
  12251. # endif
  12252. # endif
  12253. # endif
  12254. #endif
  12255. #ifdef __cplusplus
  12256. extern "C" void exit (int);
  12257. #endif
  12258. void fnord() { int i=42;}
  12259. int main ()
  12260. {
  12261. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12262. int status = $lt_dlunknown;
  12263. if (self)
  12264. {
  12265. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12266. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12267. /* dlclose (self); */
  12268. }
  12269. exit (status);
  12270. }
  12271. EOF
  12272. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12273. (eval $ac_link) 2>&5
  12274. ac_status=$?
  12275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12276. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  12277. (./conftest; exit; ) 2>/dev/null
  12278. lt_status=$?
  12279. case x$lt_status in
  12280. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  12281. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  12282. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  12283. esac
  12284. else :
  12285. # compilation failed
  12286. lt_cv_dlopen_self_static=no
  12287. fi
  12288. fi
  12289. rm -fr conftest*
  12290. fi
  12291. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  12292. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  12293. fi
  12294. CPPFLAGS="$save_CPPFLAGS"
  12295. LDFLAGS="$save_LDFLAGS"
  12296. LIBS="$save_LIBS"
  12297. ;;
  12298. esac
  12299. case $lt_cv_dlopen_self in
  12300. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  12301. *) enable_dlopen_self=unknown ;;
  12302. esac
  12303. case $lt_cv_dlopen_self_static in
  12304. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  12305. *) enable_dlopen_self_static=unknown ;;
  12306. esac
  12307. fi
  12308. # The else clause should only fire when bootstrapping the
  12309. # libtool distribution, otherwise you forgot to ship ltmain.sh
  12310. # with your package, and you will get complaints that there are
  12311. # no rules to generate ltmain.sh.
  12312. if test -f "$ltmain"; then
  12313. # See if we are running on zsh, and set the options which allow our commands through
  12314. # without removal of \ escapes.
  12315. if test -n "${ZSH_VERSION+set}" ; then
  12316. setopt NO_GLOB_SUBST
  12317. fi
  12318. # Now quote all the things that may contain metacharacters while being
  12319. # careful not to overquote the AC_SUBSTed values. We take copies of the
  12320. # variables and quote the copies for generation of the libtool script.
  12321. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  12322. SED SHELL STRIP \
  12323. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  12324. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  12325. deplibs_check_method reload_flag reload_cmds need_locks \
  12326. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  12327. lt_cv_sys_global_symbol_to_c_name_address \
  12328. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  12329. old_postinstall_cmds old_postuninstall_cmds \
  12330. compiler_CXX \
  12331. CC_CXX \
  12332. LD_CXX \
  12333. lt_prog_compiler_wl_CXX \
  12334. lt_prog_compiler_pic_CXX \
  12335. lt_prog_compiler_static_CXX \
  12336. lt_prog_compiler_no_builtin_flag_CXX \
  12337. export_dynamic_flag_spec_CXX \
  12338. thread_safe_flag_spec_CXX \
  12339. whole_archive_flag_spec_CXX \
  12340. enable_shared_with_static_runtimes_CXX \
  12341. old_archive_cmds_CXX \
  12342. old_archive_from_new_cmds_CXX \
  12343. predep_objects_CXX \
  12344. postdep_objects_CXX \
  12345. predeps_CXX \
  12346. postdeps_CXX \
  12347. compiler_lib_search_path_CXX \
  12348. archive_cmds_CXX \
  12349. archive_expsym_cmds_CXX \
  12350. postinstall_cmds_CXX \
  12351. postuninstall_cmds_CXX \
  12352. old_archive_from_expsyms_cmds_CXX \
  12353. allow_undefined_flag_CXX \
  12354. no_undefined_flag_CXX \
  12355. export_symbols_cmds_CXX \
  12356. hardcode_libdir_flag_spec_CXX \
  12357. hardcode_libdir_flag_spec_ld_CXX \
  12358. hardcode_libdir_separator_CXX \
  12359. hardcode_automatic_CXX \
  12360. module_cmds_CXX \
  12361. module_expsym_cmds_CXX \
  12362. lt_cv_prog_compiler_c_o_CXX \
  12363. exclude_expsyms_CXX \
  12364. include_expsyms_CXX; do
  12365. case $var in
  12366. old_archive_cmds_CXX | \
  12367. old_archive_from_new_cmds_CXX | \
  12368. archive_cmds_CXX | \
  12369. archive_expsym_cmds_CXX | \
  12370. module_cmds_CXX | \
  12371. module_expsym_cmds_CXX | \
  12372. old_archive_from_expsyms_cmds_CXX | \
  12373. export_symbols_cmds_CXX | \
  12374. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  12375. postinstall_cmds | postuninstall_cmds | \
  12376. old_postinstall_cmds | old_postuninstall_cmds | \
  12377. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  12378. # Double-quote double-evaled strings.
  12379. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  12380. ;;
  12381. *)
  12382. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  12383. ;;
  12384. esac
  12385. done
  12386. case $lt_echo in
  12387. *'\$0 --fallback-echo"')
  12388. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  12389. ;;
  12390. esac
  12391. cfgfile="$ofile"
  12392. cat <<__EOF__ >> "$cfgfile"
  12393. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  12394. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12395. # Shell to use when invoking shell scripts.
  12396. SHELL=$lt_SHELL
  12397. # Whether or not to build shared libraries.
  12398. build_libtool_libs=$enable_shared
  12399. # Whether or not to build static libraries.
  12400. build_old_libs=$enable_static
  12401. # Whether or not to add -lc for building shared libraries.
  12402. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  12403. # Whether or not to disallow shared libs when runtime libs are static
  12404. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  12405. # Whether or not to optimize for fast installation.
  12406. fast_install=$enable_fast_install
  12407. # The host system.
  12408. host_alias=$host_alias
  12409. host=$host
  12410. host_os=$host_os
  12411. # The build system.
  12412. build_alias=$build_alias
  12413. build=$build
  12414. build_os=$build_os
  12415. # An echo program that does not interpret backslashes.
  12416. echo=$lt_echo
  12417. # The archiver.
  12418. AR=$lt_AR
  12419. AR_FLAGS=$lt_AR_FLAGS
  12420. # A C compiler.
  12421. LTCC=$lt_LTCC
  12422. # A language-specific compiler.
  12423. CC=$lt_compiler_CXX
  12424. # Is the compiler the GNU C compiler?
  12425. with_gcc=$GCC_CXX
  12426. # An ERE matcher.
  12427. EGREP=$lt_EGREP
  12428. # The linker used to build libraries.
  12429. LD=$lt_LD_CXX
  12430. # Whether we need hard or soft links.
  12431. LN_S=$lt_LN_S
  12432. # A BSD-compatible nm program.
  12433. NM=$lt_NM
  12434. # A symbol stripping program
  12435. STRIP=$lt_STRIP
  12436. # Used to examine libraries when file_magic_cmd begins "file"
  12437. MAGIC_CMD=$MAGIC_CMD
  12438. # Used on cygwin: DLL creation program.
  12439. DLLTOOL="$DLLTOOL"
  12440. # Used on cygwin: object dumper.
  12441. OBJDUMP="$OBJDUMP"
  12442. # Used on cygwin: assembler.
  12443. AS="$AS"
  12444. # The name of the directory that contains temporary libtool files.
  12445. objdir=$objdir
  12446. # How to create reloadable object files.
  12447. reload_flag=$lt_reload_flag
  12448. reload_cmds=$lt_reload_cmds
  12449. # How to pass a linker flag through the compiler.
  12450. wl=$lt_lt_prog_compiler_wl_CXX
  12451. # Object file suffix (normally "o").
  12452. objext="$ac_objext"
  12453. # Old archive suffix (normally "a").
  12454. libext="$libext"
  12455. # Shared library suffix (normally ".so").
  12456. shrext_cmds='$shrext_cmds'
  12457. # Executable file suffix (normally "").
  12458. exeext="$exeext"
  12459. # Additional compiler flags for building library objects.
  12460. pic_flag=$lt_lt_prog_compiler_pic_CXX
  12461. pic_mode=$pic_mode
  12462. # What is the maximum length of a command?
  12463. max_cmd_len=$lt_cv_sys_max_cmd_len
  12464. # Does compiler simultaneously support -c and -o options?
  12465. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  12466. # Must we lock files when doing compilation?
  12467. need_locks=$lt_need_locks
  12468. # Do we need the lib prefix for modules?
  12469. need_lib_prefix=$need_lib_prefix
  12470. # Do we need a version for libraries?
  12471. need_version=$need_version
  12472. # Whether dlopen is supported.
  12473. dlopen_support=$enable_dlopen
  12474. # Whether dlopen of programs is supported.
  12475. dlopen_self=$enable_dlopen_self
  12476. # Whether dlopen of statically linked programs is supported.
  12477. dlopen_self_static=$enable_dlopen_self_static
  12478. # Compiler flag to prevent dynamic linking.
  12479. link_static_flag=$lt_lt_prog_compiler_static_CXX
  12480. # Compiler flag to turn off builtin functions.
  12481. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  12482. # Compiler flag to allow reflexive dlopens.
  12483. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  12484. # Compiler flag to generate shared objects directly from archives.
  12485. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  12486. # Compiler flag to generate thread-safe objects.
  12487. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  12488. # Library versioning type.
  12489. version_type=$version_type
  12490. # Format of library name prefix.
  12491. libname_spec=$lt_libname_spec
  12492. # List of archive names. First name is the real one, the rest are links.
  12493. # The last name is the one that the linker finds with -lNAME.
  12494. library_names_spec=$lt_library_names_spec
  12495. # The coded name of the library, if different from the real name.
  12496. soname_spec=$lt_soname_spec
  12497. # Commands used to build and install an old-style archive.
  12498. RANLIB=$lt_RANLIB
  12499. old_archive_cmds=$lt_old_archive_cmds_CXX
  12500. old_postinstall_cmds=$lt_old_postinstall_cmds
  12501. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12502. # Create an old-style archive from a shared archive.
  12503. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  12504. # Create a temporary old-style archive to link instead of a shared archive.
  12505. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  12506. # Commands used to build and install a shared archive.
  12507. archive_cmds=$lt_archive_cmds_CXX
  12508. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  12509. postinstall_cmds=$lt_postinstall_cmds
  12510. postuninstall_cmds=$lt_postuninstall_cmds
  12511. # Commands used to build a loadable module (assumed same as above if empty)
  12512. module_cmds=$lt_module_cmds_CXX
  12513. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  12514. # Commands to strip libraries.
  12515. old_striplib=$lt_old_striplib
  12516. striplib=$lt_striplib
  12517. # Dependencies to place before the objects being linked to create a
  12518. # shared library.
  12519. predep_objects=$lt_predep_objects_CXX
  12520. # Dependencies to place after the objects being linked to create a
  12521. # shared library.
  12522. postdep_objects=$lt_postdep_objects_CXX
  12523. # Dependencies to place before the objects being linked to create a
  12524. # shared library.
  12525. predeps=$lt_predeps_CXX
  12526. # Dependencies to place after the objects being linked to create a
  12527. # shared library.
  12528. postdeps=$lt_postdeps_CXX
  12529. # The library search path used internally by the compiler when linking
  12530. # a shared library.
  12531. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  12532. # Method to check whether dependent libraries are shared objects.
  12533. deplibs_check_method=$lt_deplibs_check_method
  12534. # Command to use when deplibs_check_method == file_magic.
  12535. file_magic_cmd=$lt_file_magic_cmd
  12536. # Flag that allows shared libraries with undefined symbols to be built.
  12537. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  12538. # Flag that forces no undefined symbols.
  12539. no_undefined_flag=$lt_no_undefined_flag_CXX
  12540. # Commands used to finish a libtool library installation in a directory.
  12541. finish_cmds=$lt_finish_cmds
  12542. # Same as above, but a single script fragment to be evaled but not shown.
  12543. finish_eval=$lt_finish_eval
  12544. # Take the output of nm and produce a listing of raw symbols and C names.
  12545. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12546. # Transform the output of nm in a proper C declaration
  12547. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12548. # Transform the output of nm in a C name address pair
  12549. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12550. # This is the shared library runtime path variable.
  12551. runpath_var=$runpath_var
  12552. # This is the shared library path variable.
  12553. shlibpath_var=$shlibpath_var
  12554. # Is shlibpath searched before the hard-coded library search path?
  12555. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12556. # How to hardcode a shared library path into an executable.
  12557. hardcode_action=$hardcode_action_CXX
  12558. # Whether we should hardcode library paths into libraries.
  12559. hardcode_into_libs=$hardcode_into_libs
  12560. # Flag to hardcode \$libdir into a binary during linking.
  12561. # This must work even if \$libdir does not exist.
  12562. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  12563. # If ld is used when linking, flag to hardcode \$libdir into
  12564. # a binary during linking. This must work even if \$libdir does
  12565. # not exist.
  12566. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  12567. # Whether we need a single -rpath flag with a separated argument.
  12568. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  12569. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  12570. # resulting binary.
  12571. hardcode_direct=$hardcode_direct_CXX
  12572. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  12573. # resulting binary.
  12574. hardcode_minus_L=$hardcode_minus_L_CXX
  12575. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  12576. # the resulting binary.
  12577. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  12578. # Set to yes if building a shared library automatically hardcodes DIR into the library
  12579. # and all subsequent libraries and executables linked against it.
  12580. hardcode_automatic=$hardcode_automatic_CXX
  12581. # Variables whose values should be saved in libtool wrapper scripts and
  12582. # restored at relink time.
  12583. variables_saved_for_relink="$variables_saved_for_relink"
  12584. # Whether libtool must link a program against all its dependency libraries.
  12585. link_all_deplibs=$link_all_deplibs_CXX
  12586. # Compile-time system search path for libraries
  12587. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12588. # Run-time system search path for libraries
  12589. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12590. # Fix the shell variable \$srcfile for the compiler.
  12591. fix_srcfile_path="$fix_srcfile_path_CXX"
  12592. # Set to yes if exported symbols are required.
  12593. always_export_symbols=$always_export_symbols_CXX
  12594. # The commands to list exported symbols.
  12595. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  12596. # The commands to extract the exported symbol list from a shared archive.
  12597. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12598. # Symbols that should not be listed in the preloaded symbols.
  12599. exclude_expsyms=$lt_exclude_expsyms_CXX
  12600. # Symbols that must always be exported.
  12601. include_expsyms=$lt_include_expsyms_CXX
  12602. # ### END LIBTOOL TAG CONFIG: $tagname
  12603. __EOF__
  12604. else
  12605. # If there is no Makefile yet, we rely on a make rule to execute
  12606. # `config.status --recheck' to rerun these tests and create the
  12607. # libtool script then.
  12608. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  12609. if test -f "$ltmain_in"; then
  12610. test -f Makefile && make "$ltmain"
  12611. fi
  12612. fi
  12613. ac_ext=c
  12614. ac_cpp='$CPP $CPPFLAGS'
  12615. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12616. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12617. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12618. CC=$lt_save_CC
  12619. LDCXX=$LD
  12620. LD=$lt_save_LD
  12621. GCC=$lt_save_GCC
  12622. with_gnu_ldcxx=$with_gnu_ld
  12623. with_gnu_ld=$lt_save_with_gnu_ld
  12624. lt_cv_path_LDCXX=$lt_cv_path_LD
  12625. lt_cv_path_LD=$lt_save_path_LD
  12626. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12627. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12628. else
  12629. tagname=""
  12630. fi
  12631. ;;
  12632. F77)
  12633. if test -n "$F77" && test "X$F77" != "Xno"; then
  12634. ac_ext=f
  12635. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  12636. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12637. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  12638. archive_cmds_need_lc_F77=no
  12639. allow_undefined_flag_F77=
  12640. always_export_symbols_F77=no
  12641. archive_expsym_cmds_F77=
  12642. export_dynamic_flag_spec_F77=
  12643. hardcode_direct_F77=no
  12644. hardcode_libdir_flag_spec_F77=
  12645. hardcode_libdir_flag_spec_ld_F77=
  12646. hardcode_libdir_separator_F77=
  12647. hardcode_minus_L_F77=no
  12648. hardcode_automatic_F77=no
  12649. module_cmds_F77=
  12650. module_expsym_cmds_F77=
  12651. link_all_deplibs_F77=unknown
  12652. old_archive_cmds_F77=$old_archive_cmds
  12653. no_undefined_flag_F77=
  12654. whole_archive_flag_spec_F77=
  12655. enable_shared_with_static_runtimes_F77=no
  12656. # Source file extension for f77 test sources.
  12657. ac_ext=f
  12658. # Object file extension for compiled f77 test sources.
  12659. objext=o
  12660. objext_F77=$objext
  12661. # Code to be used in simple compile tests
  12662. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  12663. # Code to be used in simple link tests
  12664. lt_simple_link_test_code=" program t\n end\n"
  12665. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12666. # If no C compiler was specified, use CC.
  12667. LTCC=${LTCC-"$CC"}
  12668. # Allow CC to be a program name with arguments.
  12669. compiler=$CC
  12670. # save warnings/boilerplate of simple test code
  12671. ac_outfile=conftest.$ac_objext
  12672. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  12673. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  12674. _lt_compiler_boilerplate=`cat conftest.err`
  12675. $rm conftest*
  12676. ac_outfile=conftest.$ac_objext
  12677. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  12678. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  12679. _lt_linker_boilerplate=`cat conftest.err`
  12680. $rm conftest*
  12681. # Allow CC to be a program name with arguments.
  12682. lt_save_CC="$CC"
  12683. CC=${F77-"f77"}
  12684. compiler=$CC
  12685. compiler_F77=$CC
  12686. for cc_temp in $compiler""; do
  12687. case $cc_temp in
  12688. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12689. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12690. \-*) ;;
  12691. *) break;;
  12692. esac
  12693. done
  12694. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12695. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  12696. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  12697. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  12698. echo "${ECHO_T}$can_build_shared" >&6; }
  12699. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  12700. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  12701. test "$can_build_shared" = "no" && enable_shared=no
  12702. # On AIX, shared libraries and static libraries use the same namespace, and
  12703. # are all built from PIC.
  12704. case "$host_os" in
  12705. aix3*)
  12706. test "$enable_shared" = yes && enable_static=no
  12707. if test -n "$RANLIB"; then
  12708. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12709. postinstall_cmds='$RANLIB $lib'
  12710. fi
  12711. ;;
  12712. aix4* | aix5*)
  12713. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  12714. test "$enable_shared" = yes && enable_static=no
  12715. fi
  12716. ;;
  12717. esac
  12718. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  12719. echo "${ECHO_T}$enable_shared" >&6; }
  12720. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  12721. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  12722. # Make sure either enable_shared or enable_static is yes.
  12723. test "$enable_shared" = yes || enable_static=yes
  12724. { echo "$as_me:$LINENO: result: $enable_static" >&5
  12725. echo "${ECHO_T}$enable_static" >&6; }
  12726. test "$ld_shlibs_F77" = no && can_build_shared=no
  12727. GCC_F77="$G77"
  12728. LD_F77="$LD"
  12729. lt_prog_compiler_wl_F77=
  12730. lt_prog_compiler_pic_F77=
  12731. lt_prog_compiler_static_F77=
  12732. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12733. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  12734. if test "$GCC" = yes; then
  12735. lt_prog_compiler_wl_F77='-Wl,'
  12736. lt_prog_compiler_static_F77='-static'
  12737. case $host_os in
  12738. aix*)
  12739. # All AIX code is PIC.
  12740. if test "$host_cpu" = ia64; then
  12741. # AIX 5 now supports IA64 processor
  12742. lt_prog_compiler_static_F77='-Bstatic'
  12743. fi
  12744. ;;
  12745. amigaos*)
  12746. # FIXME: we need at least 68020 code to build shared libraries, but
  12747. # adding the `-m68020' flag to GCC prevents building anything better,
  12748. # like `-m68040'.
  12749. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  12750. ;;
  12751. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12752. # PIC is the default for these OSes.
  12753. ;;
  12754. mingw* | pw32* | os2*)
  12755. # This hack is so that the source file can tell whether it is being
  12756. # built for inclusion in a dll (and should export symbols for example).
  12757. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12758. ;;
  12759. darwin* | rhapsody*)
  12760. # PIC is the default on this platform
  12761. # Common symbols not allowed in MH_DYLIB files
  12762. lt_prog_compiler_pic_F77='-fno-common'
  12763. ;;
  12764. msdosdjgpp*)
  12765. # Just because we use GCC doesn't mean we suddenly get shared libraries
  12766. # on systems that don't support them.
  12767. lt_prog_compiler_can_build_shared_F77=no
  12768. enable_shared=no
  12769. ;;
  12770. sysv4*MP*)
  12771. if test -d /usr/nec; then
  12772. lt_prog_compiler_pic_F77=-Kconform_pic
  12773. fi
  12774. ;;
  12775. hpux*)
  12776. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12777. # not for PA HP-UX.
  12778. case "$host_cpu" in
  12779. hppa*64*|ia64*)
  12780. # +Z the default
  12781. ;;
  12782. *)
  12783. lt_prog_compiler_pic_F77='-fPIC'
  12784. ;;
  12785. esac
  12786. ;;
  12787. *)
  12788. lt_prog_compiler_pic_F77='-fPIC'
  12789. ;;
  12790. esac
  12791. else
  12792. # PORTME Check for flag to pass linker flags through the system compiler.
  12793. case $host_os in
  12794. aix*)
  12795. lt_prog_compiler_wl_F77='-Wl,'
  12796. if test "$host_cpu" = ia64; then
  12797. # AIX 5 now supports IA64 processor
  12798. lt_prog_compiler_static_F77='-Bstatic'
  12799. else
  12800. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  12801. fi
  12802. ;;
  12803. darwin*)
  12804. # PIC is the default on this platform
  12805. # Common symbols not allowed in MH_DYLIB files
  12806. case $cc_basename in
  12807. xlc*)
  12808. lt_prog_compiler_pic_F77='-qnocommon'
  12809. lt_prog_compiler_wl_F77='-Wl,'
  12810. ;;
  12811. esac
  12812. ;;
  12813. mingw* | pw32* | os2*)
  12814. # This hack is so that the source file can tell whether it is being
  12815. # built for inclusion in a dll (and should export symbols for example).
  12816. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12817. ;;
  12818. hpux9* | hpux10* | hpux11*)
  12819. lt_prog_compiler_wl_F77='-Wl,'
  12820. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12821. # not for PA HP-UX.
  12822. case "$host_cpu" in
  12823. hppa*64*|ia64*)
  12824. # +Z the default
  12825. ;;
  12826. *)
  12827. lt_prog_compiler_pic_F77='+Z'
  12828. ;;
  12829. esac
  12830. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12831. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  12832. ;;
  12833. irix5* | irix6* | nonstopux*)
  12834. lt_prog_compiler_wl_F77='-Wl,'
  12835. # PIC (with -KPIC) is the default.
  12836. lt_prog_compiler_static_F77='-non_shared'
  12837. ;;
  12838. newsos6)
  12839. lt_prog_compiler_pic_F77='-KPIC'
  12840. lt_prog_compiler_static_F77='-Bstatic'
  12841. ;;
  12842. linux*)
  12843. case $cc_basename in
  12844. icc* | ecc*)
  12845. lt_prog_compiler_wl_F77='-Wl,'
  12846. lt_prog_compiler_pic_F77='-KPIC'
  12847. lt_prog_compiler_static_F77='-static'
  12848. ;;
  12849. pgcc* | pgf77* | pgf90*)
  12850. # Portland Group compilers (*not* the Pentium gcc compiler,
  12851. # which looks to be a dead project)
  12852. lt_prog_compiler_wl_F77='-Wl,'
  12853. lt_prog_compiler_pic_F77='-fpic'
  12854. lt_prog_compiler_static_F77='-static'
  12855. ;;
  12856. ccc*)
  12857. lt_prog_compiler_wl_F77='-Wl,'
  12858. # All Alpha code is PIC.
  12859. lt_prog_compiler_static_F77='-non_shared'
  12860. ;;
  12861. esac
  12862. ;;
  12863. osf3* | osf4* | osf5*)
  12864. lt_prog_compiler_wl_F77='-Wl,'
  12865. # All OSF/1 code is PIC.
  12866. lt_prog_compiler_static_F77='-non_shared'
  12867. ;;
  12868. sco3.2v5*)
  12869. lt_prog_compiler_pic_F77='-Kpic'
  12870. lt_prog_compiler_static_F77='-dn'
  12871. ;;
  12872. solaris*)
  12873. lt_prog_compiler_pic_F77='-KPIC'
  12874. lt_prog_compiler_static_F77='-Bstatic'
  12875. case $cc_basename in
  12876. f77* | f90* | f95*)
  12877. lt_prog_compiler_wl_F77='-Qoption ld ';;
  12878. *)
  12879. lt_prog_compiler_wl_F77='-Wl,';;
  12880. esac
  12881. ;;
  12882. sunos4*)
  12883. lt_prog_compiler_wl_F77='-Qoption ld '
  12884. lt_prog_compiler_pic_F77='-PIC'
  12885. lt_prog_compiler_static_F77='-Bstatic'
  12886. ;;
  12887. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  12888. lt_prog_compiler_wl_F77='-Wl,'
  12889. lt_prog_compiler_pic_F77='-KPIC'
  12890. lt_prog_compiler_static_F77='-Bstatic'
  12891. ;;
  12892. sysv4*MP*)
  12893. if test -d /usr/nec ;then
  12894. lt_prog_compiler_pic_F77='-Kconform_pic'
  12895. lt_prog_compiler_static_F77='-Bstatic'
  12896. fi
  12897. ;;
  12898. unicos*)
  12899. lt_prog_compiler_wl_F77='-Wl,'
  12900. lt_prog_compiler_can_build_shared_F77=no
  12901. ;;
  12902. uts4*)
  12903. lt_prog_compiler_pic_F77='-pic'
  12904. lt_prog_compiler_static_F77='-Bstatic'
  12905. ;;
  12906. *)
  12907. lt_prog_compiler_can_build_shared_F77=no
  12908. ;;
  12909. esac
  12910. fi
  12911. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  12912. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  12913. #
  12914. # Check to make sure the PIC flag actually works.
  12915. #
  12916. if test -n "$lt_prog_compiler_pic_F77"; then
  12917. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  12918. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  12919. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  12920. echo $ECHO_N "(cached) $ECHO_C" >&6
  12921. else
  12922. lt_prog_compiler_pic_works_F77=no
  12923. ac_outfile=conftest.$ac_objext
  12924. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12925. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  12926. # Insert the option either (1) after the last *FLAGS variable, or
  12927. # (2) before a word containing "conftest.", or (3) at the end.
  12928. # Note that $ac_compile itself does not contain backslashes and begins
  12929. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12930. # The option is referenced via a variable to avoid confusing sed.
  12931. lt_compile=`echo "$ac_compile" | $SED \
  12932. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  12933. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12934. -e 's:$: $lt_compiler_flag:'`
  12935. (eval echo "\"\$as_me:14478: $lt_compile\"" >&5)
  12936. (eval "$lt_compile" 2>conftest.err)
  12937. ac_status=$?
  12938. cat conftest.err >&5
  12939. echo "$as_me:14482: \$? = $ac_status" >&5
  12940. if (exit $ac_status) && test -s "$ac_outfile"; then
  12941. # The compiler can only warn and ignore the option if not recognized
  12942. # So say no if there are warnings other than the usual output.
  12943. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  12944. $SED '/^$/d' conftest.err >conftest.er2
  12945. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  12946. lt_prog_compiler_pic_works_F77=yes
  12947. fi
  12948. fi
  12949. $rm conftest*
  12950. fi
  12951. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  12952. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
  12953. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  12954. case $lt_prog_compiler_pic_F77 in
  12955. "" | " "*) ;;
  12956. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  12957. esac
  12958. else
  12959. lt_prog_compiler_pic_F77=
  12960. lt_prog_compiler_can_build_shared_F77=no
  12961. fi
  12962. fi
  12963. case "$host_os" in
  12964. # For platforms which do not support PIC, -DPIC is meaningless:
  12965. *djgpp*)
  12966. lt_prog_compiler_pic_F77=
  12967. ;;
  12968. *)
  12969. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  12970. ;;
  12971. esac
  12972. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12973. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  12974. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  12975. echo $ECHO_N "(cached) $ECHO_C" >&6
  12976. else
  12977. lt_cv_prog_compiler_c_o_F77=no
  12978. $rm -r conftest 2>/dev/null
  12979. mkdir conftest
  12980. cd conftest
  12981. mkdir out
  12982. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12983. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12984. # Insert the option either (1) after the last *FLAGS variable, or
  12985. # (2) before a word containing "conftest.", or (3) at the end.
  12986. # Note that $ac_compile itself does not contain backslashes and begins
  12987. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12988. lt_compile=`echo "$ac_compile" | $SED \
  12989. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  12990. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12991. -e 's:$: $lt_compiler_flag:'`
  12992. (eval echo "\"\$as_me:14540: $lt_compile\"" >&5)
  12993. (eval "$lt_compile" 2>out/conftest.err)
  12994. ac_status=$?
  12995. cat out/conftest.err >&5
  12996. echo "$as_me:14544: \$? = $ac_status" >&5
  12997. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12998. then
  12999. # The compiler can only warn and ignore the option if not recognized
  13000. # So say no if there are warnings
  13001. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  13002. $SED '/^$/d' out/conftest.err >out/conftest.er2
  13003. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13004. lt_cv_prog_compiler_c_o_F77=yes
  13005. fi
  13006. fi
  13007. chmod u+w .
  13008. $rm conftest*
  13009. # SGI C++ compiler will create directory out/ii_files/ for
  13010. # template instantiation
  13011. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  13012. $rm out/* && rmdir out
  13013. cd ..
  13014. rmdir conftest
  13015. $rm conftest*
  13016. fi
  13017. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  13018. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  13019. hard_links="nottested"
  13020. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  13021. # do not overwrite the value of need_locks provided by the user
  13022. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  13023. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  13024. hard_links=yes
  13025. $rm conftest*
  13026. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13027. touch conftest.a
  13028. ln conftest.a conftest.b 2>&5 || hard_links=no
  13029. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13030. { echo "$as_me:$LINENO: result: $hard_links" >&5
  13031. echo "${ECHO_T}$hard_links" >&6; }
  13032. if test "$hard_links" = no; then
  13033. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  13034. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  13035. need_locks=warn
  13036. fi
  13037. else
  13038. need_locks=no
  13039. fi
  13040. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13041. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  13042. runpath_var=
  13043. allow_undefined_flag_F77=
  13044. enable_shared_with_static_runtimes_F77=no
  13045. archive_cmds_F77=
  13046. archive_expsym_cmds_F77=
  13047. old_archive_From_new_cmds_F77=
  13048. old_archive_from_expsyms_cmds_F77=
  13049. export_dynamic_flag_spec_F77=
  13050. whole_archive_flag_spec_F77=
  13051. thread_safe_flag_spec_F77=
  13052. hardcode_libdir_flag_spec_F77=
  13053. hardcode_libdir_flag_spec_ld_F77=
  13054. hardcode_libdir_separator_F77=
  13055. hardcode_direct_F77=no
  13056. hardcode_minus_L_F77=no
  13057. hardcode_shlibpath_var_F77=unsupported
  13058. link_all_deplibs_F77=unknown
  13059. hardcode_automatic_F77=no
  13060. module_cmds_F77=
  13061. module_expsym_cmds_F77=
  13062. always_export_symbols_F77=no
  13063. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13064. # include_expsyms should be a list of space-separated symbols to be *always*
  13065. # included in the symbol list
  13066. include_expsyms_F77=
  13067. # exclude_expsyms can be an extended regexp of symbols to exclude
  13068. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  13069. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  13070. # as well as any symbol that contains `d'.
  13071. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  13072. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  13073. # platforms (ab)use it in PIC code, but their linkers get confused if
  13074. # the symbol is explicitly referenced. Since portable code cannot
  13075. # rely on this symbol name, it's probably fine to never include it in
  13076. # preloaded symbol tables.
  13077. extract_expsyms_cmds=
  13078. # Just being paranoid about ensuring that cc_basename is set.
  13079. for cc_temp in $compiler""; do
  13080. case $cc_temp in
  13081. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13082. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13083. \-*) ;;
  13084. *) break;;
  13085. esac
  13086. done
  13087. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13088. case $host_os in
  13089. cygwin* | mingw* | pw32*)
  13090. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  13091. # When not using gcc, we currently assume that we are using
  13092. # Microsoft Visual C++.
  13093. if test "$GCC" != yes; then
  13094. with_gnu_ld=no
  13095. fi
  13096. ;;
  13097. openbsd*)
  13098. with_gnu_ld=no
  13099. ;;
  13100. esac
  13101. ld_shlibs_F77=yes
  13102. if test "$with_gnu_ld" = yes; then
  13103. # If archive_cmds runs LD, not CC, wlarc should be empty
  13104. wlarc='${wl}'
  13105. # Set some defaults for GNU ld with shared library support. These
  13106. # are reset later if shared libraries are not supported. Putting them
  13107. # here allows them to be overridden if necessary.
  13108. runpath_var=LD_RUN_PATH
  13109. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  13110. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  13111. # ancient GNU ld didn't support --whole-archive et. al.
  13112. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  13113. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  13114. else
  13115. whole_archive_flag_spec_F77=
  13116. fi
  13117. supports_anon_versioning=no
  13118. case `$LD -v 2>/dev/null` in
  13119. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  13120. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  13121. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  13122. *\ 2.11.*) ;; # other 2.11 versions
  13123. *) supports_anon_versioning=yes ;;
  13124. esac
  13125. # See if GNU ld supports shared libraries.
  13126. case $host_os in
  13127. aix3* | aix4* | aix5*)
  13128. # On AIX/PPC, the GNU linker is very broken
  13129. if test "$host_cpu" != ia64; then
  13130. ld_shlibs_F77=no
  13131. cat <<EOF 1>&2
  13132. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  13133. *** to be unable to reliably create shared libraries on AIX.
  13134. *** Therefore, libtool is disabling shared libraries support. If you
  13135. *** really care for shared libraries, you may want to modify your PATH
  13136. *** so that a non-GNU linker is found, and then restart.
  13137. EOF
  13138. fi
  13139. ;;
  13140. amigaos*)
  13141. 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)'
  13142. hardcode_libdir_flag_spec_F77='-L$libdir'
  13143. hardcode_minus_L_F77=yes
  13144. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  13145. # that the semantics of dynamic libraries on AmigaOS, at least up
  13146. # to version 4, is to share data among multiple programs linked
  13147. # with the same dynamic library. Since this doesn't match the
  13148. # behavior of shared libraries on other platforms, we can't use
  13149. # them.
  13150. ld_shlibs_F77=no
  13151. ;;
  13152. beos*)
  13153. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13154. allow_undefined_flag_F77=unsupported
  13155. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13156. # support --undefined. This deserves some investigation. FIXME
  13157. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13158. else
  13159. ld_shlibs_F77=no
  13160. fi
  13161. ;;
  13162. cygwin* | mingw* | pw32*)
  13163. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  13164. # as there is no search path for DLLs.
  13165. hardcode_libdir_flag_spec_F77='-L$libdir'
  13166. allow_undefined_flag_F77=unsupported
  13167. always_export_symbols_F77=no
  13168. enable_shared_with_static_runtimes_F77=yes
  13169. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  13170. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  13171. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  13172. # If the export-symbols file already is a .def file (1st line
  13173. # is EXPORTS), use it as is; otherwise, prepend...
  13174. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13175. cp $export_symbols $output_objdir/$soname.def;
  13176. else
  13177. echo EXPORTS > $output_objdir/$soname.def;
  13178. cat $export_symbols >> $output_objdir/$soname.def;
  13179. fi~
  13180. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  13181. else
  13182. ld_shlibs_F77=no
  13183. fi
  13184. ;;
  13185. linux*)
  13186. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13187. tmp_addflag=
  13188. case $cc_basename,$host_cpu in
  13189. pgcc*) # Portland Group C compiler
  13190. 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'
  13191. tmp_addflag=' $pic_flag'
  13192. ;;
  13193. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  13194. 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'
  13195. tmp_addflag=' $pic_flag -Mnomain' ;;
  13196. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  13197. tmp_addflag=' -i_dynamic' ;;
  13198. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  13199. tmp_addflag=' -i_dynamic -nofor_main' ;;
  13200. ifc* | ifort*) # Intel Fortran compiler
  13201. tmp_addflag=' -nofor_main' ;;
  13202. esac
  13203. archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13204. if test $supports_anon_versioning = yes; then
  13205. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  13206. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13207. $echo "local: *; };" >> $output_objdir/$libname.ver~
  13208. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  13209. fi
  13210. else
  13211. ld_shlibs_F77=no
  13212. fi
  13213. ;;
  13214. netbsd*)
  13215. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13216. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13217. wlarc=
  13218. else
  13219. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13220. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13221. fi
  13222. ;;
  13223. solaris* | sysv5*)
  13224. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  13225. ld_shlibs_F77=no
  13226. cat <<EOF 1>&2
  13227. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13228. *** create shared libraries on Solaris systems. Therefore, libtool
  13229. *** is disabling shared libraries support. We urge you to upgrade GNU
  13230. *** binutils to release 2.9.1 or newer. Another option is to modify
  13231. *** your PATH or compiler configuration so that the native linker is
  13232. *** used, and then restart.
  13233. EOF
  13234. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13235. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13236. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13237. else
  13238. ld_shlibs_F77=no
  13239. fi
  13240. ;;
  13241. sunos4*)
  13242. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13243. wlarc=
  13244. hardcode_direct_F77=yes
  13245. hardcode_shlibpath_var_F77=no
  13246. ;;
  13247. *)
  13248. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13249. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13250. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13251. else
  13252. ld_shlibs_F77=no
  13253. fi
  13254. ;;
  13255. esac
  13256. if test "$ld_shlibs_F77" = no; then
  13257. runpath_var=
  13258. hardcode_libdir_flag_spec_F77=
  13259. export_dynamic_flag_spec_F77=
  13260. whole_archive_flag_spec_F77=
  13261. fi
  13262. else
  13263. # PORTME fill in a description of your system's linker (not GNU ld)
  13264. case $host_os in
  13265. aix3*)
  13266. allow_undefined_flag_F77=unsupported
  13267. always_export_symbols_F77=yes
  13268. 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'
  13269. # Note: this linker hardcodes the directories in LIBPATH if there
  13270. # are no directories specified by -L.
  13271. hardcode_minus_L_F77=yes
  13272. if test "$GCC" = yes && test -z "$link_static_flag"; then
  13273. # Neither direct hardcoding nor static linking is supported with a
  13274. # broken collect2.
  13275. hardcode_direct_F77=unsupported
  13276. fi
  13277. ;;
  13278. aix4* | aix5*)
  13279. if test "$host_cpu" = ia64; then
  13280. # On IA64, the linker does run time linking by default, so we don't
  13281. # have to do anything special.
  13282. aix_use_runtimelinking=no
  13283. exp_sym_flag='-Bexport'
  13284. no_entry_flag=""
  13285. else
  13286. # If we're using GNU nm, then we don't want the "-C" option.
  13287. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13288. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  13289. 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'
  13290. else
  13291. 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'
  13292. fi
  13293. aix_use_runtimelinking=no
  13294. # Test if we are trying to use run time linking or normal
  13295. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13296. # need to do runtime linking.
  13297. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  13298. for ld_flag in $LDFLAGS; do
  13299. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  13300. aix_use_runtimelinking=yes
  13301. break
  13302. fi
  13303. done
  13304. esac
  13305. exp_sym_flag='-bexport'
  13306. no_entry_flag='-bnoentry'
  13307. fi
  13308. # When large executables or shared objects are built, AIX ld can
  13309. # have problems creating the table of contents. If linking a library
  13310. # or program results in "error TOC overflow" add -mminimal-toc to
  13311. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13312. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13313. archive_cmds_F77=''
  13314. hardcode_direct_F77=yes
  13315. hardcode_libdir_separator_F77=':'
  13316. link_all_deplibs_F77=yes
  13317. if test "$GCC" = yes; then
  13318. case $host_os in aix4.[012]|aix4.[012].*)
  13319. # We only want to do this on AIX 4.2 and lower, the check
  13320. # below for broken collect2 doesn't work under 4.3+
  13321. collect2name=`${CC} -print-prog-name=collect2`
  13322. if test -f "$collect2name" && \
  13323. strings "$collect2name" | grep resolve_lib_name >/dev/null
  13324. then
  13325. # We have reworked collect2
  13326. hardcode_direct_F77=yes
  13327. else
  13328. # We have old collect2
  13329. hardcode_direct_F77=unsupported
  13330. # It fails to find uninstalled libraries when the uninstalled
  13331. # path is not listed in the libpath. Setting hardcode_minus_L
  13332. # to unsupported forces relinking
  13333. hardcode_minus_L_F77=yes
  13334. hardcode_libdir_flag_spec_F77='-L$libdir'
  13335. hardcode_libdir_separator_F77=
  13336. fi
  13337. esac
  13338. shared_flag='-shared'
  13339. if test "$aix_use_runtimelinking" = yes; then
  13340. shared_flag="$shared_flag "'${wl}-G'
  13341. fi
  13342. else
  13343. # not using gcc
  13344. if test "$host_cpu" = ia64; then
  13345. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13346. # chokes on -Wl,-G. The following line is correct:
  13347. shared_flag='-G'
  13348. else
  13349. if test "$aix_use_runtimelinking" = yes; then
  13350. shared_flag='${wl}-G'
  13351. else
  13352. shared_flag='${wl}-bM:SRE'
  13353. fi
  13354. fi
  13355. fi
  13356. # It seems that -bexpall does not export symbols beginning with
  13357. # underscore (_), so it is better to generate a list of symbols to export.
  13358. always_export_symbols_F77=yes
  13359. if test "$aix_use_runtimelinking" = yes; then
  13360. # Warning - without using the other runtime loading flags (-brtl),
  13361. # -berok will link without error, but may produce a broken library.
  13362. allow_undefined_flag_F77='-berok'
  13363. # Determine the default libpath from the value encoded in an empty executable.
  13364. cat >conftest.$ac_ext <<_ACEOF
  13365. program main
  13366. end
  13367. _ACEOF
  13368. rm -f conftest.$ac_objext conftest$ac_exeext
  13369. if { (ac_try="$ac_link"
  13370. case "(($ac_try" in
  13371. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13372. *) ac_try_echo=$ac_try;;
  13373. esac
  13374. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13375. (eval "$ac_link") 2>conftest.er1
  13376. ac_status=$?
  13377. grep -v '^ *+' conftest.er1 >conftest.err
  13378. rm -f conftest.er1
  13379. cat conftest.err >&5
  13380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13381. (exit $ac_status); } && {
  13382. test -z "$ac_f77_werror_flag" ||
  13383. test ! -s conftest.err
  13384. } && test -s conftest$ac_exeext &&
  13385. $as_test_x conftest$ac_exeext; then
  13386. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13387. }'`
  13388. # Check for a 64-bit object if we didn't find anything.
  13389. 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; }
  13390. }'`; fi
  13391. else
  13392. echo "$as_me: failed program was:" >&5
  13393. sed 's/^/| /' conftest.$ac_ext >&5
  13394. fi
  13395. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13396. conftest$ac_exeext conftest.$ac_ext
  13397. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13398. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13399. 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"
  13400. else
  13401. if test "$host_cpu" = ia64; then
  13402. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  13403. allow_undefined_flag_F77="-z nodefs"
  13404. 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"
  13405. else
  13406. # Determine the default libpath from the value encoded in an empty executable.
  13407. cat >conftest.$ac_ext <<_ACEOF
  13408. program main
  13409. end
  13410. _ACEOF
  13411. rm -f conftest.$ac_objext conftest$ac_exeext
  13412. if { (ac_try="$ac_link"
  13413. case "(($ac_try" in
  13414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13415. *) ac_try_echo=$ac_try;;
  13416. esac
  13417. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13418. (eval "$ac_link") 2>conftest.er1
  13419. ac_status=$?
  13420. grep -v '^ *+' conftest.er1 >conftest.err
  13421. rm -f conftest.er1
  13422. cat conftest.err >&5
  13423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13424. (exit $ac_status); } && {
  13425. test -z "$ac_f77_werror_flag" ||
  13426. test ! -s conftest.err
  13427. } && test -s conftest$ac_exeext &&
  13428. $as_test_x conftest$ac_exeext; then
  13429. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13430. }'`
  13431. # Check for a 64-bit object if we didn't find anything.
  13432. 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; }
  13433. }'`; fi
  13434. else
  13435. echo "$as_me: failed program was:" >&5
  13436. sed 's/^/| /' conftest.$ac_ext >&5
  13437. fi
  13438. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13439. conftest$ac_exeext conftest.$ac_ext
  13440. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13441. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13442. # Warning - without using the other run time loading flags,
  13443. # -berok will link without error, but may produce a broken library.
  13444. no_undefined_flag_F77=' ${wl}-bernotok'
  13445. allow_undefined_flag_F77=' ${wl}-berok'
  13446. # -bexpall does not export symbols beginning with underscore (_)
  13447. always_export_symbols_F77=yes
  13448. # Exported symbols can be pulled into shared objects from archives
  13449. whole_archive_flag_spec_F77=' '
  13450. archive_cmds_need_lc_F77=yes
  13451. # This is similar to how AIX traditionally builds it's shared libraries.
  13452. 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'
  13453. fi
  13454. fi
  13455. ;;
  13456. amigaos*)
  13457. 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)'
  13458. hardcode_libdir_flag_spec_F77='-L$libdir'
  13459. hardcode_minus_L_F77=yes
  13460. # see comment about different semantics on the GNU ld section
  13461. ld_shlibs_F77=no
  13462. ;;
  13463. bsdi[45]*)
  13464. export_dynamic_flag_spec_F77=-rdynamic
  13465. ;;
  13466. cygwin* | mingw* | pw32*)
  13467. # When not using gcc, we currently assume that we are using
  13468. # Microsoft Visual C++.
  13469. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13470. # no search path for DLLs.
  13471. hardcode_libdir_flag_spec_F77=' '
  13472. allow_undefined_flag_F77=unsupported
  13473. # Tell ltmain to make .lib files, not .a files.
  13474. libext=lib
  13475. # Tell ltmain to make .dll files, not .so files.
  13476. shrext_cmds=".dll"
  13477. # FIXME: Setting linknames here is a bad hack.
  13478. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  13479. # The linker will automatically build a .lib file if we build a DLL.
  13480. old_archive_From_new_cmds_F77='true'
  13481. # FIXME: Should let the user specify the lib program.
  13482. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  13483. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  13484. enable_shared_with_static_runtimes_F77=yes
  13485. ;;
  13486. darwin* | rhapsody*)
  13487. case "$host_os" in
  13488. rhapsody* | darwin1.[012])
  13489. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  13490. ;;
  13491. *) # Darwin 1.3 on
  13492. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  13493. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13494. else
  13495. case ${MACOSX_DEPLOYMENT_TARGET} in
  13496. 10.[012])
  13497. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13498. ;;
  13499. 10.*)
  13500. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  13501. ;;
  13502. esac
  13503. fi
  13504. ;;
  13505. esac
  13506. archive_cmds_need_lc_F77=no
  13507. hardcode_direct_F77=no
  13508. hardcode_automatic_F77=yes
  13509. hardcode_shlibpath_var_F77=unsupported
  13510. whole_archive_flag_spec_F77=''
  13511. link_all_deplibs_F77=yes
  13512. if test "$GCC" = yes ; then
  13513. output_verbose_link_cmd='echo'
  13514. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  13515. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13516. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  13517. 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}'
  13518. 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}'
  13519. else
  13520. case $cc_basename in
  13521. xlc*)
  13522. output_verbose_link_cmd='echo'
  13523. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  13524. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13525. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  13526. 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}'
  13527. 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}'
  13528. ;;
  13529. *)
  13530. ld_shlibs_F77=no
  13531. ;;
  13532. esac
  13533. fi
  13534. ;;
  13535. dgux*)
  13536. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13537. hardcode_libdir_flag_spec_F77='-L$libdir'
  13538. hardcode_shlibpath_var_F77=no
  13539. ;;
  13540. freebsd1*)
  13541. ld_shlibs_F77=no
  13542. ;;
  13543. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  13544. # support. Future versions do this automatically, but an explicit c++rt0.o
  13545. # does not break anything, and helps significantly (at the cost of a little
  13546. # extra space).
  13547. freebsd2.2*)
  13548. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  13549. hardcode_libdir_flag_spec_F77='-R$libdir'
  13550. hardcode_direct_F77=yes
  13551. hardcode_shlibpath_var_F77=no
  13552. ;;
  13553. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  13554. freebsd2*)
  13555. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13556. hardcode_direct_F77=yes
  13557. hardcode_minus_L_F77=yes
  13558. hardcode_shlibpath_var_F77=no
  13559. ;;
  13560. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  13561. freebsd* | kfreebsd*-gnu | dragonfly*)
  13562. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  13563. hardcode_libdir_flag_spec_F77='-R$libdir'
  13564. hardcode_direct_F77=yes
  13565. hardcode_shlibpath_var_F77=no
  13566. ;;
  13567. hpux9*)
  13568. if test "$GCC" = yes; then
  13569. 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'
  13570. else
  13571. 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'
  13572. fi
  13573. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13574. hardcode_libdir_separator_F77=:
  13575. hardcode_direct_F77=yes
  13576. # hardcode_minus_L: Not really in the search PATH,
  13577. # but as the default location of the library.
  13578. hardcode_minus_L_F77=yes
  13579. export_dynamic_flag_spec_F77='${wl}-E'
  13580. ;;
  13581. hpux10* | hpux11*)
  13582. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13583. case "$host_cpu" in
  13584. hppa*64*|ia64*)
  13585. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13586. ;;
  13587. *)
  13588. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13589. ;;
  13590. esac
  13591. else
  13592. case "$host_cpu" in
  13593. hppa*64*|ia64*)
  13594. archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  13595. ;;
  13596. *)
  13597. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13598. ;;
  13599. esac
  13600. fi
  13601. if test "$with_gnu_ld" = no; then
  13602. case "$host_cpu" in
  13603. hppa*64*)
  13604. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13605. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  13606. hardcode_libdir_separator_F77=:
  13607. hardcode_direct_F77=no
  13608. hardcode_shlibpath_var_F77=no
  13609. ;;
  13610. ia64*)
  13611. hardcode_libdir_flag_spec_F77='-L$libdir'
  13612. hardcode_direct_F77=no
  13613. hardcode_shlibpath_var_F77=no
  13614. # hardcode_minus_L: Not really in the search PATH,
  13615. # but as the default location of the library.
  13616. hardcode_minus_L_F77=yes
  13617. ;;
  13618. *)
  13619. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13620. hardcode_libdir_separator_F77=:
  13621. hardcode_direct_F77=yes
  13622. export_dynamic_flag_spec_F77='${wl}-E'
  13623. # hardcode_minus_L: Not really in the search PATH,
  13624. # but as the default location of the library.
  13625. hardcode_minus_L_F77=yes
  13626. ;;
  13627. esac
  13628. fi
  13629. ;;
  13630. irix5* | irix6* | nonstopux*)
  13631. if test "$GCC" = yes; then
  13632. 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'
  13633. else
  13634. 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'
  13635. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  13636. fi
  13637. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13638. hardcode_libdir_separator_F77=:
  13639. link_all_deplibs_F77=yes
  13640. ;;
  13641. netbsd*)
  13642. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13643. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  13644. else
  13645. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  13646. fi
  13647. hardcode_libdir_flag_spec_F77='-R$libdir'
  13648. hardcode_direct_F77=yes
  13649. hardcode_shlibpath_var_F77=no
  13650. ;;
  13651. newsos6)
  13652. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13653. hardcode_direct_F77=yes
  13654. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13655. hardcode_libdir_separator_F77=:
  13656. hardcode_shlibpath_var_F77=no
  13657. ;;
  13658. openbsd*)
  13659. hardcode_direct_F77=yes
  13660. hardcode_shlibpath_var_F77=no
  13661. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13662. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13663. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  13664. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13665. export_dynamic_flag_spec_F77='${wl}-E'
  13666. else
  13667. case $host_os in
  13668. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  13669. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13670. hardcode_libdir_flag_spec_F77='-R$libdir'
  13671. ;;
  13672. *)
  13673. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13674. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13675. ;;
  13676. esac
  13677. fi
  13678. ;;
  13679. os2*)
  13680. hardcode_libdir_flag_spec_F77='-L$libdir'
  13681. hardcode_minus_L_F77=yes
  13682. allow_undefined_flag_F77=unsupported
  13683. 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'
  13684. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  13685. ;;
  13686. osf3*)
  13687. if test "$GCC" = yes; then
  13688. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13689. 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'
  13690. else
  13691. allow_undefined_flag_F77=' -expect_unresolved \*'
  13692. 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'
  13693. fi
  13694. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13695. hardcode_libdir_separator_F77=:
  13696. ;;
  13697. osf4* | osf5*) # as osf3* with the addition of -msym flag
  13698. if test "$GCC" = yes; then
  13699. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13700. 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'
  13701. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13702. else
  13703. allow_undefined_flag_F77=' -expect_unresolved \*'
  13704. 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'
  13705. 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~
  13706. $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'
  13707. # Both c and cxx compiler support -rpath directly
  13708. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  13709. fi
  13710. hardcode_libdir_separator_F77=:
  13711. ;;
  13712. sco3.2v5*)
  13713. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13714. hardcode_shlibpath_var_F77=no
  13715. export_dynamic_flag_spec_F77='${wl}-Bexport'
  13716. runpath_var=LD_RUN_PATH
  13717. hardcode_runpath_var=yes
  13718. ;;
  13719. solaris*)
  13720. no_undefined_flag_F77=' -z text'
  13721. if test "$GCC" = yes; then
  13722. wlarc='${wl}'
  13723. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13724. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13725. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  13726. else
  13727. wlarc=''
  13728. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13729. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13730. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13731. fi
  13732. hardcode_libdir_flag_spec_F77='-R$libdir'
  13733. hardcode_shlibpath_var_F77=no
  13734. case $host_os in
  13735. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13736. *)
  13737. # The compiler driver will combine linker options so we
  13738. # cannot just pass the convience library names through
  13739. # without $wl, iff we do not link with $LD.
  13740. # Luckily, gcc supports the same syntax we need for Sun Studio.
  13741. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13742. case $wlarc in
  13743. '')
  13744. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  13745. *)
  13746. 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' ;;
  13747. esac ;;
  13748. esac
  13749. link_all_deplibs_F77=yes
  13750. ;;
  13751. sunos4*)
  13752. if test "x$host_vendor" = xsequent; then
  13753. # Use $CC to link under sequent, because it throws in some extra .o
  13754. # files that make .init and .fini sections work.
  13755. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13756. else
  13757. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13758. fi
  13759. hardcode_libdir_flag_spec_F77='-L$libdir'
  13760. hardcode_direct_F77=yes
  13761. hardcode_minus_L_F77=yes
  13762. hardcode_shlibpath_var_F77=no
  13763. ;;
  13764. sysv4)
  13765. case $host_vendor in
  13766. sni)
  13767. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13768. hardcode_direct_F77=yes # is this really true???
  13769. ;;
  13770. siemens)
  13771. ## LD is ld it makes a PLAMLIB
  13772. ## CC just makes a GrossModule.
  13773. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13774. reload_cmds_F77='$CC -r -o $output$reload_objs'
  13775. hardcode_direct_F77=no
  13776. ;;
  13777. motorola)
  13778. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13779. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  13780. ;;
  13781. esac
  13782. runpath_var='LD_RUN_PATH'
  13783. hardcode_shlibpath_var_F77=no
  13784. ;;
  13785. sysv4.3*)
  13786. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13787. hardcode_shlibpath_var_F77=no
  13788. export_dynamic_flag_spec_F77='-Bexport'
  13789. ;;
  13790. sysv4*MP*)
  13791. if test -d /usr/nec; then
  13792. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13793. hardcode_shlibpath_var_F77=no
  13794. runpath_var=LD_RUN_PATH
  13795. hardcode_runpath_var=yes
  13796. ld_shlibs_F77=yes
  13797. fi
  13798. ;;
  13799. sysv4.2uw2*)
  13800. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13801. hardcode_direct_F77=yes
  13802. hardcode_minus_L_F77=no
  13803. hardcode_shlibpath_var_F77=no
  13804. hardcode_runpath_var=yes
  13805. runpath_var=LD_RUN_PATH
  13806. ;;
  13807. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  13808. no_undefined_flag_F77='${wl}-z ${wl}text'
  13809. if test "$GCC" = yes; then
  13810. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13811. else
  13812. archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13813. fi
  13814. runpath_var='LD_RUN_PATH'
  13815. hardcode_shlibpath_var_F77=no
  13816. ;;
  13817. sysv5*)
  13818. no_undefined_flag_F77=' -z text'
  13819. # $CC -shared without GNU ld will not create a library from C++
  13820. # object files and a static libstdc++, better avoid it by now
  13821. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13822. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13823. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13824. hardcode_libdir_flag_spec_F77=
  13825. hardcode_shlibpath_var_F77=no
  13826. runpath_var='LD_RUN_PATH'
  13827. ;;
  13828. uts4*)
  13829. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13830. hardcode_libdir_flag_spec_F77='-L$libdir'
  13831. hardcode_shlibpath_var_F77=no
  13832. ;;
  13833. *)
  13834. ld_shlibs_F77=no
  13835. ;;
  13836. esac
  13837. fi
  13838. { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  13839. echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  13840. test "$ld_shlibs_F77" = no && can_build_shared=no
  13841. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13842. if test "$GCC" = yes; then
  13843. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13844. fi
  13845. #
  13846. # Do we need to explicitly link libc?
  13847. #
  13848. case "x$archive_cmds_need_lc_F77" in
  13849. x|xyes)
  13850. # Assume -lc should be added
  13851. archive_cmds_need_lc_F77=yes
  13852. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13853. case $archive_cmds_F77 in
  13854. *'~'*)
  13855. # FIXME: we may have to deal with multi-command sequences.
  13856. ;;
  13857. '$CC '*)
  13858. # Test whether the compiler implicitly links with -lc since on some
  13859. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13860. # to ld, don't add -lc before -lgcc.
  13861. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13862. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  13863. $rm conftest*
  13864. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13865. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13866. (eval $ac_compile) 2>&5
  13867. ac_status=$?
  13868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13869. (exit $ac_status); } 2>conftest.err; then
  13870. soname=conftest
  13871. lib=conftest
  13872. libobjs=conftest.$ac_objext
  13873. deplibs=
  13874. wl=$lt_prog_compiler_wl_F77
  13875. compiler_flags=-v
  13876. linker_flags=-v
  13877. verstring=
  13878. output_objdir=.
  13879. libname=conftest
  13880. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  13881. allow_undefined_flag_F77=
  13882. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13883. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13884. ac_status=$?
  13885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13886. (exit $ac_status); }
  13887. then
  13888. archive_cmds_need_lc_F77=no
  13889. else
  13890. archive_cmds_need_lc_F77=yes
  13891. fi
  13892. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  13893. else
  13894. cat conftest.err 1>&5
  13895. fi
  13896. $rm conftest*
  13897. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  13898. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  13899. ;;
  13900. esac
  13901. fi
  13902. ;;
  13903. esac
  13904. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  13905. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  13906. library_names_spec=
  13907. libname_spec='lib$name'
  13908. soname_spec=
  13909. shrext_cmds=".so"
  13910. postinstall_cmds=
  13911. postuninstall_cmds=
  13912. finish_cmds=
  13913. finish_eval=
  13914. shlibpath_var=
  13915. shlibpath_overrides_runpath=unknown
  13916. version_type=none
  13917. dynamic_linker="$host_os ld.so"
  13918. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13919. if test "$GCC" = yes; then
  13920. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13921. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  13922. # if the path contains ";" then we assume it to be the separator
  13923. # otherwise default to the standard path separator (i.e. ":") - it is
  13924. # assumed that no part of a normal pathname contains ";" but that should
  13925. # okay in the real world where ";" in dirpaths is itself problematic.
  13926. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13927. else
  13928. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13929. fi
  13930. else
  13931. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13932. fi
  13933. need_lib_prefix=unknown
  13934. hardcode_into_libs=no
  13935. # when you set need_version to no, make sure it does not cause -set_version
  13936. # flags to be left without arguments
  13937. need_version=unknown
  13938. case $host_os in
  13939. aix3*)
  13940. version_type=linux
  13941. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13942. shlibpath_var=LIBPATH
  13943. # AIX 3 has no versioning support, so we append a major version to the name.
  13944. soname_spec='${libname}${release}${shared_ext}$major'
  13945. ;;
  13946. aix4* | aix5*)
  13947. version_type=linux
  13948. need_lib_prefix=no
  13949. need_version=no
  13950. hardcode_into_libs=yes
  13951. if test "$host_cpu" = ia64; then
  13952. # AIX 5 supports IA64
  13953. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13954. shlibpath_var=LD_LIBRARY_PATH
  13955. else
  13956. # With GCC up to 2.95.x, collect2 would create an import file
  13957. # for dependence libraries. The import file would start with
  13958. # the line `#! .'. This would cause the generated library to
  13959. # depend on `.', always an invalid library. This was fixed in
  13960. # development snapshots of GCC prior to 3.0.
  13961. case $host_os in
  13962. aix4 | aix4.[01] | aix4.[01].*)
  13963. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13964. echo ' yes '
  13965. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  13966. :
  13967. else
  13968. can_build_shared=no
  13969. fi
  13970. ;;
  13971. esac
  13972. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13973. # soname into executable. Probably we can add versioning support to
  13974. # collect2, so additional links can be useful in future.
  13975. if test "$aix_use_runtimelinking" = yes; then
  13976. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13977. # instead of lib<name>.a to let people know that these are not
  13978. # typical AIX shared libraries.
  13979. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13980. else
  13981. # We preserve .a as extension for shared libraries through AIX4.2
  13982. # and later when we are not doing run time linking.
  13983. library_names_spec='${libname}${release}.a $libname.a'
  13984. soname_spec='${libname}${release}${shared_ext}$major'
  13985. fi
  13986. shlibpath_var=LIBPATH
  13987. fi
  13988. ;;
  13989. amigaos*)
  13990. library_names_spec='$libname.ixlibrary $libname.a'
  13991. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13992. 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'
  13993. ;;
  13994. beos*)
  13995. library_names_spec='${libname}${shared_ext}'
  13996. dynamic_linker="$host_os ld.so"
  13997. shlibpath_var=LIBRARY_PATH
  13998. ;;
  13999. bsdi[45]*)
  14000. version_type=linux
  14001. need_version=no
  14002. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14003. soname_spec='${libname}${release}${shared_ext}$major'
  14004. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14005. shlibpath_var=LD_LIBRARY_PATH
  14006. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14007. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14008. # the default ld.so.conf also contains /usr/contrib/lib and
  14009. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14010. # libtool to hard-code these into programs
  14011. ;;
  14012. cygwin* | mingw* | pw32*)
  14013. version_type=windows
  14014. shrext_cmds=".dll"
  14015. need_version=no
  14016. need_lib_prefix=no
  14017. case $GCC,$host_os in
  14018. yes,cygwin* | yes,mingw* | yes,pw32*)
  14019. library_names_spec='$libname.dll.a'
  14020. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14021. postinstall_cmds='base_file=`basename \${file}`~
  14022. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  14023. dldir=$destdir/`dirname \$dlpath`~
  14024. test -d \$dldir || mkdir -p \$dldir~
  14025. $install_prog $dir/$dlname \$dldir/$dlname'
  14026. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14027. dlpath=$dir/\$dldll~
  14028. $rm \$dlpath'
  14029. shlibpath_overrides_runpath=yes
  14030. case $host_os in
  14031. cygwin*)
  14032. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14033. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14034. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  14035. ;;
  14036. mingw*)
  14037. # MinGW DLLs use traditional 'lib' prefix
  14038. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14039. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14040. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  14041. # It is most probably a Windows format PATH printed by
  14042. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  14043. # path with ; separators, and with drive letters. We can handle the
  14044. # drive letters (cygwin fileutils understands them), so leave them,
  14045. # especially as we might pass files found there to a mingw objdump,
  14046. # which wouldn't understand a cygwinified path. Ahh.
  14047. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14048. else
  14049. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14050. fi
  14051. ;;
  14052. pw32*)
  14053. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14054. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14055. ;;
  14056. esac
  14057. ;;
  14058. *)
  14059. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  14060. ;;
  14061. esac
  14062. dynamic_linker='Win32 ld.exe'
  14063. # FIXME: first we should search . and the directory the executable is in
  14064. shlibpath_var=PATH
  14065. ;;
  14066. darwin* | rhapsody*)
  14067. dynamic_linker="$host_os dyld"
  14068. version_type=darwin
  14069. need_lib_prefix=no
  14070. need_version=no
  14071. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  14072. soname_spec='${libname}${release}${major}$shared_ext'
  14073. shlibpath_overrides_runpath=yes
  14074. shlibpath_var=DYLD_LIBRARY_PATH
  14075. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  14076. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  14077. if test "$GCC" = yes; then
  14078. 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"`
  14079. else
  14080. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  14081. fi
  14082. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14083. ;;
  14084. dgux*)
  14085. version_type=linux
  14086. need_lib_prefix=no
  14087. need_version=no
  14088. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  14089. soname_spec='${libname}${release}${shared_ext}$major'
  14090. shlibpath_var=LD_LIBRARY_PATH
  14091. ;;
  14092. freebsd1*)
  14093. dynamic_linker=no
  14094. ;;
  14095. kfreebsd*-gnu)
  14096. version_type=linux
  14097. need_lib_prefix=no
  14098. need_version=no
  14099. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14100. soname_spec='${libname}${release}${shared_ext}$major'
  14101. shlibpath_var=LD_LIBRARY_PATH
  14102. shlibpath_overrides_runpath=no
  14103. hardcode_into_libs=yes
  14104. dynamic_linker='GNU ld.so'
  14105. ;;
  14106. freebsd* | dragonfly*)
  14107. # DragonFly does not have aout. When/if they implement a new
  14108. # versioning mechanism, adjust this.
  14109. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  14110. version_type=freebsd-$objformat
  14111. case $version_type in
  14112. freebsd-elf*)
  14113. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14114. need_version=no
  14115. need_lib_prefix=no
  14116. ;;
  14117. freebsd-*)
  14118. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  14119. need_version=yes
  14120. ;;
  14121. esac
  14122. shlibpath_var=LD_LIBRARY_PATH
  14123. case $host_os in
  14124. freebsd2*)
  14125. shlibpath_overrides_runpath=yes
  14126. ;;
  14127. freebsd3.[01]* | freebsdelf3.[01]*)
  14128. shlibpath_overrides_runpath=yes
  14129. hardcode_into_libs=yes
  14130. ;;
  14131. *) # from 3.2 on
  14132. shlibpath_overrides_runpath=no
  14133. hardcode_into_libs=yes
  14134. ;;
  14135. esac
  14136. ;;
  14137. gnu*)
  14138. version_type=linux
  14139. need_lib_prefix=no
  14140. need_version=no
  14141. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14142. soname_spec='${libname}${release}${shared_ext}$major'
  14143. shlibpath_var=LD_LIBRARY_PATH
  14144. hardcode_into_libs=yes
  14145. ;;
  14146. hpux9* | hpux10* | hpux11*)
  14147. # Give a soname corresponding to the major version so that dld.sl refuses to
  14148. # link against other versions.
  14149. version_type=sunos
  14150. need_lib_prefix=no
  14151. need_version=no
  14152. case "$host_cpu" in
  14153. ia64*)
  14154. shrext_cmds='.so'
  14155. hardcode_into_libs=yes
  14156. dynamic_linker="$host_os dld.so"
  14157. shlibpath_var=LD_LIBRARY_PATH
  14158. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14159. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14160. soname_spec='${libname}${release}${shared_ext}$major'
  14161. if test "X$HPUX_IA64_MODE" = X32; then
  14162. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14163. else
  14164. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14165. fi
  14166. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14167. ;;
  14168. hppa*64*)
  14169. shrext_cmds='.sl'
  14170. hardcode_into_libs=yes
  14171. dynamic_linker="$host_os dld.sl"
  14172. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14173. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14174. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14175. soname_spec='${libname}${release}${shared_ext}$major'
  14176. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14177. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14178. ;;
  14179. *)
  14180. shrext_cmds='.sl'
  14181. dynamic_linker="$host_os dld.sl"
  14182. shlibpath_var=SHLIB_PATH
  14183. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14184. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14185. soname_spec='${libname}${release}${shared_ext}$major'
  14186. ;;
  14187. esac
  14188. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  14189. postinstall_cmds='chmod 555 $lib'
  14190. ;;
  14191. irix5* | irix6* | nonstopux*)
  14192. case $host_os in
  14193. nonstopux*) version_type=nonstopux ;;
  14194. *)
  14195. if test "$lt_cv_prog_gnu_ld" = yes; then
  14196. version_type=linux
  14197. else
  14198. version_type=irix
  14199. fi ;;
  14200. esac
  14201. need_lib_prefix=no
  14202. need_version=no
  14203. soname_spec='${libname}${release}${shared_ext}$major'
  14204. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  14205. case $host_os in
  14206. irix5* | nonstopux*)
  14207. libsuff= shlibsuff=
  14208. ;;
  14209. *)
  14210. case $LD in # libtool.m4 will add one of these switches to LD
  14211. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14212. libsuff= shlibsuff= libmagic=32-bit;;
  14213. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14214. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14215. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14216. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14217. *) libsuff= shlibsuff= libmagic=never-match;;
  14218. esac
  14219. ;;
  14220. esac
  14221. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14222. shlibpath_overrides_runpath=no
  14223. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  14224. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  14225. hardcode_into_libs=yes
  14226. ;;
  14227. # No shared lib support for Linux oldld, aout, or coff.
  14228. linux*oldld* | linux*aout* | linux*coff*)
  14229. dynamic_linker=no
  14230. ;;
  14231. # This must be Linux ELF.
  14232. linux*)
  14233. version_type=linux
  14234. need_lib_prefix=no
  14235. need_version=no
  14236. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14237. soname_spec='${libname}${release}${shared_ext}$major'
  14238. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14239. shlibpath_var=LD_LIBRARY_PATH
  14240. shlibpath_overrides_runpath=no
  14241. # This implies no fast_install, which is unacceptable.
  14242. # Some rework will be needed to allow for fast_install
  14243. # before this can be enabled.
  14244. hardcode_into_libs=yes
  14245. # Append ld.so.conf contents to the search path
  14246. if test -f /etc/ld.so.conf; then
  14247. 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' ' '`
  14248. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14249. fi
  14250. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14251. # powerpc, because MkLinux only supported shared libraries with the
  14252. # GNU dynamic linker. Since this was broken with cross compilers,
  14253. # most powerpc-linux boxes support dynamic linking these days and
  14254. # people can always --disable-shared, the test was removed, and we
  14255. # assume the GNU/Linux dynamic linker is in use.
  14256. dynamic_linker='GNU/Linux ld.so'
  14257. ;;
  14258. knetbsd*-gnu)
  14259. version_type=linux
  14260. need_lib_prefix=no
  14261. need_version=no
  14262. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14263. soname_spec='${libname}${release}${shared_ext}$major'
  14264. shlibpath_var=LD_LIBRARY_PATH
  14265. shlibpath_overrides_runpath=no
  14266. hardcode_into_libs=yes
  14267. dynamic_linker='GNU ld.so'
  14268. ;;
  14269. netbsd*)
  14270. version_type=sunos
  14271. need_lib_prefix=no
  14272. need_version=no
  14273. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14274. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14275. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14276. dynamic_linker='NetBSD (a.out) ld.so'
  14277. else
  14278. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14279. soname_spec='${libname}${release}${shared_ext}$major'
  14280. dynamic_linker='NetBSD ld.elf_so'
  14281. fi
  14282. shlibpath_var=LD_LIBRARY_PATH
  14283. shlibpath_overrides_runpath=yes
  14284. hardcode_into_libs=yes
  14285. ;;
  14286. newsos6)
  14287. version_type=linux
  14288. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14289. shlibpath_var=LD_LIBRARY_PATH
  14290. shlibpath_overrides_runpath=yes
  14291. ;;
  14292. nto-qnx*)
  14293. version_type=linux
  14294. need_lib_prefix=no
  14295. need_version=no
  14296. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14297. soname_spec='${libname}${release}${shared_ext}$major'
  14298. shlibpath_var=LD_LIBRARY_PATH
  14299. shlibpath_overrides_runpath=yes
  14300. ;;
  14301. openbsd*)
  14302. version_type=sunos
  14303. need_lib_prefix=no
  14304. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  14305. case $host_os in
  14306. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  14307. *) need_version=no ;;
  14308. esac
  14309. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14310. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14311. shlibpath_var=LD_LIBRARY_PATH
  14312. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14313. case $host_os in
  14314. openbsd2.[89] | openbsd2.[89].*)
  14315. shlibpath_overrides_runpath=no
  14316. ;;
  14317. *)
  14318. shlibpath_overrides_runpath=yes
  14319. ;;
  14320. esac
  14321. else
  14322. shlibpath_overrides_runpath=yes
  14323. fi
  14324. ;;
  14325. os2*)
  14326. libname_spec='$name'
  14327. shrext_cmds=".dll"
  14328. need_lib_prefix=no
  14329. library_names_spec='$libname${shared_ext} $libname.a'
  14330. dynamic_linker='OS/2 ld.exe'
  14331. shlibpath_var=LIBPATH
  14332. ;;
  14333. osf3* | osf4* | osf5*)
  14334. version_type=osf
  14335. need_lib_prefix=no
  14336. need_version=no
  14337. soname_spec='${libname}${release}${shared_ext}$major'
  14338. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14339. shlibpath_var=LD_LIBRARY_PATH
  14340. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14341. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14342. ;;
  14343. sco3.2v5*)
  14344. version_type=osf
  14345. soname_spec='${libname}${release}${shared_ext}$major'
  14346. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14347. shlibpath_var=LD_LIBRARY_PATH
  14348. ;;
  14349. solaris*)
  14350. version_type=linux
  14351. need_lib_prefix=no
  14352. need_version=no
  14353. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14354. soname_spec='${libname}${release}${shared_ext}$major'
  14355. shlibpath_var=LD_LIBRARY_PATH
  14356. shlibpath_overrides_runpath=yes
  14357. hardcode_into_libs=yes
  14358. # ldd complains unless libraries are executable
  14359. postinstall_cmds='chmod +x $lib'
  14360. ;;
  14361. sunos4*)
  14362. version_type=sunos
  14363. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14364. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14365. shlibpath_var=LD_LIBRARY_PATH
  14366. shlibpath_overrides_runpath=yes
  14367. if test "$with_gnu_ld" = yes; then
  14368. need_lib_prefix=no
  14369. fi
  14370. need_version=yes
  14371. ;;
  14372. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  14373. version_type=linux
  14374. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14375. soname_spec='${libname}${release}${shared_ext}$major'
  14376. shlibpath_var=LD_LIBRARY_PATH
  14377. case $host_vendor in
  14378. sni)
  14379. shlibpath_overrides_runpath=no
  14380. need_lib_prefix=no
  14381. export_dynamic_flag_spec='${wl}-Blargedynsym'
  14382. runpath_var=LD_RUN_PATH
  14383. ;;
  14384. siemens)
  14385. need_lib_prefix=no
  14386. ;;
  14387. motorola)
  14388. need_lib_prefix=no
  14389. need_version=no
  14390. shlibpath_overrides_runpath=no
  14391. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14392. ;;
  14393. esac
  14394. ;;
  14395. sysv4*MP*)
  14396. if test -d /usr/nec ;then
  14397. version_type=linux
  14398. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14399. soname_spec='$libname${shared_ext}.$major'
  14400. shlibpath_var=LD_LIBRARY_PATH
  14401. fi
  14402. ;;
  14403. uts4*)
  14404. version_type=linux
  14405. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14406. soname_spec='${libname}${release}${shared_ext}$major'
  14407. shlibpath_var=LD_LIBRARY_PATH
  14408. ;;
  14409. *)
  14410. dynamic_linker=no
  14411. ;;
  14412. esac
  14413. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  14414. echo "${ECHO_T}$dynamic_linker" >&6; }
  14415. test "$dynamic_linker" = no && can_build_shared=no
  14416. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  14417. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  14418. hardcode_action_F77=
  14419. if test -n "$hardcode_libdir_flag_spec_F77" || \
  14420. test -n "$runpath_var_F77" || \
  14421. test "X$hardcode_automatic_F77" = "Xyes" ; then
  14422. # We can hardcode non-existant directories.
  14423. if test "$hardcode_direct_F77" != no &&
  14424. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14425. # have to relink, otherwise we might link with an installed library
  14426. # when we should be linking with a yet-to-be-installed one
  14427. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  14428. test "$hardcode_minus_L_F77" != no; then
  14429. # Linking always hardcodes the temporary library directory.
  14430. hardcode_action_F77=relink
  14431. else
  14432. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14433. hardcode_action_F77=immediate
  14434. fi
  14435. else
  14436. # We cannot hardcode anything, or else we can only hardcode existing
  14437. # directories.
  14438. hardcode_action_F77=unsupported
  14439. fi
  14440. { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  14441. echo "${ECHO_T}$hardcode_action_F77" >&6; }
  14442. if test "$hardcode_action_F77" = relink; then
  14443. # Fast installation is not supported
  14444. enable_fast_install=no
  14445. elif test "$shlibpath_overrides_runpath" = yes ||
  14446. test "$enable_shared" = no; then
  14447. # Fast installation is not necessary
  14448. enable_fast_install=needless
  14449. fi
  14450. striplib=
  14451. old_striplib=
  14452. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  14453. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  14454. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  14455. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  14456. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  14457. { echo "$as_me:$LINENO: result: yes" >&5
  14458. echo "${ECHO_T}yes" >&6; }
  14459. else
  14460. # FIXME - insert some real tests, host_os isn't really good enough
  14461. case $host_os in
  14462. darwin*)
  14463. if test -n "$STRIP" ; then
  14464. striplib="$STRIP -x"
  14465. { echo "$as_me:$LINENO: result: yes" >&5
  14466. echo "${ECHO_T}yes" >&6; }
  14467. else
  14468. { echo "$as_me:$LINENO: result: no" >&5
  14469. echo "${ECHO_T}no" >&6; }
  14470. fi
  14471. ;;
  14472. *)
  14473. { echo "$as_me:$LINENO: result: no" >&5
  14474. echo "${ECHO_T}no" >&6; }
  14475. ;;
  14476. esac
  14477. fi
  14478. # The else clause should only fire when bootstrapping the
  14479. # libtool distribution, otherwise you forgot to ship ltmain.sh
  14480. # with your package, and you will get complaints that there are
  14481. # no rules to generate ltmain.sh.
  14482. if test -f "$ltmain"; then
  14483. # See if we are running on zsh, and set the options which allow our commands through
  14484. # without removal of \ escapes.
  14485. if test -n "${ZSH_VERSION+set}" ; then
  14486. setopt NO_GLOB_SUBST
  14487. fi
  14488. # Now quote all the things that may contain metacharacters while being
  14489. # careful not to overquote the AC_SUBSTed values. We take copies of the
  14490. # variables and quote the copies for generation of the libtool script.
  14491. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  14492. SED SHELL STRIP \
  14493. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  14494. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  14495. deplibs_check_method reload_flag reload_cmds need_locks \
  14496. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  14497. lt_cv_sys_global_symbol_to_c_name_address \
  14498. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  14499. old_postinstall_cmds old_postuninstall_cmds \
  14500. compiler_F77 \
  14501. CC_F77 \
  14502. LD_F77 \
  14503. lt_prog_compiler_wl_F77 \
  14504. lt_prog_compiler_pic_F77 \
  14505. lt_prog_compiler_static_F77 \
  14506. lt_prog_compiler_no_builtin_flag_F77 \
  14507. export_dynamic_flag_spec_F77 \
  14508. thread_safe_flag_spec_F77 \
  14509. whole_archive_flag_spec_F77 \
  14510. enable_shared_with_static_runtimes_F77 \
  14511. old_archive_cmds_F77 \
  14512. old_archive_from_new_cmds_F77 \
  14513. predep_objects_F77 \
  14514. postdep_objects_F77 \
  14515. predeps_F77 \
  14516. postdeps_F77 \
  14517. compiler_lib_search_path_F77 \
  14518. archive_cmds_F77 \
  14519. archive_expsym_cmds_F77 \
  14520. postinstall_cmds_F77 \
  14521. postuninstall_cmds_F77 \
  14522. old_archive_from_expsyms_cmds_F77 \
  14523. allow_undefined_flag_F77 \
  14524. no_undefined_flag_F77 \
  14525. export_symbols_cmds_F77 \
  14526. hardcode_libdir_flag_spec_F77 \
  14527. hardcode_libdir_flag_spec_ld_F77 \
  14528. hardcode_libdir_separator_F77 \
  14529. hardcode_automatic_F77 \
  14530. module_cmds_F77 \
  14531. module_expsym_cmds_F77 \
  14532. lt_cv_prog_compiler_c_o_F77 \
  14533. exclude_expsyms_F77 \
  14534. include_expsyms_F77; do
  14535. case $var in
  14536. old_archive_cmds_F77 | \
  14537. old_archive_from_new_cmds_F77 | \
  14538. archive_cmds_F77 | \
  14539. archive_expsym_cmds_F77 | \
  14540. module_cmds_F77 | \
  14541. module_expsym_cmds_F77 | \
  14542. old_archive_from_expsyms_cmds_F77 | \
  14543. export_symbols_cmds_F77 | \
  14544. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  14545. postinstall_cmds | postuninstall_cmds | \
  14546. old_postinstall_cmds | old_postuninstall_cmds | \
  14547. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  14548. # Double-quote double-evaled strings.
  14549. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  14550. ;;
  14551. *)
  14552. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  14553. ;;
  14554. esac
  14555. done
  14556. case $lt_echo in
  14557. *'\$0 --fallback-echo"')
  14558. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  14559. ;;
  14560. esac
  14561. cfgfile="$ofile"
  14562. cat <<__EOF__ >> "$cfgfile"
  14563. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  14564. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14565. # Shell to use when invoking shell scripts.
  14566. SHELL=$lt_SHELL
  14567. # Whether or not to build shared libraries.
  14568. build_libtool_libs=$enable_shared
  14569. # Whether or not to build static libraries.
  14570. build_old_libs=$enable_static
  14571. # Whether or not to add -lc for building shared libraries.
  14572. build_libtool_need_lc=$archive_cmds_need_lc_F77
  14573. # Whether or not to disallow shared libs when runtime libs are static
  14574. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  14575. # Whether or not to optimize for fast installation.
  14576. fast_install=$enable_fast_install
  14577. # The host system.
  14578. host_alias=$host_alias
  14579. host=$host
  14580. host_os=$host_os
  14581. # The build system.
  14582. build_alias=$build_alias
  14583. build=$build
  14584. build_os=$build_os
  14585. # An echo program that does not interpret backslashes.
  14586. echo=$lt_echo
  14587. # The archiver.
  14588. AR=$lt_AR
  14589. AR_FLAGS=$lt_AR_FLAGS
  14590. # A C compiler.
  14591. LTCC=$lt_LTCC
  14592. # A language-specific compiler.
  14593. CC=$lt_compiler_F77
  14594. # Is the compiler the GNU C compiler?
  14595. with_gcc=$GCC_F77
  14596. # An ERE matcher.
  14597. EGREP=$lt_EGREP
  14598. # The linker used to build libraries.
  14599. LD=$lt_LD_F77
  14600. # Whether we need hard or soft links.
  14601. LN_S=$lt_LN_S
  14602. # A BSD-compatible nm program.
  14603. NM=$lt_NM
  14604. # A symbol stripping program
  14605. STRIP=$lt_STRIP
  14606. # Used to examine libraries when file_magic_cmd begins "file"
  14607. MAGIC_CMD=$MAGIC_CMD
  14608. # Used on cygwin: DLL creation program.
  14609. DLLTOOL="$DLLTOOL"
  14610. # Used on cygwin: object dumper.
  14611. OBJDUMP="$OBJDUMP"
  14612. # Used on cygwin: assembler.
  14613. AS="$AS"
  14614. # The name of the directory that contains temporary libtool files.
  14615. objdir=$objdir
  14616. # How to create reloadable object files.
  14617. reload_flag=$lt_reload_flag
  14618. reload_cmds=$lt_reload_cmds
  14619. # How to pass a linker flag through the compiler.
  14620. wl=$lt_lt_prog_compiler_wl_F77
  14621. # Object file suffix (normally "o").
  14622. objext="$ac_objext"
  14623. # Old archive suffix (normally "a").
  14624. libext="$libext"
  14625. # Shared library suffix (normally ".so").
  14626. shrext_cmds='$shrext_cmds'
  14627. # Executable file suffix (normally "").
  14628. exeext="$exeext"
  14629. # Additional compiler flags for building library objects.
  14630. pic_flag=$lt_lt_prog_compiler_pic_F77
  14631. pic_mode=$pic_mode
  14632. # What is the maximum length of a command?
  14633. max_cmd_len=$lt_cv_sys_max_cmd_len
  14634. # Does compiler simultaneously support -c and -o options?
  14635. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  14636. # Must we lock files when doing compilation?
  14637. need_locks=$lt_need_locks
  14638. # Do we need the lib prefix for modules?
  14639. need_lib_prefix=$need_lib_prefix
  14640. # Do we need a version for libraries?
  14641. need_version=$need_version
  14642. # Whether dlopen is supported.
  14643. dlopen_support=$enable_dlopen
  14644. # Whether dlopen of programs is supported.
  14645. dlopen_self=$enable_dlopen_self
  14646. # Whether dlopen of statically linked programs is supported.
  14647. dlopen_self_static=$enable_dlopen_self_static
  14648. # Compiler flag to prevent dynamic linking.
  14649. link_static_flag=$lt_lt_prog_compiler_static_F77
  14650. # Compiler flag to turn off builtin functions.
  14651. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  14652. # Compiler flag to allow reflexive dlopens.
  14653. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  14654. # Compiler flag to generate shared objects directly from archives.
  14655. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  14656. # Compiler flag to generate thread-safe objects.
  14657. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  14658. # Library versioning type.
  14659. version_type=$version_type
  14660. # Format of library name prefix.
  14661. libname_spec=$lt_libname_spec
  14662. # List of archive names. First name is the real one, the rest are links.
  14663. # The last name is the one that the linker finds with -lNAME.
  14664. library_names_spec=$lt_library_names_spec
  14665. # The coded name of the library, if different from the real name.
  14666. soname_spec=$lt_soname_spec
  14667. # Commands used to build and install an old-style archive.
  14668. RANLIB=$lt_RANLIB
  14669. old_archive_cmds=$lt_old_archive_cmds_F77
  14670. old_postinstall_cmds=$lt_old_postinstall_cmds
  14671. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14672. # Create an old-style archive from a shared archive.
  14673. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  14674. # Create a temporary old-style archive to link instead of a shared archive.
  14675. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  14676. # Commands used to build and install a shared archive.
  14677. archive_cmds=$lt_archive_cmds_F77
  14678. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  14679. postinstall_cmds=$lt_postinstall_cmds
  14680. postuninstall_cmds=$lt_postuninstall_cmds
  14681. # Commands used to build a loadable module (assumed same as above if empty)
  14682. module_cmds=$lt_module_cmds_F77
  14683. module_expsym_cmds=$lt_module_expsym_cmds_F77
  14684. # Commands to strip libraries.
  14685. old_striplib=$lt_old_striplib
  14686. striplib=$lt_striplib
  14687. # Dependencies to place before the objects being linked to create a
  14688. # shared library.
  14689. predep_objects=$lt_predep_objects_F77
  14690. # Dependencies to place after the objects being linked to create a
  14691. # shared library.
  14692. postdep_objects=$lt_postdep_objects_F77
  14693. # Dependencies to place before the objects being linked to create a
  14694. # shared library.
  14695. predeps=$lt_predeps_F77
  14696. # Dependencies to place after the objects being linked to create a
  14697. # shared library.
  14698. postdeps=$lt_postdeps_F77
  14699. # The library search path used internally by the compiler when linking
  14700. # a shared library.
  14701. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  14702. # Method to check whether dependent libraries are shared objects.
  14703. deplibs_check_method=$lt_deplibs_check_method
  14704. # Command to use when deplibs_check_method == file_magic.
  14705. file_magic_cmd=$lt_file_magic_cmd
  14706. # Flag that allows shared libraries with undefined symbols to be built.
  14707. allow_undefined_flag=$lt_allow_undefined_flag_F77
  14708. # Flag that forces no undefined symbols.
  14709. no_undefined_flag=$lt_no_undefined_flag_F77
  14710. # Commands used to finish a libtool library installation in a directory.
  14711. finish_cmds=$lt_finish_cmds
  14712. # Same as above, but a single script fragment to be evaled but not shown.
  14713. finish_eval=$lt_finish_eval
  14714. # Take the output of nm and produce a listing of raw symbols and C names.
  14715. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14716. # Transform the output of nm in a proper C declaration
  14717. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14718. # Transform the output of nm in a C name address pair
  14719. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14720. # This is the shared library runtime path variable.
  14721. runpath_var=$runpath_var
  14722. # This is the shared library path variable.
  14723. shlibpath_var=$shlibpath_var
  14724. # Is shlibpath searched before the hard-coded library search path?
  14725. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14726. # How to hardcode a shared library path into an executable.
  14727. hardcode_action=$hardcode_action_F77
  14728. # Whether we should hardcode library paths into libraries.
  14729. hardcode_into_libs=$hardcode_into_libs
  14730. # Flag to hardcode \$libdir into a binary during linking.
  14731. # This must work even if \$libdir does not exist.
  14732. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  14733. # If ld is used when linking, flag to hardcode \$libdir into
  14734. # a binary during linking. This must work even if \$libdir does
  14735. # not exist.
  14736. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  14737. # Whether we need a single -rpath flag with a separated argument.
  14738. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  14739. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  14740. # resulting binary.
  14741. hardcode_direct=$hardcode_direct_F77
  14742. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  14743. # resulting binary.
  14744. hardcode_minus_L=$hardcode_minus_L_F77
  14745. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  14746. # the resulting binary.
  14747. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  14748. # Set to yes if building a shared library automatically hardcodes DIR into the library
  14749. # and all subsequent libraries and executables linked against it.
  14750. hardcode_automatic=$hardcode_automatic_F77
  14751. # Variables whose values should be saved in libtool wrapper scripts and
  14752. # restored at relink time.
  14753. variables_saved_for_relink="$variables_saved_for_relink"
  14754. # Whether libtool must link a program against all its dependency libraries.
  14755. link_all_deplibs=$link_all_deplibs_F77
  14756. # Compile-time system search path for libraries
  14757. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14758. # Run-time system search path for libraries
  14759. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14760. # Fix the shell variable \$srcfile for the compiler.
  14761. fix_srcfile_path="$fix_srcfile_path_F77"
  14762. # Set to yes if exported symbols are required.
  14763. always_export_symbols=$always_export_symbols_F77
  14764. # The commands to list exported symbols.
  14765. export_symbols_cmds=$lt_export_symbols_cmds_F77
  14766. # The commands to extract the exported symbol list from a shared archive.
  14767. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14768. # Symbols that should not be listed in the preloaded symbols.
  14769. exclude_expsyms=$lt_exclude_expsyms_F77
  14770. # Symbols that must always be exported.
  14771. include_expsyms=$lt_include_expsyms_F77
  14772. # ### END LIBTOOL TAG CONFIG: $tagname
  14773. __EOF__
  14774. else
  14775. # If there is no Makefile yet, we rely on a make rule to execute
  14776. # `config.status --recheck' to rerun these tests and create the
  14777. # libtool script then.
  14778. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  14779. if test -f "$ltmain_in"; then
  14780. test -f Makefile && make "$ltmain"
  14781. fi
  14782. fi
  14783. ac_ext=c
  14784. ac_cpp='$CPP $CPPFLAGS'
  14785. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14786. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14787. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14788. CC="$lt_save_CC"
  14789. else
  14790. tagname=""
  14791. fi
  14792. ;;
  14793. GCJ)
  14794. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  14795. # Source file extension for Java test sources.
  14796. ac_ext=java
  14797. # Object file extension for compiled Java test sources.
  14798. objext=o
  14799. objext_GCJ=$objext
  14800. # Code to be used in simple compile tests
  14801. lt_simple_compile_test_code="class foo {}\n"
  14802. # Code to be used in simple link tests
  14803. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  14804. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14805. # If no C compiler was specified, use CC.
  14806. LTCC=${LTCC-"$CC"}
  14807. # Allow CC to be a program name with arguments.
  14808. compiler=$CC
  14809. # save warnings/boilerplate of simple test code
  14810. ac_outfile=conftest.$ac_objext
  14811. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  14812. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  14813. _lt_compiler_boilerplate=`cat conftest.err`
  14814. $rm conftest*
  14815. ac_outfile=conftest.$ac_objext
  14816. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  14817. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  14818. _lt_linker_boilerplate=`cat conftest.err`
  14819. $rm conftest*
  14820. # Allow CC to be a program name with arguments.
  14821. lt_save_CC="$CC"
  14822. CC=${GCJ-"gcj"}
  14823. compiler=$CC
  14824. compiler_GCJ=$CC
  14825. for cc_temp in $compiler""; do
  14826. case $cc_temp in
  14827. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14828. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14829. \-*) ;;
  14830. *) break;;
  14831. esac
  14832. done
  14833. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14834. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  14835. archive_cmds_need_lc_GCJ=no
  14836. old_archive_cmds_GCJ=$old_archive_cmds
  14837. lt_prog_compiler_no_builtin_flag_GCJ=
  14838. if test "$GCC" = yes; then
  14839. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  14840. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14841. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  14842. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  14843. echo $ECHO_N "(cached) $ECHO_C" >&6
  14844. else
  14845. lt_cv_prog_compiler_rtti_exceptions=no
  14846. ac_outfile=conftest.$ac_objext
  14847. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14848. lt_compiler_flag="-fno-rtti -fno-exceptions"
  14849. # Insert the option either (1) after the last *FLAGS variable, or
  14850. # (2) before a word containing "conftest.", or (3) at the end.
  14851. # Note that $ac_compile itself does not contain backslashes and begins
  14852. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14853. # The option is referenced via a variable to avoid confusing sed.
  14854. lt_compile=`echo "$ac_compile" | $SED \
  14855. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  14856. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14857. -e 's:$: $lt_compiler_flag:'`
  14858. (eval echo "\"\$as_me:16657: $lt_compile\"" >&5)
  14859. (eval "$lt_compile" 2>conftest.err)
  14860. ac_status=$?
  14861. cat conftest.err >&5
  14862. echo "$as_me:16661: \$? = $ac_status" >&5
  14863. if (exit $ac_status) && test -s "$ac_outfile"; then
  14864. # The compiler can only warn and ignore the option if not recognized
  14865. # So say no if there are warnings other than the usual output.
  14866. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  14867. $SED '/^$/d' conftest.err >conftest.er2
  14868. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  14869. lt_cv_prog_compiler_rtti_exceptions=yes
  14870. fi
  14871. fi
  14872. $rm conftest*
  14873. fi
  14874. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  14875. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  14876. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  14877. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  14878. else
  14879. :
  14880. fi
  14881. fi
  14882. lt_prog_compiler_wl_GCJ=
  14883. lt_prog_compiler_pic_GCJ=
  14884. lt_prog_compiler_static_GCJ=
  14885. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14886. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  14887. if test "$GCC" = yes; then
  14888. lt_prog_compiler_wl_GCJ='-Wl,'
  14889. lt_prog_compiler_static_GCJ='-static'
  14890. case $host_os in
  14891. aix*)
  14892. # All AIX code is PIC.
  14893. if test "$host_cpu" = ia64; then
  14894. # AIX 5 now supports IA64 processor
  14895. lt_prog_compiler_static_GCJ='-Bstatic'
  14896. fi
  14897. ;;
  14898. amigaos*)
  14899. # FIXME: we need at least 68020 code to build shared libraries, but
  14900. # adding the `-m68020' flag to GCC prevents building anything better,
  14901. # like `-m68040'.
  14902. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  14903. ;;
  14904. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14905. # PIC is the default for these OSes.
  14906. ;;
  14907. mingw* | pw32* | os2*)
  14908. # This hack is so that the source file can tell whether it is being
  14909. # built for inclusion in a dll (and should export symbols for example).
  14910. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14911. ;;
  14912. darwin* | rhapsody*)
  14913. # PIC is the default on this platform
  14914. # Common symbols not allowed in MH_DYLIB files
  14915. lt_prog_compiler_pic_GCJ='-fno-common'
  14916. ;;
  14917. msdosdjgpp*)
  14918. # Just because we use GCC doesn't mean we suddenly get shared libraries
  14919. # on systems that don't support them.
  14920. lt_prog_compiler_can_build_shared_GCJ=no
  14921. enable_shared=no
  14922. ;;
  14923. sysv4*MP*)
  14924. if test -d /usr/nec; then
  14925. lt_prog_compiler_pic_GCJ=-Kconform_pic
  14926. fi
  14927. ;;
  14928. hpux*)
  14929. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14930. # not for PA HP-UX.
  14931. case "$host_cpu" in
  14932. hppa*64*|ia64*)
  14933. # +Z the default
  14934. ;;
  14935. *)
  14936. lt_prog_compiler_pic_GCJ='-fPIC'
  14937. ;;
  14938. esac
  14939. ;;
  14940. *)
  14941. lt_prog_compiler_pic_GCJ='-fPIC'
  14942. ;;
  14943. esac
  14944. else
  14945. # PORTME Check for flag to pass linker flags through the system compiler.
  14946. case $host_os in
  14947. aix*)
  14948. lt_prog_compiler_wl_GCJ='-Wl,'
  14949. if test "$host_cpu" = ia64; then
  14950. # AIX 5 now supports IA64 processor
  14951. lt_prog_compiler_static_GCJ='-Bstatic'
  14952. else
  14953. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  14954. fi
  14955. ;;
  14956. darwin*)
  14957. # PIC is the default on this platform
  14958. # Common symbols not allowed in MH_DYLIB files
  14959. case $cc_basename in
  14960. xlc*)
  14961. lt_prog_compiler_pic_GCJ='-qnocommon'
  14962. lt_prog_compiler_wl_GCJ='-Wl,'
  14963. ;;
  14964. esac
  14965. ;;
  14966. mingw* | pw32* | os2*)
  14967. # This hack is so that the source file can tell whether it is being
  14968. # built for inclusion in a dll (and should export symbols for example).
  14969. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14970. ;;
  14971. hpux9* | hpux10* | hpux11*)
  14972. lt_prog_compiler_wl_GCJ='-Wl,'
  14973. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14974. # not for PA HP-UX.
  14975. case "$host_cpu" in
  14976. hppa*64*|ia64*)
  14977. # +Z the default
  14978. ;;
  14979. *)
  14980. lt_prog_compiler_pic_GCJ='+Z'
  14981. ;;
  14982. esac
  14983. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  14984. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  14985. ;;
  14986. irix5* | irix6* | nonstopux*)
  14987. lt_prog_compiler_wl_GCJ='-Wl,'
  14988. # PIC (with -KPIC) is the default.
  14989. lt_prog_compiler_static_GCJ='-non_shared'
  14990. ;;
  14991. newsos6)
  14992. lt_prog_compiler_pic_GCJ='-KPIC'
  14993. lt_prog_compiler_static_GCJ='-Bstatic'
  14994. ;;
  14995. linux*)
  14996. case $cc_basename in
  14997. icc* | ecc*)
  14998. lt_prog_compiler_wl_GCJ='-Wl,'
  14999. lt_prog_compiler_pic_GCJ='-KPIC'
  15000. lt_prog_compiler_static_GCJ='-static'
  15001. ;;
  15002. pgcc* | pgf77* | pgf90*)
  15003. # Portland Group compilers (*not* the Pentium gcc compiler,
  15004. # which looks to be a dead project)
  15005. lt_prog_compiler_wl_GCJ='-Wl,'
  15006. lt_prog_compiler_pic_GCJ='-fpic'
  15007. lt_prog_compiler_static_GCJ='-static'
  15008. ;;
  15009. ccc*)
  15010. lt_prog_compiler_wl_GCJ='-Wl,'
  15011. # All Alpha code is PIC.
  15012. lt_prog_compiler_static_GCJ='-non_shared'
  15013. ;;
  15014. esac
  15015. ;;
  15016. osf3* | osf4* | osf5*)
  15017. lt_prog_compiler_wl_GCJ='-Wl,'
  15018. # All OSF/1 code is PIC.
  15019. lt_prog_compiler_static_GCJ='-non_shared'
  15020. ;;
  15021. sco3.2v5*)
  15022. lt_prog_compiler_pic_GCJ='-Kpic'
  15023. lt_prog_compiler_static_GCJ='-dn'
  15024. ;;
  15025. solaris*)
  15026. lt_prog_compiler_pic_GCJ='-KPIC'
  15027. lt_prog_compiler_static_GCJ='-Bstatic'
  15028. case $cc_basename in
  15029. f77* | f90* | f95*)
  15030. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  15031. *)
  15032. lt_prog_compiler_wl_GCJ='-Wl,';;
  15033. esac
  15034. ;;
  15035. sunos4*)
  15036. lt_prog_compiler_wl_GCJ='-Qoption ld '
  15037. lt_prog_compiler_pic_GCJ='-PIC'
  15038. lt_prog_compiler_static_GCJ='-Bstatic'
  15039. ;;
  15040. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  15041. lt_prog_compiler_wl_GCJ='-Wl,'
  15042. lt_prog_compiler_pic_GCJ='-KPIC'
  15043. lt_prog_compiler_static_GCJ='-Bstatic'
  15044. ;;
  15045. sysv4*MP*)
  15046. if test -d /usr/nec ;then
  15047. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  15048. lt_prog_compiler_static_GCJ='-Bstatic'
  15049. fi
  15050. ;;
  15051. unicos*)
  15052. lt_prog_compiler_wl_GCJ='-Wl,'
  15053. lt_prog_compiler_can_build_shared_GCJ=no
  15054. ;;
  15055. uts4*)
  15056. lt_prog_compiler_pic_GCJ='-pic'
  15057. lt_prog_compiler_static_GCJ='-Bstatic'
  15058. ;;
  15059. *)
  15060. lt_prog_compiler_can_build_shared_GCJ=no
  15061. ;;
  15062. esac
  15063. fi
  15064. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  15065. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  15066. #
  15067. # Check to make sure the PIC flag actually works.
  15068. #
  15069. if test -n "$lt_prog_compiler_pic_GCJ"; then
  15070. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  15071. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  15072. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  15073. echo $ECHO_N "(cached) $ECHO_C" >&6
  15074. else
  15075. lt_prog_compiler_pic_works_GCJ=no
  15076. ac_outfile=conftest.$ac_objext
  15077. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15078. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  15079. # Insert the option either (1) after the last *FLAGS variable, or
  15080. # (2) before a word containing "conftest.", or (3) at the end.
  15081. # Note that $ac_compile itself does not contain backslashes and begins
  15082. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15083. # The option is referenced via a variable to avoid confusing sed.
  15084. lt_compile=`echo "$ac_compile" | $SED \
  15085. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  15086. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15087. -e 's:$: $lt_compiler_flag:'`
  15088. (eval echo "\"\$as_me:16919: $lt_compile\"" >&5)
  15089. (eval "$lt_compile" 2>conftest.err)
  15090. ac_status=$?
  15091. cat conftest.err >&5
  15092. echo "$as_me:16923: \$? = $ac_status" >&5
  15093. if (exit $ac_status) && test -s "$ac_outfile"; then
  15094. # The compiler can only warn and ignore the option if not recognized
  15095. # So say no if there are warnings other than the usual output.
  15096. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  15097. $SED '/^$/d' conftest.err >conftest.er2
  15098. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  15099. lt_prog_compiler_pic_works_GCJ=yes
  15100. fi
  15101. fi
  15102. $rm conftest*
  15103. fi
  15104. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  15105. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
  15106. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  15107. case $lt_prog_compiler_pic_GCJ in
  15108. "" | " "*) ;;
  15109. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  15110. esac
  15111. else
  15112. lt_prog_compiler_pic_GCJ=
  15113. lt_prog_compiler_can_build_shared_GCJ=no
  15114. fi
  15115. fi
  15116. case "$host_os" in
  15117. # For platforms which do not support PIC, -DPIC is meaningless:
  15118. *djgpp*)
  15119. lt_prog_compiler_pic_GCJ=
  15120. ;;
  15121. *)
  15122. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  15123. ;;
  15124. esac
  15125. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  15126. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  15127. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  15128. echo $ECHO_N "(cached) $ECHO_C" >&6
  15129. else
  15130. lt_cv_prog_compiler_c_o_GCJ=no
  15131. $rm -r conftest 2>/dev/null
  15132. mkdir conftest
  15133. cd conftest
  15134. mkdir out
  15135. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15136. lt_compiler_flag="-o out/conftest2.$ac_objext"
  15137. # Insert the option either (1) after the last *FLAGS variable, or
  15138. # (2) before a word containing "conftest.", or (3) at the end.
  15139. # Note that $ac_compile itself does not contain backslashes and begins
  15140. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15141. lt_compile=`echo "$ac_compile" | $SED \
  15142. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  15143. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15144. -e 's:$: $lt_compiler_flag:'`
  15145. (eval echo "\"\$as_me:16981: $lt_compile\"" >&5)
  15146. (eval "$lt_compile" 2>out/conftest.err)
  15147. ac_status=$?
  15148. cat out/conftest.err >&5
  15149. echo "$as_me:16985: \$? = $ac_status" >&5
  15150. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15151. then
  15152. # The compiler can only warn and ignore the option if not recognized
  15153. # So say no if there are warnings
  15154. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  15155. $SED '/^$/d' out/conftest.err >out/conftest.er2
  15156. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15157. lt_cv_prog_compiler_c_o_GCJ=yes
  15158. fi
  15159. fi
  15160. chmod u+w .
  15161. $rm conftest*
  15162. # SGI C++ compiler will create directory out/ii_files/ for
  15163. # template instantiation
  15164. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  15165. $rm out/* && rmdir out
  15166. cd ..
  15167. rmdir conftest
  15168. $rm conftest*
  15169. fi
  15170. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  15171. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  15172. hard_links="nottested"
  15173. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  15174. # do not overwrite the value of need_locks provided by the user
  15175. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  15176. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  15177. hard_links=yes
  15178. $rm conftest*
  15179. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15180. touch conftest.a
  15181. ln conftest.a conftest.b 2>&5 || hard_links=no
  15182. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15183. { echo "$as_me:$LINENO: result: $hard_links" >&5
  15184. echo "${ECHO_T}$hard_links" >&6; }
  15185. if test "$hard_links" = no; then
  15186. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  15187. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  15188. need_locks=warn
  15189. fi
  15190. else
  15191. need_locks=no
  15192. fi
  15193. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  15194. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  15195. runpath_var=
  15196. allow_undefined_flag_GCJ=
  15197. enable_shared_with_static_runtimes_GCJ=no
  15198. archive_cmds_GCJ=
  15199. archive_expsym_cmds_GCJ=
  15200. old_archive_From_new_cmds_GCJ=
  15201. old_archive_from_expsyms_cmds_GCJ=
  15202. export_dynamic_flag_spec_GCJ=
  15203. whole_archive_flag_spec_GCJ=
  15204. thread_safe_flag_spec_GCJ=
  15205. hardcode_libdir_flag_spec_GCJ=
  15206. hardcode_libdir_flag_spec_ld_GCJ=
  15207. hardcode_libdir_separator_GCJ=
  15208. hardcode_direct_GCJ=no
  15209. hardcode_minus_L_GCJ=no
  15210. hardcode_shlibpath_var_GCJ=unsupported
  15211. link_all_deplibs_GCJ=unknown
  15212. hardcode_automatic_GCJ=no
  15213. module_cmds_GCJ=
  15214. module_expsym_cmds_GCJ=
  15215. always_export_symbols_GCJ=no
  15216. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15217. # include_expsyms should be a list of space-separated symbols to be *always*
  15218. # included in the symbol list
  15219. include_expsyms_GCJ=
  15220. # exclude_expsyms can be an extended regexp of symbols to exclude
  15221. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  15222. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  15223. # as well as any symbol that contains `d'.
  15224. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  15225. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  15226. # platforms (ab)use it in PIC code, but their linkers get confused if
  15227. # the symbol is explicitly referenced. Since portable code cannot
  15228. # rely on this symbol name, it's probably fine to never include it in
  15229. # preloaded symbol tables.
  15230. extract_expsyms_cmds=
  15231. # Just being paranoid about ensuring that cc_basename is set.
  15232. for cc_temp in $compiler""; do
  15233. case $cc_temp in
  15234. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15235. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15236. \-*) ;;
  15237. *) break;;
  15238. esac
  15239. done
  15240. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  15241. case $host_os in
  15242. cygwin* | mingw* | pw32*)
  15243. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  15244. # When not using gcc, we currently assume that we are using
  15245. # Microsoft Visual C++.
  15246. if test "$GCC" != yes; then
  15247. with_gnu_ld=no
  15248. fi
  15249. ;;
  15250. openbsd*)
  15251. with_gnu_ld=no
  15252. ;;
  15253. esac
  15254. ld_shlibs_GCJ=yes
  15255. if test "$with_gnu_ld" = yes; then
  15256. # If archive_cmds runs LD, not CC, wlarc should be empty
  15257. wlarc='${wl}'
  15258. # Set some defaults for GNU ld with shared library support. These
  15259. # are reset later if shared libraries are not supported. Putting them
  15260. # here allows them to be overridden if necessary.
  15261. runpath_var=LD_RUN_PATH
  15262. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  15263. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  15264. # ancient GNU ld didn't support --whole-archive et. al.
  15265. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  15266. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  15267. else
  15268. whole_archive_flag_spec_GCJ=
  15269. fi
  15270. supports_anon_versioning=no
  15271. case `$LD -v 2>/dev/null` in
  15272. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  15273. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  15274. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  15275. *\ 2.11.*) ;; # other 2.11 versions
  15276. *) supports_anon_versioning=yes ;;
  15277. esac
  15278. # See if GNU ld supports shared libraries.
  15279. case $host_os in
  15280. aix3* | aix4* | aix5*)
  15281. # On AIX/PPC, the GNU linker is very broken
  15282. if test "$host_cpu" != ia64; then
  15283. ld_shlibs_GCJ=no
  15284. cat <<EOF 1>&2
  15285. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  15286. *** to be unable to reliably create shared libraries on AIX.
  15287. *** Therefore, libtool is disabling shared libraries support. If you
  15288. *** really care for shared libraries, you may want to modify your PATH
  15289. *** so that a non-GNU linker is found, and then restart.
  15290. EOF
  15291. fi
  15292. ;;
  15293. amigaos*)
  15294. 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)'
  15295. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15296. hardcode_minus_L_GCJ=yes
  15297. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  15298. # that the semantics of dynamic libraries on AmigaOS, at least up
  15299. # to version 4, is to share data among multiple programs linked
  15300. # with the same dynamic library. Since this doesn't match the
  15301. # behavior of shared libraries on other platforms, we can't use
  15302. # them.
  15303. ld_shlibs_GCJ=no
  15304. ;;
  15305. beos*)
  15306. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15307. allow_undefined_flag_GCJ=unsupported
  15308. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  15309. # support --undefined. This deserves some investigation. FIXME
  15310. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15311. else
  15312. ld_shlibs_GCJ=no
  15313. fi
  15314. ;;
  15315. cygwin* | mingw* | pw32*)
  15316. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  15317. # as there is no search path for DLLs.
  15318. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15319. allow_undefined_flag_GCJ=unsupported
  15320. always_export_symbols_GCJ=no
  15321. enable_shared_with_static_runtimes_GCJ=yes
  15322. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  15323. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  15324. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  15325. # If the export-symbols file already is a .def file (1st line
  15326. # is EXPORTS), use it as is; otherwise, prepend...
  15327. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  15328. cp $export_symbols $output_objdir/$soname.def;
  15329. else
  15330. echo EXPORTS > $output_objdir/$soname.def;
  15331. cat $export_symbols >> $output_objdir/$soname.def;
  15332. fi~
  15333. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  15334. else
  15335. ld_shlibs_GCJ=no
  15336. fi
  15337. ;;
  15338. linux*)
  15339. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15340. tmp_addflag=
  15341. case $cc_basename,$host_cpu in
  15342. pgcc*) # Portland Group C compiler
  15343. 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'
  15344. tmp_addflag=' $pic_flag'
  15345. ;;
  15346. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  15347. 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'
  15348. tmp_addflag=' $pic_flag -Mnomain' ;;
  15349. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  15350. tmp_addflag=' -i_dynamic' ;;
  15351. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  15352. tmp_addflag=' -i_dynamic -nofor_main' ;;
  15353. ifc* | ifort*) # Intel Fortran compiler
  15354. tmp_addflag=' -nofor_main' ;;
  15355. esac
  15356. archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15357. if test $supports_anon_versioning = yes; then
  15358. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  15359. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  15360. $echo "local: *; };" >> $output_objdir/$libname.ver~
  15361. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  15362. fi
  15363. else
  15364. ld_shlibs_GCJ=no
  15365. fi
  15366. ;;
  15367. netbsd*)
  15368. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15369. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  15370. wlarc=
  15371. else
  15372. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15373. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15374. fi
  15375. ;;
  15376. solaris* | sysv5*)
  15377. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  15378. ld_shlibs_GCJ=no
  15379. cat <<EOF 1>&2
  15380. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  15381. *** create shared libraries on Solaris systems. Therefore, libtool
  15382. *** is disabling shared libraries support. We urge you to upgrade GNU
  15383. *** binutils to release 2.9.1 or newer. Another option is to modify
  15384. *** your PATH or compiler configuration so that the native linker is
  15385. *** used, and then restart.
  15386. EOF
  15387. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15388. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15389. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15390. else
  15391. ld_shlibs_GCJ=no
  15392. fi
  15393. ;;
  15394. sunos4*)
  15395. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15396. wlarc=
  15397. hardcode_direct_GCJ=yes
  15398. hardcode_shlibpath_var_GCJ=no
  15399. ;;
  15400. *)
  15401. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15402. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15403. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15404. else
  15405. ld_shlibs_GCJ=no
  15406. fi
  15407. ;;
  15408. esac
  15409. if test "$ld_shlibs_GCJ" = no; then
  15410. runpath_var=
  15411. hardcode_libdir_flag_spec_GCJ=
  15412. export_dynamic_flag_spec_GCJ=
  15413. whole_archive_flag_spec_GCJ=
  15414. fi
  15415. else
  15416. # PORTME fill in a description of your system's linker (not GNU ld)
  15417. case $host_os in
  15418. aix3*)
  15419. allow_undefined_flag_GCJ=unsupported
  15420. always_export_symbols_GCJ=yes
  15421. 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'
  15422. # Note: this linker hardcodes the directories in LIBPATH if there
  15423. # are no directories specified by -L.
  15424. hardcode_minus_L_GCJ=yes
  15425. if test "$GCC" = yes && test -z "$link_static_flag"; then
  15426. # Neither direct hardcoding nor static linking is supported with a
  15427. # broken collect2.
  15428. hardcode_direct_GCJ=unsupported
  15429. fi
  15430. ;;
  15431. aix4* | aix5*)
  15432. if test "$host_cpu" = ia64; then
  15433. # On IA64, the linker does run time linking by default, so we don't
  15434. # have to do anything special.
  15435. aix_use_runtimelinking=no
  15436. exp_sym_flag='-Bexport'
  15437. no_entry_flag=""
  15438. else
  15439. # If we're using GNU nm, then we don't want the "-C" option.
  15440. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  15441. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  15442. 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'
  15443. else
  15444. 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'
  15445. fi
  15446. aix_use_runtimelinking=no
  15447. # Test if we are trying to use run time linking or normal
  15448. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  15449. # need to do runtime linking.
  15450. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  15451. for ld_flag in $LDFLAGS; do
  15452. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  15453. aix_use_runtimelinking=yes
  15454. break
  15455. fi
  15456. done
  15457. esac
  15458. exp_sym_flag='-bexport'
  15459. no_entry_flag='-bnoentry'
  15460. fi
  15461. # When large executables or shared objects are built, AIX ld can
  15462. # have problems creating the table of contents. If linking a library
  15463. # or program results in "error TOC overflow" add -mminimal-toc to
  15464. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  15465. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  15466. archive_cmds_GCJ=''
  15467. hardcode_direct_GCJ=yes
  15468. hardcode_libdir_separator_GCJ=':'
  15469. link_all_deplibs_GCJ=yes
  15470. if test "$GCC" = yes; then
  15471. case $host_os in aix4.[012]|aix4.[012].*)
  15472. # We only want to do this on AIX 4.2 and lower, the check
  15473. # below for broken collect2 doesn't work under 4.3+
  15474. collect2name=`${CC} -print-prog-name=collect2`
  15475. if test -f "$collect2name" && \
  15476. strings "$collect2name" | grep resolve_lib_name >/dev/null
  15477. then
  15478. # We have reworked collect2
  15479. hardcode_direct_GCJ=yes
  15480. else
  15481. # We have old collect2
  15482. hardcode_direct_GCJ=unsupported
  15483. # It fails to find uninstalled libraries when the uninstalled
  15484. # path is not listed in the libpath. Setting hardcode_minus_L
  15485. # to unsupported forces relinking
  15486. hardcode_minus_L_GCJ=yes
  15487. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15488. hardcode_libdir_separator_GCJ=
  15489. fi
  15490. esac
  15491. shared_flag='-shared'
  15492. if test "$aix_use_runtimelinking" = yes; then
  15493. shared_flag="$shared_flag "'${wl}-G'
  15494. fi
  15495. else
  15496. # not using gcc
  15497. if test "$host_cpu" = ia64; then
  15498. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  15499. # chokes on -Wl,-G. The following line is correct:
  15500. shared_flag='-G'
  15501. else
  15502. if test "$aix_use_runtimelinking" = yes; then
  15503. shared_flag='${wl}-G'
  15504. else
  15505. shared_flag='${wl}-bM:SRE'
  15506. fi
  15507. fi
  15508. fi
  15509. # It seems that -bexpall does not export symbols beginning with
  15510. # underscore (_), so it is better to generate a list of symbols to export.
  15511. always_export_symbols_GCJ=yes
  15512. if test "$aix_use_runtimelinking" = yes; then
  15513. # Warning - without using the other runtime loading flags (-brtl),
  15514. # -berok will link without error, but may produce a broken library.
  15515. allow_undefined_flag_GCJ='-berok'
  15516. # Determine the default libpath from the value encoded in an empty executable.
  15517. cat >conftest.$ac_ext <<_ACEOF
  15518. /* confdefs.h. */
  15519. _ACEOF
  15520. cat confdefs.h >>conftest.$ac_ext
  15521. cat >>conftest.$ac_ext <<_ACEOF
  15522. /* end confdefs.h. */
  15523. int
  15524. main ()
  15525. {
  15526. ;
  15527. return 0;
  15528. }
  15529. _ACEOF
  15530. rm -f conftest.$ac_objext conftest$ac_exeext
  15531. if { (ac_try="$ac_link"
  15532. case "(($ac_try" in
  15533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15534. *) ac_try_echo=$ac_try;;
  15535. esac
  15536. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15537. (eval "$ac_link") 2>conftest.er1
  15538. ac_status=$?
  15539. grep -v '^ *+' conftest.er1 >conftest.err
  15540. rm -f conftest.er1
  15541. cat conftest.err >&5
  15542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15543. (exit $ac_status); } && {
  15544. test -z "$ac_c_werror_flag" ||
  15545. test ! -s conftest.err
  15546. } && test -s conftest$ac_exeext &&
  15547. $as_test_x conftest$ac_exeext; then
  15548. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15549. }'`
  15550. # Check for a 64-bit object if we didn't find anything.
  15551. 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; }
  15552. }'`; fi
  15553. else
  15554. echo "$as_me: failed program was:" >&5
  15555. sed 's/^/| /' conftest.$ac_ext >&5
  15556. fi
  15557. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15558. conftest$ac_exeext conftest.$ac_ext
  15559. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15560. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15561. 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"
  15562. else
  15563. if test "$host_cpu" = ia64; then
  15564. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  15565. allow_undefined_flag_GCJ="-z nodefs"
  15566. 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"
  15567. else
  15568. # Determine the default libpath from the value encoded in an empty executable.
  15569. cat >conftest.$ac_ext <<_ACEOF
  15570. /* confdefs.h. */
  15571. _ACEOF
  15572. cat confdefs.h >>conftest.$ac_ext
  15573. cat >>conftest.$ac_ext <<_ACEOF
  15574. /* end confdefs.h. */
  15575. int
  15576. main ()
  15577. {
  15578. ;
  15579. return 0;
  15580. }
  15581. _ACEOF
  15582. rm -f conftest.$ac_objext conftest$ac_exeext
  15583. if { (ac_try="$ac_link"
  15584. case "(($ac_try" in
  15585. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15586. *) ac_try_echo=$ac_try;;
  15587. esac
  15588. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15589. (eval "$ac_link") 2>conftest.er1
  15590. ac_status=$?
  15591. grep -v '^ *+' conftest.er1 >conftest.err
  15592. rm -f conftest.er1
  15593. cat conftest.err >&5
  15594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15595. (exit $ac_status); } && {
  15596. test -z "$ac_c_werror_flag" ||
  15597. test ! -s conftest.err
  15598. } && test -s conftest$ac_exeext &&
  15599. $as_test_x conftest$ac_exeext; then
  15600. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15601. }'`
  15602. # Check for a 64-bit object if we didn't find anything.
  15603. 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; }
  15604. }'`; fi
  15605. else
  15606. echo "$as_me: failed program was:" >&5
  15607. sed 's/^/| /' conftest.$ac_ext >&5
  15608. fi
  15609. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15610. conftest$ac_exeext conftest.$ac_ext
  15611. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15612. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15613. # Warning - without using the other run time loading flags,
  15614. # -berok will link without error, but may produce a broken library.
  15615. no_undefined_flag_GCJ=' ${wl}-bernotok'
  15616. allow_undefined_flag_GCJ=' ${wl}-berok'
  15617. # -bexpall does not export symbols beginning with underscore (_)
  15618. always_export_symbols_GCJ=yes
  15619. # Exported symbols can be pulled into shared objects from archives
  15620. whole_archive_flag_spec_GCJ=' '
  15621. archive_cmds_need_lc_GCJ=yes
  15622. # This is similar to how AIX traditionally builds it's shared libraries.
  15623. 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'
  15624. fi
  15625. fi
  15626. ;;
  15627. amigaos*)
  15628. 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)'
  15629. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15630. hardcode_minus_L_GCJ=yes
  15631. # see comment about different semantics on the GNU ld section
  15632. ld_shlibs_GCJ=no
  15633. ;;
  15634. bsdi[45]*)
  15635. export_dynamic_flag_spec_GCJ=-rdynamic
  15636. ;;
  15637. cygwin* | mingw* | pw32*)
  15638. # When not using gcc, we currently assume that we are using
  15639. # Microsoft Visual C++.
  15640. # hardcode_libdir_flag_spec is actually meaningless, as there is
  15641. # no search path for DLLs.
  15642. hardcode_libdir_flag_spec_GCJ=' '
  15643. allow_undefined_flag_GCJ=unsupported
  15644. # Tell ltmain to make .lib files, not .a files.
  15645. libext=lib
  15646. # Tell ltmain to make .dll files, not .so files.
  15647. shrext_cmds=".dll"
  15648. # FIXME: Setting linknames here is a bad hack.
  15649. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  15650. # The linker will automatically build a .lib file if we build a DLL.
  15651. old_archive_From_new_cmds_GCJ='true'
  15652. # FIXME: Should let the user specify the lib program.
  15653. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  15654. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  15655. enable_shared_with_static_runtimes_GCJ=yes
  15656. ;;
  15657. darwin* | rhapsody*)
  15658. case "$host_os" in
  15659. rhapsody* | darwin1.[012])
  15660. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  15661. ;;
  15662. *) # Darwin 1.3 on
  15663. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  15664. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15665. else
  15666. case ${MACOSX_DEPLOYMENT_TARGET} in
  15667. 10.[012])
  15668. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15669. ;;
  15670. 10.*)
  15671. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  15672. ;;
  15673. esac
  15674. fi
  15675. ;;
  15676. esac
  15677. archive_cmds_need_lc_GCJ=no
  15678. hardcode_direct_GCJ=no
  15679. hardcode_automatic_GCJ=yes
  15680. hardcode_shlibpath_var_GCJ=unsupported
  15681. whole_archive_flag_spec_GCJ=''
  15682. link_all_deplibs_GCJ=yes
  15683. if test "$GCC" = yes ; then
  15684. output_verbose_link_cmd='echo'
  15685. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  15686. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15687. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  15688. 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}'
  15689. 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}'
  15690. else
  15691. case $cc_basename in
  15692. xlc*)
  15693. output_verbose_link_cmd='echo'
  15694. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  15695. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15696. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  15697. 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}'
  15698. 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}'
  15699. ;;
  15700. *)
  15701. ld_shlibs_GCJ=no
  15702. ;;
  15703. esac
  15704. fi
  15705. ;;
  15706. dgux*)
  15707. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15708. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15709. hardcode_shlibpath_var_GCJ=no
  15710. ;;
  15711. freebsd1*)
  15712. ld_shlibs_GCJ=no
  15713. ;;
  15714. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  15715. # support. Future versions do this automatically, but an explicit c++rt0.o
  15716. # does not break anything, and helps significantly (at the cost of a little
  15717. # extra space).
  15718. freebsd2.2*)
  15719. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15720. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15721. hardcode_direct_GCJ=yes
  15722. hardcode_shlibpath_var_GCJ=no
  15723. ;;
  15724. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15725. freebsd2*)
  15726. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15727. hardcode_direct_GCJ=yes
  15728. hardcode_minus_L_GCJ=yes
  15729. hardcode_shlibpath_var_GCJ=no
  15730. ;;
  15731. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15732. freebsd* | kfreebsd*-gnu | dragonfly*)
  15733. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15734. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15735. hardcode_direct_GCJ=yes
  15736. hardcode_shlibpath_var_GCJ=no
  15737. ;;
  15738. hpux9*)
  15739. if test "$GCC" = yes; then
  15740. 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'
  15741. else
  15742. 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'
  15743. fi
  15744. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15745. hardcode_libdir_separator_GCJ=:
  15746. hardcode_direct_GCJ=yes
  15747. # hardcode_minus_L: Not really in the search PATH,
  15748. # but as the default location of the library.
  15749. hardcode_minus_L_GCJ=yes
  15750. export_dynamic_flag_spec_GCJ='${wl}-E'
  15751. ;;
  15752. hpux10* | hpux11*)
  15753. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15754. case "$host_cpu" in
  15755. hppa*64*|ia64*)
  15756. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15757. ;;
  15758. *)
  15759. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15760. ;;
  15761. esac
  15762. else
  15763. case "$host_cpu" in
  15764. hppa*64*|ia64*)
  15765. archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  15766. ;;
  15767. *)
  15768. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  15769. ;;
  15770. esac
  15771. fi
  15772. if test "$with_gnu_ld" = no; then
  15773. case "$host_cpu" in
  15774. hppa*64*)
  15775. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15776. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  15777. hardcode_libdir_separator_GCJ=:
  15778. hardcode_direct_GCJ=no
  15779. hardcode_shlibpath_var_GCJ=no
  15780. ;;
  15781. ia64*)
  15782. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15783. hardcode_direct_GCJ=no
  15784. hardcode_shlibpath_var_GCJ=no
  15785. # hardcode_minus_L: Not really in the search PATH,
  15786. # but as the default location of the library.
  15787. hardcode_minus_L_GCJ=yes
  15788. ;;
  15789. *)
  15790. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15791. hardcode_libdir_separator_GCJ=:
  15792. hardcode_direct_GCJ=yes
  15793. export_dynamic_flag_spec_GCJ='${wl}-E'
  15794. # hardcode_minus_L: Not really in the search PATH,
  15795. # but as the default location of the library.
  15796. hardcode_minus_L_GCJ=yes
  15797. ;;
  15798. esac
  15799. fi
  15800. ;;
  15801. irix5* | irix6* | nonstopux*)
  15802. if test "$GCC" = yes; then
  15803. 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'
  15804. else
  15805. 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'
  15806. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  15807. fi
  15808. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15809. hardcode_libdir_separator_GCJ=:
  15810. link_all_deplibs_GCJ=yes
  15811. ;;
  15812. netbsd*)
  15813. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15814. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  15815. else
  15816. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  15817. fi
  15818. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15819. hardcode_direct_GCJ=yes
  15820. hardcode_shlibpath_var_GCJ=no
  15821. ;;
  15822. newsos6)
  15823. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15824. hardcode_direct_GCJ=yes
  15825. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15826. hardcode_libdir_separator_GCJ=:
  15827. hardcode_shlibpath_var_GCJ=no
  15828. ;;
  15829. openbsd*)
  15830. hardcode_direct_GCJ=yes
  15831. hardcode_shlibpath_var_GCJ=no
  15832. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15833. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15834. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  15835. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15836. export_dynamic_flag_spec_GCJ='${wl}-E'
  15837. else
  15838. case $host_os in
  15839. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  15840. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15841. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15842. ;;
  15843. *)
  15844. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15845. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15846. ;;
  15847. esac
  15848. fi
  15849. ;;
  15850. os2*)
  15851. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15852. hardcode_minus_L_GCJ=yes
  15853. allow_undefined_flag_GCJ=unsupported
  15854. 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'
  15855. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  15856. ;;
  15857. osf3*)
  15858. if test "$GCC" = yes; then
  15859. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15860. 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'
  15861. else
  15862. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15863. 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'
  15864. fi
  15865. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15866. hardcode_libdir_separator_GCJ=:
  15867. ;;
  15868. osf4* | osf5*) # as osf3* with the addition of -msym flag
  15869. if test "$GCC" = yes; then
  15870. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15871. 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'
  15872. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15873. else
  15874. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15875. 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'
  15876. 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~
  15877. $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'
  15878. # Both c and cxx compiler support -rpath directly
  15879. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  15880. fi
  15881. hardcode_libdir_separator_GCJ=:
  15882. ;;
  15883. sco3.2v5*)
  15884. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15885. hardcode_shlibpath_var_GCJ=no
  15886. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  15887. runpath_var=LD_RUN_PATH
  15888. hardcode_runpath_var=yes
  15889. ;;
  15890. solaris*)
  15891. no_undefined_flag_GCJ=' -z text'
  15892. if test "$GCC" = yes; then
  15893. wlarc='${wl}'
  15894. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15895. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15896. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  15897. else
  15898. wlarc=''
  15899. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15900. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15901. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15902. fi
  15903. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15904. hardcode_shlibpath_var_GCJ=no
  15905. case $host_os in
  15906. solaris2.[0-5] | solaris2.[0-5].*) ;;
  15907. *)
  15908. # The compiler driver will combine linker options so we
  15909. # cannot just pass the convience library names through
  15910. # without $wl, iff we do not link with $LD.
  15911. # Luckily, gcc supports the same syntax we need for Sun Studio.
  15912. # Supported since Solaris 2.6 (maybe 2.5.1?)
  15913. case $wlarc in
  15914. '')
  15915. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  15916. *)
  15917. 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' ;;
  15918. esac ;;
  15919. esac
  15920. link_all_deplibs_GCJ=yes
  15921. ;;
  15922. sunos4*)
  15923. if test "x$host_vendor" = xsequent; then
  15924. # Use $CC to link under sequent, because it throws in some extra .o
  15925. # files that make .init and .fini sections work.
  15926. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  15927. else
  15928. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  15929. fi
  15930. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15931. hardcode_direct_GCJ=yes
  15932. hardcode_minus_L_GCJ=yes
  15933. hardcode_shlibpath_var_GCJ=no
  15934. ;;
  15935. sysv4)
  15936. case $host_vendor in
  15937. sni)
  15938. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15939. hardcode_direct_GCJ=yes # is this really true???
  15940. ;;
  15941. siemens)
  15942. ## LD is ld it makes a PLAMLIB
  15943. ## CC just makes a GrossModule.
  15944. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15945. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  15946. hardcode_direct_GCJ=no
  15947. ;;
  15948. motorola)
  15949. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15950. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  15951. ;;
  15952. esac
  15953. runpath_var='LD_RUN_PATH'
  15954. hardcode_shlibpath_var_GCJ=no
  15955. ;;
  15956. sysv4.3*)
  15957. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15958. hardcode_shlibpath_var_GCJ=no
  15959. export_dynamic_flag_spec_GCJ='-Bexport'
  15960. ;;
  15961. sysv4*MP*)
  15962. if test -d /usr/nec; then
  15963. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15964. hardcode_shlibpath_var_GCJ=no
  15965. runpath_var=LD_RUN_PATH
  15966. hardcode_runpath_var=yes
  15967. ld_shlibs_GCJ=yes
  15968. fi
  15969. ;;
  15970. sysv4.2uw2*)
  15971. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15972. hardcode_direct_GCJ=yes
  15973. hardcode_minus_L_GCJ=no
  15974. hardcode_shlibpath_var_GCJ=no
  15975. hardcode_runpath_var=yes
  15976. runpath_var=LD_RUN_PATH
  15977. ;;
  15978. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  15979. no_undefined_flag_GCJ='${wl}-z ${wl}text'
  15980. if test "$GCC" = yes; then
  15981. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15982. else
  15983. archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15984. fi
  15985. runpath_var='LD_RUN_PATH'
  15986. hardcode_shlibpath_var_GCJ=no
  15987. ;;
  15988. sysv5*)
  15989. no_undefined_flag_GCJ=' -z text'
  15990. # $CC -shared without GNU ld will not create a library from C++
  15991. # object files and a static libstdc++, better avoid it by now
  15992. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15993. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15994. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15995. hardcode_libdir_flag_spec_GCJ=
  15996. hardcode_shlibpath_var_GCJ=no
  15997. runpath_var='LD_RUN_PATH'
  15998. ;;
  15999. uts4*)
  16000. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16001. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16002. hardcode_shlibpath_var_GCJ=no
  16003. ;;
  16004. *)
  16005. ld_shlibs_GCJ=no
  16006. ;;
  16007. esac
  16008. fi
  16009. { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  16010. echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  16011. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  16012. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16013. if test "$GCC" = yes; then
  16014. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16015. fi
  16016. #
  16017. # Do we need to explicitly link libc?
  16018. #
  16019. case "x$archive_cmds_need_lc_GCJ" in
  16020. x|xyes)
  16021. # Assume -lc should be added
  16022. archive_cmds_need_lc_GCJ=yes
  16023. if test "$enable_shared" = yes && test "$GCC" = yes; then
  16024. case $archive_cmds_GCJ in
  16025. *'~'*)
  16026. # FIXME: we may have to deal with multi-command sequences.
  16027. ;;
  16028. '$CC '*)
  16029. # Test whether the compiler implicitly links with -lc since on some
  16030. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  16031. # to ld, don't add -lc before -lgcc.
  16032. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  16033. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  16034. $rm conftest*
  16035. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  16036. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16037. (eval $ac_compile) 2>&5
  16038. ac_status=$?
  16039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16040. (exit $ac_status); } 2>conftest.err; then
  16041. soname=conftest
  16042. lib=conftest
  16043. libobjs=conftest.$ac_objext
  16044. deplibs=
  16045. wl=$lt_prog_compiler_wl_GCJ
  16046. compiler_flags=-v
  16047. linker_flags=-v
  16048. verstring=
  16049. output_objdir=.
  16050. libname=conftest
  16051. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  16052. allow_undefined_flag_GCJ=
  16053. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  16054. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  16055. ac_status=$?
  16056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16057. (exit $ac_status); }
  16058. then
  16059. archive_cmds_need_lc_GCJ=no
  16060. else
  16061. archive_cmds_need_lc_GCJ=yes
  16062. fi
  16063. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  16064. else
  16065. cat conftest.err 1>&5
  16066. fi
  16067. $rm conftest*
  16068. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  16069. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  16070. ;;
  16071. esac
  16072. fi
  16073. ;;
  16074. esac
  16075. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  16076. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  16077. library_names_spec=
  16078. libname_spec='lib$name'
  16079. soname_spec=
  16080. shrext_cmds=".so"
  16081. postinstall_cmds=
  16082. postuninstall_cmds=
  16083. finish_cmds=
  16084. finish_eval=
  16085. shlibpath_var=
  16086. shlibpath_overrides_runpath=unknown
  16087. version_type=none
  16088. dynamic_linker="$host_os ld.so"
  16089. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  16090. if test "$GCC" = yes; then
  16091. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16092. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  16093. # if the path contains ";" then we assume it to be the separator
  16094. # otherwise default to the standard path separator (i.e. ":") - it is
  16095. # assumed that no part of a normal pathname contains ";" but that should
  16096. # okay in the real world where ";" in dirpaths is itself problematic.
  16097. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16098. else
  16099. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16100. fi
  16101. else
  16102. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  16103. fi
  16104. need_lib_prefix=unknown
  16105. hardcode_into_libs=no
  16106. # when you set need_version to no, make sure it does not cause -set_version
  16107. # flags to be left without arguments
  16108. need_version=unknown
  16109. case $host_os in
  16110. aix3*)
  16111. version_type=linux
  16112. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  16113. shlibpath_var=LIBPATH
  16114. # AIX 3 has no versioning support, so we append a major version to the name.
  16115. soname_spec='${libname}${release}${shared_ext}$major'
  16116. ;;
  16117. aix4* | aix5*)
  16118. version_type=linux
  16119. need_lib_prefix=no
  16120. need_version=no
  16121. hardcode_into_libs=yes
  16122. if test "$host_cpu" = ia64; then
  16123. # AIX 5 supports IA64
  16124. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  16125. shlibpath_var=LD_LIBRARY_PATH
  16126. else
  16127. # With GCC up to 2.95.x, collect2 would create an import file
  16128. # for dependence libraries. The import file would start with
  16129. # the line `#! .'. This would cause the generated library to
  16130. # depend on `.', always an invalid library. This was fixed in
  16131. # development snapshots of GCC prior to 3.0.
  16132. case $host_os in
  16133. aix4 | aix4.[01] | aix4.[01].*)
  16134. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  16135. echo ' yes '
  16136. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  16137. :
  16138. else
  16139. can_build_shared=no
  16140. fi
  16141. ;;
  16142. esac
  16143. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  16144. # soname into executable. Probably we can add versioning support to
  16145. # collect2, so additional links can be useful in future.
  16146. if test "$aix_use_runtimelinking" = yes; then
  16147. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  16148. # instead of lib<name>.a to let people know that these are not
  16149. # typical AIX shared libraries.
  16150. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16151. else
  16152. # We preserve .a as extension for shared libraries through AIX4.2
  16153. # and later when we are not doing run time linking.
  16154. library_names_spec='${libname}${release}.a $libname.a'
  16155. soname_spec='${libname}${release}${shared_ext}$major'
  16156. fi
  16157. shlibpath_var=LIBPATH
  16158. fi
  16159. ;;
  16160. amigaos*)
  16161. library_names_spec='$libname.ixlibrary $libname.a'
  16162. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  16163. 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'
  16164. ;;
  16165. beos*)
  16166. library_names_spec='${libname}${shared_ext}'
  16167. dynamic_linker="$host_os ld.so"
  16168. shlibpath_var=LIBRARY_PATH
  16169. ;;
  16170. bsdi[45]*)
  16171. version_type=linux
  16172. need_version=no
  16173. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16174. soname_spec='${libname}${release}${shared_ext}$major'
  16175. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  16176. shlibpath_var=LD_LIBRARY_PATH
  16177. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  16178. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  16179. # the default ld.so.conf also contains /usr/contrib/lib and
  16180. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  16181. # libtool to hard-code these into programs
  16182. ;;
  16183. cygwin* | mingw* | pw32*)
  16184. version_type=windows
  16185. shrext_cmds=".dll"
  16186. need_version=no
  16187. need_lib_prefix=no
  16188. case $GCC,$host_os in
  16189. yes,cygwin* | yes,mingw* | yes,pw32*)
  16190. library_names_spec='$libname.dll.a'
  16191. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  16192. postinstall_cmds='base_file=`basename \${file}`~
  16193. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  16194. dldir=$destdir/`dirname \$dlpath`~
  16195. test -d \$dldir || mkdir -p \$dldir~
  16196. $install_prog $dir/$dlname \$dldir/$dlname'
  16197. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  16198. dlpath=$dir/\$dldll~
  16199. $rm \$dlpath'
  16200. shlibpath_overrides_runpath=yes
  16201. case $host_os in
  16202. cygwin*)
  16203. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  16204. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16205. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  16206. ;;
  16207. mingw*)
  16208. # MinGW DLLs use traditional 'lib' prefix
  16209. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16210. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16211. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  16212. # It is most probably a Windows format PATH printed by
  16213. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  16214. # path with ; separators, and with drive letters. We can handle the
  16215. # drive letters (cygwin fileutils understands them), so leave them,
  16216. # especially as we might pass files found there to a mingw objdump,
  16217. # which wouldn't understand a cygwinified path. Ahh.
  16218. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16219. else
  16220. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16221. fi
  16222. ;;
  16223. pw32*)
  16224. # pw32 DLLs use 'pw' prefix rather than 'lib'
  16225. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16226. ;;
  16227. esac
  16228. ;;
  16229. *)
  16230. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  16231. ;;
  16232. esac
  16233. dynamic_linker='Win32 ld.exe'
  16234. # FIXME: first we should search . and the directory the executable is in
  16235. shlibpath_var=PATH
  16236. ;;
  16237. darwin* | rhapsody*)
  16238. dynamic_linker="$host_os dyld"
  16239. version_type=darwin
  16240. need_lib_prefix=no
  16241. need_version=no
  16242. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  16243. soname_spec='${libname}${release}${major}$shared_ext'
  16244. shlibpath_overrides_runpath=yes
  16245. shlibpath_var=DYLD_LIBRARY_PATH
  16246. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  16247. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  16248. if test "$GCC" = yes; then
  16249. 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"`
  16250. else
  16251. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  16252. fi
  16253. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  16254. ;;
  16255. dgux*)
  16256. version_type=linux
  16257. need_lib_prefix=no
  16258. need_version=no
  16259. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  16260. soname_spec='${libname}${release}${shared_ext}$major'
  16261. shlibpath_var=LD_LIBRARY_PATH
  16262. ;;
  16263. freebsd1*)
  16264. dynamic_linker=no
  16265. ;;
  16266. kfreebsd*-gnu)
  16267. version_type=linux
  16268. need_lib_prefix=no
  16269. need_version=no
  16270. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16271. soname_spec='${libname}${release}${shared_ext}$major'
  16272. shlibpath_var=LD_LIBRARY_PATH
  16273. shlibpath_overrides_runpath=no
  16274. hardcode_into_libs=yes
  16275. dynamic_linker='GNU ld.so'
  16276. ;;
  16277. freebsd* | dragonfly*)
  16278. # DragonFly does not have aout. When/if they implement a new
  16279. # versioning mechanism, adjust this.
  16280. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  16281. version_type=freebsd-$objformat
  16282. case $version_type in
  16283. freebsd-elf*)
  16284. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16285. need_version=no
  16286. need_lib_prefix=no
  16287. ;;
  16288. freebsd-*)
  16289. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  16290. need_version=yes
  16291. ;;
  16292. esac
  16293. shlibpath_var=LD_LIBRARY_PATH
  16294. case $host_os in
  16295. freebsd2*)
  16296. shlibpath_overrides_runpath=yes
  16297. ;;
  16298. freebsd3.[01]* | freebsdelf3.[01]*)
  16299. shlibpath_overrides_runpath=yes
  16300. hardcode_into_libs=yes
  16301. ;;
  16302. *) # from 3.2 on
  16303. shlibpath_overrides_runpath=no
  16304. hardcode_into_libs=yes
  16305. ;;
  16306. esac
  16307. ;;
  16308. gnu*)
  16309. version_type=linux
  16310. need_lib_prefix=no
  16311. need_version=no
  16312. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  16313. soname_spec='${libname}${release}${shared_ext}$major'
  16314. shlibpath_var=LD_LIBRARY_PATH
  16315. hardcode_into_libs=yes
  16316. ;;
  16317. hpux9* | hpux10* | hpux11*)
  16318. # Give a soname corresponding to the major version so that dld.sl refuses to
  16319. # link against other versions.
  16320. version_type=sunos
  16321. need_lib_prefix=no
  16322. need_version=no
  16323. case "$host_cpu" in
  16324. ia64*)
  16325. shrext_cmds='.so'
  16326. hardcode_into_libs=yes
  16327. dynamic_linker="$host_os dld.so"
  16328. shlibpath_var=LD_LIBRARY_PATH
  16329. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16330. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16331. soname_spec='${libname}${release}${shared_ext}$major'
  16332. if test "X$HPUX_IA64_MODE" = X32; then
  16333. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  16334. else
  16335. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  16336. fi
  16337. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16338. ;;
  16339. hppa*64*)
  16340. shrext_cmds='.sl'
  16341. hardcode_into_libs=yes
  16342. dynamic_linker="$host_os dld.sl"
  16343. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  16344. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16345. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16346. soname_spec='${libname}${release}${shared_ext}$major'
  16347. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  16348. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16349. ;;
  16350. *)
  16351. shrext_cmds='.sl'
  16352. dynamic_linker="$host_os dld.sl"
  16353. shlibpath_var=SHLIB_PATH
  16354. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  16355. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16356. soname_spec='${libname}${release}${shared_ext}$major'
  16357. ;;
  16358. esac
  16359. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  16360. postinstall_cmds='chmod 555 $lib'
  16361. ;;
  16362. irix5* | irix6* | nonstopux*)
  16363. case $host_os in
  16364. nonstopux*) version_type=nonstopux ;;
  16365. *)
  16366. if test "$lt_cv_prog_gnu_ld" = yes; then
  16367. version_type=linux
  16368. else
  16369. version_type=irix
  16370. fi ;;
  16371. esac
  16372. need_lib_prefix=no
  16373. need_version=no
  16374. soname_spec='${libname}${release}${shared_ext}$major'
  16375. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  16376. case $host_os in
  16377. irix5* | nonstopux*)
  16378. libsuff= shlibsuff=
  16379. ;;
  16380. *)
  16381. case $LD in # libtool.m4 will add one of these switches to LD
  16382. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  16383. libsuff= shlibsuff= libmagic=32-bit;;
  16384. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  16385. libsuff=32 shlibsuff=N32 libmagic=N32;;
  16386. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  16387. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  16388. *) libsuff= shlibsuff= libmagic=never-match;;
  16389. esac
  16390. ;;
  16391. esac
  16392. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  16393. shlibpath_overrides_runpath=no
  16394. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  16395. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  16396. hardcode_into_libs=yes
  16397. ;;
  16398. # No shared lib support for Linux oldld, aout, or coff.
  16399. linux*oldld* | linux*aout* | linux*coff*)
  16400. dynamic_linker=no
  16401. ;;
  16402. # This must be Linux ELF.
  16403. linux*)
  16404. version_type=linux
  16405. need_lib_prefix=no
  16406. need_version=no
  16407. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16408. soname_spec='${libname}${release}${shared_ext}$major'
  16409. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  16410. shlibpath_var=LD_LIBRARY_PATH
  16411. shlibpath_overrides_runpath=no
  16412. # This implies no fast_install, which is unacceptable.
  16413. # Some rework will be needed to allow for fast_install
  16414. # before this can be enabled.
  16415. hardcode_into_libs=yes
  16416. # Append ld.so.conf contents to the search path
  16417. if test -f /etc/ld.so.conf; then
  16418. 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' ' '`
  16419. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  16420. fi
  16421. # We used to test for /lib/ld.so.1 and disable shared libraries on
  16422. # powerpc, because MkLinux only supported shared libraries with the
  16423. # GNU dynamic linker. Since this was broken with cross compilers,
  16424. # most powerpc-linux boxes support dynamic linking these days and
  16425. # people can always --disable-shared, the test was removed, and we
  16426. # assume the GNU/Linux dynamic linker is in use.
  16427. dynamic_linker='GNU/Linux ld.so'
  16428. ;;
  16429. knetbsd*-gnu)
  16430. version_type=linux
  16431. need_lib_prefix=no
  16432. need_version=no
  16433. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16434. soname_spec='${libname}${release}${shared_ext}$major'
  16435. shlibpath_var=LD_LIBRARY_PATH
  16436. shlibpath_overrides_runpath=no
  16437. hardcode_into_libs=yes
  16438. dynamic_linker='GNU ld.so'
  16439. ;;
  16440. netbsd*)
  16441. version_type=sunos
  16442. need_lib_prefix=no
  16443. need_version=no
  16444. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16445. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16446. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16447. dynamic_linker='NetBSD (a.out) ld.so'
  16448. else
  16449. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16450. soname_spec='${libname}${release}${shared_ext}$major'
  16451. dynamic_linker='NetBSD ld.elf_so'
  16452. fi
  16453. shlibpath_var=LD_LIBRARY_PATH
  16454. shlibpath_overrides_runpath=yes
  16455. hardcode_into_libs=yes
  16456. ;;
  16457. newsos6)
  16458. version_type=linux
  16459. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16460. shlibpath_var=LD_LIBRARY_PATH
  16461. shlibpath_overrides_runpath=yes
  16462. ;;
  16463. nto-qnx*)
  16464. version_type=linux
  16465. need_lib_prefix=no
  16466. need_version=no
  16467. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16468. soname_spec='${libname}${release}${shared_ext}$major'
  16469. shlibpath_var=LD_LIBRARY_PATH
  16470. shlibpath_overrides_runpath=yes
  16471. ;;
  16472. openbsd*)
  16473. version_type=sunos
  16474. need_lib_prefix=no
  16475. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  16476. case $host_os in
  16477. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  16478. *) need_version=no ;;
  16479. esac
  16480. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16481. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16482. shlibpath_var=LD_LIBRARY_PATH
  16483. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16484. case $host_os in
  16485. openbsd2.[89] | openbsd2.[89].*)
  16486. shlibpath_overrides_runpath=no
  16487. ;;
  16488. *)
  16489. shlibpath_overrides_runpath=yes
  16490. ;;
  16491. esac
  16492. else
  16493. shlibpath_overrides_runpath=yes
  16494. fi
  16495. ;;
  16496. os2*)
  16497. libname_spec='$name'
  16498. shrext_cmds=".dll"
  16499. need_lib_prefix=no
  16500. library_names_spec='$libname${shared_ext} $libname.a'
  16501. dynamic_linker='OS/2 ld.exe'
  16502. shlibpath_var=LIBPATH
  16503. ;;
  16504. osf3* | osf4* | osf5*)
  16505. version_type=osf
  16506. need_lib_prefix=no
  16507. need_version=no
  16508. soname_spec='${libname}${release}${shared_ext}$major'
  16509. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16510. shlibpath_var=LD_LIBRARY_PATH
  16511. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  16512. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  16513. ;;
  16514. sco3.2v5*)
  16515. version_type=osf
  16516. soname_spec='${libname}${release}${shared_ext}$major'
  16517. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16518. shlibpath_var=LD_LIBRARY_PATH
  16519. ;;
  16520. solaris*)
  16521. version_type=linux
  16522. need_lib_prefix=no
  16523. need_version=no
  16524. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16525. soname_spec='${libname}${release}${shared_ext}$major'
  16526. shlibpath_var=LD_LIBRARY_PATH
  16527. shlibpath_overrides_runpath=yes
  16528. hardcode_into_libs=yes
  16529. # ldd complains unless libraries are executable
  16530. postinstall_cmds='chmod +x $lib'
  16531. ;;
  16532. sunos4*)
  16533. version_type=sunos
  16534. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16535. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  16536. shlibpath_var=LD_LIBRARY_PATH
  16537. shlibpath_overrides_runpath=yes
  16538. if test "$with_gnu_ld" = yes; then
  16539. need_lib_prefix=no
  16540. fi
  16541. need_version=yes
  16542. ;;
  16543. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  16544. version_type=linux
  16545. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16546. soname_spec='${libname}${release}${shared_ext}$major'
  16547. shlibpath_var=LD_LIBRARY_PATH
  16548. case $host_vendor in
  16549. sni)
  16550. shlibpath_overrides_runpath=no
  16551. need_lib_prefix=no
  16552. export_dynamic_flag_spec='${wl}-Blargedynsym'
  16553. runpath_var=LD_RUN_PATH
  16554. ;;
  16555. siemens)
  16556. need_lib_prefix=no
  16557. ;;
  16558. motorola)
  16559. need_lib_prefix=no
  16560. need_version=no
  16561. shlibpath_overrides_runpath=no
  16562. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  16563. ;;
  16564. esac
  16565. ;;
  16566. sysv4*MP*)
  16567. if test -d /usr/nec ;then
  16568. version_type=linux
  16569. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  16570. soname_spec='$libname${shared_ext}.$major'
  16571. shlibpath_var=LD_LIBRARY_PATH
  16572. fi
  16573. ;;
  16574. uts4*)
  16575. version_type=linux
  16576. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16577. soname_spec='${libname}${release}${shared_ext}$major'
  16578. shlibpath_var=LD_LIBRARY_PATH
  16579. ;;
  16580. *)
  16581. dynamic_linker=no
  16582. ;;
  16583. esac
  16584. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  16585. echo "${ECHO_T}$dynamic_linker" >&6; }
  16586. test "$dynamic_linker" = no && can_build_shared=no
  16587. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  16588. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  16589. hardcode_action_GCJ=
  16590. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  16591. test -n "$runpath_var_GCJ" || \
  16592. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  16593. # We can hardcode non-existant directories.
  16594. if test "$hardcode_direct_GCJ" != no &&
  16595. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16596. # have to relink, otherwise we might link with an installed library
  16597. # when we should be linking with a yet-to-be-installed one
  16598. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  16599. test "$hardcode_minus_L_GCJ" != no; then
  16600. # Linking always hardcodes the temporary library directory.
  16601. hardcode_action_GCJ=relink
  16602. else
  16603. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16604. hardcode_action_GCJ=immediate
  16605. fi
  16606. else
  16607. # We cannot hardcode anything, or else we can only hardcode existing
  16608. # directories.
  16609. hardcode_action_GCJ=unsupported
  16610. fi
  16611. { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  16612. echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  16613. if test "$hardcode_action_GCJ" = relink; then
  16614. # Fast installation is not supported
  16615. enable_fast_install=no
  16616. elif test "$shlibpath_overrides_runpath" = yes ||
  16617. test "$enable_shared" = no; then
  16618. # Fast installation is not necessary
  16619. enable_fast_install=needless
  16620. fi
  16621. striplib=
  16622. old_striplib=
  16623. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  16624. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  16625. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  16626. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  16627. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  16628. { echo "$as_me:$LINENO: result: yes" >&5
  16629. echo "${ECHO_T}yes" >&6; }
  16630. else
  16631. # FIXME - insert some real tests, host_os isn't really good enough
  16632. case $host_os in
  16633. darwin*)
  16634. if test -n "$STRIP" ; then
  16635. striplib="$STRIP -x"
  16636. { echo "$as_me:$LINENO: result: yes" >&5
  16637. echo "${ECHO_T}yes" >&6; }
  16638. else
  16639. { echo "$as_me:$LINENO: result: no" >&5
  16640. echo "${ECHO_T}no" >&6; }
  16641. fi
  16642. ;;
  16643. *)
  16644. { echo "$as_me:$LINENO: result: no" >&5
  16645. echo "${ECHO_T}no" >&6; }
  16646. ;;
  16647. esac
  16648. fi
  16649. if test "x$enable_dlopen" != xyes; then
  16650. enable_dlopen=unknown
  16651. enable_dlopen_self=unknown
  16652. enable_dlopen_self_static=unknown
  16653. else
  16654. lt_cv_dlopen=no
  16655. lt_cv_dlopen_libs=
  16656. case $host_os in
  16657. beos*)
  16658. lt_cv_dlopen="load_add_on"
  16659. lt_cv_dlopen_libs=
  16660. lt_cv_dlopen_self=yes
  16661. ;;
  16662. mingw* | pw32*)
  16663. lt_cv_dlopen="LoadLibrary"
  16664. lt_cv_dlopen_libs=
  16665. ;;
  16666. cygwin*)
  16667. lt_cv_dlopen="dlopen"
  16668. lt_cv_dlopen_libs=
  16669. ;;
  16670. darwin*)
  16671. # if libdl is installed we need to link against it
  16672. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  16673. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  16674. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  16675. echo $ECHO_N "(cached) $ECHO_C" >&6
  16676. else
  16677. ac_check_lib_save_LIBS=$LIBS
  16678. LIBS="-ldl $LIBS"
  16679. cat >conftest.$ac_ext <<_ACEOF
  16680. /* confdefs.h. */
  16681. _ACEOF
  16682. cat confdefs.h >>conftest.$ac_ext
  16683. cat >>conftest.$ac_ext <<_ACEOF
  16684. /* end confdefs.h. */
  16685. /* Override any GCC internal prototype to avoid an error.
  16686. Use char because int might match the return type of a GCC
  16687. builtin and then its argument prototype would still apply. */
  16688. #ifdef __cplusplus
  16689. extern "C"
  16690. #endif
  16691. char dlopen ();
  16692. int
  16693. main ()
  16694. {
  16695. return dlopen ();
  16696. ;
  16697. return 0;
  16698. }
  16699. _ACEOF
  16700. rm -f conftest.$ac_objext conftest$ac_exeext
  16701. if { (ac_try="$ac_link"
  16702. case "(($ac_try" in
  16703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16704. *) ac_try_echo=$ac_try;;
  16705. esac
  16706. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16707. (eval "$ac_link") 2>conftest.er1
  16708. ac_status=$?
  16709. grep -v '^ *+' conftest.er1 >conftest.err
  16710. rm -f conftest.er1
  16711. cat conftest.err >&5
  16712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16713. (exit $ac_status); } && {
  16714. test -z "$ac_c_werror_flag" ||
  16715. test ! -s conftest.err
  16716. } && test -s conftest$ac_exeext &&
  16717. $as_test_x conftest$ac_exeext; then
  16718. ac_cv_lib_dl_dlopen=yes
  16719. else
  16720. echo "$as_me: failed program was:" >&5
  16721. sed 's/^/| /' conftest.$ac_ext >&5
  16722. ac_cv_lib_dl_dlopen=no
  16723. fi
  16724. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16725. conftest$ac_exeext conftest.$ac_ext
  16726. LIBS=$ac_check_lib_save_LIBS
  16727. fi
  16728. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  16729. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  16730. if test $ac_cv_lib_dl_dlopen = yes; then
  16731. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  16732. else
  16733. lt_cv_dlopen="dyld"
  16734. lt_cv_dlopen_libs=
  16735. lt_cv_dlopen_self=yes
  16736. fi
  16737. ;;
  16738. *)
  16739. { echo "$as_me:$LINENO: checking for shl_load" >&5
  16740. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  16741. if test "${ac_cv_func_shl_load+set}" = set; then
  16742. echo $ECHO_N "(cached) $ECHO_C" >&6
  16743. else
  16744. cat >conftest.$ac_ext <<_ACEOF
  16745. /* confdefs.h. */
  16746. _ACEOF
  16747. cat confdefs.h >>conftest.$ac_ext
  16748. cat >>conftest.$ac_ext <<_ACEOF
  16749. /* end confdefs.h. */
  16750. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  16751. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16752. #define shl_load innocuous_shl_load
  16753. /* System header to define __stub macros and hopefully few prototypes,
  16754. which can conflict with char shl_load (); below.
  16755. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16756. <limits.h> exists even on freestanding compilers. */
  16757. #ifdef __STDC__
  16758. # include <limits.h>
  16759. #else
  16760. # include <assert.h>
  16761. #endif
  16762. #undef shl_load
  16763. /* Override any GCC internal prototype to avoid an error.
  16764. Use char because int might match the return type of a GCC
  16765. builtin and then its argument prototype would still apply. */
  16766. #ifdef __cplusplus
  16767. extern "C"
  16768. #endif
  16769. char shl_load ();
  16770. /* The GNU C library defines this for functions which it implements
  16771. to always fail with ENOSYS. Some functions are actually named
  16772. something starting with __ and the normal name is an alias. */
  16773. #if defined __stub_shl_load || defined __stub___shl_load
  16774. choke me
  16775. #endif
  16776. int
  16777. main ()
  16778. {
  16779. return shl_load ();
  16780. ;
  16781. return 0;
  16782. }
  16783. _ACEOF
  16784. rm -f conftest.$ac_objext conftest$ac_exeext
  16785. if { (ac_try="$ac_link"
  16786. case "(($ac_try" in
  16787. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16788. *) ac_try_echo=$ac_try;;
  16789. esac
  16790. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16791. (eval "$ac_link") 2>conftest.er1
  16792. ac_status=$?
  16793. grep -v '^ *+' conftest.er1 >conftest.err
  16794. rm -f conftest.er1
  16795. cat conftest.err >&5
  16796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16797. (exit $ac_status); } && {
  16798. test -z "$ac_c_werror_flag" ||
  16799. test ! -s conftest.err
  16800. } && test -s conftest$ac_exeext &&
  16801. $as_test_x conftest$ac_exeext; then
  16802. ac_cv_func_shl_load=yes
  16803. else
  16804. echo "$as_me: failed program was:" >&5
  16805. sed 's/^/| /' conftest.$ac_ext >&5
  16806. ac_cv_func_shl_load=no
  16807. fi
  16808. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16809. conftest$ac_exeext conftest.$ac_ext
  16810. fi
  16811. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  16812. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  16813. if test $ac_cv_func_shl_load = yes; then
  16814. lt_cv_dlopen="shl_load"
  16815. else
  16816. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  16817. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  16818. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  16819. echo $ECHO_N "(cached) $ECHO_C" >&6
  16820. else
  16821. ac_check_lib_save_LIBS=$LIBS
  16822. LIBS="-ldld $LIBS"
  16823. cat >conftest.$ac_ext <<_ACEOF
  16824. /* confdefs.h. */
  16825. _ACEOF
  16826. cat confdefs.h >>conftest.$ac_ext
  16827. cat >>conftest.$ac_ext <<_ACEOF
  16828. /* end confdefs.h. */
  16829. /* Override any GCC internal prototype to avoid an error.
  16830. Use char because int might match the return type of a GCC
  16831. builtin and then its argument prototype would still apply. */
  16832. #ifdef __cplusplus
  16833. extern "C"
  16834. #endif
  16835. char shl_load ();
  16836. int
  16837. main ()
  16838. {
  16839. return shl_load ();
  16840. ;
  16841. return 0;
  16842. }
  16843. _ACEOF
  16844. rm -f conftest.$ac_objext conftest$ac_exeext
  16845. if { (ac_try="$ac_link"
  16846. case "(($ac_try" in
  16847. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16848. *) ac_try_echo=$ac_try;;
  16849. esac
  16850. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16851. (eval "$ac_link") 2>conftest.er1
  16852. ac_status=$?
  16853. grep -v '^ *+' conftest.er1 >conftest.err
  16854. rm -f conftest.er1
  16855. cat conftest.err >&5
  16856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16857. (exit $ac_status); } && {
  16858. test -z "$ac_c_werror_flag" ||
  16859. test ! -s conftest.err
  16860. } && test -s conftest$ac_exeext &&
  16861. $as_test_x conftest$ac_exeext; then
  16862. ac_cv_lib_dld_shl_load=yes
  16863. else
  16864. echo "$as_me: failed program was:" >&5
  16865. sed 's/^/| /' conftest.$ac_ext >&5
  16866. ac_cv_lib_dld_shl_load=no
  16867. fi
  16868. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16869. conftest$ac_exeext conftest.$ac_ext
  16870. LIBS=$ac_check_lib_save_LIBS
  16871. fi
  16872. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  16873. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  16874. if test $ac_cv_lib_dld_shl_load = yes; then
  16875. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  16876. else
  16877. { echo "$as_me:$LINENO: checking for dlopen" >&5
  16878. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  16879. if test "${ac_cv_func_dlopen+set}" = set; then
  16880. echo $ECHO_N "(cached) $ECHO_C" >&6
  16881. else
  16882. cat >conftest.$ac_ext <<_ACEOF
  16883. /* confdefs.h. */
  16884. _ACEOF
  16885. cat confdefs.h >>conftest.$ac_ext
  16886. cat >>conftest.$ac_ext <<_ACEOF
  16887. /* end confdefs.h. */
  16888. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  16889. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16890. #define dlopen innocuous_dlopen
  16891. /* System header to define __stub macros and hopefully few prototypes,
  16892. which can conflict with char dlopen (); below.
  16893. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16894. <limits.h> exists even on freestanding compilers. */
  16895. #ifdef __STDC__
  16896. # include <limits.h>
  16897. #else
  16898. # include <assert.h>
  16899. #endif
  16900. #undef dlopen
  16901. /* Override any GCC internal prototype to avoid an error.
  16902. Use char because int might match the return type of a GCC
  16903. builtin and then its argument prototype would still apply. */
  16904. #ifdef __cplusplus
  16905. extern "C"
  16906. #endif
  16907. char dlopen ();
  16908. /* The GNU C library defines this for functions which it implements
  16909. to always fail with ENOSYS. Some functions are actually named
  16910. something starting with __ and the normal name is an alias. */
  16911. #if defined __stub_dlopen || defined __stub___dlopen
  16912. choke me
  16913. #endif
  16914. int
  16915. main ()
  16916. {
  16917. return dlopen ();
  16918. ;
  16919. return 0;
  16920. }
  16921. _ACEOF
  16922. rm -f conftest.$ac_objext conftest$ac_exeext
  16923. if { (ac_try="$ac_link"
  16924. case "(($ac_try" in
  16925. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16926. *) ac_try_echo=$ac_try;;
  16927. esac
  16928. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16929. (eval "$ac_link") 2>conftest.er1
  16930. ac_status=$?
  16931. grep -v '^ *+' conftest.er1 >conftest.err
  16932. rm -f conftest.er1
  16933. cat conftest.err >&5
  16934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16935. (exit $ac_status); } && {
  16936. test -z "$ac_c_werror_flag" ||
  16937. test ! -s conftest.err
  16938. } && test -s conftest$ac_exeext &&
  16939. $as_test_x conftest$ac_exeext; then
  16940. ac_cv_func_dlopen=yes
  16941. else
  16942. echo "$as_me: failed program was:" >&5
  16943. sed 's/^/| /' conftest.$ac_ext >&5
  16944. ac_cv_func_dlopen=no
  16945. fi
  16946. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16947. conftest$ac_exeext conftest.$ac_ext
  16948. fi
  16949. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  16950. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  16951. if test $ac_cv_func_dlopen = yes; then
  16952. lt_cv_dlopen="dlopen"
  16953. else
  16954. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  16955. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  16956. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  16957. echo $ECHO_N "(cached) $ECHO_C" >&6
  16958. else
  16959. ac_check_lib_save_LIBS=$LIBS
  16960. LIBS="-ldl $LIBS"
  16961. cat >conftest.$ac_ext <<_ACEOF
  16962. /* confdefs.h. */
  16963. _ACEOF
  16964. cat confdefs.h >>conftest.$ac_ext
  16965. cat >>conftest.$ac_ext <<_ACEOF
  16966. /* end confdefs.h. */
  16967. /* Override any GCC internal prototype to avoid an error.
  16968. Use char because int might match the return type of a GCC
  16969. builtin and then its argument prototype would still apply. */
  16970. #ifdef __cplusplus
  16971. extern "C"
  16972. #endif
  16973. char dlopen ();
  16974. int
  16975. main ()
  16976. {
  16977. return dlopen ();
  16978. ;
  16979. return 0;
  16980. }
  16981. _ACEOF
  16982. rm -f conftest.$ac_objext conftest$ac_exeext
  16983. if { (ac_try="$ac_link"
  16984. case "(($ac_try" in
  16985. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16986. *) ac_try_echo=$ac_try;;
  16987. esac
  16988. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16989. (eval "$ac_link") 2>conftest.er1
  16990. ac_status=$?
  16991. grep -v '^ *+' conftest.er1 >conftest.err
  16992. rm -f conftest.er1
  16993. cat conftest.err >&5
  16994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16995. (exit $ac_status); } && {
  16996. test -z "$ac_c_werror_flag" ||
  16997. test ! -s conftest.err
  16998. } && test -s conftest$ac_exeext &&
  16999. $as_test_x conftest$ac_exeext; then
  17000. ac_cv_lib_dl_dlopen=yes
  17001. else
  17002. echo "$as_me: failed program was:" >&5
  17003. sed 's/^/| /' conftest.$ac_ext >&5
  17004. ac_cv_lib_dl_dlopen=no
  17005. fi
  17006. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17007. conftest$ac_exeext conftest.$ac_ext
  17008. LIBS=$ac_check_lib_save_LIBS
  17009. fi
  17010. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  17011. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  17012. if test $ac_cv_lib_dl_dlopen = yes; then
  17013. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  17014. else
  17015. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  17016. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  17017. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  17018. echo $ECHO_N "(cached) $ECHO_C" >&6
  17019. else
  17020. ac_check_lib_save_LIBS=$LIBS
  17021. LIBS="-lsvld $LIBS"
  17022. cat >conftest.$ac_ext <<_ACEOF
  17023. /* confdefs.h. */
  17024. _ACEOF
  17025. cat confdefs.h >>conftest.$ac_ext
  17026. cat >>conftest.$ac_ext <<_ACEOF
  17027. /* end confdefs.h. */
  17028. /* Override any GCC internal prototype to avoid an error.
  17029. Use char because int might match the return type of a GCC
  17030. builtin and then its argument prototype would still apply. */
  17031. #ifdef __cplusplus
  17032. extern "C"
  17033. #endif
  17034. char dlopen ();
  17035. int
  17036. main ()
  17037. {
  17038. return dlopen ();
  17039. ;
  17040. return 0;
  17041. }
  17042. _ACEOF
  17043. rm -f conftest.$ac_objext conftest$ac_exeext
  17044. if { (ac_try="$ac_link"
  17045. case "(($ac_try" in
  17046. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17047. *) ac_try_echo=$ac_try;;
  17048. esac
  17049. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17050. (eval "$ac_link") 2>conftest.er1
  17051. ac_status=$?
  17052. grep -v '^ *+' conftest.er1 >conftest.err
  17053. rm -f conftest.er1
  17054. cat conftest.err >&5
  17055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17056. (exit $ac_status); } && {
  17057. test -z "$ac_c_werror_flag" ||
  17058. test ! -s conftest.err
  17059. } && test -s conftest$ac_exeext &&
  17060. $as_test_x conftest$ac_exeext; then
  17061. ac_cv_lib_svld_dlopen=yes
  17062. else
  17063. echo "$as_me: failed program was:" >&5
  17064. sed 's/^/| /' conftest.$ac_ext >&5
  17065. ac_cv_lib_svld_dlopen=no
  17066. fi
  17067. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17068. conftest$ac_exeext conftest.$ac_ext
  17069. LIBS=$ac_check_lib_save_LIBS
  17070. fi
  17071. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  17072. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  17073. if test $ac_cv_lib_svld_dlopen = yes; then
  17074. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  17075. else
  17076. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  17077. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  17078. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  17079. echo $ECHO_N "(cached) $ECHO_C" >&6
  17080. else
  17081. ac_check_lib_save_LIBS=$LIBS
  17082. LIBS="-ldld $LIBS"
  17083. cat >conftest.$ac_ext <<_ACEOF
  17084. /* confdefs.h. */
  17085. _ACEOF
  17086. cat confdefs.h >>conftest.$ac_ext
  17087. cat >>conftest.$ac_ext <<_ACEOF
  17088. /* end confdefs.h. */
  17089. /* Override any GCC internal prototype to avoid an error.
  17090. Use char because int might match the return type of a GCC
  17091. builtin and then its argument prototype would still apply. */
  17092. #ifdef __cplusplus
  17093. extern "C"
  17094. #endif
  17095. char dld_link ();
  17096. int
  17097. main ()
  17098. {
  17099. return dld_link ();
  17100. ;
  17101. return 0;
  17102. }
  17103. _ACEOF
  17104. rm -f conftest.$ac_objext conftest$ac_exeext
  17105. if { (ac_try="$ac_link"
  17106. case "(($ac_try" in
  17107. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17108. *) ac_try_echo=$ac_try;;
  17109. esac
  17110. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17111. (eval "$ac_link") 2>conftest.er1
  17112. ac_status=$?
  17113. grep -v '^ *+' conftest.er1 >conftest.err
  17114. rm -f conftest.er1
  17115. cat conftest.err >&5
  17116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17117. (exit $ac_status); } && {
  17118. test -z "$ac_c_werror_flag" ||
  17119. test ! -s conftest.err
  17120. } && test -s conftest$ac_exeext &&
  17121. $as_test_x conftest$ac_exeext; then
  17122. ac_cv_lib_dld_dld_link=yes
  17123. else
  17124. echo "$as_me: failed program was:" >&5
  17125. sed 's/^/| /' conftest.$ac_ext >&5
  17126. ac_cv_lib_dld_dld_link=no
  17127. fi
  17128. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17129. conftest$ac_exeext conftest.$ac_ext
  17130. LIBS=$ac_check_lib_save_LIBS
  17131. fi
  17132. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  17133. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  17134. if test $ac_cv_lib_dld_dld_link = yes; then
  17135. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  17136. fi
  17137. fi
  17138. fi
  17139. fi
  17140. fi
  17141. fi
  17142. ;;
  17143. esac
  17144. if test "x$lt_cv_dlopen" != xno; then
  17145. enable_dlopen=yes
  17146. else
  17147. enable_dlopen=no
  17148. fi
  17149. case $lt_cv_dlopen in
  17150. dlopen)
  17151. save_CPPFLAGS="$CPPFLAGS"
  17152. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  17153. save_LDFLAGS="$LDFLAGS"
  17154. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  17155. save_LIBS="$LIBS"
  17156. LIBS="$lt_cv_dlopen_libs $LIBS"
  17157. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  17158. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  17159. if test "${lt_cv_dlopen_self+set}" = set; then
  17160. echo $ECHO_N "(cached) $ECHO_C" >&6
  17161. else
  17162. if test "$cross_compiling" = yes; then :
  17163. lt_cv_dlopen_self=cross
  17164. else
  17165. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  17166. lt_status=$lt_dlunknown
  17167. cat > conftest.$ac_ext <<EOF
  17168. #line 19184 "configure"
  17169. #include "confdefs.h"
  17170. #if HAVE_DLFCN_H
  17171. #include <dlfcn.h>
  17172. #endif
  17173. #include <stdio.h>
  17174. #ifdef RTLD_GLOBAL
  17175. # define LT_DLGLOBAL RTLD_GLOBAL
  17176. #else
  17177. # ifdef DL_GLOBAL
  17178. # define LT_DLGLOBAL DL_GLOBAL
  17179. # else
  17180. # define LT_DLGLOBAL 0
  17181. # endif
  17182. #endif
  17183. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  17184. find out it does not work in some platform. */
  17185. #ifndef LT_DLLAZY_OR_NOW
  17186. # ifdef RTLD_LAZY
  17187. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  17188. # else
  17189. # ifdef DL_LAZY
  17190. # define LT_DLLAZY_OR_NOW DL_LAZY
  17191. # else
  17192. # ifdef RTLD_NOW
  17193. # define LT_DLLAZY_OR_NOW RTLD_NOW
  17194. # else
  17195. # ifdef DL_NOW
  17196. # define LT_DLLAZY_OR_NOW DL_NOW
  17197. # else
  17198. # define LT_DLLAZY_OR_NOW 0
  17199. # endif
  17200. # endif
  17201. # endif
  17202. # endif
  17203. #endif
  17204. #ifdef __cplusplus
  17205. extern "C" void exit (int);
  17206. #endif
  17207. void fnord() { int i=42;}
  17208. int main ()
  17209. {
  17210. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  17211. int status = $lt_dlunknown;
  17212. if (self)
  17213. {
  17214. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  17215. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  17216. /* dlclose (self); */
  17217. }
  17218. exit (status);
  17219. }
  17220. EOF
  17221. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17222. (eval $ac_link) 2>&5
  17223. ac_status=$?
  17224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17225. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  17226. (./conftest; exit; ) 2>/dev/null
  17227. lt_status=$?
  17228. case x$lt_status in
  17229. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  17230. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  17231. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  17232. esac
  17233. else :
  17234. # compilation failed
  17235. lt_cv_dlopen_self=no
  17236. fi
  17237. fi
  17238. rm -fr conftest*
  17239. fi
  17240. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  17241. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  17242. if test "x$lt_cv_dlopen_self" = xyes; then
  17243. LDFLAGS="$LDFLAGS $link_static_flag"
  17244. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  17245. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  17246. if test "${lt_cv_dlopen_self_static+set}" = set; then
  17247. echo $ECHO_N "(cached) $ECHO_C" >&6
  17248. else
  17249. if test "$cross_compiling" = yes; then :
  17250. lt_cv_dlopen_self_static=cross
  17251. else
  17252. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  17253. lt_status=$lt_dlunknown
  17254. cat > conftest.$ac_ext <<EOF
  17255. #line 19282 "configure"
  17256. #include "confdefs.h"
  17257. #if HAVE_DLFCN_H
  17258. #include <dlfcn.h>
  17259. #endif
  17260. #include <stdio.h>
  17261. #ifdef RTLD_GLOBAL
  17262. # define LT_DLGLOBAL RTLD_GLOBAL
  17263. #else
  17264. # ifdef DL_GLOBAL
  17265. # define LT_DLGLOBAL DL_GLOBAL
  17266. # else
  17267. # define LT_DLGLOBAL 0
  17268. # endif
  17269. #endif
  17270. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  17271. find out it does not work in some platform. */
  17272. #ifndef LT_DLLAZY_OR_NOW
  17273. # ifdef RTLD_LAZY
  17274. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  17275. # else
  17276. # ifdef DL_LAZY
  17277. # define LT_DLLAZY_OR_NOW DL_LAZY
  17278. # else
  17279. # ifdef RTLD_NOW
  17280. # define LT_DLLAZY_OR_NOW RTLD_NOW
  17281. # else
  17282. # ifdef DL_NOW
  17283. # define LT_DLLAZY_OR_NOW DL_NOW
  17284. # else
  17285. # define LT_DLLAZY_OR_NOW 0
  17286. # endif
  17287. # endif
  17288. # endif
  17289. # endif
  17290. #endif
  17291. #ifdef __cplusplus
  17292. extern "C" void exit (int);
  17293. #endif
  17294. void fnord() { int i=42;}
  17295. int main ()
  17296. {
  17297. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  17298. int status = $lt_dlunknown;
  17299. if (self)
  17300. {
  17301. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  17302. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  17303. /* dlclose (self); */
  17304. }
  17305. exit (status);
  17306. }
  17307. EOF
  17308. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17309. (eval $ac_link) 2>&5
  17310. ac_status=$?
  17311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17312. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  17313. (./conftest; exit; ) 2>/dev/null
  17314. lt_status=$?
  17315. case x$lt_status in
  17316. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  17317. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  17318. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  17319. esac
  17320. else :
  17321. # compilation failed
  17322. lt_cv_dlopen_self_static=no
  17323. fi
  17324. fi
  17325. rm -fr conftest*
  17326. fi
  17327. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  17328. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  17329. fi
  17330. CPPFLAGS="$save_CPPFLAGS"
  17331. LDFLAGS="$save_LDFLAGS"
  17332. LIBS="$save_LIBS"
  17333. ;;
  17334. esac
  17335. case $lt_cv_dlopen_self in
  17336. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  17337. *) enable_dlopen_self=unknown ;;
  17338. esac
  17339. case $lt_cv_dlopen_self_static in
  17340. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  17341. *) enable_dlopen_self_static=unknown ;;
  17342. esac
  17343. fi
  17344. # The else clause should only fire when bootstrapping the
  17345. # libtool distribution, otherwise you forgot to ship ltmain.sh
  17346. # with your package, and you will get complaints that there are
  17347. # no rules to generate ltmain.sh.
  17348. if test -f "$ltmain"; then
  17349. # See if we are running on zsh, and set the options which allow our commands through
  17350. # without removal of \ escapes.
  17351. if test -n "${ZSH_VERSION+set}" ; then
  17352. setopt NO_GLOB_SUBST
  17353. fi
  17354. # Now quote all the things that may contain metacharacters while being
  17355. # careful not to overquote the AC_SUBSTed values. We take copies of the
  17356. # variables and quote the copies for generation of the libtool script.
  17357. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  17358. SED SHELL STRIP \
  17359. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  17360. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  17361. deplibs_check_method reload_flag reload_cmds need_locks \
  17362. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  17363. lt_cv_sys_global_symbol_to_c_name_address \
  17364. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  17365. old_postinstall_cmds old_postuninstall_cmds \
  17366. compiler_GCJ \
  17367. CC_GCJ \
  17368. LD_GCJ \
  17369. lt_prog_compiler_wl_GCJ \
  17370. lt_prog_compiler_pic_GCJ \
  17371. lt_prog_compiler_static_GCJ \
  17372. lt_prog_compiler_no_builtin_flag_GCJ \
  17373. export_dynamic_flag_spec_GCJ \
  17374. thread_safe_flag_spec_GCJ \
  17375. whole_archive_flag_spec_GCJ \
  17376. enable_shared_with_static_runtimes_GCJ \
  17377. old_archive_cmds_GCJ \
  17378. old_archive_from_new_cmds_GCJ \
  17379. predep_objects_GCJ \
  17380. postdep_objects_GCJ \
  17381. predeps_GCJ \
  17382. postdeps_GCJ \
  17383. compiler_lib_search_path_GCJ \
  17384. archive_cmds_GCJ \
  17385. archive_expsym_cmds_GCJ \
  17386. postinstall_cmds_GCJ \
  17387. postuninstall_cmds_GCJ \
  17388. old_archive_from_expsyms_cmds_GCJ \
  17389. allow_undefined_flag_GCJ \
  17390. no_undefined_flag_GCJ \
  17391. export_symbols_cmds_GCJ \
  17392. hardcode_libdir_flag_spec_GCJ \
  17393. hardcode_libdir_flag_spec_ld_GCJ \
  17394. hardcode_libdir_separator_GCJ \
  17395. hardcode_automatic_GCJ \
  17396. module_cmds_GCJ \
  17397. module_expsym_cmds_GCJ \
  17398. lt_cv_prog_compiler_c_o_GCJ \
  17399. exclude_expsyms_GCJ \
  17400. include_expsyms_GCJ; do
  17401. case $var in
  17402. old_archive_cmds_GCJ | \
  17403. old_archive_from_new_cmds_GCJ | \
  17404. archive_cmds_GCJ | \
  17405. archive_expsym_cmds_GCJ | \
  17406. module_cmds_GCJ | \
  17407. module_expsym_cmds_GCJ | \
  17408. old_archive_from_expsyms_cmds_GCJ | \
  17409. export_symbols_cmds_GCJ | \
  17410. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  17411. postinstall_cmds | postuninstall_cmds | \
  17412. old_postinstall_cmds | old_postuninstall_cmds | \
  17413. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  17414. # Double-quote double-evaled strings.
  17415. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  17416. ;;
  17417. *)
  17418. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  17419. ;;
  17420. esac
  17421. done
  17422. case $lt_echo in
  17423. *'\$0 --fallback-echo"')
  17424. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  17425. ;;
  17426. esac
  17427. cfgfile="$ofile"
  17428. cat <<__EOF__ >> "$cfgfile"
  17429. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  17430. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17431. # Shell to use when invoking shell scripts.
  17432. SHELL=$lt_SHELL
  17433. # Whether or not to build shared libraries.
  17434. build_libtool_libs=$enable_shared
  17435. # Whether or not to build static libraries.
  17436. build_old_libs=$enable_static
  17437. # Whether or not to add -lc for building shared libraries.
  17438. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  17439. # Whether or not to disallow shared libs when runtime libs are static
  17440. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  17441. # Whether or not to optimize for fast installation.
  17442. fast_install=$enable_fast_install
  17443. # The host system.
  17444. host_alias=$host_alias
  17445. host=$host
  17446. host_os=$host_os
  17447. # The build system.
  17448. build_alias=$build_alias
  17449. build=$build
  17450. build_os=$build_os
  17451. # An echo program that does not interpret backslashes.
  17452. echo=$lt_echo
  17453. # The archiver.
  17454. AR=$lt_AR
  17455. AR_FLAGS=$lt_AR_FLAGS
  17456. # A C compiler.
  17457. LTCC=$lt_LTCC
  17458. # A language-specific compiler.
  17459. CC=$lt_compiler_GCJ
  17460. # Is the compiler the GNU C compiler?
  17461. with_gcc=$GCC_GCJ
  17462. # An ERE matcher.
  17463. EGREP=$lt_EGREP
  17464. # The linker used to build libraries.
  17465. LD=$lt_LD_GCJ
  17466. # Whether we need hard or soft links.
  17467. LN_S=$lt_LN_S
  17468. # A BSD-compatible nm program.
  17469. NM=$lt_NM
  17470. # A symbol stripping program
  17471. STRIP=$lt_STRIP
  17472. # Used to examine libraries when file_magic_cmd begins "file"
  17473. MAGIC_CMD=$MAGIC_CMD
  17474. # Used on cygwin: DLL creation program.
  17475. DLLTOOL="$DLLTOOL"
  17476. # Used on cygwin: object dumper.
  17477. OBJDUMP="$OBJDUMP"
  17478. # Used on cygwin: assembler.
  17479. AS="$AS"
  17480. # The name of the directory that contains temporary libtool files.
  17481. objdir=$objdir
  17482. # How to create reloadable object files.
  17483. reload_flag=$lt_reload_flag
  17484. reload_cmds=$lt_reload_cmds
  17485. # How to pass a linker flag through the compiler.
  17486. wl=$lt_lt_prog_compiler_wl_GCJ
  17487. # Object file suffix (normally "o").
  17488. objext="$ac_objext"
  17489. # Old archive suffix (normally "a").
  17490. libext="$libext"
  17491. # Shared library suffix (normally ".so").
  17492. shrext_cmds='$shrext_cmds'
  17493. # Executable file suffix (normally "").
  17494. exeext="$exeext"
  17495. # Additional compiler flags for building library objects.
  17496. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  17497. pic_mode=$pic_mode
  17498. # What is the maximum length of a command?
  17499. max_cmd_len=$lt_cv_sys_max_cmd_len
  17500. # Does compiler simultaneously support -c and -o options?
  17501. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  17502. # Must we lock files when doing compilation?
  17503. need_locks=$lt_need_locks
  17504. # Do we need the lib prefix for modules?
  17505. need_lib_prefix=$need_lib_prefix
  17506. # Do we need a version for libraries?
  17507. need_version=$need_version
  17508. # Whether dlopen is supported.
  17509. dlopen_support=$enable_dlopen
  17510. # Whether dlopen of programs is supported.
  17511. dlopen_self=$enable_dlopen_self
  17512. # Whether dlopen of statically linked programs is supported.
  17513. dlopen_self_static=$enable_dlopen_self_static
  17514. # Compiler flag to prevent dynamic linking.
  17515. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  17516. # Compiler flag to turn off builtin functions.
  17517. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  17518. # Compiler flag to allow reflexive dlopens.
  17519. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  17520. # Compiler flag to generate shared objects directly from archives.
  17521. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  17522. # Compiler flag to generate thread-safe objects.
  17523. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  17524. # Library versioning type.
  17525. version_type=$version_type
  17526. # Format of library name prefix.
  17527. libname_spec=$lt_libname_spec
  17528. # List of archive names. First name is the real one, the rest are links.
  17529. # The last name is the one that the linker finds with -lNAME.
  17530. library_names_spec=$lt_library_names_spec
  17531. # The coded name of the library, if different from the real name.
  17532. soname_spec=$lt_soname_spec
  17533. # Commands used to build and install an old-style archive.
  17534. RANLIB=$lt_RANLIB
  17535. old_archive_cmds=$lt_old_archive_cmds_GCJ
  17536. old_postinstall_cmds=$lt_old_postinstall_cmds
  17537. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17538. # Create an old-style archive from a shared archive.
  17539. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  17540. # Create a temporary old-style archive to link instead of a shared archive.
  17541. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  17542. # Commands used to build and install a shared archive.
  17543. archive_cmds=$lt_archive_cmds_GCJ
  17544. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  17545. postinstall_cmds=$lt_postinstall_cmds
  17546. postuninstall_cmds=$lt_postuninstall_cmds
  17547. # Commands used to build a loadable module (assumed same as above if empty)
  17548. module_cmds=$lt_module_cmds_GCJ
  17549. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  17550. # Commands to strip libraries.
  17551. old_striplib=$lt_old_striplib
  17552. striplib=$lt_striplib
  17553. # Dependencies to place before the objects being linked to create a
  17554. # shared library.
  17555. predep_objects=$lt_predep_objects_GCJ
  17556. # Dependencies to place after the objects being linked to create a
  17557. # shared library.
  17558. postdep_objects=$lt_postdep_objects_GCJ
  17559. # Dependencies to place before the objects being linked to create a
  17560. # shared library.
  17561. predeps=$lt_predeps_GCJ
  17562. # Dependencies to place after the objects being linked to create a
  17563. # shared library.
  17564. postdeps=$lt_postdeps_GCJ
  17565. # The library search path used internally by the compiler when linking
  17566. # a shared library.
  17567. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  17568. # Method to check whether dependent libraries are shared objects.
  17569. deplibs_check_method=$lt_deplibs_check_method
  17570. # Command to use when deplibs_check_method == file_magic.
  17571. file_magic_cmd=$lt_file_magic_cmd
  17572. # Flag that allows shared libraries with undefined symbols to be built.
  17573. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  17574. # Flag that forces no undefined symbols.
  17575. no_undefined_flag=$lt_no_undefined_flag_GCJ
  17576. # Commands used to finish a libtool library installation in a directory.
  17577. finish_cmds=$lt_finish_cmds
  17578. # Same as above, but a single script fragment to be evaled but not shown.
  17579. finish_eval=$lt_finish_eval
  17580. # Take the output of nm and produce a listing of raw symbols and C names.
  17581. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17582. # Transform the output of nm in a proper C declaration
  17583. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17584. # Transform the output of nm in a C name address pair
  17585. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17586. # This is the shared library runtime path variable.
  17587. runpath_var=$runpath_var
  17588. # This is the shared library path variable.
  17589. shlibpath_var=$shlibpath_var
  17590. # Is shlibpath searched before the hard-coded library search path?
  17591. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17592. # How to hardcode a shared library path into an executable.
  17593. hardcode_action=$hardcode_action_GCJ
  17594. # Whether we should hardcode library paths into libraries.
  17595. hardcode_into_libs=$hardcode_into_libs
  17596. # Flag to hardcode \$libdir into a binary during linking.
  17597. # This must work even if \$libdir does not exist.
  17598. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  17599. # If ld is used when linking, flag to hardcode \$libdir into
  17600. # a binary during linking. This must work even if \$libdir does
  17601. # not exist.
  17602. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  17603. # Whether we need a single -rpath flag with a separated argument.
  17604. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  17605. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17606. # resulting binary.
  17607. hardcode_direct=$hardcode_direct_GCJ
  17608. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17609. # resulting binary.
  17610. hardcode_minus_L=$hardcode_minus_L_GCJ
  17611. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17612. # the resulting binary.
  17613. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  17614. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17615. # and all subsequent libraries and executables linked against it.
  17616. hardcode_automatic=$hardcode_automatic_GCJ
  17617. # Variables whose values should be saved in libtool wrapper scripts and
  17618. # restored at relink time.
  17619. variables_saved_for_relink="$variables_saved_for_relink"
  17620. # Whether libtool must link a program against all its dependency libraries.
  17621. link_all_deplibs=$link_all_deplibs_GCJ
  17622. # Compile-time system search path for libraries
  17623. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17624. # Run-time system search path for libraries
  17625. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17626. # Fix the shell variable \$srcfile for the compiler.
  17627. fix_srcfile_path="$fix_srcfile_path_GCJ"
  17628. # Set to yes if exported symbols are required.
  17629. always_export_symbols=$always_export_symbols_GCJ
  17630. # The commands to list exported symbols.
  17631. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  17632. # The commands to extract the exported symbol list from a shared archive.
  17633. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17634. # Symbols that should not be listed in the preloaded symbols.
  17635. exclude_expsyms=$lt_exclude_expsyms_GCJ
  17636. # Symbols that must always be exported.
  17637. include_expsyms=$lt_include_expsyms_GCJ
  17638. # ### END LIBTOOL TAG CONFIG: $tagname
  17639. __EOF__
  17640. else
  17641. # If there is no Makefile yet, we rely on a make rule to execute
  17642. # `config.status --recheck' to rerun these tests and create the
  17643. # libtool script then.
  17644. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17645. if test -f "$ltmain_in"; then
  17646. test -f Makefile && make "$ltmain"
  17647. fi
  17648. fi
  17649. ac_ext=c
  17650. ac_cpp='$CPP $CPPFLAGS'
  17651. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17652. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17653. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17654. CC="$lt_save_CC"
  17655. else
  17656. tagname=""
  17657. fi
  17658. ;;
  17659. RC)
  17660. # Source file extension for RC test sources.
  17661. ac_ext=rc
  17662. # Object file extension for compiled RC test sources.
  17663. objext=o
  17664. objext_RC=$objext
  17665. # Code to be used in simple compile tests
  17666. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  17667. # Code to be used in simple link tests
  17668. lt_simple_link_test_code="$lt_simple_compile_test_code"
  17669. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  17670. # If no C compiler was specified, use CC.
  17671. LTCC=${LTCC-"$CC"}
  17672. # Allow CC to be a program name with arguments.
  17673. compiler=$CC
  17674. # save warnings/boilerplate of simple test code
  17675. ac_outfile=conftest.$ac_objext
  17676. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  17677. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  17678. _lt_compiler_boilerplate=`cat conftest.err`
  17679. $rm conftest*
  17680. ac_outfile=conftest.$ac_objext
  17681. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  17682. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  17683. _lt_linker_boilerplate=`cat conftest.err`
  17684. $rm conftest*
  17685. # Allow CC to be a program name with arguments.
  17686. lt_save_CC="$CC"
  17687. CC=${RC-"windres"}
  17688. compiler=$CC
  17689. compiler_RC=$CC
  17690. for cc_temp in $compiler""; do
  17691. case $cc_temp in
  17692. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  17693. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  17694. \-*) ;;
  17695. *) break;;
  17696. esac
  17697. done
  17698. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  17699. lt_cv_prog_compiler_c_o_RC=yes
  17700. # The else clause should only fire when bootstrapping the
  17701. # libtool distribution, otherwise you forgot to ship ltmain.sh
  17702. # with your package, and you will get complaints that there are
  17703. # no rules to generate ltmain.sh.
  17704. if test -f "$ltmain"; then
  17705. # See if we are running on zsh, and set the options which allow our commands through
  17706. # without removal of \ escapes.
  17707. if test -n "${ZSH_VERSION+set}" ; then
  17708. setopt NO_GLOB_SUBST
  17709. fi
  17710. # Now quote all the things that may contain metacharacters while being
  17711. # careful not to overquote the AC_SUBSTed values. We take copies of the
  17712. # variables and quote the copies for generation of the libtool script.
  17713. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  17714. SED SHELL STRIP \
  17715. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  17716. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  17717. deplibs_check_method reload_flag reload_cmds need_locks \
  17718. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  17719. lt_cv_sys_global_symbol_to_c_name_address \
  17720. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  17721. old_postinstall_cmds old_postuninstall_cmds \
  17722. compiler_RC \
  17723. CC_RC \
  17724. LD_RC \
  17725. lt_prog_compiler_wl_RC \
  17726. lt_prog_compiler_pic_RC \
  17727. lt_prog_compiler_static_RC \
  17728. lt_prog_compiler_no_builtin_flag_RC \
  17729. export_dynamic_flag_spec_RC \
  17730. thread_safe_flag_spec_RC \
  17731. whole_archive_flag_spec_RC \
  17732. enable_shared_with_static_runtimes_RC \
  17733. old_archive_cmds_RC \
  17734. old_archive_from_new_cmds_RC \
  17735. predep_objects_RC \
  17736. postdep_objects_RC \
  17737. predeps_RC \
  17738. postdeps_RC \
  17739. compiler_lib_search_path_RC \
  17740. archive_cmds_RC \
  17741. archive_expsym_cmds_RC \
  17742. postinstall_cmds_RC \
  17743. postuninstall_cmds_RC \
  17744. old_archive_from_expsyms_cmds_RC \
  17745. allow_undefined_flag_RC \
  17746. no_undefined_flag_RC \
  17747. export_symbols_cmds_RC \
  17748. hardcode_libdir_flag_spec_RC \
  17749. hardcode_libdir_flag_spec_ld_RC \
  17750. hardcode_libdir_separator_RC \
  17751. hardcode_automatic_RC \
  17752. module_cmds_RC \
  17753. module_expsym_cmds_RC \
  17754. lt_cv_prog_compiler_c_o_RC \
  17755. exclude_expsyms_RC \
  17756. include_expsyms_RC; do
  17757. case $var in
  17758. old_archive_cmds_RC | \
  17759. old_archive_from_new_cmds_RC | \
  17760. archive_cmds_RC | \
  17761. archive_expsym_cmds_RC | \
  17762. module_cmds_RC | \
  17763. module_expsym_cmds_RC | \
  17764. old_archive_from_expsyms_cmds_RC | \
  17765. export_symbols_cmds_RC | \
  17766. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  17767. postinstall_cmds | postuninstall_cmds | \
  17768. old_postinstall_cmds | old_postuninstall_cmds | \
  17769. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  17770. # Double-quote double-evaled strings.
  17771. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  17772. ;;
  17773. *)
  17774. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  17775. ;;
  17776. esac
  17777. done
  17778. case $lt_echo in
  17779. *'\$0 --fallback-echo"')
  17780. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  17781. ;;
  17782. esac
  17783. cfgfile="$ofile"
  17784. cat <<__EOF__ >> "$cfgfile"
  17785. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  17786. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17787. # Shell to use when invoking shell scripts.
  17788. SHELL=$lt_SHELL
  17789. # Whether or not to build shared libraries.
  17790. build_libtool_libs=$enable_shared
  17791. # Whether or not to build static libraries.
  17792. build_old_libs=$enable_static
  17793. # Whether or not to add -lc for building shared libraries.
  17794. build_libtool_need_lc=$archive_cmds_need_lc_RC
  17795. # Whether or not to disallow shared libs when runtime libs are static
  17796. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  17797. # Whether or not to optimize for fast installation.
  17798. fast_install=$enable_fast_install
  17799. # The host system.
  17800. host_alias=$host_alias
  17801. host=$host
  17802. host_os=$host_os
  17803. # The build system.
  17804. build_alias=$build_alias
  17805. build=$build
  17806. build_os=$build_os
  17807. # An echo program that does not interpret backslashes.
  17808. echo=$lt_echo
  17809. # The archiver.
  17810. AR=$lt_AR
  17811. AR_FLAGS=$lt_AR_FLAGS
  17812. # A C compiler.
  17813. LTCC=$lt_LTCC
  17814. # A language-specific compiler.
  17815. CC=$lt_compiler_RC
  17816. # Is the compiler the GNU C compiler?
  17817. with_gcc=$GCC_RC
  17818. # An ERE matcher.
  17819. EGREP=$lt_EGREP
  17820. # The linker used to build libraries.
  17821. LD=$lt_LD_RC
  17822. # Whether we need hard or soft links.
  17823. LN_S=$lt_LN_S
  17824. # A BSD-compatible nm program.
  17825. NM=$lt_NM
  17826. # A symbol stripping program
  17827. STRIP=$lt_STRIP
  17828. # Used to examine libraries when file_magic_cmd begins "file"
  17829. MAGIC_CMD=$MAGIC_CMD
  17830. # Used on cygwin: DLL creation program.
  17831. DLLTOOL="$DLLTOOL"
  17832. # Used on cygwin: object dumper.
  17833. OBJDUMP="$OBJDUMP"
  17834. # Used on cygwin: assembler.
  17835. AS="$AS"
  17836. # The name of the directory that contains temporary libtool files.
  17837. objdir=$objdir
  17838. # How to create reloadable object files.
  17839. reload_flag=$lt_reload_flag
  17840. reload_cmds=$lt_reload_cmds
  17841. # How to pass a linker flag through the compiler.
  17842. wl=$lt_lt_prog_compiler_wl_RC
  17843. # Object file suffix (normally "o").
  17844. objext="$ac_objext"
  17845. # Old archive suffix (normally "a").
  17846. libext="$libext"
  17847. # Shared library suffix (normally ".so").
  17848. shrext_cmds='$shrext_cmds'
  17849. # Executable file suffix (normally "").
  17850. exeext="$exeext"
  17851. # Additional compiler flags for building library objects.
  17852. pic_flag=$lt_lt_prog_compiler_pic_RC
  17853. pic_mode=$pic_mode
  17854. # What is the maximum length of a command?
  17855. max_cmd_len=$lt_cv_sys_max_cmd_len
  17856. # Does compiler simultaneously support -c and -o options?
  17857. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  17858. # Must we lock files when doing compilation?
  17859. need_locks=$lt_need_locks
  17860. # Do we need the lib prefix for modules?
  17861. need_lib_prefix=$need_lib_prefix
  17862. # Do we need a version for libraries?
  17863. need_version=$need_version
  17864. # Whether dlopen is supported.
  17865. dlopen_support=$enable_dlopen
  17866. # Whether dlopen of programs is supported.
  17867. dlopen_self=$enable_dlopen_self
  17868. # Whether dlopen of statically linked programs is supported.
  17869. dlopen_self_static=$enable_dlopen_self_static
  17870. # Compiler flag to prevent dynamic linking.
  17871. link_static_flag=$lt_lt_prog_compiler_static_RC
  17872. # Compiler flag to turn off builtin functions.
  17873. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  17874. # Compiler flag to allow reflexive dlopens.
  17875. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  17876. # Compiler flag to generate shared objects directly from archives.
  17877. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  17878. # Compiler flag to generate thread-safe objects.
  17879. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  17880. # Library versioning type.
  17881. version_type=$version_type
  17882. # Format of library name prefix.
  17883. libname_spec=$lt_libname_spec
  17884. # List of archive names. First name is the real one, the rest are links.
  17885. # The last name is the one that the linker finds with -lNAME.
  17886. library_names_spec=$lt_library_names_spec
  17887. # The coded name of the library, if different from the real name.
  17888. soname_spec=$lt_soname_spec
  17889. # Commands used to build and install an old-style archive.
  17890. RANLIB=$lt_RANLIB
  17891. old_archive_cmds=$lt_old_archive_cmds_RC
  17892. old_postinstall_cmds=$lt_old_postinstall_cmds
  17893. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17894. # Create an old-style archive from a shared archive.
  17895. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  17896. # Create a temporary old-style archive to link instead of a shared archive.
  17897. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  17898. # Commands used to build and install a shared archive.
  17899. archive_cmds=$lt_archive_cmds_RC
  17900. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  17901. postinstall_cmds=$lt_postinstall_cmds
  17902. postuninstall_cmds=$lt_postuninstall_cmds
  17903. # Commands used to build a loadable module (assumed same as above if empty)
  17904. module_cmds=$lt_module_cmds_RC
  17905. module_expsym_cmds=$lt_module_expsym_cmds_RC
  17906. # Commands to strip libraries.
  17907. old_striplib=$lt_old_striplib
  17908. striplib=$lt_striplib
  17909. # Dependencies to place before the objects being linked to create a
  17910. # shared library.
  17911. predep_objects=$lt_predep_objects_RC
  17912. # Dependencies to place after the objects being linked to create a
  17913. # shared library.
  17914. postdep_objects=$lt_postdep_objects_RC
  17915. # Dependencies to place before the objects being linked to create a
  17916. # shared library.
  17917. predeps=$lt_predeps_RC
  17918. # Dependencies to place after the objects being linked to create a
  17919. # shared library.
  17920. postdeps=$lt_postdeps_RC
  17921. # The library search path used internally by the compiler when linking
  17922. # a shared library.
  17923. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  17924. # Method to check whether dependent libraries are shared objects.
  17925. deplibs_check_method=$lt_deplibs_check_method
  17926. # Command to use when deplibs_check_method == file_magic.
  17927. file_magic_cmd=$lt_file_magic_cmd
  17928. # Flag that allows shared libraries with undefined symbols to be built.
  17929. allow_undefined_flag=$lt_allow_undefined_flag_RC
  17930. # Flag that forces no undefined symbols.
  17931. no_undefined_flag=$lt_no_undefined_flag_RC
  17932. # Commands used to finish a libtool library installation in a directory.
  17933. finish_cmds=$lt_finish_cmds
  17934. # Same as above, but a single script fragment to be evaled but not shown.
  17935. finish_eval=$lt_finish_eval
  17936. # Take the output of nm and produce a listing of raw symbols and C names.
  17937. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17938. # Transform the output of nm in a proper C declaration
  17939. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17940. # Transform the output of nm in a C name address pair
  17941. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17942. # This is the shared library runtime path variable.
  17943. runpath_var=$runpath_var
  17944. # This is the shared library path variable.
  17945. shlibpath_var=$shlibpath_var
  17946. # Is shlibpath searched before the hard-coded library search path?
  17947. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17948. # How to hardcode a shared library path into an executable.
  17949. hardcode_action=$hardcode_action_RC
  17950. # Whether we should hardcode library paths into libraries.
  17951. hardcode_into_libs=$hardcode_into_libs
  17952. # Flag to hardcode \$libdir into a binary during linking.
  17953. # This must work even if \$libdir does not exist.
  17954. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  17955. # If ld is used when linking, flag to hardcode \$libdir into
  17956. # a binary during linking. This must work even if \$libdir does
  17957. # not exist.
  17958. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  17959. # Whether we need a single -rpath flag with a separated argument.
  17960. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  17961. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17962. # resulting binary.
  17963. hardcode_direct=$hardcode_direct_RC
  17964. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17965. # resulting binary.
  17966. hardcode_minus_L=$hardcode_minus_L_RC
  17967. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17968. # the resulting binary.
  17969. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  17970. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17971. # and all subsequent libraries and executables linked against it.
  17972. hardcode_automatic=$hardcode_automatic_RC
  17973. # Variables whose values should be saved in libtool wrapper scripts and
  17974. # restored at relink time.
  17975. variables_saved_for_relink="$variables_saved_for_relink"
  17976. # Whether libtool must link a program against all its dependency libraries.
  17977. link_all_deplibs=$link_all_deplibs_RC
  17978. # Compile-time system search path for libraries
  17979. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17980. # Run-time system search path for libraries
  17981. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17982. # Fix the shell variable \$srcfile for the compiler.
  17983. fix_srcfile_path="$fix_srcfile_path_RC"
  17984. # Set to yes if exported symbols are required.
  17985. always_export_symbols=$always_export_symbols_RC
  17986. # The commands to list exported symbols.
  17987. export_symbols_cmds=$lt_export_symbols_cmds_RC
  17988. # The commands to extract the exported symbol list from a shared archive.
  17989. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17990. # Symbols that should not be listed in the preloaded symbols.
  17991. exclude_expsyms=$lt_exclude_expsyms_RC
  17992. # Symbols that must always be exported.
  17993. include_expsyms=$lt_include_expsyms_RC
  17994. # ### END LIBTOOL TAG CONFIG: $tagname
  17995. __EOF__
  17996. else
  17997. # If there is no Makefile yet, we rely on a make rule to execute
  17998. # `config.status --recheck' to rerun these tests and create the
  17999. # libtool script then.
  18000. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  18001. if test -f "$ltmain_in"; then
  18002. test -f Makefile && make "$ltmain"
  18003. fi
  18004. fi
  18005. ac_ext=c
  18006. ac_cpp='$CPP $CPPFLAGS'
  18007. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18008. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18009. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18010. CC="$lt_save_CC"
  18011. ;;
  18012. *)
  18013. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  18014. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  18015. { (exit 1); exit 1; }; }
  18016. ;;
  18017. esac
  18018. # Append the new tag name to the list of available tags.
  18019. if test -n "$tagname" ; then
  18020. available_tags="$available_tags $tagname"
  18021. fi
  18022. fi
  18023. done
  18024. IFS="$lt_save_ifs"
  18025. # Now substitute the updated list of available tags.
  18026. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  18027. mv "${ofile}T" "$ofile"
  18028. chmod +x "$ofile"
  18029. else
  18030. rm -f "${ofile}T"
  18031. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  18032. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  18033. { (exit 1); exit 1; }; }
  18034. fi
  18035. fi
  18036. # This can be used to rebuild libtool when needed
  18037. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  18038. # Always use our own libtool.
  18039. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  18040. # Prevent multiple expansion
  18041. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  18042. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  18043. if test "${ac_cv_header_stdc+set}" = set; then
  18044. echo $ECHO_N "(cached) $ECHO_C" >&6
  18045. else
  18046. cat >conftest.$ac_ext <<_ACEOF
  18047. /* confdefs.h. */
  18048. _ACEOF
  18049. cat confdefs.h >>conftest.$ac_ext
  18050. cat >>conftest.$ac_ext <<_ACEOF
  18051. /* end confdefs.h. */
  18052. #include <stdlib.h>
  18053. #include <stdarg.h>
  18054. #include <string.h>
  18055. #include <float.h>
  18056. int
  18057. main ()
  18058. {
  18059. ;
  18060. return 0;
  18061. }
  18062. _ACEOF
  18063. rm -f conftest.$ac_objext
  18064. if { (ac_try="$ac_compile"
  18065. case "(($ac_try" in
  18066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18067. *) ac_try_echo=$ac_try;;
  18068. esac
  18069. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18070. (eval "$ac_compile") 2>conftest.er1
  18071. ac_status=$?
  18072. grep -v '^ *+' conftest.er1 >conftest.err
  18073. rm -f conftest.er1
  18074. cat conftest.err >&5
  18075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18076. (exit $ac_status); } && {
  18077. test -z "$ac_c_werror_flag" ||
  18078. test ! -s conftest.err
  18079. } && test -s conftest.$ac_objext; then
  18080. ac_cv_header_stdc=yes
  18081. else
  18082. echo "$as_me: failed program was:" >&5
  18083. sed 's/^/| /' conftest.$ac_ext >&5
  18084. ac_cv_header_stdc=no
  18085. fi
  18086. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18087. if test $ac_cv_header_stdc = yes; then
  18088. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  18089. cat >conftest.$ac_ext <<_ACEOF
  18090. /* confdefs.h. */
  18091. _ACEOF
  18092. cat confdefs.h >>conftest.$ac_ext
  18093. cat >>conftest.$ac_ext <<_ACEOF
  18094. /* end confdefs.h. */
  18095. #include <string.h>
  18096. _ACEOF
  18097. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18098. $EGREP "memchr" >/dev/null 2>&1; then
  18099. :
  18100. else
  18101. ac_cv_header_stdc=no
  18102. fi
  18103. rm -f conftest*
  18104. fi
  18105. if test $ac_cv_header_stdc = yes; then
  18106. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  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 <stdlib.h>
  18114. _ACEOF
  18115. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18116. $EGREP "free" >/dev/null 2>&1; then
  18117. :
  18118. else
  18119. ac_cv_header_stdc=no
  18120. fi
  18121. rm -f conftest*
  18122. fi
  18123. if test $ac_cv_header_stdc = yes; then
  18124. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  18125. if test "$cross_compiling" = yes; then
  18126. :
  18127. else
  18128. cat >conftest.$ac_ext <<_ACEOF
  18129. /* confdefs.h. */
  18130. _ACEOF
  18131. cat confdefs.h >>conftest.$ac_ext
  18132. cat >>conftest.$ac_ext <<_ACEOF
  18133. /* end confdefs.h. */
  18134. #include <ctype.h>
  18135. #include <stdlib.h>
  18136. #if ((' ' & 0x0FF) == 0x020)
  18137. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  18138. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  18139. #else
  18140. # define ISLOWER(c) \
  18141. (('a' <= (c) && (c) <= 'i') \
  18142. || ('j' <= (c) && (c) <= 'r') \
  18143. || ('s' <= (c) && (c) <= 'z'))
  18144. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  18145. #endif
  18146. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  18147. int
  18148. main ()
  18149. {
  18150. int i;
  18151. for (i = 0; i < 256; i++)
  18152. if (XOR (islower (i), ISLOWER (i))
  18153. || toupper (i) != TOUPPER (i))
  18154. return 2;
  18155. return 0;
  18156. }
  18157. _ACEOF
  18158. rm -f conftest$ac_exeext
  18159. if { (ac_try="$ac_link"
  18160. case "(($ac_try" in
  18161. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18162. *) ac_try_echo=$ac_try;;
  18163. esac
  18164. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18165. (eval "$ac_link") 2>&5
  18166. ac_status=$?
  18167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18168. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18169. { (case "(($ac_try" in
  18170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18171. *) ac_try_echo=$ac_try;;
  18172. esac
  18173. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18174. (eval "$ac_try") 2>&5
  18175. ac_status=$?
  18176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18177. (exit $ac_status); }; }; then
  18178. :
  18179. else
  18180. echo "$as_me: program exited with status $ac_status" >&5
  18181. echo "$as_me: failed program was:" >&5
  18182. sed 's/^/| /' conftest.$ac_ext >&5
  18183. ( exit $ac_status )
  18184. ac_cv_header_stdc=no
  18185. fi
  18186. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18187. fi
  18188. fi
  18189. fi
  18190. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  18191. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  18192. if test $ac_cv_header_stdc = yes; then
  18193. cat >>confdefs.h <<\_ACEOF
  18194. #define STDC_HEADERS 1
  18195. _ACEOF
  18196. fi
  18197. { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
  18198. echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
  18199. if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
  18200. echo $ECHO_N "(cached) $ECHO_C" >&6
  18201. else
  18202. cat >conftest.$ac_ext <<_ACEOF
  18203. /* confdefs.h. */
  18204. _ACEOF
  18205. cat confdefs.h >>conftest.$ac_ext
  18206. cat >>conftest.$ac_ext <<_ACEOF
  18207. /* end confdefs.h. */
  18208. #include <sys/types.h>
  18209. int
  18210. main ()
  18211. {
  18212. return makedev(0, 0);
  18213. ;
  18214. return 0;
  18215. }
  18216. _ACEOF
  18217. rm -f conftest.$ac_objext conftest$ac_exeext
  18218. if { (ac_try="$ac_link"
  18219. case "(($ac_try" in
  18220. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18221. *) ac_try_echo=$ac_try;;
  18222. esac
  18223. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18224. (eval "$ac_link") 2>conftest.er1
  18225. ac_status=$?
  18226. grep -v '^ *+' conftest.er1 >conftest.err
  18227. rm -f conftest.er1
  18228. cat conftest.err >&5
  18229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18230. (exit $ac_status); } && {
  18231. test -z "$ac_c_werror_flag" ||
  18232. test ! -s conftest.err
  18233. } && test -s conftest$ac_exeext &&
  18234. $as_test_x conftest$ac_exeext; then
  18235. ac_cv_header_sys_types_h_makedev=yes
  18236. else
  18237. echo "$as_me: failed program was:" >&5
  18238. sed 's/^/| /' conftest.$ac_ext >&5
  18239. ac_cv_header_sys_types_h_makedev=no
  18240. fi
  18241. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18242. conftest$ac_exeext conftest.$ac_ext
  18243. fi
  18244. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
  18245. echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
  18246. if test $ac_cv_header_sys_types_h_makedev = no; then
  18247. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  18248. { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  18249. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
  18250. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  18251. echo $ECHO_N "(cached) $ECHO_C" >&6
  18252. fi
  18253. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  18254. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
  18255. else
  18256. # Is the header compilable?
  18257. { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
  18258. echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
  18259. cat >conftest.$ac_ext <<_ACEOF
  18260. /* confdefs.h. */
  18261. _ACEOF
  18262. cat confdefs.h >>conftest.$ac_ext
  18263. cat >>conftest.$ac_ext <<_ACEOF
  18264. /* end confdefs.h. */
  18265. $ac_includes_default
  18266. #include <sys/mkdev.h>
  18267. _ACEOF
  18268. rm -f conftest.$ac_objext
  18269. if { (ac_try="$ac_compile"
  18270. case "(($ac_try" in
  18271. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18272. *) ac_try_echo=$ac_try;;
  18273. esac
  18274. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18275. (eval "$ac_compile") 2>conftest.er1
  18276. ac_status=$?
  18277. grep -v '^ *+' conftest.er1 >conftest.err
  18278. rm -f conftest.er1
  18279. cat conftest.err >&5
  18280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18281. (exit $ac_status); } && {
  18282. test -z "$ac_c_werror_flag" ||
  18283. test ! -s conftest.err
  18284. } && test -s conftest.$ac_objext; then
  18285. ac_header_compiler=yes
  18286. else
  18287. echo "$as_me: failed program was:" >&5
  18288. sed 's/^/| /' conftest.$ac_ext >&5
  18289. ac_header_compiler=no
  18290. fi
  18291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18292. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18293. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18294. # Is the header present?
  18295. { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
  18296. echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
  18297. cat >conftest.$ac_ext <<_ACEOF
  18298. /* confdefs.h. */
  18299. _ACEOF
  18300. cat confdefs.h >>conftest.$ac_ext
  18301. cat >>conftest.$ac_ext <<_ACEOF
  18302. /* end confdefs.h. */
  18303. #include <sys/mkdev.h>
  18304. _ACEOF
  18305. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18306. case "(($ac_try" in
  18307. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18308. *) ac_try_echo=$ac_try;;
  18309. esac
  18310. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18311. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18312. ac_status=$?
  18313. grep -v '^ *+' conftest.er1 >conftest.err
  18314. rm -f conftest.er1
  18315. cat conftest.err >&5
  18316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18317. (exit $ac_status); } >/dev/null && {
  18318. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18319. test ! -s conftest.err
  18320. }; then
  18321. ac_header_preproc=yes
  18322. else
  18323. echo "$as_me: failed program was:" >&5
  18324. sed 's/^/| /' conftest.$ac_ext >&5
  18325. ac_header_preproc=no
  18326. fi
  18327. rm -f conftest.err conftest.$ac_ext
  18328. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18329. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18330. # So? What about this header?
  18331. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18332. yes:no: )
  18333. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
  18334. echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18335. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
  18336. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
  18337. ac_header_preproc=yes
  18338. ;;
  18339. no:yes:* )
  18340. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
  18341. echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
  18342. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
  18343. echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
  18344. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
  18345. echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
  18346. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
  18347. echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
  18348. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
  18349. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
  18350. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
  18351. echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
  18352. ;;
  18353. esac
  18354. { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  18355. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
  18356. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  18357. echo $ECHO_N "(cached) $ECHO_C" >&6
  18358. else
  18359. ac_cv_header_sys_mkdev_h=$ac_header_preproc
  18360. fi
  18361. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  18362. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
  18363. fi
  18364. if test $ac_cv_header_sys_mkdev_h = yes; then
  18365. cat >>confdefs.h <<\_ACEOF
  18366. #define MAJOR_IN_MKDEV 1
  18367. _ACEOF
  18368. fi
  18369. if test $ac_cv_header_sys_mkdev_h = no; then
  18370. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  18371. { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  18372. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
  18373. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  18374. echo $ECHO_N "(cached) $ECHO_C" >&6
  18375. fi
  18376. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  18377. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
  18378. else
  18379. # Is the header compilable?
  18380. { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
  18381. echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
  18382. cat >conftest.$ac_ext <<_ACEOF
  18383. /* confdefs.h. */
  18384. _ACEOF
  18385. cat confdefs.h >>conftest.$ac_ext
  18386. cat >>conftest.$ac_ext <<_ACEOF
  18387. /* end confdefs.h. */
  18388. $ac_includes_default
  18389. #include <sys/sysmacros.h>
  18390. _ACEOF
  18391. rm -f conftest.$ac_objext
  18392. if { (ac_try="$ac_compile"
  18393. case "(($ac_try" in
  18394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18395. *) ac_try_echo=$ac_try;;
  18396. esac
  18397. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18398. (eval "$ac_compile") 2>conftest.er1
  18399. ac_status=$?
  18400. grep -v '^ *+' conftest.er1 >conftest.err
  18401. rm -f conftest.er1
  18402. cat conftest.err >&5
  18403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18404. (exit $ac_status); } && {
  18405. test -z "$ac_c_werror_flag" ||
  18406. test ! -s conftest.err
  18407. } && test -s conftest.$ac_objext; then
  18408. ac_header_compiler=yes
  18409. else
  18410. echo "$as_me: failed program was:" >&5
  18411. sed 's/^/| /' conftest.$ac_ext >&5
  18412. ac_header_compiler=no
  18413. fi
  18414. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18415. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18416. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18417. # Is the header present?
  18418. { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
  18419. echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
  18420. cat >conftest.$ac_ext <<_ACEOF
  18421. /* confdefs.h. */
  18422. _ACEOF
  18423. cat confdefs.h >>conftest.$ac_ext
  18424. cat >>conftest.$ac_ext <<_ACEOF
  18425. /* end confdefs.h. */
  18426. #include <sys/sysmacros.h>
  18427. _ACEOF
  18428. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18429. case "(($ac_try" in
  18430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18431. *) ac_try_echo=$ac_try;;
  18432. esac
  18433. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18434. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18435. ac_status=$?
  18436. grep -v '^ *+' conftest.er1 >conftest.err
  18437. rm -f conftest.er1
  18438. cat conftest.err >&5
  18439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18440. (exit $ac_status); } >/dev/null && {
  18441. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18442. test ! -s conftest.err
  18443. }; then
  18444. ac_header_preproc=yes
  18445. else
  18446. echo "$as_me: failed program was:" >&5
  18447. sed 's/^/| /' conftest.$ac_ext >&5
  18448. ac_header_preproc=no
  18449. fi
  18450. rm -f conftest.err conftest.$ac_ext
  18451. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18452. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18453. # So? What about this header?
  18454. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18455. yes:no: )
  18456. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
  18457. echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18458. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
  18459. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
  18460. ac_header_preproc=yes
  18461. ;;
  18462. no:yes:* )
  18463. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
  18464. echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
  18465. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
  18466. echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
  18467. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
  18468. echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
  18469. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
  18470. echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
  18471. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
  18472. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
  18473. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
  18474. echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
  18475. ;;
  18476. esac
  18477. { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  18478. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
  18479. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  18480. echo $ECHO_N "(cached) $ECHO_C" >&6
  18481. else
  18482. ac_cv_header_sys_sysmacros_h=$ac_header_preproc
  18483. fi
  18484. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  18485. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
  18486. fi
  18487. if test $ac_cv_header_sys_sysmacros_h = yes; then
  18488. cat >>confdefs.h <<\_ACEOF
  18489. #define MAJOR_IN_SYSMACROS 1
  18490. _ACEOF
  18491. fi
  18492. fi
  18493. fi
  18494. { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  18495. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
  18496. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  18497. echo $ECHO_N "(cached) $ECHO_C" >&6
  18498. else
  18499. cat >conftest.$ac_ext <<_ACEOF
  18500. /* confdefs.h. */
  18501. _ACEOF
  18502. cat confdefs.h >>conftest.$ac_ext
  18503. cat >>conftest.$ac_ext <<_ACEOF
  18504. /* end confdefs.h. */
  18505. #include <sys/types.h>
  18506. #include <sys/wait.h>
  18507. #ifndef WEXITSTATUS
  18508. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  18509. #endif
  18510. #ifndef WIFEXITED
  18511. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  18512. #endif
  18513. int
  18514. main ()
  18515. {
  18516. int s;
  18517. wait (&s);
  18518. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  18519. ;
  18520. return 0;
  18521. }
  18522. _ACEOF
  18523. rm -f conftest.$ac_objext
  18524. if { (ac_try="$ac_compile"
  18525. case "(($ac_try" in
  18526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18527. *) ac_try_echo=$ac_try;;
  18528. esac
  18529. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18530. (eval "$ac_compile") 2>conftest.er1
  18531. ac_status=$?
  18532. grep -v '^ *+' conftest.er1 >conftest.err
  18533. rm -f conftest.er1
  18534. cat conftest.err >&5
  18535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18536. (exit $ac_status); } && {
  18537. test -z "$ac_c_werror_flag" ||
  18538. test ! -s conftest.err
  18539. } && test -s conftest.$ac_objext; then
  18540. ac_cv_header_sys_wait_h=yes
  18541. else
  18542. echo "$as_me: failed program was:" >&5
  18543. sed 's/^/| /' conftest.$ac_ext >&5
  18544. ac_cv_header_sys_wait_h=no
  18545. fi
  18546. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18547. fi
  18548. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  18549. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
  18550. if test $ac_cv_header_sys_wait_h = yes; then
  18551. cat >>confdefs.h <<\_ACEOF
  18552. #define HAVE_SYS_WAIT_H 1
  18553. _ACEOF
  18554. fi
  18555. for ac_header in stdint.h
  18556. do
  18557. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18558. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18559. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18560. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18561. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18562. echo $ECHO_N "(cached) $ECHO_C" >&6
  18563. fi
  18564. ac_res=`eval echo '${'$as_ac_Header'}'`
  18565. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18566. echo "${ECHO_T}$ac_res" >&6; }
  18567. else
  18568. # Is the header compilable?
  18569. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18570. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  18571. cat >conftest.$ac_ext <<_ACEOF
  18572. /* confdefs.h. */
  18573. _ACEOF
  18574. cat confdefs.h >>conftest.$ac_ext
  18575. cat >>conftest.$ac_ext <<_ACEOF
  18576. /* end confdefs.h. */
  18577. $ac_includes_default
  18578. #include <$ac_header>
  18579. _ACEOF
  18580. rm -f conftest.$ac_objext
  18581. if { (ac_try="$ac_compile"
  18582. case "(($ac_try" in
  18583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18584. *) ac_try_echo=$ac_try;;
  18585. esac
  18586. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18587. (eval "$ac_compile") 2>conftest.er1
  18588. ac_status=$?
  18589. grep -v '^ *+' conftest.er1 >conftest.err
  18590. rm -f conftest.er1
  18591. cat conftest.err >&5
  18592. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18593. (exit $ac_status); } && {
  18594. test -z "$ac_c_werror_flag" ||
  18595. test ! -s conftest.err
  18596. } && test -s conftest.$ac_objext; then
  18597. ac_header_compiler=yes
  18598. else
  18599. echo "$as_me: failed program was:" >&5
  18600. sed 's/^/| /' conftest.$ac_ext >&5
  18601. ac_header_compiler=no
  18602. fi
  18603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18604. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18605. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18606. # Is the header present?
  18607. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18608. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  18609. cat >conftest.$ac_ext <<_ACEOF
  18610. /* confdefs.h. */
  18611. _ACEOF
  18612. cat confdefs.h >>conftest.$ac_ext
  18613. cat >>conftest.$ac_ext <<_ACEOF
  18614. /* end confdefs.h. */
  18615. #include <$ac_header>
  18616. _ACEOF
  18617. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18618. case "(($ac_try" in
  18619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18620. *) ac_try_echo=$ac_try;;
  18621. esac
  18622. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18623. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18624. ac_status=$?
  18625. grep -v '^ *+' conftest.er1 >conftest.err
  18626. rm -f conftest.er1
  18627. cat conftest.err >&5
  18628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18629. (exit $ac_status); } >/dev/null && {
  18630. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18631. test ! -s conftest.err
  18632. }; then
  18633. ac_header_preproc=yes
  18634. else
  18635. echo "$as_me: failed program was:" >&5
  18636. sed 's/^/| /' conftest.$ac_ext >&5
  18637. ac_header_preproc=no
  18638. fi
  18639. rm -f conftest.err conftest.$ac_ext
  18640. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18641. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18642. # So? What about this header?
  18643. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18644. yes:no: )
  18645. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18646. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18647. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18648. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18649. ac_header_preproc=yes
  18650. ;;
  18651. no:yes:* )
  18652. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18653. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18654. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18655. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18656. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18657. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18658. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18659. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18660. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18661. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18662. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18663. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18664. ;;
  18665. esac
  18666. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18667. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18668. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18669. echo $ECHO_N "(cached) $ECHO_C" >&6
  18670. else
  18671. eval "$as_ac_Header=\$ac_header_preproc"
  18672. fi
  18673. ac_res=`eval echo '${'$as_ac_Header'}'`
  18674. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18675. echo "${ECHO_T}$ac_res" >&6; }
  18676. fi
  18677. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18678. cat >>confdefs.h <<_ACEOF
  18679. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18680. _ACEOF
  18681. fi
  18682. done
  18683. for ac_header in fcntl.h locale.h stdint.h inttypes.h unistd.h getopt.h
  18684. do
  18685. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18686. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18687. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18688. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18689. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18690. echo $ECHO_N "(cached) $ECHO_C" >&6
  18691. fi
  18692. ac_res=`eval echo '${'$as_ac_Header'}'`
  18693. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18694. echo "${ECHO_T}$ac_res" >&6; }
  18695. else
  18696. # Is the header compilable?
  18697. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18698. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  18699. cat >conftest.$ac_ext <<_ACEOF
  18700. /* confdefs.h. */
  18701. _ACEOF
  18702. cat confdefs.h >>conftest.$ac_ext
  18703. cat >>conftest.$ac_ext <<_ACEOF
  18704. /* end confdefs.h. */
  18705. $ac_includes_default
  18706. #include <$ac_header>
  18707. _ACEOF
  18708. rm -f conftest.$ac_objext
  18709. if { (ac_try="$ac_compile"
  18710. case "(($ac_try" in
  18711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18712. *) ac_try_echo=$ac_try;;
  18713. esac
  18714. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18715. (eval "$ac_compile") 2>conftest.er1
  18716. ac_status=$?
  18717. grep -v '^ *+' conftest.er1 >conftest.err
  18718. rm -f conftest.er1
  18719. cat conftest.err >&5
  18720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18721. (exit $ac_status); } && {
  18722. test -z "$ac_c_werror_flag" ||
  18723. test ! -s conftest.err
  18724. } && test -s conftest.$ac_objext; then
  18725. ac_header_compiler=yes
  18726. else
  18727. echo "$as_me: failed program was:" >&5
  18728. sed 's/^/| /' conftest.$ac_ext >&5
  18729. ac_header_compiler=no
  18730. fi
  18731. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18732. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18733. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18734. # Is the header present?
  18735. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18736. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  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. #include <$ac_header>
  18744. _ACEOF
  18745. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18746. case "(($ac_try" in
  18747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18748. *) ac_try_echo=$ac_try;;
  18749. esac
  18750. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18751. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18752. ac_status=$?
  18753. grep -v '^ *+' conftest.er1 >conftest.err
  18754. rm -f conftest.er1
  18755. cat conftest.err >&5
  18756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18757. (exit $ac_status); } >/dev/null && {
  18758. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18759. test ! -s conftest.err
  18760. }; then
  18761. ac_header_preproc=yes
  18762. else
  18763. echo "$as_me: failed program was:" >&5
  18764. sed 's/^/| /' conftest.$ac_ext >&5
  18765. ac_header_preproc=no
  18766. fi
  18767. rm -f conftest.err conftest.$ac_ext
  18768. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18769. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18770. # So? What about this header?
  18771. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18772. yes:no: )
  18773. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18774. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18775. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18776. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18777. ac_header_preproc=yes
  18778. ;;
  18779. no:yes:* )
  18780. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18781. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18782. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18783. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18784. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18785. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18786. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18787. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18788. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18789. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18790. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18791. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18792. ;;
  18793. esac
  18794. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18795. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18796. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18797. echo $ECHO_N "(cached) $ECHO_C" >&6
  18798. else
  18799. eval "$as_ac_Header=\$ac_header_preproc"
  18800. fi
  18801. ac_res=`eval echo '${'$as_ac_Header'}'`
  18802. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18803. echo "${ECHO_T}$ac_res" >&6; }
  18804. fi
  18805. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18806. cat >>confdefs.h <<_ACEOF
  18807. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18808. _ACEOF
  18809. fi
  18810. done
  18811. for ac_header in utime.h wchar.h wctype.h limits.h
  18812. do
  18813. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18814. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18815. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18816. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18817. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18818. echo $ECHO_N "(cached) $ECHO_C" >&6
  18819. fi
  18820. ac_res=`eval echo '${'$as_ac_Header'}'`
  18821. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18822. echo "${ECHO_T}$ac_res" >&6; }
  18823. else
  18824. # Is the header compilable?
  18825. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18826. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  18827. cat >conftest.$ac_ext <<_ACEOF
  18828. /* confdefs.h. */
  18829. _ACEOF
  18830. cat confdefs.h >>conftest.$ac_ext
  18831. cat >>conftest.$ac_ext <<_ACEOF
  18832. /* end confdefs.h. */
  18833. $ac_includes_default
  18834. #include <$ac_header>
  18835. _ACEOF
  18836. rm -f conftest.$ac_objext
  18837. if { (ac_try="$ac_compile"
  18838. case "(($ac_try" in
  18839. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18840. *) ac_try_echo=$ac_try;;
  18841. esac
  18842. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18843. (eval "$ac_compile") 2>conftest.er1
  18844. ac_status=$?
  18845. grep -v '^ *+' conftest.er1 >conftest.err
  18846. rm -f conftest.er1
  18847. cat conftest.err >&5
  18848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18849. (exit $ac_status); } && {
  18850. test -z "$ac_c_werror_flag" ||
  18851. test ! -s conftest.err
  18852. } && test -s conftest.$ac_objext; then
  18853. ac_header_compiler=yes
  18854. else
  18855. echo "$as_me: failed program was:" >&5
  18856. sed 's/^/| /' conftest.$ac_ext >&5
  18857. ac_header_compiler=no
  18858. fi
  18859. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18860. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18861. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18862. # Is the header present?
  18863. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18864. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  18865. cat >conftest.$ac_ext <<_ACEOF
  18866. /* confdefs.h. */
  18867. _ACEOF
  18868. cat confdefs.h >>conftest.$ac_ext
  18869. cat >>conftest.$ac_ext <<_ACEOF
  18870. /* end confdefs.h. */
  18871. #include <$ac_header>
  18872. _ACEOF
  18873. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18874. case "(($ac_try" in
  18875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18876. *) ac_try_echo=$ac_try;;
  18877. esac
  18878. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18879. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18880. ac_status=$?
  18881. grep -v '^ *+' conftest.er1 >conftest.err
  18882. rm -f conftest.er1
  18883. cat conftest.err >&5
  18884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18885. (exit $ac_status); } >/dev/null && {
  18886. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18887. test ! -s conftest.err
  18888. }; then
  18889. ac_header_preproc=yes
  18890. else
  18891. echo "$as_me: failed program was:" >&5
  18892. sed 's/^/| /' conftest.$ac_ext >&5
  18893. ac_header_preproc=no
  18894. fi
  18895. rm -f conftest.err conftest.$ac_ext
  18896. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18897. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18898. # So? What about this header?
  18899. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18900. yes:no: )
  18901. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18902. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18903. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18904. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18905. ac_header_preproc=yes
  18906. ;;
  18907. no:yes:* )
  18908. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18909. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18910. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18911. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18912. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18913. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18914. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18915. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18916. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18917. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18918. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18919. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18920. ;;
  18921. esac
  18922. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18923. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18924. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18925. echo $ECHO_N "(cached) $ECHO_C" >&6
  18926. else
  18927. eval "$as_ac_Header=\$ac_header_preproc"
  18928. fi
  18929. ac_res=`eval echo '${'$as_ac_Header'}'`
  18930. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18931. echo "${ECHO_T}$ac_res" >&6; }
  18932. fi
  18933. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18934. cat >>confdefs.h <<_ACEOF
  18935. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18936. _ACEOF
  18937. fi
  18938. done
  18939. for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h
  18940. do
  18941. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18942. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18943. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18944. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18945. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18946. echo $ECHO_N "(cached) $ECHO_C" >&6
  18947. fi
  18948. ac_res=`eval echo '${'$as_ac_Header'}'`
  18949. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18950. echo "${ECHO_T}$ac_res" >&6; }
  18951. else
  18952. # Is the header compilable?
  18953. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18954. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  18955. cat >conftest.$ac_ext <<_ACEOF
  18956. /* confdefs.h. */
  18957. _ACEOF
  18958. cat confdefs.h >>conftest.$ac_ext
  18959. cat >>conftest.$ac_ext <<_ACEOF
  18960. /* end confdefs.h. */
  18961. $ac_includes_default
  18962. #include <$ac_header>
  18963. _ACEOF
  18964. rm -f conftest.$ac_objext
  18965. if { (ac_try="$ac_compile"
  18966. case "(($ac_try" in
  18967. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18968. *) ac_try_echo=$ac_try;;
  18969. esac
  18970. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18971. (eval "$ac_compile") 2>conftest.er1
  18972. ac_status=$?
  18973. grep -v '^ *+' conftest.er1 >conftest.err
  18974. rm -f conftest.er1
  18975. cat conftest.err >&5
  18976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18977. (exit $ac_status); } && {
  18978. test -z "$ac_c_werror_flag" ||
  18979. test ! -s conftest.err
  18980. } && test -s conftest.$ac_objext; then
  18981. ac_header_compiler=yes
  18982. else
  18983. echo "$as_me: failed program was:" >&5
  18984. sed 's/^/| /' conftest.$ac_ext >&5
  18985. ac_header_compiler=no
  18986. fi
  18987. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18988. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18989. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18990. # Is the header present?
  18991. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18992. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  18993. cat >conftest.$ac_ext <<_ACEOF
  18994. /* confdefs.h. */
  18995. _ACEOF
  18996. cat confdefs.h >>conftest.$ac_ext
  18997. cat >>conftest.$ac_ext <<_ACEOF
  18998. /* end confdefs.h. */
  18999. #include <$ac_header>
  19000. _ACEOF
  19001. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19002. case "(($ac_try" in
  19003. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19004. *) ac_try_echo=$ac_try;;
  19005. esac
  19006. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19007. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19008. ac_status=$?
  19009. grep -v '^ *+' conftest.er1 >conftest.err
  19010. rm -f conftest.er1
  19011. cat conftest.err >&5
  19012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19013. (exit $ac_status); } >/dev/null && {
  19014. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19015. test ! -s conftest.err
  19016. }; then
  19017. ac_header_preproc=yes
  19018. else
  19019. echo "$as_me: failed program was:" >&5
  19020. sed 's/^/| /' conftest.$ac_ext >&5
  19021. ac_header_preproc=no
  19022. fi
  19023. rm -f conftest.err conftest.$ac_ext
  19024. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19025. echo "${ECHO_T}$ac_header_preproc" >&6; }
  19026. # So? What about this header?
  19027. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19028. yes:no: )
  19029. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19030. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19031. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19032. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19033. ac_header_preproc=yes
  19034. ;;
  19035. no:yes:* )
  19036. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19037. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19038. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19039. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19040. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19041. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19042. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19043. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19044. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19045. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19046. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19047. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19048. ;;
  19049. esac
  19050. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  19051. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  19052. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19053. echo $ECHO_N "(cached) $ECHO_C" >&6
  19054. else
  19055. eval "$as_ac_Header=\$ac_header_preproc"
  19056. fi
  19057. ac_res=`eval echo '${'$as_ac_Header'}'`
  19058. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19059. echo "${ECHO_T}$ac_res" >&6; }
  19060. fi
  19061. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19062. cat >>confdefs.h <<_ACEOF
  19063. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19064. _ACEOF
  19065. fi
  19066. done
  19067. for ac_header in zlib.h
  19068. do
  19069. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19070. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19071. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  19072. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  19073. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19074. echo $ECHO_N "(cached) $ECHO_C" >&6
  19075. fi
  19076. ac_res=`eval echo '${'$as_ac_Header'}'`
  19077. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19078. echo "${ECHO_T}$ac_res" >&6; }
  19079. else
  19080. # Is the header compilable?
  19081. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19082. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  19083. cat >conftest.$ac_ext <<_ACEOF
  19084. /* confdefs.h. */
  19085. _ACEOF
  19086. cat confdefs.h >>conftest.$ac_ext
  19087. cat >>conftest.$ac_ext <<_ACEOF
  19088. /* end confdefs.h. */
  19089. $ac_includes_default
  19090. #include <$ac_header>
  19091. _ACEOF
  19092. rm -f conftest.$ac_objext
  19093. if { (ac_try="$ac_compile"
  19094. case "(($ac_try" in
  19095. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19096. *) ac_try_echo=$ac_try;;
  19097. esac
  19098. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19099. (eval "$ac_compile") 2>conftest.er1
  19100. ac_status=$?
  19101. grep -v '^ *+' conftest.er1 >conftest.err
  19102. rm -f conftest.er1
  19103. cat conftest.err >&5
  19104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19105. (exit $ac_status); } && {
  19106. test -z "$ac_c_werror_flag" ||
  19107. test ! -s conftest.err
  19108. } && test -s conftest.$ac_objext; then
  19109. ac_header_compiler=yes
  19110. else
  19111. echo "$as_me: failed program was:" >&5
  19112. sed 's/^/| /' conftest.$ac_ext >&5
  19113. ac_header_compiler=no
  19114. fi
  19115. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19116. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19117. echo "${ECHO_T}$ac_header_compiler" >&6; }
  19118. # Is the header present?
  19119. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19120. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  19121. cat >conftest.$ac_ext <<_ACEOF
  19122. /* confdefs.h. */
  19123. _ACEOF
  19124. cat confdefs.h >>conftest.$ac_ext
  19125. cat >>conftest.$ac_ext <<_ACEOF
  19126. /* end confdefs.h. */
  19127. #include <$ac_header>
  19128. _ACEOF
  19129. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19130. case "(($ac_try" in
  19131. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19132. *) ac_try_echo=$ac_try;;
  19133. esac
  19134. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19135. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19136. ac_status=$?
  19137. grep -v '^ *+' conftest.er1 >conftest.err
  19138. rm -f conftest.er1
  19139. cat conftest.err >&5
  19140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19141. (exit $ac_status); } >/dev/null && {
  19142. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19143. test ! -s conftest.err
  19144. }; then
  19145. ac_header_preproc=yes
  19146. else
  19147. echo "$as_me: failed program was:" >&5
  19148. sed 's/^/| /' conftest.$ac_ext >&5
  19149. ac_header_preproc=no
  19150. fi
  19151. rm -f conftest.err conftest.$ac_ext
  19152. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19153. echo "${ECHO_T}$ac_header_preproc" >&6; }
  19154. # So? What about this header?
  19155. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19156. yes:no: )
  19157. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19158. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19159. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19160. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19161. ac_header_preproc=yes
  19162. ;;
  19163. no:yes:* )
  19164. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19165. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19166. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19167. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19168. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19169. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19170. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19171. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19172. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19173. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19174. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19175. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19176. ;;
  19177. esac
  19178. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  19179. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  19180. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19181. echo $ECHO_N "(cached) $ECHO_C" >&6
  19182. else
  19183. eval "$as_ac_Header=\$ac_header_preproc"
  19184. fi
  19185. ac_res=`eval echo '${'$as_ac_Header'}'`
  19186. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19187. echo "${ECHO_T}$ac_res" >&6; }
  19188. fi
  19189. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19190. cat >>confdefs.h <<_ACEOF
  19191. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19192. _ACEOF
  19193. fi
  19194. done
  19195. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  19196. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  19197. if test "${ac_cv_c_const+set}" = set; then
  19198. echo $ECHO_N "(cached) $ECHO_C" >&6
  19199. else
  19200. cat >conftest.$ac_ext <<_ACEOF
  19201. /* confdefs.h. */
  19202. _ACEOF
  19203. cat confdefs.h >>conftest.$ac_ext
  19204. cat >>conftest.$ac_ext <<_ACEOF
  19205. /* end confdefs.h. */
  19206. int
  19207. main ()
  19208. {
  19209. /* FIXME: Include the comments suggested by Paul. */
  19210. #ifndef __cplusplus
  19211. /* Ultrix mips cc rejects this. */
  19212. typedef int charset[2];
  19213. const charset cs;
  19214. /* SunOS 4.1.1 cc rejects this. */
  19215. char const *const *pcpcc;
  19216. char **ppc;
  19217. /* NEC SVR4.0.2 mips cc rejects this. */
  19218. struct point {int x, y;};
  19219. static struct point const zero = {0,0};
  19220. /* AIX XL C 1.02.0.0 rejects this.
  19221. It does not let you subtract one const X* pointer from another in
  19222. an arm of an if-expression whose if-part is not a constant
  19223. expression */
  19224. const char *g = "string";
  19225. pcpcc = &g + (g ? g-g : 0);
  19226. /* HPUX 7.0 cc rejects these. */
  19227. ++pcpcc;
  19228. ppc = (char**) pcpcc;
  19229. pcpcc = (char const *const *) ppc;
  19230. { /* SCO 3.2v4 cc rejects this. */
  19231. char *t;
  19232. char const *s = 0 ? (char *) 0 : (char const *) 0;
  19233. *t++ = 0;
  19234. if (s) return 0;
  19235. }
  19236. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  19237. int x[] = {25, 17};
  19238. const int *foo = &x[0];
  19239. ++foo;
  19240. }
  19241. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  19242. typedef const int *iptr;
  19243. iptr p = 0;
  19244. ++p;
  19245. }
  19246. { /* AIX XL C 1.02.0.0 rejects this saying
  19247. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  19248. struct s { int j; const int *ap[3]; };
  19249. struct s *b; b->j = 5;
  19250. }
  19251. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  19252. const int foo = 10;
  19253. if (!foo) return 0;
  19254. }
  19255. return !cs[0] && !zero.x;
  19256. #endif
  19257. ;
  19258. return 0;
  19259. }
  19260. _ACEOF
  19261. rm -f conftest.$ac_objext
  19262. if { (ac_try="$ac_compile"
  19263. case "(($ac_try" in
  19264. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19265. *) ac_try_echo=$ac_try;;
  19266. esac
  19267. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19268. (eval "$ac_compile") 2>conftest.er1
  19269. ac_status=$?
  19270. grep -v '^ *+' conftest.er1 >conftest.err
  19271. rm -f conftest.er1
  19272. cat conftest.err >&5
  19273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19274. (exit $ac_status); } && {
  19275. test -z "$ac_c_werror_flag" ||
  19276. test ! -s conftest.err
  19277. } && test -s conftest.$ac_objext; then
  19278. ac_cv_c_const=yes
  19279. else
  19280. echo "$as_me: failed program was:" >&5
  19281. sed 's/^/| /' conftest.$ac_ext >&5
  19282. ac_cv_c_const=no
  19283. fi
  19284. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19285. fi
  19286. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  19287. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  19288. if test $ac_cv_c_const = no; then
  19289. cat >>confdefs.h <<\_ACEOF
  19290. #define const
  19291. _ACEOF
  19292. fi
  19293. { echo "$as_me:$LINENO: checking for off_t" >&5
  19294. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  19295. if test "${ac_cv_type_off_t+set}" = set; then
  19296. echo $ECHO_N "(cached) $ECHO_C" >&6
  19297. else
  19298. cat >conftest.$ac_ext <<_ACEOF
  19299. /* confdefs.h. */
  19300. _ACEOF
  19301. cat confdefs.h >>conftest.$ac_ext
  19302. cat >>conftest.$ac_ext <<_ACEOF
  19303. /* end confdefs.h. */
  19304. $ac_includes_default
  19305. typedef off_t ac__type_new_;
  19306. int
  19307. main ()
  19308. {
  19309. if ((ac__type_new_ *) 0)
  19310. return 0;
  19311. if (sizeof (ac__type_new_))
  19312. return 0;
  19313. ;
  19314. return 0;
  19315. }
  19316. _ACEOF
  19317. rm -f conftest.$ac_objext
  19318. if { (ac_try="$ac_compile"
  19319. case "(($ac_try" in
  19320. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19321. *) ac_try_echo=$ac_try;;
  19322. esac
  19323. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19324. (eval "$ac_compile") 2>conftest.er1
  19325. ac_status=$?
  19326. grep -v '^ *+' conftest.er1 >conftest.err
  19327. rm -f conftest.er1
  19328. cat conftest.err >&5
  19329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19330. (exit $ac_status); } && {
  19331. test -z "$ac_c_werror_flag" ||
  19332. test ! -s conftest.err
  19333. } && test -s conftest.$ac_objext; then
  19334. ac_cv_type_off_t=yes
  19335. else
  19336. echo "$as_me: failed program was:" >&5
  19337. sed 's/^/| /' conftest.$ac_ext >&5
  19338. ac_cv_type_off_t=no
  19339. fi
  19340. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19341. fi
  19342. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  19343. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  19344. if test $ac_cv_type_off_t = yes; then
  19345. :
  19346. else
  19347. cat >>confdefs.h <<_ACEOF
  19348. #define off_t long int
  19349. _ACEOF
  19350. fi
  19351. { echo "$as_me:$LINENO: checking for size_t" >&5
  19352. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  19353. if test "${ac_cv_type_size_t+set}" = set; then
  19354. echo $ECHO_N "(cached) $ECHO_C" >&6
  19355. else
  19356. cat >conftest.$ac_ext <<_ACEOF
  19357. /* confdefs.h. */
  19358. _ACEOF
  19359. cat confdefs.h >>conftest.$ac_ext
  19360. cat >>conftest.$ac_ext <<_ACEOF
  19361. /* end confdefs.h. */
  19362. $ac_includes_default
  19363. typedef size_t ac__type_new_;
  19364. int
  19365. main ()
  19366. {
  19367. if ((ac__type_new_ *) 0)
  19368. return 0;
  19369. if (sizeof (ac__type_new_))
  19370. return 0;
  19371. ;
  19372. return 0;
  19373. }
  19374. _ACEOF
  19375. rm -f conftest.$ac_objext
  19376. if { (ac_try="$ac_compile"
  19377. case "(($ac_try" in
  19378. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19379. *) ac_try_echo=$ac_try;;
  19380. esac
  19381. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19382. (eval "$ac_compile") 2>conftest.er1
  19383. ac_status=$?
  19384. grep -v '^ *+' conftest.er1 >conftest.err
  19385. rm -f conftest.er1
  19386. cat conftest.err >&5
  19387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19388. (exit $ac_status); } && {
  19389. test -z "$ac_c_werror_flag" ||
  19390. test ! -s conftest.err
  19391. } && test -s conftest.$ac_objext; then
  19392. ac_cv_type_size_t=yes
  19393. else
  19394. echo "$as_me: failed program was:" >&5
  19395. sed 's/^/| /' conftest.$ac_ext >&5
  19396. ac_cv_type_size_t=no
  19397. fi
  19398. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19399. fi
  19400. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  19401. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  19402. if test $ac_cv_type_size_t = yes; then
  19403. :
  19404. else
  19405. cat >>confdefs.h <<_ACEOF
  19406. #define size_t unsigned int
  19407. _ACEOF
  19408. fi
  19409. { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
  19410. echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
  19411. if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
  19412. echo $ECHO_N "(cached) $ECHO_C" >&6
  19413. else
  19414. cat >conftest.$ac_ext <<_ACEOF
  19415. /* confdefs.h. */
  19416. _ACEOF
  19417. cat confdefs.h >>conftest.$ac_ext
  19418. cat >>conftest.$ac_ext <<_ACEOF
  19419. /* end confdefs.h. */
  19420. $ac_includes_default
  19421. int
  19422. main ()
  19423. {
  19424. static struct stat ac_aggr;
  19425. if (ac_aggr.st_rdev)
  19426. return 0;
  19427. ;
  19428. return 0;
  19429. }
  19430. _ACEOF
  19431. rm -f conftest.$ac_objext
  19432. if { (ac_try="$ac_compile"
  19433. case "(($ac_try" in
  19434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19435. *) ac_try_echo=$ac_try;;
  19436. esac
  19437. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19438. (eval "$ac_compile") 2>conftest.er1
  19439. ac_status=$?
  19440. grep -v '^ *+' conftest.er1 >conftest.err
  19441. rm -f conftest.er1
  19442. cat conftest.err >&5
  19443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19444. (exit $ac_status); } && {
  19445. test -z "$ac_c_werror_flag" ||
  19446. test ! -s conftest.err
  19447. } && test -s conftest.$ac_objext; then
  19448. ac_cv_member_struct_stat_st_rdev=yes
  19449. else
  19450. echo "$as_me: failed program was:" >&5
  19451. sed 's/^/| /' conftest.$ac_ext >&5
  19452. cat >conftest.$ac_ext <<_ACEOF
  19453. /* confdefs.h. */
  19454. _ACEOF
  19455. cat confdefs.h >>conftest.$ac_ext
  19456. cat >>conftest.$ac_ext <<_ACEOF
  19457. /* end confdefs.h. */
  19458. $ac_includes_default
  19459. int
  19460. main ()
  19461. {
  19462. static struct stat ac_aggr;
  19463. if (sizeof ac_aggr.st_rdev)
  19464. return 0;
  19465. ;
  19466. return 0;
  19467. }
  19468. _ACEOF
  19469. rm -f conftest.$ac_objext
  19470. if { (ac_try="$ac_compile"
  19471. case "(($ac_try" in
  19472. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19473. *) ac_try_echo=$ac_try;;
  19474. esac
  19475. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19476. (eval "$ac_compile") 2>conftest.er1
  19477. ac_status=$?
  19478. grep -v '^ *+' conftest.er1 >conftest.err
  19479. rm -f conftest.er1
  19480. cat conftest.err >&5
  19481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19482. (exit $ac_status); } && {
  19483. test -z "$ac_c_werror_flag" ||
  19484. test ! -s conftest.err
  19485. } && test -s conftest.$ac_objext; then
  19486. ac_cv_member_struct_stat_st_rdev=yes
  19487. else
  19488. echo "$as_me: failed program was:" >&5
  19489. sed 's/^/| /' conftest.$ac_ext >&5
  19490. ac_cv_member_struct_stat_st_rdev=no
  19491. fi
  19492. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19493. fi
  19494. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19495. fi
  19496. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
  19497. echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
  19498. if test $ac_cv_member_struct_stat_st_rdev = yes; then
  19499. cat >>confdefs.h <<_ACEOF
  19500. #define HAVE_STRUCT_STAT_ST_RDEV 1
  19501. _ACEOF
  19502. cat >>confdefs.h <<\_ACEOF
  19503. #define HAVE_ST_RDEV 1
  19504. _ACEOF
  19505. fi
  19506. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  19507. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  19508. if test "${ac_cv_struct_tm+set}" = set; then
  19509. echo $ECHO_N "(cached) $ECHO_C" >&6
  19510. else
  19511. cat >conftest.$ac_ext <<_ACEOF
  19512. /* confdefs.h. */
  19513. _ACEOF
  19514. cat confdefs.h >>conftest.$ac_ext
  19515. cat >>conftest.$ac_ext <<_ACEOF
  19516. /* end confdefs.h. */
  19517. #include <sys/types.h>
  19518. #include <time.h>
  19519. int
  19520. main ()
  19521. {
  19522. struct tm tm;
  19523. int *p = &tm.tm_sec;
  19524. return !p;
  19525. ;
  19526. return 0;
  19527. }
  19528. _ACEOF
  19529. rm -f conftest.$ac_objext
  19530. if { (ac_try="$ac_compile"
  19531. case "(($ac_try" in
  19532. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19533. *) ac_try_echo=$ac_try;;
  19534. esac
  19535. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19536. (eval "$ac_compile") 2>conftest.er1
  19537. ac_status=$?
  19538. grep -v '^ *+' conftest.er1 >conftest.err
  19539. rm -f conftest.er1
  19540. cat conftest.err >&5
  19541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19542. (exit $ac_status); } && {
  19543. test -z "$ac_c_werror_flag" ||
  19544. test ! -s conftest.err
  19545. } && test -s conftest.$ac_objext; then
  19546. ac_cv_struct_tm=time.h
  19547. else
  19548. echo "$as_me: failed program was:" >&5
  19549. sed 's/^/| /' conftest.$ac_ext >&5
  19550. ac_cv_struct_tm=sys/time.h
  19551. fi
  19552. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19553. fi
  19554. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  19555. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  19556. if test $ac_cv_struct_tm = sys/time.h; then
  19557. cat >>confdefs.h <<\_ACEOF
  19558. #define TM_IN_SYS_TIME 1
  19559. _ACEOF
  19560. fi
  19561. { echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
  19562. echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6; }
  19563. if test "${ac_cv_struct_tm_zone+set}" = set; then
  19564. echo $ECHO_N "(cached) $ECHO_C" >&6
  19565. else
  19566. cat >conftest.$ac_ext <<_ACEOF
  19567. /* confdefs.h. */
  19568. _ACEOF
  19569. cat confdefs.h >>conftest.$ac_ext
  19570. cat >>conftest.$ac_ext <<_ACEOF
  19571. /* end confdefs.h. */
  19572. #include <sys/types.h>
  19573. #include <$ac_cv_struct_tm>
  19574. int
  19575. main ()
  19576. {
  19577. struct tm tm; tm.tm_zone;
  19578. ;
  19579. return 0;
  19580. }
  19581. _ACEOF
  19582. rm -f conftest.$ac_objext
  19583. if { (ac_try="$ac_compile"
  19584. case "(($ac_try" in
  19585. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19586. *) ac_try_echo=$ac_try;;
  19587. esac
  19588. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19589. (eval "$ac_compile") 2>conftest.er1
  19590. ac_status=$?
  19591. grep -v '^ *+' conftest.er1 >conftest.err
  19592. rm -f conftest.er1
  19593. cat conftest.err >&5
  19594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19595. (exit $ac_status); } && {
  19596. test -z "$ac_c_werror_flag" ||
  19597. test ! -s conftest.err
  19598. } && test -s conftest.$ac_objext; then
  19599. ac_cv_struct_tm_zone=yes
  19600. else
  19601. echo "$as_me: failed program was:" >&5
  19602. sed 's/^/| /' conftest.$ac_ext >&5
  19603. ac_cv_struct_tm_zone=no
  19604. fi
  19605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19606. fi
  19607. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm_zone" >&5
  19608. echo "${ECHO_T}$ac_cv_struct_tm_zone" >&6; }
  19609. if test "$ac_cv_struct_tm_zone" = yes; then
  19610. cat >>confdefs.h <<\_ACEOF
  19611. #define HAVE_TM_ZONE 1
  19612. _ACEOF
  19613. fi
  19614. { echo "$as_me:$LINENO: checking for tzname" >&5
  19615. echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
  19616. if test "${ac_cv_var_tzname+set}" = set; then
  19617. echo $ECHO_N "(cached) $ECHO_C" >&6
  19618. else
  19619. cat >conftest.$ac_ext <<_ACEOF
  19620. /* confdefs.h. */
  19621. _ACEOF
  19622. cat confdefs.h >>conftest.$ac_ext
  19623. cat >>conftest.$ac_ext <<_ACEOF
  19624. /* end confdefs.h. */
  19625. #include <time.h>
  19626. #ifndef tzname /* For SGI. */
  19627. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  19628. #endif
  19629. int
  19630. main ()
  19631. {
  19632. atoi(*tzname);
  19633. ;
  19634. return 0;
  19635. }
  19636. _ACEOF
  19637. rm -f conftest.$ac_objext conftest$ac_exeext
  19638. if { (ac_try="$ac_link"
  19639. case "(($ac_try" in
  19640. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19641. *) ac_try_echo=$ac_try;;
  19642. esac
  19643. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19644. (eval "$ac_link") 2>conftest.er1
  19645. ac_status=$?
  19646. grep -v '^ *+' conftest.er1 >conftest.err
  19647. rm -f conftest.er1
  19648. cat conftest.err >&5
  19649. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19650. (exit $ac_status); } && {
  19651. test -z "$ac_c_werror_flag" ||
  19652. test ! -s conftest.err
  19653. } && test -s conftest$ac_exeext &&
  19654. $as_test_x conftest$ac_exeext; then
  19655. ac_cv_var_tzname=yes
  19656. else
  19657. echo "$as_me: failed program was:" >&5
  19658. sed 's/^/| /' conftest.$ac_ext >&5
  19659. ac_cv_var_tzname=no
  19660. fi
  19661. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19662. conftest$ac_exeext conftest.$ac_ext
  19663. fi
  19664. { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  19665. echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
  19666. if test $ac_cv_var_tzname = yes; then
  19667. cat >>confdefs.h <<\_ACEOF
  19668. #define HAVE_TZNAME 1
  19669. _ACEOF
  19670. fi
  19671. { echo "$as_me:$LINENO: checking for tm_isdst in struct tm" >&5
  19672. echo $ECHO_N "checking for tm_isdst in struct tm... $ECHO_C" >&6; }
  19673. if test "${ac_cv_struct_tm_isdst+set}" = set; then
  19674. echo $ECHO_N "(cached) $ECHO_C" >&6
  19675. else
  19676. cat >conftest.$ac_ext <<_ACEOF
  19677. /* confdefs.h. */
  19678. _ACEOF
  19679. cat confdefs.h >>conftest.$ac_ext
  19680. cat >>conftest.$ac_ext <<_ACEOF
  19681. /* end confdefs.h. */
  19682. #include <sys/types.h>
  19683. #include <$ac_cv_struct_tm>
  19684. int
  19685. main ()
  19686. {
  19687. struct tm tm; tm.tm_isdst;
  19688. ;
  19689. return 0;
  19690. }
  19691. _ACEOF
  19692. rm -f conftest.$ac_objext
  19693. if { (ac_try="$ac_compile"
  19694. case "(($ac_try" in
  19695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19696. *) ac_try_echo=$ac_try;;
  19697. esac
  19698. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19699. (eval "$ac_compile") 2>conftest.er1
  19700. ac_status=$?
  19701. grep -v '^ *+' conftest.er1 >conftest.err
  19702. rm -f conftest.er1
  19703. cat conftest.err >&5
  19704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19705. (exit $ac_status); } && {
  19706. test -z "$ac_c_werror_flag" ||
  19707. test ! -s conftest.err
  19708. } && test -s conftest.$ac_objext; then
  19709. ac_cv_struct_tm_isdst=yes
  19710. else
  19711. echo "$as_me: failed program was:" >&5
  19712. sed 's/^/| /' conftest.$ac_ext >&5
  19713. ac_cv_struct_tm_isdst=no
  19714. fi
  19715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19716. fi
  19717. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm_isdst" >&5
  19718. echo "${ECHO_T}$ac_cv_struct_tm_isdst" >&6; }
  19719. if test "$ac_cv_struct_tm_isdst" = yes; then
  19720. cat >>confdefs.h <<\_ACEOF
  19721. #define HAVE_TM_ISDST 1
  19722. _ACEOF
  19723. fi
  19724. { echo "$as_me:$LINENO: checking for daylight" >&5
  19725. echo $ECHO_N "checking for daylight... $ECHO_C" >&6; }
  19726. if test "${ac_cv_var_daylight+set}" = set; then
  19727. echo $ECHO_N "(cached) $ECHO_C" >&6
  19728. else
  19729. cat >conftest.$ac_ext <<_ACEOF
  19730. /* confdefs.h. */
  19731. _ACEOF
  19732. cat confdefs.h >>conftest.$ac_ext
  19733. cat >>conftest.$ac_ext <<_ACEOF
  19734. /* end confdefs.h. */
  19735. #include <time.h>
  19736. #ifndef daylight /* In case IRIX #defines this, too */
  19737. extern int daylight;
  19738. #endif
  19739. int
  19740. main ()
  19741. {
  19742. atoi(daylight);
  19743. ;
  19744. return 0;
  19745. }
  19746. _ACEOF
  19747. rm -f conftest.$ac_objext conftest$ac_exeext
  19748. if { (ac_try="$ac_link"
  19749. case "(($ac_try" in
  19750. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19751. *) ac_try_echo=$ac_try;;
  19752. esac
  19753. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19754. (eval "$ac_link") 2>conftest.er1
  19755. ac_status=$?
  19756. grep -v '^ *+' conftest.er1 >conftest.err
  19757. rm -f conftest.er1
  19758. cat conftest.err >&5
  19759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19760. (exit $ac_status); } && {
  19761. test -z "$ac_c_werror_flag" ||
  19762. test ! -s conftest.err
  19763. } && test -s conftest$ac_exeext &&
  19764. $as_test_x conftest$ac_exeext; then
  19765. ac_cv_var_daylight=yes
  19766. else
  19767. echo "$as_me: failed program was:" >&5
  19768. sed 's/^/| /' conftest.$ac_ext >&5
  19769. ac_cv_var_daylight=no
  19770. fi
  19771. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19772. conftest$ac_exeext conftest.$ac_ext
  19773. fi
  19774. { echo "$as_me:$LINENO: result: $ac_cv_var_daylight" >&5
  19775. echo "${ECHO_T}$ac_cv_var_daylight" >&6; }
  19776. if test $ac_cv_var_daylight = yes; then
  19777. cat >>confdefs.h <<\_ACEOF
  19778. #define HAVE_DAYLIGHT 1
  19779. _ACEOF
  19780. fi
  19781. # Check whether --enable-largefile was given.
  19782. if test "${enable_largefile+set}" = set; then
  19783. enableval=$enable_largefile;
  19784. fi
  19785. if test "$enable_largefile" != no; then
  19786. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files=
  19787. " >&5
  19788. echo $ECHO_N "checking for special C compiler options needed for large files=
  19789. ... $ECHO_C" >&6; }
  19790. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  19791. echo $ECHO_N "(cached) $ECHO_C" >&6
  19792. else
  19793. ac_cv_sys_largefile_CC=no
  19794. if test "$GCC" != yes; then
  19795. # IRIX 6.2 and later do not support large files by default,
  19796. # so use the C compiler's -n32 option if that helps.
  19797. cat >conftest.$ac_ext <<_ACEOF
  19798. /* confdefs.h. */
  19799. _ACEOF
  19800. cat confdefs.h >>conftest.$ac_ext
  19801. cat >>conftest.$ac_ext <<_ACEOF
  19802. /* end confdefs.h. */
  19803. #include <sys/types.h>
  19804. /* Check that off_t can represent 2**63 - 1 correctly.
  19805. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  19806. since some C++ compilers masquerading as C compilers
  19807. incorrectly reject 9223372036854775807. */
  19808. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19809. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19810. && LARGE_OFF_T % 2147483647 == 1)
  19811. ? 1 : -1];
  19812. int
  19813. main ()
  19814. {
  19815. ;
  19816. return 0;
  19817. }
  19818. _ACEOF
  19819. rm -f conftest.$ac_objext
  19820. if { (ac_try="$ac_compile"
  19821. case "(($ac_try" in
  19822. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19823. *) ac_try_echo=$ac_try;;
  19824. esac
  19825. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19826. (eval "$ac_compile") 2>conftest.er1
  19827. ac_status=$?
  19828. grep -v '^ *+' conftest.er1 >conftest.err
  19829. rm -f conftest.er1
  19830. cat conftest.err >&5
  19831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19832. (exit $ac_status); } && {
  19833. test -z "$ac_c_werror_flag" ||
  19834. test ! -s conftest.err
  19835. } && test -s conftest.$ac_objext; then
  19836. :
  19837. else
  19838. echo "$as_me: failed program was:" >&5
  19839. sed 's/^/| /' conftest.$ac_ext >&5
  19840. ac_save_CC="$CC"
  19841. CC="$CC -n32"
  19842. cat >conftest.$ac_ext <<_ACEOF
  19843. /* confdefs.h. */
  19844. _ACEOF
  19845. cat confdefs.h >>conftest.$ac_ext
  19846. cat >>conftest.$ac_ext <<_ACEOF
  19847. /* end confdefs.h. */
  19848. #include <sys/types.h>
  19849. /* Check that off_t can represent 2**63 - 1 correctly.
  19850. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  19851. since some C++ compilers masquerading as C compilers
  19852. incorrectly reject 9223372036854775807. */
  19853. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19854. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19855. && LARGE_OFF_T % 2147483647 == 1)
  19856. ? 1 : -1];
  19857. int
  19858. main ()
  19859. {
  19860. ;
  19861. return 0;
  19862. }
  19863. _ACEOF
  19864. rm -f conftest.$ac_objext
  19865. if { (ac_try="$ac_compile"
  19866. case "(($ac_try" in
  19867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19868. *) ac_try_echo=$ac_try;;
  19869. esac
  19870. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19871. (eval "$ac_compile") 2>conftest.er1
  19872. ac_status=$?
  19873. grep -v '^ *+' conftest.er1 >conftest.err
  19874. rm -f conftest.er1
  19875. cat conftest.err >&5
  19876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19877. (exit $ac_status); } && {
  19878. test -z "$ac_c_werror_flag" ||
  19879. test ! -s conftest.err
  19880. } && test -s conftest.$ac_objext; then
  19881. ac_cv_sys_largefile_CC=' -n32'
  19882. else
  19883. echo "$as_me: failed program was:" >&5
  19884. sed 's/^/| /' conftest.$ac_ext >&5
  19885. fi
  19886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19887. CC="$ac_save_CC"
  19888. fi
  19889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19890. fi
  19891. fi
  19892. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  19893. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  19894. if test "$ac_cv_sys_largefile_CC" != no; then
  19895. CC="$CC$ac_cv_sys_largefile_CC"
  19896. fi
  19897. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  19898. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  19899. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  19900. echo $ECHO_N "(cached) $ECHO_C" >&6
  19901. else
  19902. ac_cv_sys_file_offset_bits=no
  19903. cat >conftest.$ac_ext <<_ACEOF
  19904. /* confdefs.h. */
  19905. _ACEOF
  19906. cat confdefs.h >>conftest.$ac_ext
  19907. cat >>conftest.$ac_ext <<_ACEOF
  19908. /* end confdefs.h. */
  19909. #include <sys/types.h>
  19910. /* Check that off_t can represent 2**63 - 1 correctly.
  19911. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  19912. since some C++ compilers masquerading as C compilers
  19913. incorrectly reject 9223372036854775807. */
  19914. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19915. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19916. && LARGE_OFF_T % 2147483647 == 1)
  19917. ? 1 : -1];
  19918. int
  19919. main ()
  19920. {
  19921. ;
  19922. return 0;
  19923. }
  19924. _ACEOF
  19925. rm -f conftest.$ac_objext
  19926. if { (ac_try="$ac_compile"
  19927. case "(($ac_try" in
  19928. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19929. *) ac_try_echo=$ac_try;;
  19930. esac
  19931. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19932. (eval "$ac_compile") 2>conftest.er1
  19933. ac_status=$?
  19934. grep -v '^ *+' conftest.er1 >conftest.err
  19935. rm -f conftest.er1
  19936. cat conftest.err >&5
  19937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19938. (exit $ac_status); } && {
  19939. test -z "$ac_c_werror_flag" ||
  19940. test ! -s conftest.err
  19941. } && test -s conftest.$ac_objext; then
  19942. :
  19943. else
  19944. echo "$as_me: failed program was:" >&5
  19945. sed 's/^/| /' conftest.$ac_ext >&5
  19946. cat >conftest.$ac_ext <<_ACEOF
  19947. /* confdefs.h. */
  19948. _ACEOF
  19949. cat confdefs.h >>conftest.$ac_ext
  19950. cat >>conftest.$ac_ext <<_ACEOF
  19951. /* end confdefs.h. */
  19952. #define _FILE_OFFSET_BITS 64
  19953. #include <sys/types.h>
  19954. /* Check that off_t can represent 2**63 - 1 correctly.
  19955. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  19956. since some C++ compilers masquerading as C compilers
  19957. incorrectly reject 9223372036854775807. */
  19958. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19959. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19960. && LARGE_OFF_T % 2147483647 == 1)
  19961. ? 1 : -1];
  19962. int
  19963. main ()
  19964. {
  19965. ;
  19966. return 0;
  19967. }
  19968. _ACEOF
  19969. rm -f conftest.$ac_objext
  19970. if { (ac_try="$ac_compile"
  19971. case "(($ac_try" in
  19972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19973. *) ac_try_echo=$ac_try;;
  19974. esac
  19975. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19976. (eval "$ac_compile") 2>conftest.er1
  19977. ac_status=$?
  19978. grep -v '^ *+' conftest.er1 >conftest.err
  19979. rm -f conftest.er1
  19980. cat conftest.err >&5
  19981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19982. (exit $ac_status); } && {
  19983. test -z "$ac_c_werror_flag" ||
  19984. test ! -s conftest.err
  19985. } && test -s conftest.$ac_objext; then
  19986. ac_cv_sys_file_offset_bits=64
  19987. else
  19988. echo "$as_me: failed program was:" >&5
  19989. sed 's/^/| /' conftest.$ac_ext >&5
  19990. fi
  19991. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19992. fi
  19993. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19994. fi
  19995. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  19996. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  19997. if test "$ac_cv_sys_file_offset_bits" != no; then
  19998. cat >>confdefs.h <<_ACEOF
  19999. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  20000. _ACEOF
  20001. fi
  20002. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  20003. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  20004. if test "${ac_cv_sys_large_files+set}" = set; then
  20005. echo $ECHO_N "(cached) $ECHO_C" >&6
  20006. else
  20007. ac_cv_sys_large_files=no
  20008. cat >conftest.$ac_ext <<_ACEOF
  20009. /* confdefs.h. */
  20010. _ACEOF
  20011. cat confdefs.h >>conftest.$ac_ext
  20012. cat >>conftest.$ac_ext <<_ACEOF
  20013. /* end confdefs.h. */
  20014. #include <sys/types.h>
  20015. /* Check that off_t can represent 2**63 - 1 correctly.
  20016. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  20017. since some C++ compilers masquerading as C compilers
  20018. incorrectly reject 9223372036854775807. */
  20019. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20020. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20021. && LARGE_OFF_T % 2147483647 == 1)
  20022. ? 1 : -1];
  20023. int
  20024. main ()
  20025. {
  20026. ;
  20027. return 0;
  20028. }
  20029. _ACEOF
  20030. rm -f conftest.$ac_objext
  20031. if { (ac_try="$ac_compile"
  20032. case "(($ac_try" in
  20033. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20034. *) ac_try_echo=$ac_try;;
  20035. esac
  20036. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20037. (eval "$ac_compile") 2>conftest.er1
  20038. ac_status=$?
  20039. grep -v '^ *+' conftest.er1 >conftest.err
  20040. rm -f conftest.er1
  20041. cat conftest.err >&5
  20042. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20043. (exit $ac_status); } && {
  20044. test -z "$ac_c_werror_flag" ||
  20045. test ! -s conftest.err
  20046. } && test -s conftest.$ac_objext; then
  20047. :
  20048. else
  20049. echo "$as_me: failed program was:" >&5
  20050. sed 's/^/| /' conftest.$ac_ext >&5
  20051. cat >conftest.$ac_ext <<_ACEOF
  20052. /* confdefs.h. */
  20053. _ACEOF
  20054. cat confdefs.h >>conftest.$ac_ext
  20055. cat >>conftest.$ac_ext <<_ACEOF
  20056. /* end confdefs.h. */
  20057. #define _LARGE_FILES 1
  20058. #include <sys/types.h>
  20059. /* Check that off_t can represent 2**63 - 1 correctly.
  20060. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  20061. since some C++ compilers masquerading as C compilers
  20062. incorrectly reject 9223372036854775807. */
  20063. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20064. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20065. && LARGE_OFF_T % 2147483647 == 1)
  20066. ? 1 : -1];
  20067. int
  20068. main ()
  20069. {
  20070. ;
  20071. return 0;
  20072. }
  20073. _ACEOF
  20074. rm -f conftest.$ac_objext
  20075. if { (ac_try="$ac_compile"
  20076. case "(($ac_try" in
  20077. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20078. *) ac_try_echo=$ac_try;;
  20079. esac
  20080. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20081. (eval "$ac_compile") 2>conftest.er1
  20082. ac_status=$?
  20083. grep -v '^ *+' conftest.er1 >conftest.err
  20084. rm -f conftest.er1
  20085. cat conftest.err >&5
  20086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20087. (exit $ac_status); } && {
  20088. test -z "$ac_c_werror_flag" ||
  20089. test ! -s conftest.err
  20090. } && test -s conftest.$ac_objext; then
  20091. ac_cv_sys_large_files=1
  20092. else
  20093. echo "$as_me: failed program was:" >&5
  20094. sed 's/^/| /' conftest.$ac_ext >&5
  20095. fi
  20096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20097. fi
  20098. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20099. fi
  20100. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  20101. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  20102. if test "$ac_cv_sys_large_files" != no; then
  20103. cat >>confdefs.h <<_ACEOF
  20104. #define _LARGE_FILES $ac_cv_sys_large_files
  20105. _ACEOF
  20106. fi
  20107. fi
  20108. { echo "$as_me:$LINENO: checking for mbstate_t" >&5
  20109. echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
  20110. if test "${ac_cv_type_mbstate_t+set}" = set; then
  20111. echo $ECHO_N "(cached) $ECHO_C" >&6
  20112. else
  20113. cat >conftest.$ac_ext <<_ACEOF
  20114. /* confdefs.h. */
  20115. _ACEOF
  20116. cat confdefs.h >>conftest.$ac_ext
  20117. cat >>conftest.$ac_ext <<_ACEOF
  20118. /* end confdefs.h. */
  20119. $ac_includes_default
  20120. # include <wchar.h>
  20121. int
  20122. main ()
  20123. {
  20124. mbstate_t x; return sizeof x;
  20125. ;
  20126. return 0;
  20127. }
  20128. _ACEOF
  20129. rm -f conftest.$ac_objext
  20130. if { (ac_try="$ac_compile"
  20131. case "(($ac_try" in
  20132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20133. *) ac_try_echo=$ac_try;;
  20134. esac
  20135. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20136. (eval "$ac_compile") 2>conftest.er1
  20137. ac_status=$?
  20138. grep -v '^ *+' conftest.er1 >conftest.err
  20139. rm -f conftest.er1
  20140. cat conftest.err >&5
  20141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20142. (exit $ac_status); } && {
  20143. test -z "$ac_c_werror_flag" ||
  20144. test ! -s conftest.err
  20145. } && test -s conftest.$ac_objext; then
  20146. ac_cv_type_mbstate_t=yes
  20147. else
  20148. echo "$as_me: failed program was:" >&5
  20149. sed 's/^/| /' conftest.$ac_ext >&5
  20150. ac_cv_type_mbstate_t=no
  20151. fi
  20152. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20153. fi
  20154. { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
  20155. echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
  20156. if test $ac_cv_type_mbstate_t = yes; then
  20157. cat >>confdefs.h <<\_ACEOF
  20158. #define HAVE_MBSTATE_T 1
  20159. _ACEOF
  20160. else
  20161. cat >>confdefs.h <<\_ACEOF
  20162. #define mbstate_t int
  20163. _ACEOF
  20164. fi
  20165. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  20166. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  20167. if test "${ac_cv_type_uint8_t+set}" = set; then
  20168. echo $ECHO_N "(cached) $ECHO_C" >&6
  20169. else
  20170. cat >conftest.$ac_ext <<_ACEOF
  20171. /* confdefs.h. */
  20172. _ACEOF
  20173. cat confdefs.h >>conftest.$ac_ext
  20174. cat >>conftest.$ac_ext <<_ACEOF
  20175. /* end confdefs.h. */
  20176. #if HAVE_STDINT_H
  20177. #include <stdint.h>
  20178. #endif
  20179. #include <sys/types.h>
  20180. #if STDC_HEADERS
  20181. #include <stdlib.h>
  20182. #include <stddef.h>
  20183. #endif
  20184. _ACEOF
  20185. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20186. $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  20187. ac_cv_type_uint8_t=yes
  20188. else
  20189. ac_cv_type_uint8_t=no
  20190. fi
  20191. rm -f conftest*
  20192. fi
  20193. { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  20194. echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
  20195. if test $ac_cv_type_uint8_t = no; then
  20196. cat >>confdefs.h <<\_ACEOF
  20197. #define uint8_t unsigned char
  20198. _ACEOF
  20199. fi
  20200. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  20201. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  20202. if test "${ac_cv_type_uint16_t+set}" = set; then
  20203. echo $ECHO_N "(cached) $ECHO_C" >&6
  20204. else
  20205. cat >conftest.$ac_ext <<_ACEOF
  20206. /* confdefs.h. */
  20207. _ACEOF
  20208. cat confdefs.h >>conftest.$ac_ext
  20209. cat >>conftest.$ac_ext <<_ACEOF
  20210. /* end confdefs.h. */
  20211. #if HAVE_STDINT_H
  20212. #include <stdint.h>
  20213. #endif
  20214. #include <sys/types.h>
  20215. #if STDC_HEADERS
  20216. #include <stdlib.h>
  20217. #include <stddef.h>
  20218. #endif
  20219. _ACEOF
  20220. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20221. $EGREP "(^|[^a-zA-Z_0-9])uint16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  20222. ac_cv_type_uint16_t=yes
  20223. else
  20224. ac_cv_type_uint16_t=no
  20225. fi
  20226. rm -f conftest*
  20227. fi
  20228. { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  20229. echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
  20230. if test $ac_cv_type_uint16_t = no; then
  20231. cat >>confdefs.h <<\_ACEOF
  20232. #define uint16_t unsigned short
  20233. _ACEOF
  20234. fi
  20235. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  20236. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  20237. if test "${ac_cv_type_uint32_t+set}" = set; then
  20238. echo $ECHO_N "(cached) $ECHO_C" >&6
  20239. else
  20240. cat >conftest.$ac_ext <<_ACEOF
  20241. /* confdefs.h. */
  20242. _ACEOF
  20243. cat confdefs.h >>conftest.$ac_ext
  20244. cat >>conftest.$ac_ext <<_ACEOF
  20245. /* end confdefs.h. */
  20246. #if HAVE_STDINT_H
  20247. #include <stdint.h>
  20248. #endif
  20249. #include <sys/types.h>
  20250. #if STDC_HEADERS
  20251. #include <stdlib.h>
  20252. #include <stddef.h>
  20253. #endif
  20254. _ACEOF
  20255. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20256. $EGREP "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  20257. ac_cv_type_uint32_t=yes
  20258. else
  20259. ac_cv_type_uint32_t=no
  20260. fi
  20261. rm -f conftest*
  20262. fi
  20263. { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  20264. echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
  20265. if test $ac_cv_type_uint32_t = no; then
  20266. cat >>confdefs.h <<\_ACEOF
  20267. #define uint32_t unsigned int
  20268. _ACEOF
  20269. fi
  20270. { echo "$as_me:$LINENO: checking for int32_t" >&5
  20271. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  20272. if test "${ac_cv_type_int32_t+set}" = set; then
  20273. echo $ECHO_N "(cached) $ECHO_C" >&6
  20274. else
  20275. cat >conftest.$ac_ext <<_ACEOF
  20276. /* confdefs.h. */
  20277. _ACEOF
  20278. cat confdefs.h >>conftest.$ac_ext
  20279. cat >>conftest.$ac_ext <<_ACEOF
  20280. /* end confdefs.h. */
  20281. #if HAVE_STDINT_H
  20282. #include <stdint.h>
  20283. #endif
  20284. #include <sys/types.h>
  20285. #if STDC_HEADERS
  20286. #include <stdlib.h>
  20287. #include <stddef.h>
  20288. #endif
  20289. _ACEOF
  20290. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20291. $EGREP "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  20292. ac_cv_type_int32_t=yes
  20293. else
  20294. ac_cv_type_int32_t=no
  20295. fi
  20296. rm -f conftest*
  20297. fi
  20298. { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  20299. echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
  20300. if test $ac_cv_type_int32_t = no; then
  20301. cat >>confdefs.h <<\_ACEOF
  20302. #define int32_t int
  20303. _ACEOF
  20304. fi
  20305. { echo "$as_me:$LINENO: checking for long long" >&5
  20306. echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
  20307. if test "${ac_cv_c_long_long+set}" = set; then
  20308. echo $ECHO_N "(cached) $ECHO_C" >&6
  20309. else
  20310. if test "$GCC" = yes; then
  20311. ac_cv_c_long_long=yes
  20312. else
  20313. if test "$cross_compiling" = yes; then
  20314. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  20315. See \`config.log' for more details." >&5
  20316. echo "$as_me: error: cannot run test program while cross compiling
  20317. See \`config.log' for more details." >&2;}
  20318. { (exit 1); exit 1; }; }
  20319. else
  20320. cat >conftest.$ac_ext <<_ACEOF
  20321. /* confdefs.h. */
  20322. _ACEOF
  20323. cat confdefs.h >>conftest.$ac_ext
  20324. cat >>conftest.$ac_ext <<_ACEOF
  20325. /* end confdefs.h. */
  20326. int main() {
  20327. long long foo = 0;
  20328. exit(sizeof(long long) < sizeof(long)); }
  20329. _ACEOF
  20330. rm -f conftest$ac_exeext
  20331. if { (ac_try="$ac_link"
  20332. case "(($ac_try" in
  20333. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20334. *) ac_try_echo=$ac_try;;
  20335. esac
  20336. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20337. (eval "$ac_link") 2>&5
  20338. ac_status=$?
  20339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20340. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20341. { (case "(($ac_try" in
  20342. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20343. *) ac_try_echo=$ac_try;;
  20344. esac
  20345. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20346. (eval "$ac_try") 2>&5
  20347. ac_status=$?
  20348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20349. (exit $ac_status); }; }; then
  20350. ac_cv_c_long_long=yes
  20351. else
  20352. echo "$as_me: program exited with status $ac_status" >&5
  20353. echo "$as_me: failed program was:" >&5
  20354. sed 's/^/| /' conftest.$ac_ext >&5
  20355. ( exit $ac_status )
  20356. ac_cv_c_long_long=no
  20357. fi
  20358. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20359. fi
  20360. fi
  20361. fi
  20362. { echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
  20363. echo "${ECHO_T}$ac_cv_c_long_long" >&6; }
  20364. if test $ac_cv_c_long_long = yes; then
  20365. cat >>confdefs.h <<\_ACEOF
  20366. #define HAVE_LONG_LONG 1
  20367. _ACEOF
  20368. fi
  20369. if test $ac_cv_c_long_long = yes; then
  20370. ulong64='unsigned long long';
  20371. long64='long long';
  20372. else
  20373. ulong64='unsigned long';
  20374. long64='long';
  20375. fi
  20376. { echo "$as_me:$LINENO: checking for uint64_t" >&5
  20377. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
  20378. if test "${ac_cv_type_uint64_t+set}" = set; then
  20379. echo $ECHO_N "(cached) $ECHO_C" >&6
  20380. else
  20381. cat >conftest.$ac_ext <<_ACEOF
  20382. /* confdefs.h. */
  20383. _ACEOF
  20384. cat confdefs.h >>conftest.$ac_ext
  20385. cat >>conftest.$ac_ext <<_ACEOF
  20386. /* end confdefs.h. */
  20387. #if HAVE_STDINT_H
  20388. #include <stdint.h>
  20389. #endif
  20390. #include <sys/types.h>
  20391. #if STDC_HEADERS
  20392. #include <stdlib.h>
  20393. #include <stddef.h>
  20394. #endif
  20395. _ACEOF
  20396. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20397. $EGREP "(^|[^a-zA-Z_0-9])uint64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  20398. eval "ac_cv_type_uint64_t=yes"
  20399. else
  20400. eval "ac_cv_type_uint64_t=no"
  20401. fi
  20402. rm -f conftest*
  20403. fi
  20404. if eval "test \"`echo '$ac_cv_type_'uint64_t`\" = yes"; then
  20405. { echo "$as_me:$LINENO: result: yes" >&5
  20406. echo "${ECHO_T}yes" >&6; }
  20407. else
  20408. { echo "$as_me:$LINENO: result: no" >&5
  20409. echo "${ECHO_T}no" >&6; }
  20410. cat >>confdefs.h <<_ACEOF
  20411. #define uint64_t $ulong64
  20412. _ACEOF
  20413. fi
  20414. { echo "$as_me:$LINENO: checking for int64_t" >&5
  20415. echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
  20416. if test "${ac_cv_type_int64_t+set}" = set; then
  20417. echo $ECHO_N "(cached) $ECHO_C" >&6
  20418. else
  20419. cat >conftest.$ac_ext <<_ACEOF
  20420. /* confdefs.h. */
  20421. _ACEOF
  20422. cat confdefs.h >>conftest.$ac_ext
  20423. cat >>conftest.$ac_ext <<_ACEOF
  20424. /* end confdefs.h. */
  20425. #if HAVE_STDINT_H
  20426. #include <stdint.h>
  20427. #endif
  20428. #include <sys/types.h>
  20429. #if STDC_HEADERS
  20430. #include <stdlib.h>
  20431. #include <stddef.h>
  20432. #endif
  20433. _ACEOF
  20434. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20435. $EGREP "(^|[^a-zA-Z_0-9])int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  20436. eval "ac_cv_type_int64_t=yes"
  20437. else
  20438. eval "ac_cv_type_int64_t=no"
  20439. fi
  20440. rm -f conftest*
  20441. fi
  20442. if eval "test \"`echo '$ac_cv_type_'int64_t`\" = yes"; then
  20443. { echo "$as_me:$LINENO: result: yes" >&5
  20444. echo "${ECHO_T}yes" >&6; }
  20445. else
  20446. { echo "$as_me:$LINENO: result: no" >&5
  20447. echo "${ECHO_T}no" >&6; }
  20448. cat >>confdefs.h <<_ACEOF
  20449. #define int64_t $long64
  20450. _ACEOF
  20451. fi
  20452. { echo "$as_me:$LINENO: checking size of uint8_t" >&5
  20453. echo $ECHO_N "checking size of uint8_t... $ECHO_C" >&6; }
  20454. if test "${ac_cv_sizeof_uint8_t+set}" = set; then
  20455. echo $ECHO_N "(cached) $ECHO_C" >&6
  20456. else
  20457. if test "$cross_compiling" = yes; then
  20458. ac_cv_sizeof_uint8_t=0
  20459. else
  20460. cat >conftest.$ac_ext <<_ACEOF
  20461. /* confdefs.h. */
  20462. _ACEOF
  20463. cat confdefs.h >>conftest.$ac_ext
  20464. cat >>conftest.$ac_ext <<_ACEOF
  20465. /* end confdefs.h. */
  20466. #if HAVE_STDINT_H
  20467. #include <stdint.h>
  20468. #endif
  20469. #include <sys/types.h>
  20470. #ifdef STDC_HEADERS
  20471. #include <stdlib.h>
  20472. #endif
  20473. #include <stdio.h>
  20474. main()
  20475. {
  20476. FILE *f=fopen("conftestval", "w");
  20477. if (!f) exit(1);
  20478. fprintf(f, "%d\n", sizeof(uint8_t));
  20479. exit(0);
  20480. }
  20481. _ACEOF
  20482. rm -f conftest$ac_exeext
  20483. if { (ac_try="$ac_link"
  20484. case "(($ac_try" in
  20485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20486. *) ac_try_echo=$ac_try;;
  20487. esac
  20488. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20489. (eval "$ac_link") 2>&5
  20490. ac_status=$?
  20491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20492. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20493. { (case "(($ac_try" in
  20494. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20495. *) ac_try_echo=$ac_try;;
  20496. esac
  20497. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20498. (eval "$ac_try") 2>&5
  20499. ac_status=$?
  20500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20501. (exit $ac_status); }; }; then
  20502. ac_cv_sizeof_uint8_t=`cat conftestval`
  20503. else
  20504. echo "$as_me: program exited with status $ac_status" >&5
  20505. echo "$as_me: failed program was:" >&5
  20506. sed 's/^/| /' conftest.$ac_ext >&5
  20507. ( exit $ac_status )
  20508. ac_cv_sizeof_uint8_t=0
  20509. fi
  20510. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20511. fi
  20512. fi
  20513. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint8_t" >&5
  20514. echo "${ECHO_T}$ac_cv_sizeof_uint8_t" >&6; }
  20515. cat >>confdefs.h <<_ACEOF
  20516. #define SIZEOF_UINT8_T $ac_cv_sizeof_uint8_t
  20517. _ACEOF
  20518. { echo "$as_me:$LINENO: checking size of uint16_t" >&5
  20519. echo $ECHO_N "checking size of uint16_t... $ECHO_C" >&6; }
  20520. if test "${ac_cv_sizeof_uint16_t+set}" = set; then
  20521. echo $ECHO_N "(cached) $ECHO_C" >&6
  20522. else
  20523. if test "$cross_compiling" = yes; then
  20524. ac_cv_sizeof_uint16_t=0
  20525. else
  20526. cat >conftest.$ac_ext <<_ACEOF
  20527. /* confdefs.h. */
  20528. _ACEOF
  20529. cat confdefs.h >>conftest.$ac_ext
  20530. cat >>conftest.$ac_ext <<_ACEOF
  20531. /* end confdefs.h. */
  20532. #if HAVE_STDINT_H
  20533. #include <stdint.h>
  20534. #endif
  20535. #include <sys/types.h>
  20536. #ifdef STDC_HEADERS
  20537. #include <stdlib.h>
  20538. #endif
  20539. #include <stdio.h>
  20540. main()
  20541. {
  20542. FILE *f=fopen("conftestval", "w");
  20543. if (!f) exit(1);
  20544. fprintf(f, "%d\n", sizeof(uint16_t));
  20545. exit(0);
  20546. }
  20547. _ACEOF
  20548. rm -f conftest$ac_exeext
  20549. if { (ac_try="$ac_link"
  20550. case "(($ac_try" in
  20551. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20552. *) ac_try_echo=$ac_try;;
  20553. esac
  20554. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20555. (eval "$ac_link") 2>&5
  20556. ac_status=$?
  20557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20558. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20559. { (case "(($ac_try" in
  20560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20561. *) ac_try_echo=$ac_try;;
  20562. esac
  20563. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20564. (eval "$ac_try") 2>&5
  20565. ac_status=$?
  20566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20567. (exit $ac_status); }; }; then
  20568. ac_cv_sizeof_uint16_t=`cat conftestval`
  20569. else
  20570. echo "$as_me: program exited with status $ac_status" >&5
  20571. echo "$as_me: failed program was:" >&5
  20572. sed 's/^/| /' conftest.$ac_ext >&5
  20573. ( exit $ac_status )
  20574. ac_cv_sizeof_uint16_t=0
  20575. fi
  20576. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20577. fi
  20578. fi
  20579. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint16_t" >&5
  20580. echo "${ECHO_T}$ac_cv_sizeof_uint16_t" >&6; }
  20581. cat >>confdefs.h <<_ACEOF
  20582. #define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
  20583. _ACEOF
  20584. { echo "$as_me:$LINENO: checking size of uint32_t" >&5
  20585. echo $ECHO_N "checking size of uint32_t... $ECHO_C" >&6; }
  20586. if test "${ac_cv_sizeof_uint32_t+set}" = set; then
  20587. echo $ECHO_N "(cached) $ECHO_C" >&6
  20588. else
  20589. if test "$cross_compiling" = yes; then
  20590. ac_cv_sizeof_uint32_t=0
  20591. else
  20592. cat >conftest.$ac_ext <<_ACEOF
  20593. /* confdefs.h. */
  20594. _ACEOF
  20595. cat confdefs.h >>conftest.$ac_ext
  20596. cat >>conftest.$ac_ext <<_ACEOF
  20597. /* end confdefs.h. */
  20598. #if HAVE_STDINT_H
  20599. #include <stdint.h>
  20600. #endif
  20601. #include <sys/types.h>
  20602. #ifdef STDC_HEADERS
  20603. #include <stdlib.h>
  20604. #endif
  20605. #include <stdio.h>
  20606. main()
  20607. {
  20608. FILE *f=fopen("conftestval", "w");
  20609. if (!f) exit(1);
  20610. fprintf(f, "%d\n", sizeof(uint32_t));
  20611. exit(0);
  20612. }
  20613. _ACEOF
  20614. rm -f conftest$ac_exeext
  20615. if { (ac_try="$ac_link"
  20616. case "(($ac_try" in
  20617. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20618. *) ac_try_echo=$ac_try;;
  20619. esac
  20620. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20621. (eval "$ac_link") 2>&5
  20622. ac_status=$?
  20623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20624. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20625. { (case "(($ac_try" in
  20626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20627. *) ac_try_echo=$ac_try;;
  20628. esac
  20629. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20630. (eval "$ac_try") 2>&5
  20631. ac_status=$?
  20632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20633. (exit $ac_status); }; }; then
  20634. ac_cv_sizeof_uint32_t=`cat conftestval`
  20635. else
  20636. echo "$as_me: program exited with status $ac_status" >&5
  20637. echo "$as_me: failed program was:" >&5
  20638. sed 's/^/| /' conftest.$ac_ext >&5
  20639. ( exit $ac_status )
  20640. ac_cv_sizeof_uint32_t=0
  20641. fi
  20642. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20643. fi
  20644. fi
  20645. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint32_t" >&5
  20646. echo "${ECHO_T}$ac_cv_sizeof_uint32_t" >&6; }
  20647. cat >>confdefs.h <<_ACEOF
  20648. #define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
  20649. _ACEOF
  20650. { echo "$as_me:$LINENO: checking size of int64_t" >&5
  20651. echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6; }
  20652. if test "${ac_cv_sizeof_int64_t+set}" = set; then
  20653. echo $ECHO_N "(cached) $ECHO_C" >&6
  20654. else
  20655. if test "$cross_compiling" = yes; then
  20656. ac_cv_sizeof_int64_t=0
  20657. else
  20658. cat >conftest.$ac_ext <<_ACEOF
  20659. /* confdefs.h. */
  20660. _ACEOF
  20661. cat confdefs.h >>conftest.$ac_ext
  20662. cat >>conftest.$ac_ext <<_ACEOF
  20663. /* end confdefs.h. */
  20664. #if HAVE_STDINT_H
  20665. #include <stdint.h>
  20666. #endif
  20667. #include <sys/types.h>
  20668. #ifdef STDC_HEADERS
  20669. #include <stdlib.h>
  20670. #endif
  20671. #include <stdio.h>
  20672. main()
  20673. {
  20674. FILE *f=fopen("conftestval", "w");
  20675. if (!f) exit(1);
  20676. fprintf(f, "%d\n", sizeof(int64_t));
  20677. exit(0);
  20678. }
  20679. _ACEOF
  20680. rm -f conftest$ac_exeext
  20681. if { (ac_try="$ac_link"
  20682. case "(($ac_try" in
  20683. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20684. *) ac_try_echo=$ac_try;;
  20685. esac
  20686. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20687. (eval "$ac_link") 2>&5
  20688. ac_status=$?
  20689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20690. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20691. { (case "(($ac_try" in
  20692. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20693. *) ac_try_echo=$ac_try;;
  20694. esac
  20695. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20696. (eval "$ac_try") 2>&5
  20697. ac_status=$?
  20698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20699. (exit $ac_status); }; }; then
  20700. ac_cv_sizeof_int64_t=`cat conftestval`
  20701. else
  20702. echo "$as_me: program exited with status $ac_status" >&5
  20703. echo "$as_me: failed program was:" >&5
  20704. sed 's/^/| /' conftest.$ac_ext >&5
  20705. ( exit $ac_status )
  20706. ac_cv_sizeof_int64_t=0
  20707. fi
  20708. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20709. fi
  20710. fi
  20711. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
  20712. echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6; }
  20713. cat >>confdefs.h <<_ACEOF
  20714. #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
  20715. _ACEOF
  20716. { echo "$as_me:$LINENO: checking size of uint64_t" >&5
  20717. echo $ECHO_N "checking size of uint64_t... $ECHO_C" >&6; }
  20718. if test "${ac_cv_sizeof_uint64_t+set}" = set; then
  20719. echo $ECHO_N "(cached) $ECHO_C" >&6
  20720. else
  20721. if test "$cross_compiling" = yes; then
  20722. ac_cv_sizeof_uint64_t=0
  20723. else
  20724. cat >conftest.$ac_ext <<_ACEOF
  20725. /* confdefs.h. */
  20726. _ACEOF
  20727. cat confdefs.h >>conftest.$ac_ext
  20728. cat >>conftest.$ac_ext <<_ACEOF
  20729. /* end confdefs.h. */
  20730. #if HAVE_STDINT_H
  20731. #include <stdint.h>
  20732. #endif
  20733. #include <sys/types.h>
  20734. #ifdef STDC_HEADERS
  20735. #include <stdlib.h>
  20736. #endif
  20737. #include <stdio.h>
  20738. main()
  20739. {
  20740. FILE *f=fopen("conftestval", "w");
  20741. if (!f) exit(1);
  20742. fprintf(f, "%d\n", sizeof(uint64_t));
  20743. exit(0);
  20744. }
  20745. _ACEOF
  20746. rm -f conftest$ac_exeext
  20747. if { (ac_try="$ac_link"
  20748. case "(($ac_try" in
  20749. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20750. *) ac_try_echo=$ac_try;;
  20751. esac
  20752. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20753. (eval "$ac_link") 2>&5
  20754. ac_status=$?
  20755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20756. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20757. { (case "(($ac_try" in
  20758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20759. *) ac_try_echo=$ac_try;;
  20760. esac
  20761. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20762. (eval "$ac_try") 2>&5
  20763. ac_status=$?
  20764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20765. (exit $ac_status); }; }; then
  20766. ac_cv_sizeof_uint64_t=`cat conftestval`
  20767. else
  20768. echo "$as_me: program exited with status $ac_status" >&5
  20769. echo "$as_me: failed program was:" >&5
  20770. sed 's/^/| /' conftest.$ac_ext >&5
  20771. ( exit $ac_status )
  20772. ac_cv_sizeof_uint64_t=0
  20773. fi
  20774. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20775. fi
  20776. fi
  20777. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint64_t" >&5
  20778. echo "${ECHO_T}$ac_cv_sizeof_uint64_t" >&6; }
  20779. cat >>confdefs.h <<_ACEOF
  20780. #define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t
  20781. _ACEOF
  20782. for ac_func in mmap strerror strndup strtoul mbrtowc mkstemp getopt_long utimes utime wcwidth snprintf vsnprintf strtof
  20783. do
  20784. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20785. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  20786. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  20787. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20788. echo $ECHO_N "(cached) $ECHO_C" >&6
  20789. else
  20790. cat >conftest.$ac_ext <<_ACEOF
  20791. /* confdefs.h. */
  20792. _ACEOF
  20793. cat confdefs.h >>conftest.$ac_ext
  20794. cat >>conftest.$ac_ext <<_ACEOF
  20795. /* end confdefs.h. */
  20796. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20797. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20798. #define $ac_func innocuous_$ac_func
  20799. /* System header to define __stub macros and hopefully few prototypes,
  20800. which can conflict with char $ac_func (); below.
  20801. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20802. <limits.h> exists even on freestanding compilers. */
  20803. #ifdef __STDC__
  20804. # include <limits.h>
  20805. #else
  20806. # include <assert.h>
  20807. #endif
  20808. #undef $ac_func
  20809. /* Override any GCC internal prototype to avoid an error.
  20810. Use char because int might match the return type of a GCC
  20811. builtin and then its argument prototype would still apply. */
  20812. #ifdef __cplusplus
  20813. extern "C"
  20814. #endif
  20815. char $ac_func ();
  20816. /* The GNU C library defines this for functions which it implements
  20817. to always fail with ENOSYS. Some functions are actually named
  20818. something starting with __ and the normal name is an alias. */
  20819. #if defined __stub_$ac_func || defined __stub___$ac_func
  20820. choke me
  20821. #endif
  20822. int
  20823. main ()
  20824. {
  20825. return $ac_func ();
  20826. ;
  20827. return 0;
  20828. }
  20829. _ACEOF
  20830. rm -f conftest.$ac_objext conftest$ac_exeext
  20831. if { (ac_try="$ac_link"
  20832. case "(($ac_try" in
  20833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20834. *) ac_try_echo=$ac_try;;
  20835. esac
  20836. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20837. (eval "$ac_link") 2>conftest.er1
  20838. ac_status=$?
  20839. grep -v '^ *+' conftest.er1 >conftest.err
  20840. rm -f conftest.er1
  20841. cat conftest.err >&5
  20842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20843. (exit $ac_status); } && {
  20844. test -z "$ac_c_werror_flag" ||
  20845. test ! -s conftest.err
  20846. } && test -s conftest$ac_exeext &&
  20847. $as_test_x conftest$ac_exeext; then
  20848. eval "$as_ac_var=yes"
  20849. else
  20850. echo "$as_me: failed program was:" >&5
  20851. sed 's/^/| /' conftest.$ac_ext >&5
  20852. eval "$as_ac_var=no"
  20853. fi
  20854. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20855. conftest$ac_exeext conftest.$ac_ext
  20856. fi
  20857. ac_res=`eval echo '${'$as_ac_var'}'`
  20858. { echo "$as_me:$LINENO: result: $ac_res" >&5
  20859. echo "${ECHO_T}$ac_res" >&6; }
  20860. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20861. cat >>confdefs.h <<_ACEOF
  20862. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20863. _ACEOF
  20864. fi
  20865. done
  20866. { echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
  20867. echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
  20868. if test "${ac_cv_lib_z_gzopen+set}" = set; then
  20869. echo $ECHO_N "(cached) $ECHO_C" >&6
  20870. else
  20871. ac_check_lib_save_LIBS=$LIBS
  20872. LIBS="-lz $LIBS"
  20873. cat >conftest.$ac_ext <<_ACEOF
  20874. /* confdefs.h. */
  20875. _ACEOF
  20876. cat confdefs.h >>conftest.$ac_ext
  20877. cat >>conftest.$ac_ext <<_ACEOF
  20878. /* end confdefs.h. */
  20879. /* Override any GCC internal prototype to avoid an error.
  20880. Use char because int might match the return type of a GCC
  20881. builtin and then its argument prototype would still apply. */
  20882. #ifdef __cplusplus
  20883. extern "C"
  20884. #endif
  20885. char gzopen ();
  20886. int
  20887. main ()
  20888. {
  20889. return gzopen ();
  20890. ;
  20891. return 0;
  20892. }
  20893. _ACEOF
  20894. rm -f conftest.$ac_objext conftest$ac_exeext
  20895. if { (ac_try="$ac_link"
  20896. case "(($ac_try" in
  20897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20898. *) ac_try_echo=$ac_try;;
  20899. esac
  20900. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20901. (eval "$ac_link") 2>conftest.er1
  20902. ac_status=$?
  20903. grep -v '^ *+' conftest.er1 >conftest.err
  20904. rm -f conftest.er1
  20905. cat conftest.err >&5
  20906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20907. (exit $ac_status); } && {
  20908. test -z "$ac_c_werror_flag" ||
  20909. test ! -s conftest.err
  20910. } && test -s conftest$ac_exeext &&
  20911. $as_test_x conftest$ac_exeext; then
  20912. ac_cv_lib_z_gzopen=yes
  20913. else
  20914. echo "$as_me: failed program was:" >&5
  20915. sed 's/^/| /' conftest.$ac_ext >&5
  20916. ac_cv_lib_z_gzopen=no
  20917. fi
  20918. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20919. conftest$ac_exeext conftest.$ac_ext
  20920. LIBS=$ac_check_lib_save_LIBS
  20921. fi
  20922. { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
  20923. echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
  20924. if test $ac_cv_lib_z_gzopen = yes; then
  20925. cat >>confdefs.h <<_ACEOF
  20926. #define HAVE_LIBZ 1
  20927. _ACEOF
  20928. LIBS="-lz $LIBS"
  20929. fi
  20930. if test "$cross_compiling" = yes; then
  20931. IS_CROSS_COMPILE_TRUE=
  20932. IS_CROSS_COMPILE_FALSE='#'
  20933. else
  20934. IS_CROSS_COMPILE_TRUE='#'
  20935. IS_CROSS_COMPILE_FALSE=
  20936. fi
  20937. ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile doc/Makefile python/Makefile"
  20938. cat >confcache <<\_ACEOF
  20939. # This file is a shell script that caches the results of configure
  20940. # tests run on this system so they can be shared between configure
  20941. # scripts and configure runs, see configure's option --config-cache.
  20942. # It is not useful on other systems. If it contains results you don't
  20943. # want to keep, you may remove or edit it.
  20944. #
  20945. # config.status only pays attention to the cache file if you give it
  20946. # the --recheck option to rerun configure.
  20947. #
  20948. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20949. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20950. # following values.
  20951. _ACEOF
  20952. # The following way of writing the cache mishandles newlines in values,
  20953. # but we know of no workaround that is simple, portable, and efficient.
  20954. # So, we kill variables containing newlines.
  20955. # Ultrix sh set writes to stderr and can't be redirected directly,
  20956. # and sets the high bit in the cache file unless we assign to the vars.
  20957. (
  20958. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  20959. eval ac_val=\$$ac_var
  20960. case $ac_val in #(
  20961. *${as_nl}*)
  20962. case $ac_var in #(
  20963. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  20964. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  20965. esac
  20966. case $ac_var in #(
  20967. _ | IFS | as_nl) ;; #(
  20968. *) $as_unset $ac_var ;;
  20969. esac ;;
  20970. esac
  20971. done
  20972. (set) 2>&1 |
  20973. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  20974. *${as_nl}ac_space=\ *)
  20975. # `set' does not quote correctly, so add quotes (double-quote
  20976. # substitution turns \\\\ into \\, and sed turns \\ into \).
  20977. sed -n \
  20978. "s/'/'\\\\''/g;
  20979. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20980. ;; #(
  20981. *)
  20982. # `set' quotes correctly as required by POSIX, so do not add quotes.
  20983. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  20984. ;;
  20985. esac |
  20986. sort
  20987. ) |
  20988. sed '
  20989. /^ac_cv_env_/b end
  20990. t clear
  20991. :clear
  20992. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20993. t end
  20994. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20995. :end' >>confcache
  20996. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  20997. if test -w "$cache_file"; then
  20998. test "x$cache_file" != "x/dev/null" &&
  20999. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  21000. echo "$as_me: updating cache $cache_file" >&6;}
  21001. cat confcache >$cache_file
  21002. else
  21003. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  21004. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21005. fi
  21006. fi
  21007. rm -f confcache
  21008. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21009. # Let make expand exec_prefix.
  21010. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21011. DEFS=-DHAVE_CONFIG_H
  21012. ac_libobjs=
  21013. ac_ltlibobjs=
  21014. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21015. # 1. Remove the extension, and $U if already installed.
  21016. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21017. ac_i=`echo "$ac_i" | sed "$ac_script"`
  21018. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21019. # will be set to the directory where LIBOBJS objects are built.
  21020. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21021. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  21022. done
  21023. LIBOBJS=$ac_libobjs
  21024. LTLIBOBJS=$ac_ltlibobjs
  21025. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  21026. { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  21027. Usually this means the macro was only invoked conditionally." >&5
  21028. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  21029. Usually this means the macro was only invoked conditionally." >&2;}
  21030. { (exit 1); exit 1; }; }
  21031. fi
  21032. if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
  21033. { { echo "$as_me:$LINENO: error: conditional \"FSECT5\" was never defined.
  21034. Usually this means the macro was only invoked conditionally." >&5
  21035. echo "$as_me: error: conditional \"FSECT5\" was never defined.
  21036. Usually this means the macro was only invoked conditionally." >&2;}
  21037. { (exit 1); exit 1; }; }
  21038. fi
  21039. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  21040. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  21041. Usually this means the macro was only invoked conditionally." >&5
  21042. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  21043. Usually this means the macro was only invoked conditionally." >&2;}
  21044. { (exit 1); exit 1; }; }
  21045. fi
  21046. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  21047. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  21048. Usually this means the macro was only invoked conditionally." >&5
  21049. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  21050. Usually this means the macro was only invoked conditionally." >&2;}
  21051. { (exit 1); exit 1; }; }
  21052. fi
  21053. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  21054. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  21055. Usually this means the macro was only invoked conditionally." >&5
  21056. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  21057. Usually this means the macro was only invoked conditionally." >&2;}
  21058. { (exit 1); exit 1; }; }
  21059. fi
  21060. if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
  21061. { { echo "$as_me:$LINENO: error: conditional \"IS_CROSS_COMPILE\" was never defined.
  21062. Usually this means the macro was only invoked conditionally." >&5
  21063. echo "$as_me: error: conditional \"IS_CROSS_COMPILE\" was never defined.
  21064. Usually this means the macro was only invoked conditionally." >&2;}
  21065. { (exit 1); exit 1; }; }
  21066. fi
  21067. : ${CONFIG_STATUS=./config.status}
  21068. ac_clean_files_save=$ac_clean_files
  21069. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21070. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  21071. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21072. cat >$CONFIG_STATUS <<_ACEOF
  21073. #! $SHELL
  21074. # Generated by $as_me.
  21075. # Run this file to recreate the current configuration.
  21076. # Compiler output produced by configure, useful for debugging
  21077. # configure, is in config.log if it exists.
  21078. debug=false
  21079. ac_cs_recheck=false
  21080. ac_cs_silent=false
  21081. SHELL=\${CONFIG_SHELL-$SHELL}
  21082. _ACEOF
  21083. cat >>$CONFIG_STATUS <<\_ACEOF
  21084. ## --------------------- ##
  21085. ## M4sh Initialization. ##
  21086. ## --------------------- ##
  21087. # Be more Bourne compatible
  21088. DUALCASE=1; export DUALCASE # for MKS sh
  21089. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  21090. emulate sh
  21091. NULLCMD=:
  21092. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  21093. # is contrary to our usage. Disable this feature.
  21094. alias -g '${1+"$@"}'='"$@"'
  21095. setopt NO_GLOB_SUBST
  21096. else
  21097. case `(set -o) 2>/dev/null` in
  21098. *posix*) set -o posix ;;
  21099. esac
  21100. fi
  21101. # PATH needs CR
  21102. # Avoid depending upon Character Ranges.
  21103. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21104. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21105. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21106. as_cr_digits='0123456789'
  21107. as_cr_alnum=$as_cr_Letters$as_cr_digits
  21108. # The user is always right.
  21109. if test "${PATH_SEPARATOR+set}" != set; then
  21110. echo "#! /bin/sh" >conf$$.sh
  21111. echo "exit 0" >>conf$$.sh
  21112. chmod +x conf$$.sh
  21113. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  21114. PATH_SEPARATOR=';'
  21115. else
  21116. PATH_SEPARATOR=:
  21117. fi
  21118. rm -f conf$$.sh
  21119. fi
  21120. # Support unset when possible.
  21121. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  21122. as_unset=unset
  21123. else
  21124. as_unset=false
  21125. fi
  21126. # IFS
  21127. # We need space, tab and new line, in precisely that order. Quoting is
  21128. # there to prevent editors from complaining about space-tab.
  21129. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21130. # splitting by setting IFS to empty value.)
  21131. as_nl='
  21132. '
  21133. IFS=" "" $as_nl"
  21134. # Find who we are. Look in the path if we contain no directory separator.
  21135. case $0 in
  21136. *[\\/]* ) as_myself=$0 ;;
  21137. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21138. for as_dir in $PATH
  21139. do
  21140. IFS=$as_save_IFS
  21141. test -z "$as_dir" && as_dir=.
  21142. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21143. done
  21144. IFS=$as_save_IFS
  21145. ;;
  21146. esac
  21147. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21148. # in which case we are not to be found in the path.
  21149. if test "x$as_myself" = x; then
  21150. as_myself=$0
  21151. fi
  21152. if test ! -f "$as_myself"; then
  21153. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21154. { (exit 1); exit 1; }
  21155. fi
  21156. # Work around bugs in pre-3.0 UWIN ksh.
  21157. for as_var in ENV MAIL MAILPATH
  21158. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  21159. done
  21160. PS1='$ '
  21161. PS2='> '
  21162. PS4='+ '
  21163. # NLS nuisances.
  21164. for as_var in \
  21165. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  21166. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  21167. LC_TELEPHONE LC_TIME
  21168. do
  21169. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  21170. eval $as_var=C; export $as_var
  21171. else
  21172. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  21173. fi
  21174. done
  21175. # Required to use basename.
  21176. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21177. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21178. as_expr=expr
  21179. else
  21180. as_expr=false
  21181. fi
  21182. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21183. as_basename=basename
  21184. else
  21185. as_basename=false
  21186. fi
  21187. # Name of the executable.
  21188. as_me=`$as_basename -- "$0" ||
  21189. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21190. X"$0" : 'X\(//\)$' \| \
  21191. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21192. echo X/"$0" |
  21193. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21194. s//\1/
  21195. q
  21196. }
  21197. /^X\/\(\/\/\)$/{
  21198. s//\1/
  21199. q
  21200. }
  21201. /^X\/\(\/\).*/{
  21202. s//\1/
  21203. q
  21204. }
  21205. s/.*/./; q'`
  21206. # CDPATH.
  21207. $as_unset CDPATH
  21208. as_lineno_1=$LINENO
  21209. as_lineno_2=$LINENO
  21210. test "x$as_lineno_1" != "x$as_lineno_2" &&
  21211. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  21212. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  21213. # uniformly replaced by the line number. The first 'sed' inserts a
  21214. # line-number line after each line using $LINENO; the second 'sed'
  21215. # does the real work. The second script uses 'N' to pair each
  21216. # line-number line with the line containing $LINENO, and appends
  21217. # trailing '-' during substitution so that $LINENO is not a special
  21218. # case at line end.
  21219. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  21220. # scripts with optimization help from Paolo Bonzini. Blame Lee
  21221. # E. McMahon (1931-1989) for sed's syntax. :-)
  21222. sed -n '
  21223. p
  21224. /[$]LINENO/=
  21225. ' <$as_myself |
  21226. sed '
  21227. s/[$]LINENO.*/&-/
  21228. t lineno
  21229. b
  21230. :lineno
  21231. N
  21232. :loop
  21233. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  21234. t loop
  21235. s/-\n.*//
  21236. ' >$as_me.lineno &&
  21237. chmod +x "$as_me.lineno" ||
  21238. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  21239. { (exit 1); exit 1; }; }
  21240. # Don't try to exec as it changes $[0], causing all sort of problems
  21241. # (the dirname of $[0] is not the place where we might find the
  21242. # original and so on. Autoconf is especially sensitive to this).
  21243. . "./$as_me.lineno"
  21244. # Exit status is that of the last command.
  21245. exit
  21246. }
  21247. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21248. as_dirname=dirname
  21249. else
  21250. as_dirname=false
  21251. fi
  21252. ECHO_C= ECHO_N= ECHO_T=
  21253. case `echo -n x` in
  21254. -n*)
  21255. case `echo 'x\c'` in
  21256. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21257. *) ECHO_C='\c';;
  21258. esac;;
  21259. *)
  21260. ECHO_N='-n';;
  21261. esac
  21262. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21263. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21264. as_expr=expr
  21265. else
  21266. as_expr=false
  21267. fi
  21268. rm -f conf$$ conf$$.exe conf$$.file
  21269. if test -d conf$$.dir; then
  21270. rm -f conf$$.dir/conf$$.file
  21271. else
  21272. rm -f conf$$.dir
  21273. mkdir conf$$.dir
  21274. fi
  21275. echo >conf$$.file
  21276. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21277. as_ln_s='ln -s'
  21278. # ... but there are two gotchas:
  21279. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21280. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21281. # In both cases, we have to default to `cp -p'.
  21282. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21283. as_ln_s='cp -p'
  21284. elif ln conf$$.file conf$$ 2>/dev/null; then
  21285. as_ln_s=ln
  21286. else
  21287. as_ln_s='cp -p'
  21288. fi
  21289. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21290. rmdir conf$$.dir 2>/dev/null
  21291. if mkdir -p . 2>/dev/null; then
  21292. as_mkdir_p=:
  21293. else
  21294. test -d ./-p && rmdir ./-p
  21295. as_mkdir_p=false
  21296. fi
  21297. if test -x / >/dev/null 2>&1; then
  21298. as_test_x='test -x'
  21299. else
  21300. if ls -dL / >/dev/null 2>&1; then
  21301. as_ls_L_option=L
  21302. else
  21303. as_ls_L_option=
  21304. fi
  21305. as_test_x='
  21306. eval sh -c '\''
  21307. if test -d "$1"; then
  21308. test -d "$1/.";
  21309. else
  21310. case $1 in
  21311. -*)set "./$1";;
  21312. esac;
  21313. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  21314. ???[sx]*):;;*)false;;esac;fi
  21315. '\'' sh
  21316. '
  21317. fi
  21318. as_executable_p=$as_test_x
  21319. # Sed expression to map a string onto a valid CPP name.
  21320. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21321. # Sed expression to map a string onto a valid variable name.
  21322. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21323. exec 6>&1
  21324. # Save the log message, to keep $[0] and so on meaningful, and to
  21325. # report actual input values of CONFIG_FILES etc. instead of their
  21326. # values after options handling.
  21327. ac_log="
  21328. This file was extended by $as_me, which was
  21329. generated by GNU Autoconf 2.61. Invocation command line was
  21330. CONFIG_FILES = $CONFIG_FILES
  21331. CONFIG_HEADERS = $CONFIG_HEADERS
  21332. CONFIG_LINKS = $CONFIG_LINKS
  21333. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21334. $ $0 $@
  21335. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21336. "
  21337. _ACEOF
  21338. cat >>$CONFIG_STATUS <<_ACEOF
  21339. # Files that config.status was made for.
  21340. config_files="$ac_config_files"
  21341. config_headers="$ac_config_headers"
  21342. config_commands="$ac_config_commands"
  21343. _ACEOF
  21344. cat >>$CONFIG_STATUS <<\_ACEOF
  21345. ac_cs_usage="\
  21346. \`$as_me' instantiates files from templates according to the
  21347. current configuration.
  21348. Usage: $0 [OPTIONS] [FILE]...
  21349. -h, --help print this help, then exit
  21350. -V, --version print version number and configuration settings, then exit
  21351. -q, --quiet do not print progress messages
  21352. -d, --debug don't remove temporary files
  21353. --recheck update $as_me by reconfiguring in the same conditions
  21354. --file=FILE[:TEMPLATE]
  21355. instantiate the configuration file FILE
  21356. --header=FILE[:TEMPLATE]
  21357. instantiate the configuration header FILE
  21358. Configuration files:
  21359. $config_files
  21360. Configuration headers:
  21361. $config_headers
  21362. Configuration commands:
  21363. $config_commands
  21364. Report bugs to <bug-autoconf@gnu.org>."
  21365. _ACEOF
  21366. cat >>$CONFIG_STATUS <<_ACEOF
  21367. ac_cs_version="\\
  21368. config.status
  21369. configured by $0, generated by GNU Autoconf 2.61,
  21370. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  21371. Copyright (C) 2006 Free Software Foundation, Inc.
  21372. This config.status script is free software; the Free Software Foundation
  21373. gives unlimited permission to copy, distribute and modify it."
  21374. ac_pwd='$ac_pwd'
  21375. srcdir='$srcdir'
  21376. INSTALL='$INSTALL'
  21377. MKDIR_P='$MKDIR_P'
  21378. _ACEOF
  21379. cat >>$CONFIG_STATUS <<\_ACEOF
  21380. # If no file are specified by the user, then we need to provide default
  21381. # value. By we need to know if files were specified by the user.
  21382. ac_need_defaults=:
  21383. while test $# != 0
  21384. do
  21385. case $1 in
  21386. --*=*)
  21387. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21388. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21389. ac_shift=:
  21390. ;;
  21391. *)
  21392. ac_option=$1
  21393. ac_optarg=$2
  21394. ac_shift=shift
  21395. ;;
  21396. esac
  21397. case $ac_option in
  21398. # Handling of the options.
  21399. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21400. ac_cs_recheck=: ;;
  21401. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21402. echo "$ac_cs_version"; exit ;;
  21403. --debug | --debu | --deb | --de | --d | -d )
  21404. debug=: ;;
  21405. --file | --fil | --fi | --f )
  21406. $ac_shift
  21407. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  21408. ac_need_defaults=false;;
  21409. --header | --heade | --head | --hea )
  21410. $ac_shift
  21411. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  21412. ac_need_defaults=false;;
  21413. --he | --h)
  21414. # Conflict between --help and --header
  21415. { echo "$as_me: error: ambiguous option: $1
  21416. Try \`$0 --help' for more information." >&2
  21417. { (exit 1); exit 1; }; };;
  21418. --help | --hel | -h )
  21419. echo "$ac_cs_usage"; exit ;;
  21420. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21421. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21422. ac_cs_silent=: ;;
  21423. # This is an error.
  21424. -*) { echo "$as_me: error: unrecognized option: $1
  21425. Try \`$0 --help' for more information." >&2
  21426. { (exit 1); exit 1; }; } ;;
  21427. *) ac_config_targets="$ac_config_targets $1"
  21428. ac_need_defaults=false ;;
  21429. esac
  21430. shift
  21431. done
  21432. ac_configure_extra_args=
  21433. if $ac_cs_silent; then
  21434. exec 6>/dev/null
  21435. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21436. fi
  21437. _ACEOF
  21438. cat >>$CONFIG_STATUS <<_ACEOF
  21439. if \$ac_cs_recheck; then
  21440. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  21441. CONFIG_SHELL=$SHELL
  21442. export CONFIG_SHELL
  21443. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21444. fi
  21445. _ACEOF
  21446. cat >>$CONFIG_STATUS <<\_ACEOF
  21447. exec 5>>config.log
  21448. {
  21449. echo
  21450. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21451. ## Running $as_me. ##
  21452. _ASBOX
  21453. echo "$ac_log"
  21454. } >&5
  21455. _ACEOF
  21456. cat >>$CONFIG_STATUS <<_ACEOF
  21457. #
  21458. # INIT-COMMANDS
  21459. #
  21460. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  21461. _ACEOF
  21462. cat >>$CONFIG_STATUS <<\_ACEOF
  21463. # Handling of arguments.
  21464. for ac_config_target in $ac_config_targets
  21465. do
  21466. case $ac_config_target in
  21467. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  21468. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  21469. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  21470. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  21471. "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
  21472. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  21473. "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
  21474. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  21475. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  21476. { (exit 1); exit 1; }; };;
  21477. esac
  21478. done
  21479. # If the user did not use the arguments to specify the items to instantiate,
  21480. # then the envvar interface is used. Set only those that are not.
  21481. # We use the long form for the default assignment because of an extremely
  21482. # bizarre bug on SunOS 4.1.3.
  21483. if $ac_need_defaults; then
  21484. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  21485. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  21486. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  21487. fi
  21488. # Have a temporary directory for convenience. Make it in the build tree
  21489. # simply because there is no reason against having it here, and in addition,
  21490. # creating and moving files from /tmp can sometimes cause problems.
  21491. # Hook for its removal unless debugging.
  21492. # Note that there is a small window in which the directory will not be cleaned:
  21493. # after its creation but before its name has been assigned to `$tmp'.
  21494. $debug ||
  21495. {
  21496. tmp=
  21497. trap 'exit_status=$?
  21498. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  21499. ' 0
  21500. trap '{ (exit 1); exit 1; }' 1 2 13 15
  21501. }
  21502. # Create a (secure) tmp directory for tmp files.
  21503. {
  21504. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  21505. test -n "$tmp" && test -d "$tmp"
  21506. } ||
  21507. {
  21508. tmp=./conf$$-$RANDOM
  21509. (umask 077 && mkdir "$tmp")
  21510. } ||
  21511. {
  21512. echo "$me: cannot create a temporary directory in ." >&2
  21513. { (exit 1); exit 1; }
  21514. }
  21515. #
  21516. # Set up the sed scripts for CONFIG_FILES section.
  21517. #
  21518. # No need to generate the scripts if there are no CONFIG_FILES.
  21519. # This happens for instance when ./config.status config.h
  21520. if test -n "$CONFIG_FILES"; then
  21521. _ACEOF
  21522. ac_delim='%!_!# '
  21523. for ac_last_try in false false false false false :; do
  21524. cat >conf$$subs.sed <<_ACEOF
  21525. SHELL!$SHELL$ac_delim
  21526. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  21527. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  21528. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  21529. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  21530. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  21531. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  21532. exec_prefix!$exec_prefix$ac_delim
  21533. prefix!$prefix$ac_delim
  21534. program_transform_name!$program_transform_name$ac_delim
  21535. bindir!$bindir$ac_delim
  21536. sbindir!$sbindir$ac_delim
  21537. libexecdir!$libexecdir$ac_delim
  21538. datarootdir!$datarootdir$ac_delim
  21539. datadir!$datadir$ac_delim
  21540. sysconfdir!$sysconfdir$ac_delim
  21541. sharedstatedir!$sharedstatedir$ac_delim
  21542. localstatedir!$localstatedir$ac_delim
  21543. includedir!$includedir$ac_delim
  21544. oldincludedir!$oldincludedir$ac_delim
  21545. docdir!$docdir$ac_delim
  21546. infodir!$infodir$ac_delim
  21547. htmldir!$htmldir$ac_delim
  21548. dvidir!$dvidir$ac_delim
  21549. pdfdir!$pdfdir$ac_delim
  21550. psdir!$psdir$ac_delim
  21551. libdir!$libdir$ac_delim
  21552. localedir!$localedir$ac_delim
  21553. mandir!$mandir$ac_delim
  21554. DEFS!$DEFS$ac_delim
  21555. ECHO_C!$ECHO_C$ac_delim
  21556. ECHO_N!$ECHO_N$ac_delim
  21557. ECHO_T!$ECHO_T$ac_delim
  21558. LIBS!$LIBS$ac_delim
  21559. build_alias!$build_alias$ac_delim
  21560. host_alias!$host_alias$ac_delim
  21561. target_alias!$target_alias$ac_delim
  21562. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  21563. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  21564. INSTALL_DATA!$INSTALL_DATA$ac_delim
  21565. am__isrc!$am__isrc$ac_delim
  21566. CYGPATH_W!$CYGPATH_W$ac_delim
  21567. PACKAGE!$PACKAGE$ac_delim
  21568. VERSION!$VERSION$ac_delim
  21569. ACLOCAL!$ACLOCAL$ac_delim
  21570. AUTOCONF!$AUTOCONF$ac_delim
  21571. AUTOMAKE!$AUTOMAKE$ac_delim
  21572. AUTOHEADER!$AUTOHEADER$ac_delim
  21573. MAKEINFO!$MAKEINFO$ac_delim
  21574. install_sh!$install_sh$ac_delim
  21575. STRIP!$STRIP$ac_delim
  21576. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  21577. mkdir_p!$mkdir_p$ac_delim
  21578. AWK!$AWK$ac_delim
  21579. SET_MAKE!$SET_MAKE$ac_delim
  21580. am__leading_dot!$am__leading_dot$ac_delim
  21581. AMTAR!$AMTAR$ac_delim
  21582. am__tar!$am__tar$ac_delim
  21583. am__untar!$am__untar$ac_delim
  21584. MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
  21585. MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
  21586. MAINT!$MAINT$ac_delim
  21587. fsect!$fsect$ac_delim
  21588. FSECT5_TRUE!$FSECT5_TRUE$ac_delim
  21589. FSECT5_FALSE!$FSECT5_FALSE$ac_delim
  21590. CC!$CC$ac_delim
  21591. CFLAGS!$CFLAGS$ac_delim
  21592. LDFLAGS!$LDFLAGS$ac_delim
  21593. CPPFLAGS!$CPPFLAGS$ac_delim
  21594. ac_ct_CC!$ac_ct_CC$ac_delim
  21595. EXEEXT!$EXEEXT$ac_delim
  21596. OBJEXT!$OBJEXT$ac_delim
  21597. DEPDIR!$DEPDIR$ac_delim
  21598. am__include!$am__include$ac_delim
  21599. am__quote!$am__quote$ac_delim
  21600. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  21601. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  21602. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  21603. CCDEPMODE!$CCDEPMODE$ac_delim
  21604. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  21605. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  21606. LN_S!$LN_S$ac_delim
  21607. build!$build$ac_delim
  21608. build_cpu!$build_cpu$ac_delim
  21609. build_vendor!$build_vendor$ac_delim
  21610. build_os!$build_os$ac_delim
  21611. host!$host$ac_delim
  21612. host_cpu!$host_cpu$ac_delim
  21613. host_vendor!$host_vendor$ac_delim
  21614. host_os!$host_os$ac_delim
  21615. GREP!$GREP$ac_delim
  21616. EGREP!$EGREP$ac_delim
  21617. ECHO!$ECHO$ac_delim
  21618. AR!$AR$ac_delim
  21619. RANLIB!$RANLIB$ac_delim
  21620. CPP!$CPP$ac_delim
  21621. CXX!$CXX$ac_delim
  21622. _ACEOF
  21623. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  21624. break
  21625. elif $ac_last_try; then
  21626. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21627. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21628. { (exit 1); exit 1; }; }
  21629. else
  21630. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21631. fi
  21632. done
  21633. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  21634. if test -n "$ac_eof"; then
  21635. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  21636. ac_eof=`expr $ac_eof + 1`
  21637. fi
  21638. cat >>$CONFIG_STATUS <<_ACEOF
  21639. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  21640. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21641. _ACEOF
  21642. sed '
  21643. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  21644. s/^/s,@/; s/!/@,|#_!!_#|/
  21645. :n
  21646. t n
  21647. s/'"$ac_delim"'$/,g/; t
  21648. s/$/\\/; p
  21649. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  21650. ' >>$CONFIG_STATUS <conf$$subs.sed
  21651. rm -f conf$$subs.sed
  21652. cat >>$CONFIG_STATUS <<_ACEOF
  21653. CEOF$ac_eof
  21654. _ACEOF
  21655. ac_delim='%!_!# '
  21656. for ac_last_try in false false false false false :; do
  21657. cat >conf$$subs.sed <<_ACEOF
  21658. CXXFLAGS!$CXXFLAGS$ac_delim
  21659. ac_ct_CXX!$ac_ct_CXX$ac_delim
  21660. CXXDEPMODE!$CXXDEPMODE$ac_delim
  21661. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  21662. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  21663. CXXCPP!$CXXCPP$ac_delim
  21664. F77!$F77$ac_delim
  21665. FFLAGS!$FFLAGS$ac_delim
  21666. ac_ct_F77!$ac_ct_F77$ac_delim
  21667. LIBTOOL!$LIBTOOL$ac_delim
  21668. IS_CROSS_COMPILE_TRUE!$IS_CROSS_COMPILE_TRUE$ac_delim
  21669. IS_CROSS_COMPILE_FALSE!$IS_CROSS_COMPILE_FALSE$ac_delim
  21670. LIBOBJS!$LIBOBJS$ac_delim
  21671. LTLIBOBJS!$LTLIBOBJS$ac_delim
  21672. _ACEOF
  21673. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
  21674. break
  21675. elif $ac_last_try; then
  21676. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21677. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21678. { (exit 1); exit 1; }; }
  21679. else
  21680. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21681. fi
  21682. done
  21683. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  21684. if test -n "$ac_eof"; then
  21685. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  21686. ac_eof=`expr $ac_eof + 1`
  21687. fi
  21688. cat >>$CONFIG_STATUS <<_ACEOF
  21689. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  21690. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  21691. _ACEOF
  21692. sed '
  21693. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  21694. s/^/s,@/; s/!/@,|#_!!_#|/
  21695. :n
  21696. t n
  21697. s/'"$ac_delim"'$/,g/; t
  21698. s/$/\\/; p
  21699. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  21700. ' >>$CONFIG_STATUS <conf$$subs.sed
  21701. rm -f conf$$subs.sed
  21702. cat >>$CONFIG_STATUS <<_ACEOF
  21703. :end
  21704. s/|#_!!_#|//g
  21705. CEOF$ac_eof
  21706. _ACEOF
  21707. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  21708. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  21709. # trailing colons and then remove the whole line if VPATH becomes empty
  21710. # (actually we leave an empty line to preserve line numbers).
  21711. if test "x$srcdir" = x.; then
  21712. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  21713. s/:*\$(srcdir):*/:/
  21714. s/:*\${srcdir}:*/:/
  21715. s/:*@srcdir@:*/:/
  21716. s/^\([^=]*=[ ]*\):*/\1/
  21717. s/:*$//
  21718. s/^[^=]*=[ ]*$//
  21719. }'
  21720. fi
  21721. cat >>$CONFIG_STATUS <<\_ACEOF
  21722. fi # test -n "$CONFIG_FILES"
  21723. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  21724. do
  21725. case $ac_tag in
  21726. :[FHLC]) ac_mode=$ac_tag; continue;;
  21727. esac
  21728. case $ac_mode$ac_tag in
  21729. :[FHL]*:*);;
  21730. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  21731. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  21732. { (exit 1); exit 1; }; };;
  21733. :[FH]-) ac_tag=-:-;;
  21734. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  21735. esac
  21736. ac_save_IFS=$IFS
  21737. IFS=:
  21738. set x $ac_tag
  21739. IFS=$ac_save_IFS
  21740. shift
  21741. ac_file=$1
  21742. shift
  21743. case $ac_mode in
  21744. :L) ac_source=$1;;
  21745. :[FH])
  21746. ac_file_inputs=
  21747. for ac_f
  21748. do
  21749. case $ac_f in
  21750. -) ac_f="$tmp/stdin";;
  21751. *) # Look for the file first in the build tree, then in the source tree
  21752. # (if the path is not absolute). The absolute path cannot be DOS-style,
  21753. # because $ac_f cannot contain `:'.
  21754. test -f "$ac_f" ||
  21755. case $ac_f in
  21756. [\\/$]*) false;;
  21757. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  21758. esac ||
  21759. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  21760. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  21761. { (exit 1); exit 1; }; };;
  21762. esac
  21763. ac_file_inputs="$ac_file_inputs $ac_f"
  21764. done
  21765. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21766. # use $as_me), people would be surprised to read:
  21767. # /* config.h. Generated by config.status. */
  21768. configure_input="Generated from "`IFS=:
  21769. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  21770. if test x"$ac_file" != x-; then
  21771. configure_input="$ac_file. $configure_input"
  21772. { echo "$as_me:$LINENO: creating $ac_file" >&5
  21773. echo "$as_me: creating $ac_file" >&6;}
  21774. fi
  21775. case $ac_tag in
  21776. *:-:* | *:-) cat >"$tmp/stdin";;
  21777. esac
  21778. ;;
  21779. esac
  21780. ac_dir=`$as_dirname -- "$ac_file" ||
  21781. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21782. X"$ac_file" : 'X\(//\)[^/]' \| \
  21783. X"$ac_file" : 'X\(//\)$' \| \
  21784. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  21785. echo X"$ac_file" |
  21786. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21787. s//\1/
  21788. q
  21789. }
  21790. /^X\(\/\/\)[^/].*/{
  21791. s//\1/
  21792. q
  21793. }
  21794. /^X\(\/\/\)$/{
  21795. s//\1/
  21796. q
  21797. }
  21798. /^X\(\/\).*/{
  21799. s//\1/
  21800. q
  21801. }
  21802. s/.*/./; q'`
  21803. { as_dir="$ac_dir"
  21804. case $as_dir in #(
  21805. -*) as_dir=./$as_dir;;
  21806. esac
  21807. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  21808. as_dirs=
  21809. while :; do
  21810. case $as_dir in #(
  21811. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  21812. *) as_qdir=$as_dir;;
  21813. esac
  21814. as_dirs="'$as_qdir' $as_dirs"
  21815. as_dir=`$as_dirname -- "$as_dir" ||
  21816. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21817. X"$as_dir" : 'X\(//\)[^/]' \| \
  21818. X"$as_dir" : 'X\(//\)$' \| \
  21819. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21820. echo X"$as_dir" |
  21821. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21822. s//\1/
  21823. q
  21824. }
  21825. /^X\(\/\/\)[^/].*/{
  21826. s//\1/
  21827. q
  21828. }
  21829. /^X\(\/\/\)$/{
  21830. s//\1/
  21831. q
  21832. }
  21833. /^X\(\/\).*/{
  21834. s//\1/
  21835. q
  21836. }
  21837. s/.*/./; q'`
  21838. test -d "$as_dir" && break
  21839. done
  21840. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21841. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  21842. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  21843. { (exit 1); exit 1; }; }; }
  21844. ac_builddir=.
  21845. case "$ac_dir" in
  21846. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21847. *)
  21848. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  21849. # A ".." for each directory in $ac_dir_suffix.
  21850. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  21851. case $ac_top_builddir_sub in
  21852. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21853. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  21854. esac ;;
  21855. esac
  21856. ac_abs_top_builddir=$ac_pwd
  21857. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  21858. # for backward compatibility:
  21859. ac_top_builddir=$ac_top_build_prefix
  21860. case $srcdir in
  21861. .) # We are building in place.
  21862. ac_srcdir=.
  21863. ac_top_srcdir=$ac_top_builddir_sub
  21864. ac_abs_top_srcdir=$ac_pwd ;;
  21865. [\\/]* | ?:[\\/]* ) # Absolute name.
  21866. ac_srcdir=$srcdir$ac_dir_suffix;
  21867. ac_top_srcdir=$srcdir
  21868. ac_abs_top_srcdir=$srcdir ;;
  21869. *) # Relative name.
  21870. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  21871. ac_top_srcdir=$ac_top_build_prefix$srcdir
  21872. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  21873. esac
  21874. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  21875. case $ac_mode in
  21876. :F)
  21877. #
  21878. # CONFIG_FILE
  21879. #
  21880. case $INSTALL in
  21881. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  21882. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  21883. esac
  21884. ac_MKDIR_P=$MKDIR_P
  21885. case $MKDIR_P in
  21886. [\\/$]* | ?:[\\/]* ) ;;
  21887. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  21888. esac
  21889. _ACEOF
  21890. cat >>$CONFIG_STATUS <<\_ACEOF
  21891. # If the template does not know about datarootdir, expand it.
  21892. # FIXME: This hack should be removed a few years after 2.60.
  21893. ac_datarootdir_hack=; ac_datarootdir_seen=
  21894. case `sed -n '/datarootdir/ {
  21895. p
  21896. q
  21897. }
  21898. /@datadir@/p
  21899. /@docdir@/p
  21900. /@infodir@/p
  21901. /@localedir@/p
  21902. /@mandir@/p
  21903. ' $ac_file_inputs` in
  21904. *datarootdir*) ac_datarootdir_seen=yes;;
  21905. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  21906. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  21907. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  21908. _ACEOF
  21909. cat >>$CONFIG_STATUS <<_ACEOF
  21910. ac_datarootdir_hack='
  21911. s&@datadir@&$datadir&g
  21912. s&@docdir@&$docdir&g
  21913. s&@infodir@&$infodir&g
  21914. s&@localedir@&$localedir&g
  21915. s&@mandir@&$mandir&g
  21916. s&\\\${datarootdir}&$datarootdir&g' ;;
  21917. esac
  21918. _ACEOF
  21919. # Neutralize VPATH when `$srcdir' = `.'.
  21920. # Shell code in configure.ac might set extrasub.
  21921. # FIXME: do we really want to maintain this feature?
  21922. cat >>$CONFIG_STATUS <<_ACEOF
  21923. sed "$ac_vpsub
  21924. $extrasub
  21925. _ACEOF
  21926. cat >>$CONFIG_STATUS <<\_ACEOF
  21927. :t
  21928. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21929. s&@configure_input@&$configure_input&;t t
  21930. s&@top_builddir@&$ac_top_builddir_sub&;t t
  21931. s&@srcdir@&$ac_srcdir&;t t
  21932. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  21933. s&@top_srcdir@&$ac_top_srcdir&;t t
  21934. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  21935. s&@builddir@&$ac_builddir&;t t
  21936. s&@abs_builddir@&$ac_abs_builddir&;t t
  21937. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  21938. s&@INSTALL@&$ac_INSTALL&;t t
  21939. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  21940. $ac_datarootdir_hack
  21941. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  21942. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  21943. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  21944. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  21945. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21946. which seems to be undefined. Please make sure it is defined." >&5
  21947. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21948. which seems to be undefined. Please make sure it is defined." >&2;}
  21949. rm -f "$tmp/stdin"
  21950. case $ac_file in
  21951. -) cat "$tmp/out"; rm -f "$tmp/out";;
  21952. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  21953. esac
  21954. ;;
  21955. :H)
  21956. #
  21957. # CONFIG_HEADER
  21958. #
  21959. _ACEOF
  21960. # Transform confdefs.h into a sed script `conftest.defines', that
  21961. # substitutes the proper values into config.h.in to produce config.h.
  21962. rm -f conftest.defines conftest.tail
  21963. # First, append a space to every undef/define line, to ease matching.
  21964. echo 's/$/ /' >conftest.defines
  21965. # Then, protect against being on the right side of a sed subst, or in
  21966. # an unquoted here document, in config.status. If some macros were
  21967. # called several times there might be several #defines for the same
  21968. # symbol, which is useless. But do not sort them, since the last
  21969. # AC_DEFINE must be honored.
  21970. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  21971. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  21972. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  21973. # PARAMS is the parameter list in the macro definition--in most cases, it's
  21974. # just an empty string.
  21975. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  21976. ac_dB='\\)[ (].*,\\1define\\2'
  21977. ac_dC=' '
  21978. ac_dD=' ,'
  21979. uniq confdefs.h |
  21980. sed -n '
  21981. t rset
  21982. :rset
  21983. s/^[ ]*#[ ]*define[ ][ ]*//
  21984. t ok
  21985. d
  21986. :ok
  21987. s/[\\&,]/\\&/g
  21988. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  21989. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  21990. ' >>conftest.defines
  21991. # Remove the space that was appended to ease matching.
  21992. # Then replace #undef with comments. This is necessary, for
  21993. # example, in the case of _POSIX_SOURCE, which is predefined and required
  21994. # on some systems where configure will not decide to define it.
  21995. # (The regexp can be short, since the line contains either #define or #undef.)
  21996. echo 's/ $//
  21997. s,^[ #]*u.*,/* & */,' >>conftest.defines
  21998. # Break up conftest.defines:
  21999. ac_max_sed_lines=50
  22000. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  22001. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  22002. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  22003. # et cetera.
  22004. ac_in='$ac_file_inputs'
  22005. ac_out='"$tmp/out1"'
  22006. ac_nxt='"$tmp/out2"'
  22007. while :
  22008. do
  22009. # Write a here document:
  22010. cat >>$CONFIG_STATUS <<_ACEOF
  22011. # First, check the format of the line:
  22012. cat >"\$tmp/defines.sed" <<\\CEOF
  22013. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  22014. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  22015. b
  22016. :def
  22017. _ACEOF
  22018. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  22019. echo 'CEOF
  22020. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  22021. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  22022. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  22023. grep . conftest.tail >/dev/null || break
  22024. rm -f conftest.defines
  22025. mv conftest.tail conftest.defines
  22026. done
  22027. rm -f conftest.defines conftest.tail
  22028. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  22029. cat >>$CONFIG_STATUS <<\_ACEOF
  22030. if test x"$ac_file" != x-; then
  22031. echo "/* $configure_input */" >"$tmp/config.h"
  22032. cat "$ac_result" >>"$tmp/config.h"
  22033. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  22034. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  22035. echo "$as_me: $ac_file is unchanged" >&6;}
  22036. else
  22037. rm -f $ac_file
  22038. mv "$tmp/config.h" $ac_file
  22039. fi
  22040. else
  22041. echo "/* $configure_input */"
  22042. cat "$ac_result"
  22043. fi
  22044. rm -f "$tmp/out12"
  22045. # Compute $ac_file's index in $config_headers.
  22046. _am_stamp_count=1
  22047. for _am_header in $config_headers :; do
  22048. case $_am_header in
  22049. $ac_file | $ac_file:* )
  22050. break ;;
  22051. * )
  22052. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  22053. esac
  22054. done
  22055. echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  22056. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22057. X$ac_file : 'X\(//\)[^/]' \| \
  22058. X$ac_file : 'X\(//\)$' \| \
  22059. X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  22060. echo X$ac_file |
  22061. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22062. s//\1/
  22063. q
  22064. }
  22065. /^X\(\/\/\)[^/].*/{
  22066. s//\1/
  22067. q
  22068. }
  22069. /^X\(\/\/\)$/{
  22070. s//\1/
  22071. q
  22072. }
  22073. /^X\(\/\).*/{
  22074. s//\1/
  22075. q
  22076. }
  22077. s/.*/./; q'`/stamp-h$_am_stamp_count
  22078. ;;
  22079. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  22080. echo "$as_me: executing $ac_file commands" >&6;}
  22081. ;;
  22082. esac
  22083. case $ac_file$ac_mode in
  22084. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  22085. # Strip MF so we end up with the name of the file.
  22086. mf=`echo "$mf" | sed -e 's/:.*$//'`
  22087. # Check whether this is an Automake generated Makefile or not.
  22088. # We used to match only the files named `Makefile.in', but
  22089. # some people rename them; so instead we look at the file content.
  22090. # Grep'ing the first line is not enough: some people post-process
  22091. # each Makefile.in and add a new line on top of each file to say so.
  22092. # Grep'ing the whole file is not good either: AIX grep has a line
  22093. # limit of 2048, but all sed's we know have understand at least 4000.
  22094. if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
  22095. dirpart=`$as_dirname -- "$mf" ||
  22096. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22097. X"$mf" : 'X\(//\)[^/]' \| \
  22098. X"$mf" : 'X\(//\)$' \| \
  22099. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  22100. echo X"$mf" |
  22101. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22102. s//\1/
  22103. q
  22104. }
  22105. /^X\(\/\/\)[^/].*/{
  22106. s//\1/
  22107. q
  22108. }
  22109. /^X\(\/\/\)$/{
  22110. s//\1/
  22111. q
  22112. }
  22113. /^X\(\/\).*/{
  22114. s//\1/
  22115. q
  22116. }
  22117. s/.*/./; q'`
  22118. else
  22119. continue
  22120. fi
  22121. # Extract the definition of DEPDIR, am__include, and am__quote
  22122. # from the Makefile without running `make'.
  22123. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  22124. test -z "$DEPDIR" && continue
  22125. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  22126. test -z "am__include" && continue
  22127. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  22128. # When using ansi2knr, U may be empty or an underscore; expand it
  22129. U=`sed -n 's/^U = //p' < "$mf"`
  22130. # Find all dependency output files, they are included files with
  22131. # $(DEPDIR) in their names. We invoke sed twice because it is the
  22132. # simplest approach to changing $(DEPDIR) to its actual value in the
  22133. # expansion.
  22134. for file in `sed -n "
  22135. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  22136. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  22137. # Make sure the directory exists.
  22138. test -f "$dirpart/$file" && continue
  22139. fdir=`$as_dirname -- "$file" ||
  22140. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22141. X"$file" : 'X\(//\)[^/]' \| \
  22142. X"$file" : 'X\(//\)$' \| \
  22143. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  22144. echo X"$file" |
  22145. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22146. s//\1/
  22147. q
  22148. }
  22149. /^X\(\/\/\)[^/].*/{
  22150. s//\1/
  22151. q
  22152. }
  22153. /^X\(\/\/\)$/{
  22154. s//\1/
  22155. q
  22156. }
  22157. /^X\(\/\).*/{
  22158. s//\1/
  22159. q
  22160. }
  22161. s/.*/./; q'`
  22162. { as_dir=$dirpart/$fdir
  22163. case $as_dir in #(
  22164. -*) as_dir=./$as_dir;;
  22165. esac
  22166. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  22167. as_dirs=
  22168. while :; do
  22169. case $as_dir in #(
  22170. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  22171. *) as_qdir=$as_dir;;
  22172. esac
  22173. as_dirs="'$as_qdir' $as_dirs"
  22174. as_dir=`$as_dirname -- "$as_dir" ||
  22175. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22176. X"$as_dir" : 'X\(//\)[^/]' \| \
  22177. X"$as_dir" : 'X\(//\)$' \| \
  22178. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22179. echo X"$as_dir" |
  22180. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22181. s//\1/
  22182. q
  22183. }
  22184. /^X\(\/\/\)[^/].*/{
  22185. s//\1/
  22186. q
  22187. }
  22188. /^X\(\/\/\)$/{
  22189. s//\1/
  22190. q
  22191. }
  22192. /^X\(\/\).*/{
  22193. s//\1/
  22194. q
  22195. }
  22196. s/.*/./; q'`
  22197. test -d "$as_dir" && break
  22198. done
  22199. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22200. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  22201. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  22202. { (exit 1); exit 1; }; }; }
  22203. # echo "creating $dirpart/$file"
  22204. echo '# dummy' > "$dirpart/$file"
  22205. done
  22206. done
  22207. ;;
  22208. esac
  22209. done # for ac_tag
  22210. { (exit 0); exit 0; }
  22211. _ACEOF
  22212. chmod +x $CONFIG_STATUS
  22213. ac_clean_files=$ac_clean_files_save
  22214. # configure is writing to config.log, and then calls config.status.
  22215. # config.status does its own redirection, appending to config.log.
  22216. # Unfortunately, on DOS this fails, as config.log is still kept open
  22217. # by configure, so config.status won't be able to write to it; its
  22218. # output is simply discarded. So we exec the FD to /dev/null,
  22219. # effectively closing config.log, so it can be properly (re)opened and
  22220. # appended to by config.status. When coming back to configure, we
  22221. # need to make the FD available again.
  22222. if test "$no_create" != yes; then
  22223. ac_cs_success=:
  22224. ac_config_status_args=
  22225. test "$silent" = yes &&
  22226. ac_config_status_args="$ac_config_status_args --quiet"
  22227. exec 5>/dev/null
  22228. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  22229. exec 5>>config.log
  22230. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  22231. # would make configure fail if this is the last instruction.
  22232. $ac_cs_success || { (exit 1); exit 1; }
  22233. fi