configure 773 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for file 4.25.
  4. #
  5. # Report bugs to <christos@astron.com>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. # The user is always right.
  36. if test "${PATH_SEPARATOR+set}" != set; then
  37. echo "#! /bin/sh" >conf$$.sh
  38. echo "exit 0" >>conf$$.sh
  39. chmod +x conf$$.sh
  40. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41. PATH_SEPARATOR=';'
  42. else
  43. PATH_SEPARATOR=:
  44. fi
  45. rm -f conf$$.sh
  46. fi
  47. # Support unset when possible.
  48. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49. as_unset=unset
  50. else
  51. as_unset=false
  52. fi
  53. # IFS
  54. # We need space, tab and new line, in precisely that order. Quoting is
  55. # there to prevent editors from complaining about space-tab.
  56. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57. # splitting by setting IFS to empty value.)
  58. as_nl='
  59. '
  60. IFS=" "" $as_nl"
  61. # Find who we are. Look in the path if we contain no directory separator.
  62. case $0 in
  63. *[\\/]* ) as_myself=$0 ;;
  64. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65. for as_dir in $PATH
  66. do
  67. IFS=$as_save_IFS
  68. test -z "$as_dir" && as_dir=.
  69. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  70. done
  71. IFS=$as_save_IFS
  72. ;;
  73. esac
  74. # We did not find ourselves, most probably we were run as `sh COMMAND'
  75. # in which case we are not to be found in the path.
  76. if test "x$as_myself" = x; then
  77. as_myself=$0
  78. fi
  79. if test ! -f "$as_myself"; then
  80. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  81. { (exit 1); exit 1; }
  82. fi
  83. # Work around bugs in pre-3.0 UWIN ksh.
  84. for as_var in ENV MAIL MAILPATH
  85. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. for as_var in \
  92. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  93. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  94. LC_TELEPHONE LC_TIME
  95. do
  96. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  97. eval $as_var=C; export $as_var
  98. else
  99. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  100. fi
  101. done
  102. # Required to use basename.
  103. if expr a : '\(a\)' >/dev/null 2>&1 &&
  104. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  105. as_expr=expr
  106. else
  107. as_expr=false
  108. fi
  109. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  110. as_basename=basename
  111. else
  112. as_basename=false
  113. fi
  114. # Name of the executable.
  115. as_me=`$as_basename -- "$0" ||
  116. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  117. X"$0" : 'X\(//\)$' \| \
  118. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  119. echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. }
  124. /^X\/\(\/\/\)$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\).*/{
  129. s//\1/
  130. q
  131. }
  132. s/.*/./; q'`
  133. # CDPATH.
  134. $as_unset CDPATH
  135. if test "x$CONFIG_SHELL" = x; then
  136. if (eval ":") 2>/dev/null; then
  137. as_have_required=yes
  138. else
  139. as_have_required=no
  140. fi
  141. if test $as_have_required = yes && (eval ":
  142. (as_func_return () {
  143. (exit \$1)
  144. }
  145. as_func_success () {
  146. as_func_return 0
  147. }
  148. as_func_failure () {
  149. as_func_return 1
  150. }
  151. as_func_ret_success () {
  152. return 0
  153. }
  154. as_func_ret_failure () {
  155. return 1
  156. }
  157. exitcode=0
  158. if as_func_success; then
  159. :
  160. else
  161. exitcode=1
  162. echo as_func_success failed.
  163. fi
  164. if as_func_failure; then
  165. exitcode=1
  166. echo as_func_failure succeeded.
  167. fi
  168. if as_func_ret_success; then
  169. :
  170. else
  171. exitcode=1
  172. echo as_func_ret_success failed.
  173. fi
  174. if as_func_ret_failure; then
  175. exitcode=1
  176. echo as_func_ret_failure succeeded.
  177. fi
  178. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  179. :
  180. else
  181. exitcode=1
  182. echo positional parameters were not saved.
  183. fi
  184. test \$exitcode = 0) || { (exit 1); exit 1; }
  185. (
  186. as_lineno_1=\$LINENO
  187. as_lineno_2=\$LINENO
  188. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  189. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  190. ") 2> /dev/null; then
  191. :
  192. else
  193. as_candidate_shells=
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. case $as_dir in
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  203. done;;
  204. esac
  205. done
  206. IFS=$as_save_IFS
  207. for as_shell in $as_candidate_shells $SHELL; do
  208. # Try only shells that exist, to save several forks.
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { ("$as_shell") 2> /dev/null <<\_ASEOF
  211. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  212. emulate sh
  213. NULLCMD=:
  214. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  215. # is contrary to our usage. Disable this feature.
  216. alias -g '${1+"$@"}'='"$@"'
  217. setopt NO_GLOB_SUBST
  218. else
  219. case `(set -o) 2>/dev/null` in
  220. *posix*) set -o posix ;;
  221. esac
  222. fi
  223. :
  224. _ASEOF
  225. }; then
  226. CONFIG_SHELL=$as_shell
  227. as_have_required=yes
  228. if { "$as_shell" 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. (as_func_return () {
  243. (exit $1)
  244. }
  245. as_func_success () {
  246. as_func_return 0
  247. }
  248. as_func_failure () {
  249. as_func_return 1
  250. }
  251. as_func_ret_success () {
  252. return 0
  253. }
  254. as_func_ret_failure () {
  255. return 1
  256. }
  257. exitcode=0
  258. if as_func_success; then
  259. :
  260. else
  261. exitcode=1
  262. echo as_func_success failed.
  263. fi
  264. if as_func_failure; then
  265. exitcode=1
  266. echo as_func_failure succeeded.
  267. fi
  268. if as_func_ret_success; then
  269. :
  270. else
  271. exitcode=1
  272. echo as_func_ret_success failed.
  273. fi
  274. if as_func_ret_failure; then
  275. exitcode=1
  276. echo as_func_ret_failure succeeded.
  277. fi
  278. if ( set x; as_func_ret_success y && test x = "$1" ); then
  279. :
  280. else
  281. exitcode=1
  282. echo positional parameters were not saved.
  283. fi
  284. test $exitcode = 0) || { (exit 1); exit 1; }
  285. (
  286. as_lineno_1=$LINENO
  287. as_lineno_2=$LINENO
  288. test "x$as_lineno_1" != "x$as_lineno_2" &&
  289. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  290. _ASEOF
  291. }; then
  292. break
  293. fi
  294. fi
  295. done
  296. if test "x$CONFIG_SHELL" != x; then
  297. for as_var in BASH_ENV ENV
  298. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  299. done
  300. export CONFIG_SHELL
  301. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  302. fi
  303. if test $as_have_required = no; then
  304. echo This script requires a shell more modern than all the
  305. echo shells that I found on your system. Please install a
  306. echo modern shell, or manually run the script under such a
  307. echo shell if you do have one.
  308. { (exit 1); exit 1; }
  309. fi
  310. fi
  311. fi
  312. (eval "as_func_return () {
  313. (exit \$1)
  314. }
  315. as_func_success () {
  316. as_func_return 0
  317. }
  318. as_func_failure () {
  319. as_func_return 1
  320. }
  321. as_func_ret_success () {
  322. return 0
  323. }
  324. as_func_ret_failure () {
  325. return 1
  326. }
  327. exitcode=0
  328. if as_func_success; then
  329. :
  330. else
  331. exitcode=1
  332. echo as_func_success failed.
  333. fi
  334. if as_func_failure; then
  335. exitcode=1
  336. echo as_func_failure succeeded.
  337. fi
  338. if as_func_ret_success; then
  339. :
  340. else
  341. exitcode=1
  342. echo as_func_ret_success failed.
  343. fi
  344. if as_func_ret_failure; then
  345. exitcode=1
  346. echo as_func_ret_failure succeeded.
  347. fi
  348. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  349. :
  350. else
  351. exitcode=1
  352. echo positional parameters were not saved.
  353. fi
  354. test \$exitcode = 0") || {
  355. echo No shell found that supports shell functions.
  356. echo Please tell autoconf@gnu.org about your system,
  357. echo including any error possibly output before this
  358. echo message
  359. }
  360. as_lineno_1=$LINENO
  361. as_lineno_2=$LINENO
  362. test "x$as_lineno_1" != "x$as_lineno_2" &&
  363. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  364. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  365. # uniformly replaced by the line number. The first 'sed' inserts a
  366. # line-number line after each line using $LINENO; the second 'sed'
  367. # does the real work. The second script uses 'N' to pair each
  368. # line-number line with the line containing $LINENO, and appends
  369. # trailing '-' during substitution so that $LINENO is not a special
  370. # case at line end.
  371. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  372. # scripts with optimization help from Paolo Bonzini. Blame Lee
  373. # E. McMahon (1931-1989) for sed's syntax. :-)
  374. sed -n '
  375. p
  376. /[$]LINENO/=
  377. ' <$as_myself |
  378. sed '
  379. s/[$]LINENO.*/&-/
  380. t lineno
  381. b
  382. :lineno
  383. N
  384. :loop
  385. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  386. t loop
  387. s/-\n.*//
  388. ' >$as_me.lineno &&
  389. chmod +x "$as_me.lineno" ||
  390. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  391. { (exit 1); exit 1; }; }
  392. # Don't try to exec as it changes $[0], causing all sort of problems
  393. # (the dirname of $[0] is not the place where we might find the
  394. # original and so on. Autoconf is especially sensitive to this).
  395. . "./$as_me.lineno"
  396. # Exit status is that of the last command.
  397. exit
  398. }
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. ECHO_C= ECHO_N= ECHO_T=
  405. case `echo -n x` in
  406. -n*)
  407. case `echo 'x\c'` in
  408. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  409. *) ECHO_C='\c';;
  410. esac;;
  411. *)
  412. ECHO_N='-n';;
  413. esac
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. rm -f conf$$ conf$$.exe conf$$.file
  421. if test -d conf$$.dir; then
  422. rm -f conf$$.dir/conf$$.file
  423. else
  424. rm -f conf$$.dir
  425. mkdir conf$$.dir
  426. fi
  427. echo >conf$$.file
  428. if ln -s conf$$.file conf$$ 2>/dev/null; then
  429. as_ln_s='ln -s'
  430. # ... but there are two gotchas:
  431. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  432. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  433. # In both cases, we have to default to `cp -p'.
  434. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  435. as_ln_s='cp -p'
  436. elif ln conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s=ln
  438. else
  439. as_ln_s='cp -p'
  440. fi
  441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  442. rmdir conf$$.dir 2>/dev/null
  443. if mkdir -p . 2>/dev/null; then
  444. as_mkdir_p=:
  445. else
  446. test -d ./-p && rmdir ./-p
  447. as_mkdir_p=false
  448. fi
  449. if test -x / >/dev/null 2>&1; then
  450. as_test_x='test -x'
  451. else
  452. if ls -dL / >/dev/null 2>&1; then
  453. as_ls_L_option=L
  454. else
  455. as_ls_L_option=
  456. fi
  457. as_test_x='
  458. eval sh -c '\''
  459. if test -d "$1"; then
  460. test -d "$1/.";
  461. else
  462. case $1 in
  463. -*)set "./$1";;
  464. esac;
  465. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  466. ???[sx]*):;;*)false;;esac;fi
  467. '\'' sh
  468. '
  469. fi
  470. as_executable_p=$as_test_x
  471. # Sed expression to map a string onto a valid CPP name.
  472. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  473. # Sed expression to map a string onto a valid variable name.
  474. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  475. # Check that we are running under the correct shell.
  476. SHELL=${CONFIG_SHELL-/bin/sh}
  477. case X$ECHO in
  478. X*--fallback-echo)
  479. # Remove one level of quotation (which was required for Make).
  480. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  481. ;;
  482. esac
  483. echo=${ECHO-echo}
  484. if test "X$1" = X--no-reexec; then
  485. # Discard the --no-reexec flag, and continue.
  486. shift
  487. elif test "X$1" = X--fallback-echo; then
  488. # Avoid inline document here, it may be left over
  489. :
  490. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  491. # Yippee, $echo works!
  492. :
  493. else
  494. # Restart under the correct shell.
  495. exec $SHELL "$0" --no-reexec ${1+"$@"}
  496. fi
  497. if test "X$1" = X--fallback-echo; then
  498. # used as fallback echo
  499. shift
  500. cat <<EOF
  501. $*
  502. EOF
  503. exit 0
  504. fi
  505. # The HP-UX ksh and POSIX shell print the target directory to stdout
  506. # if CDPATH is set.
  507. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  508. if test -z "$ECHO"; then
  509. if test "X${echo_test_string+set}" != Xset; then
  510. # find a string as large as possible, as long as the shell can cope with it
  511. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  512. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  513. if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  514. echo_test_string="`eval $cmd`" &&
  515. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  516. then
  517. break
  518. fi
  519. done
  520. fi
  521. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  522. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  523. test "X$echo_testing_string" = "X$echo_test_string"; then
  524. :
  525. else
  526. # The Solaris, AIX, and Digital Unix default echo programs unquote
  527. # backslashes. This makes it impossible to quote backslashes using
  528. # echo "$something" | sed 's/\\/\\\\/g'
  529. #
  530. # So, first we look for a working echo in the user's PATH.
  531. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  532. for dir in $PATH /usr/ucb; do
  533. IFS="$lt_save_ifs"
  534. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  535. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  536. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  537. test "X$echo_testing_string" = "X$echo_test_string"; then
  538. echo="$dir/echo"
  539. break
  540. fi
  541. done
  542. IFS="$lt_save_ifs"
  543. if test "X$echo" = Xecho; then
  544. # We didn't find a better echo, so look for alternatives.
  545. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  546. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  547. test "X$echo_testing_string" = "X$echo_test_string"; then
  548. # This shell has a builtin print -r that does the trick.
  549. echo='print -r'
  550. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  551. test "X$CONFIG_SHELL" != X/bin/ksh; then
  552. # If we have ksh, try running configure again with it.
  553. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  554. export ORIGINAL_CONFIG_SHELL
  555. CONFIG_SHELL=/bin/ksh
  556. export CONFIG_SHELL
  557. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  558. else
  559. # Try using printf.
  560. echo='printf %s\n'
  561. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  562. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  563. test "X$echo_testing_string" = "X$echo_test_string"; then
  564. # Cool, printf works
  565. :
  566. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  567. test "X$echo_testing_string" = 'X\t' &&
  568. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  569. test "X$echo_testing_string" = "X$echo_test_string"; then
  570. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  571. export CONFIG_SHELL
  572. SHELL="$CONFIG_SHELL"
  573. export SHELL
  574. echo="$CONFIG_SHELL $0 --fallback-echo"
  575. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  576. test "X$echo_testing_string" = 'X\t' &&
  577. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  578. test "X$echo_testing_string" = "X$echo_test_string"; then
  579. echo="$CONFIG_SHELL $0 --fallback-echo"
  580. else
  581. # maybe with a smaller string...
  582. prev=:
  583. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  584. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  585. then
  586. break
  587. fi
  588. prev="$cmd"
  589. done
  590. if test "$prev" != 'sed 50q "$0"'; then
  591. echo_test_string=`eval $prev`
  592. export echo_test_string
  593. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  594. else
  595. # Oops. We lost completely, so just stick with echo.
  596. echo=echo
  597. fi
  598. fi
  599. fi
  600. fi
  601. fi
  602. fi
  603. # Copy echo and quote the copy suitably for passing to libtool from
  604. # the Makefile, instead of quoting the original, which is used later.
  605. ECHO=$echo
  606. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  607. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  608. fi
  609. tagnames=${tagnames+${tagnames},}CXX
  610. tagnames=${tagnames+${tagnames},}F77
  611. exec 7<&0 </dev/null 6>&1
  612. # Name of the host.
  613. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  614. # so uname gets run too.
  615. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  616. #
  617. # Initializations.
  618. #
  619. ac_default_prefix=/usr/local
  620. ac_clean_files=
  621. ac_config_libobj_dir=.
  622. LIBOBJS=
  623. cross_compiling=no
  624. subdirs=
  625. MFLAGS=
  626. MAKEFLAGS=
  627. SHELL=${CONFIG_SHELL-/bin/sh}
  628. # Identity of this package.
  629. PACKAGE_NAME='file'
  630. PACKAGE_TARNAME='file'
  631. PACKAGE_VERSION='4.25'
  632. PACKAGE_STRING='file 4.25'
  633. PACKAGE_BUGREPORT='christos@astron.com'
  634. # Factoring default headers for most tests.
  635. ac_includes_default="\
  636. #include <stdio.h>
  637. #ifdef HAVE_SYS_TYPES_H
  638. # include <sys/types.h>
  639. #endif
  640. #ifdef HAVE_SYS_STAT_H
  641. # include <sys/stat.h>
  642. #endif
  643. #ifdef STDC_HEADERS
  644. # include <stdlib.h>
  645. # include <stddef.h>
  646. #else
  647. # ifdef HAVE_STDLIB_H
  648. # include <stdlib.h>
  649. # endif
  650. #endif
  651. #ifdef HAVE_STRING_H
  652. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  653. # include <memory.h>
  654. # endif
  655. # include <string.h>
  656. #endif
  657. #ifdef HAVE_STRINGS_H
  658. # include <strings.h>
  659. #endif
  660. #ifdef HAVE_INTTYPES_H
  661. # include <inttypes.h>
  662. #endif
  663. #ifdef HAVE_STDINT_H
  664. # include <stdint.h>
  665. #endif
  666. #ifdef HAVE_UNISTD_H
  667. # include <unistd.h>
  668. #endif"
  669. ac_subst_vars='SHELL
  670. PATH_SEPARATOR
  671. PACKAGE_NAME
  672. PACKAGE_TARNAME
  673. PACKAGE_VERSION
  674. PACKAGE_STRING
  675. PACKAGE_BUGREPORT
  676. exec_prefix
  677. prefix
  678. program_transform_name
  679. bindir
  680. sbindir
  681. libexecdir
  682. datarootdir
  683. datadir
  684. sysconfdir
  685. sharedstatedir
  686. localstatedir
  687. includedir
  688. oldincludedir
  689. docdir
  690. infodir
  691. htmldir
  692. dvidir
  693. pdfdir
  694. psdir
  695. libdir
  696. localedir
  697. mandir
  698. DEFS
  699. ECHO_C
  700. ECHO_N
  701. ECHO_T
  702. LIBS
  703. build_alias
  704. host_alias
  705. target_alias
  706. INSTALL_PROGRAM
  707. INSTALL_SCRIPT
  708. INSTALL_DATA
  709. am__isrc
  710. CYGPATH_W
  711. PACKAGE
  712. VERSION
  713. ACLOCAL
  714. AUTOCONF
  715. AUTOMAKE
  716. AUTOHEADER
  717. MAKEINFO
  718. install_sh
  719. STRIP
  720. INSTALL_STRIP_PROGRAM
  721. mkdir_p
  722. AWK
  723. SET_MAKE
  724. am__leading_dot
  725. AMTAR
  726. am__tar
  727. am__untar
  728. fsect
  729. FSECT5_TRUE
  730. FSECT5_FALSE
  731. CC
  732. CFLAGS
  733. LDFLAGS
  734. CPPFLAGS
  735. ac_ct_CC
  736. EXEEXT
  737. OBJEXT
  738. DEPDIR
  739. am__include
  740. am__quote
  741. AMDEP_TRUE
  742. AMDEP_FALSE
  743. AMDEPBACKSLASH
  744. CCDEPMODE
  745. am__fastdepCC_TRUE
  746. am__fastdepCC_FALSE
  747. LN_S
  748. build
  749. build_cpu
  750. build_vendor
  751. build_os
  752. host
  753. host_cpu
  754. host_vendor
  755. host_os
  756. GREP
  757. EGREP
  758. ECHO
  759. AR
  760. RANLIB
  761. CPP
  762. CXX
  763. CXXFLAGS
  764. ac_ct_CXX
  765. CXXDEPMODE
  766. am__fastdepCXX_TRUE
  767. am__fastdepCXX_FALSE
  768. CXXCPP
  769. F77
  770. FFLAGS
  771. ac_ct_F77
  772. LIBTOOL
  773. LIBOBJS
  774. IS_CROSS_COMPILE_TRUE
  775. IS_CROSS_COMPILE_FALSE
  776. LTLIBOBJS'
  777. ac_subst_files=''
  778. ac_precious_vars='build_alias
  779. host_alias
  780. target_alias
  781. CC
  782. CFLAGS
  783. LDFLAGS
  784. LIBS
  785. CPPFLAGS
  786. CPP
  787. CXX
  788. CXXFLAGS
  789. CCC
  790. CXXCPP
  791. F77
  792. FFLAGS'
  793. # Initialize some variables set by options.
  794. ac_init_help=
  795. ac_init_version=false
  796. # The variables have the same names as the options, with
  797. # dashes changed to underlines.
  798. cache_file=/dev/null
  799. exec_prefix=NONE
  800. no_create=
  801. no_recursion=
  802. prefix=NONE
  803. program_prefix=NONE
  804. program_suffix=NONE
  805. program_transform_name=s,x,x,
  806. silent=
  807. site=
  808. srcdir=
  809. verbose=
  810. x_includes=NONE
  811. x_libraries=NONE
  812. # Installation directory options.
  813. # These are left unexpanded so users can "make install exec_prefix=/foo"
  814. # and all the variables that are supposed to be based on exec_prefix
  815. # by default will actually change.
  816. # Use braces instead of parens because sh, perl, etc. also accept them.
  817. # (The list follows the same order as the GNU Coding Standards.)
  818. bindir='${exec_prefix}/bin'
  819. sbindir='${exec_prefix}/sbin'
  820. libexecdir='${exec_prefix}/libexec'
  821. datarootdir='${prefix}/share'
  822. datadir='${datarootdir}'
  823. sysconfdir='${prefix}/etc'
  824. sharedstatedir='${prefix}/com'
  825. localstatedir='${prefix}/var'
  826. includedir='${prefix}/include'
  827. oldincludedir='/usr/include'
  828. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  829. infodir='${datarootdir}/info'
  830. htmldir='${docdir}'
  831. dvidir='${docdir}'
  832. pdfdir='${docdir}'
  833. psdir='${docdir}'
  834. libdir='${exec_prefix}/lib'
  835. localedir='${datarootdir}/locale'
  836. mandir='${datarootdir}/man'
  837. ac_prev=
  838. ac_dashdash=
  839. for ac_option
  840. do
  841. # If the previous option needs an argument, assign it.
  842. if test -n "$ac_prev"; then
  843. eval $ac_prev=\$ac_option
  844. ac_prev=
  845. continue
  846. fi
  847. case $ac_option in
  848. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  849. *) ac_optarg=yes ;;
  850. esac
  851. # Accept the important Cygnus configure options, so we can diagnose typos.
  852. case $ac_dashdash$ac_option in
  853. --)
  854. ac_dashdash=yes ;;
  855. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  856. ac_prev=bindir ;;
  857. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  858. bindir=$ac_optarg ;;
  859. -build | --build | --buil | --bui | --bu)
  860. ac_prev=build_alias ;;
  861. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  862. build_alias=$ac_optarg ;;
  863. -cache-file | --cache-file | --cache-fil | --cache-fi \
  864. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  865. ac_prev=cache_file ;;
  866. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  867. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  868. cache_file=$ac_optarg ;;
  869. --config-cache | -C)
  870. cache_file=config.cache ;;
  871. -datadir | --datadir | --datadi | --datad)
  872. ac_prev=datadir ;;
  873. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  874. datadir=$ac_optarg ;;
  875. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  876. | --dataroo | --dataro | --datar)
  877. ac_prev=datarootdir ;;
  878. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  879. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  880. datarootdir=$ac_optarg ;;
  881. -disable-* | --disable-*)
  882. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  883. # Reject names that are not valid shell variable names.
  884. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  885. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  886. { (exit 1); exit 1; }; }
  887. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  888. eval enable_$ac_feature=no ;;
  889. -docdir | --docdir | --docdi | --doc | --do)
  890. ac_prev=docdir ;;
  891. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  892. docdir=$ac_optarg ;;
  893. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  894. ac_prev=dvidir ;;
  895. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  896. dvidir=$ac_optarg ;;
  897. -enable-* | --enable-*)
  898. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  899. # Reject names that are not valid shell variable names.
  900. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  901. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  902. { (exit 1); exit 1; }; }
  903. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  904. eval enable_$ac_feature=\$ac_optarg ;;
  905. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  906. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  907. | --exec | --exe | --ex)
  908. ac_prev=exec_prefix ;;
  909. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  910. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  911. | --exec=* | --exe=* | --ex=*)
  912. exec_prefix=$ac_optarg ;;
  913. -gas | --gas | --ga | --g)
  914. # Obsolete; use --with-gas.
  915. with_gas=yes ;;
  916. -help | --help | --hel | --he | -h)
  917. ac_init_help=long ;;
  918. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  919. ac_init_help=recursive ;;
  920. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  921. ac_init_help=short ;;
  922. -host | --host | --hos | --ho)
  923. ac_prev=host_alias ;;
  924. -host=* | --host=* | --hos=* | --ho=*)
  925. host_alias=$ac_optarg ;;
  926. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  927. ac_prev=htmldir ;;
  928. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  929. | --ht=*)
  930. htmldir=$ac_optarg ;;
  931. -includedir | --includedir | --includedi | --included | --include \
  932. | --includ | --inclu | --incl | --inc)
  933. ac_prev=includedir ;;
  934. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  935. | --includ=* | --inclu=* | --incl=* | --inc=*)
  936. includedir=$ac_optarg ;;
  937. -infodir | --infodir | --infodi | --infod | --info | --inf)
  938. ac_prev=infodir ;;
  939. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  940. infodir=$ac_optarg ;;
  941. -libdir | --libdir | --libdi | --libd)
  942. ac_prev=libdir ;;
  943. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  944. libdir=$ac_optarg ;;
  945. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  946. | --libexe | --libex | --libe)
  947. ac_prev=libexecdir ;;
  948. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  949. | --libexe=* | --libex=* | --libe=*)
  950. libexecdir=$ac_optarg ;;
  951. -localedir | --localedir | --localedi | --localed | --locale)
  952. ac_prev=localedir ;;
  953. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  954. localedir=$ac_optarg ;;
  955. -localstatedir | --localstatedir | --localstatedi | --localstated \
  956. | --localstate | --localstat | --localsta | --localst | --locals)
  957. ac_prev=localstatedir ;;
  958. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  959. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  960. localstatedir=$ac_optarg ;;
  961. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  962. ac_prev=mandir ;;
  963. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  964. mandir=$ac_optarg ;;
  965. -nfp | --nfp | --nf)
  966. # Obsolete; use --without-fp.
  967. with_fp=no ;;
  968. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  969. | --no-cr | --no-c | -n)
  970. no_create=yes ;;
  971. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  972. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  973. no_recursion=yes ;;
  974. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  975. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  976. | --oldin | --oldi | --old | --ol | --o)
  977. ac_prev=oldincludedir ;;
  978. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  979. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  980. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  981. oldincludedir=$ac_optarg ;;
  982. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  983. ac_prev=prefix ;;
  984. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  985. prefix=$ac_optarg ;;
  986. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  987. | --program-pre | --program-pr | --program-p)
  988. ac_prev=program_prefix ;;
  989. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  990. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  991. program_prefix=$ac_optarg ;;
  992. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  993. | --program-suf | --program-su | --program-s)
  994. ac_prev=program_suffix ;;
  995. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  996. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  997. program_suffix=$ac_optarg ;;
  998. -program-transform-name | --program-transform-name \
  999. | --program-transform-nam | --program-transform-na \
  1000. | --program-transform-n | --program-transform- \
  1001. | --program-transform | --program-transfor \
  1002. | --program-transfo | --program-transf \
  1003. | --program-trans | --program-tran \
  1004. | --progr-tra | --program-tr | --program-t)
  1005. ac_prev=program_transform_name ;;
  1006. -program-transform-name=* | --program-transform-name=* \
  1007. | --program-transform-nam=* | --program-transform-na=* \
  1008. | --program-transform-n=* | --program-transform-=* \
  1009. | --program-transform=* | --program-transfor=* \
  1010. | --program-transfo=* | --program-transf=* \
  1011. | --program-trans=* | --program-tran=* \
  1012. | --progr-tra=* | --program-tr=* | --program-t=*)
  1013. program_transform_name=$ac_optarg ;;
  1014. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1015. ac_prev=pdfdir ;;
  1016. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1017. pdfdir=$ac_optarg ;;
  1018. -psdir | --psdir | --psdi | --psd | --ps)
  1019. ac_prev=psdir ;;
  1020. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1021. psdir=$ac_optarg ;;
  1022. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1023. | -silent | --silent | --silen | --sile | --sil)
  1024. silent=yes ;;
  1025. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1026. ac_prev=sbindir ;;
  1027. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1028. | --sbi=* | --sb=*)
  1029. sbindir=$ac_optarg ;;
  1030. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1031. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1032. | --sharedst | --shareds | --shared | --share | --shar \
  1033. | --sha | --sh)
  1034. ac_prev=sharedstatedir ;;
  1035. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1036. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1037. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1038. | --sha=* | --sh=*)
  1039. sharedstatedir=$ac_optarg ;;
  1040. -site | --site | --sit)
  1041. ac_prev=site ;;
  1042. -site=* | --site=* | --sit=*)
  1043. site=$ac_optarg ;;
  1044. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1045. ac_prev=srcdir ;;
  1046. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1047. srcdir=$ac_optarg ;;
  1048. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1049. | --syscon | --sysco | --sysc | --sys | --sy)
  1050. ac_prev=sysconfdir ;;
  1051. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1052. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1053. sysconfdir=$ac_optarg ;;
  1054. -target | --target | --targe | --targ | --tar | --ta | --t)
  1055. ac_prev=target_alias ;;
  1056. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1057. target_alias=$ac_optarg ;;
  1058. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1059. verbose=yes ;;
  1060. -version | --version | --versio | --versi | --vers | -V)
  1061. ac_init_version=: ;;
  1062. -with-* | --with-*)
  1063. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1064. # Reject names that are not valid shell variable names.
  1065. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1066. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1067. { (exit 1); exit 1; }; }
  1068. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1069. eval with_$ac_package=\$ac_optarg ;;
  1070. -without-* | --without-*)
  1071. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1072. # Reject names that are not valid shell variable names.
  1073. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1074. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1075. { (exit 1); exit 1; }; }
  1076. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1077. eval with_$ac_package=no ;;
  1078. --x)
  1079. # Obsolete; use --with-x.
  1080. with_x=yes ;;
  1081. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1082. | --x-incl | --x-inc | --x-in | --x-i)
  1083. ac_prev=x_includes ;;
  1084. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1085. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1086. x_includes=$ac_optarg ;;
  1087. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1088. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1089. ac_prev=x_libraries ;;
  1090. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1091. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1092. x_libraries=$ac_optarg ;;
  1093. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1094. Try \`$0 --help' for more information." >&2
  1095. { (exit 1); exit 1; }; }
  1096. ;;
  1097. *=*)
  1098. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1099. # Reject names that are not valid shell variable names.
  1100. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1101. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1102. { (exit 1); exit 1; }; }
  1103. eval $ac_envvar=\$ac_optarg
  1104. export $ac_envvar ;;
  1105. *)
  1106. # FIXME: should be removed in autoconf 3.0.
  1107. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1108. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1109. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1110. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1111. ;;
  1112. esac
  1113. done
  1114. if test -n "$ac_prev"; then
  1115. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1116. { echo "$as_me: error: missing argument to $ac_option" >&2
  1117. { (exit 1); exit 1; }; }
  1118. fi
  1119. # Be sure to have absolute directory names.
  1120. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1121. datadir sysconfdir sharedstatedir localstatedir includedir \
  1122. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1123. libdir localedir mandir
  1124. do
  1125. eval ac_val=\$$ac_var
  1126. case $ac_val in
  1127. [\\/$]* | ?:[\\/]* ) continue;;
  1128. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1129. esac
  1130. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1131. { (exit 1); exit 1; }; }
  1132. done
  1133. # There might be people who depend on the old broken behavior: `$host'
  1134. # used to hold the argument of --host etc.
  1135. # FIXME: To remove some day.
  1136. build=$build_alias
  1137. host=$host_alias
  1138. target=$target_alias
  1139. # FIXME: To remove some day.
  1140. if test "x$host_alias" != x; then
  1141. if test "x$build_alias" = x; then
  1142. cross_compiling=maybe
  1143. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1144. If a cross compiler is detected then cross compile mode will be used." >&2
  1145. elif test "x$build_alias" != "x$host_alias"; then
  1146. cross_compiling=yes
  1147. fi
  1148. fi
  1149. ac_tool_prefix=
  1150. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1151. test "$silent" = yes && exec 6>/dev/null
  1152. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1153. ac_ls_di=`ls -di .` &&
  1154. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1155. { echo "$as_me: error: Working directory cannot be determined" >&2
  1156. { (exit 1); exit 1; }; }
  1157. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1158. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1159. { (exit 1); exit 1; }; }
  1160. # Find the source files, if location was not specified.
  1161. if test -z "$srcdir"; then
  1162. ac_srcdir_defaulted=yes
  1163. # Try the directory containing this script, then the parent directory.
  1164. ac_confdir=`$as_dirname -- "$0" ||
  1165. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1166. X"$0" : 'X\(//\)[^/]' \| \
  1167. X"$0" : 'X\(//\)$' \| \
  1168. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1169. echo X"$0" |
  1170. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1171. s//\1/
  1172. q
  1173. }
  1174. /^X\(\/\/\)[^/].*/{
  1175. s//\1/
  1176. q
  1177. }
  1178. /^X\(\/\/\)$/{
  1179. s//\1/
  1180. q
  1181. }
  1182. /^X\(\/\).*/{
  1183. s//\1/
  1184. q
  1185. }
  1186. s/.*/./; q'`
  1187. srcdir=$ac_confdir
  1188. if test ! -r "$srcdir/$ac_unique_file"; then
  1189. srcdir=..
  1190. fi
  1191. else
  1192. ac_srcdir_defaulted=no
  1193. fi
  1194. if test ! -r "$srcdir/$ac_unique_file"; then
  1195. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1196. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1197. { (exit 1); exit 1; }; }
  1198. fi
  1199. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1200. ac_abs_confdir=`(
  1201. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1202. { (exit 1); exit 1; }; }
  1203. pwd)`
  1204. # When building in place, set srcdir=.
  1205. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1206. srcdir=.
  1207. fi
  1208. # Remove unnecessary trailing slashes from srcdir.
  1209. # Double slashes in file names in object file debugging info
  1210. # mess up M-x gdb in Emacs.
  1211. case $srcdir in
  1212. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1213. esac
  1214. for ac_var in $ac_precious_vars; do
  1215. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1216. eval ac_env_${ac_var}_value=\$${ac_var}
  1217. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1218. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1219. done
  1220. #
  1221. # Report the --help message.
  1222. #
  1223. if test "$ac_init_help" = "long"; then
  1224. # Omit some internal or obsolete options to make the list less imposing.
  1225. # This message is too long to be a string in the A/UX 3.1 sh.
  1226. cat <<_ACEOF
  1227. \`configure' configures file 4.25 to adapt to many kinds of systems.
  1228. Usage: $0 [OPTION]... [VAR=VALUE]...
  1229. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1230. VAR=VALUE. See below for descriptions of some of the useful variables.
  1231. Defaults for the options are specified in brackets.
  1232. Configuration:
  1233. -h, --help display this help and exit
  1234. --help=short display options specific to this package
  1235. --help=recursive display the short help of all the included packages
  1236. -V, --version display version information and exit
  1237. -q, --quiet, --silent do not print \`checking...' messages
  1238. --cache-file=FILE cache test results in FILE [disabled]
  1239. -C, --config-cache alias for \`--cache-file=config.cache'
  1240. -n, --no-create do not create output files
  1241. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1242. Installation directories:
  1243. --prefix=PREFIX install architecture-independent files in PREFIX
  1244. [$ac_default_prefix]
  1245. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1246. [PREFIX]
  1247. By default, \`make install' will install all the files in
  1248. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1249. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1250. for instance \`--prefix=\$HOME'.
  1251. For better control, use the options below.
  1252. Fine tuning of the installation directories:
  1253. --bindir=DIR user executables [EPREFIX/bin]
  1254. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1255. --libexecdir=DIR program executables [EPREFIX/libexec]
  1256. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1257. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1258. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1259. --libdir=DIR object code libraries [EPREFIX/lib]
  1260. --includedir=DIR C header files [PREFIX/include]
  1261. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1262. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1263. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1264. --infodir=DIR info documentation [DATAROOTDIR/info]
  1265. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1266. --mandir=DIR man documentation [DATAROOTDIR/man]
  1267. --docdir=DIR documentation root [DATAROOTDIR/doc/file]
  1268. --htmldir=DIR html documentation [DOCDIR]
  1269. --dvidir=DIR dvi documentation [DOCDIR]
  1270. --pdfdir=DIR pdf documentation [DOCDIR]
  1271. --psdir=DIR ps documentation [DOCDIR]
  1272. _ACEOF
  1273. cat <<\_ACEOF
  1274. Program names:
  1275. --program-prefix=PREFIX prepend PREFIX to installed program names
  1276. --program-suffix=SUFFIX append SUFFIX to installed program names
  1277. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1278. System types:
  1279. --build=BUILD configure for building on BUILD [guessed]
  1280. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1281. _ACEOF
  1282. fi
  1283. if test -n "$ac_init_help"; then
  1284. case $ac_init_help in
  1285. short | recursive ) echo "Configuration of file 4.25:";;
  1286. esac
  1287. cat <<\_ACEOF
  1288. Optional Features:
  1289. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1290. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1291. --disable-elf disable builtin ELF support
  1292. --disable-elf-core disable ELF core file support
  1293. --enable-fsect-man5 enable file formats in man section 5
  1294. --disable-dependency-tracking speeds up one-time build
  1295. --enable-dependency-tracking do not reject slow dependency extractors
  1296. --enable-shared[=PKGS] build shared libraries [default=yes]
  1297. --enable-static[=PKGS] build static libraries [default=yes]
  1298. --enable-fast-install[=PKGS]
  1299. optimize for fast installation [default=yes]
  1300. --disable-libtool-lock avoid locking (might break parallel builds)
  1301. --disable-largefile omit support for large files
  1302. Optional Packages:
  1303. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1304. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1305. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1306. --with-pic try to use only PIC/non-PIC objects [default=use
  1307. both]
  1308. --with-tags[=TAGS] include additional configurations [automatic]
  1309. Some influential environment variables:
  1310. CC C compiler command
  1311. CFLAGS C compiler flags
  1312. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1313. nonstandard directory <lib dir>
  1314. LIBS libraries to pass to the linker, e.g. -l<library>
  1315. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1316. you have headers in a nonstandard directory <include dir>
  1317. CPP C preprocessor
  1318. CXX C++ compiler command
  1319. CXXFLAGS C++ compiler flags
  1320. CXXCPP C++ preprocessor
  1321. F77 Fortran 77 compiler command
  1322. FFLAGS Fortran 77 compiler flags
  1323. Use these variables to override the choices made by `configure' or to help
  1324. it to find libraries and programs with nonstandard names/locations.
  1325. Report bugs to <christos@astron.com>.
  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. file configure 4.25
  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 file $as_me 4.25, 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.25'
  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 for builtin ELF support" >&5
  2112. echo $ECHO_N "checking for builtin ELF support... $ECHO_C" >&6; }
  2113. # Check whether --enable-elf was given.
  2114. if test "${enable_elf+set}" = set; then
  2115. enableval=$enable_elf; if test "${enableval}" = yes; then
  2116. { echo "$as_me:$LINENO: result: yes" >&5
  2117. echo "${ECHO_T}yes" >&6; }
  2118. cat >>confdefs.h <<\_ACEOF
  2119. #define BUILTIN_ELF 1
  2120. _ACEOF
  2121. else
  2122. { echo "$as_me:$LINENO: result: no" >&5
  2123. echo "${ECHO_T}no" >&6; }
  2124. fi
  2125. else
  2126. # enable by default
  2127. { echo "$as_me:$LINENO: result: yes" >&5
  2128. echo "${ECHO_T}yes" >&6; }
  2129. cat >>confdefs.h <<\_ACEOF
  2130. #define BUILTIN_ELF 1
  2131. _ACEOF
  2132. fi
  2133. { echo "$as_me:$LINENO: checking for ELF core file support" >&5
  2134. echo $ECHO_N "checking for ELF core file support... $ECHO_C" >&6; }
  2135. # Check whether --enable-elf-core was given.
  2136. if test "${enable_elf_core+set}" = set; then
  2137. enableval=$enable_elf_core; if test "${enableval}" = yes; then
  2138. { echo "$as_me:$LINENO: result: yes" >&5
  2139. echo "${ECHO_T}yes" >&6; }
  2140. cat >>confdefs.h <<\_ACEOF
  2141. #define ELFCORE 1
  2142. _ACEOF
  2143. else
  2144. { echo "$as_me:$LINENO: result: no" >&5
  2145. echo "${ECHO_T}no" >&6; }
  2146. fi
  2147. else
  2148. # enable by default
  2149. { echo "$as_me:$LINENO: result: yes" >&5
  2150. echo "${ECHO_T}yes" >&6; }
  2151. cat >>confdefs.h <<\_ACEOF
  2152. #define ELFCORE 1
  2153. _ACEOF
  2154. fi
  2155. { echo "$as_me:$LINENO: checking for file formats in man section 5" >&5
  2156. echo $ECHO_N "checking for file formats in man section 5... $ECHO_C" >&6; }
  2157. # Check whether --enable-fsect-man5 was given.
  2158. if test "${enable_fsect_man5+set}" = set; then
  2159. enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
  2160. { echo "$as_me:$LINENO: result: yes" >&5
  2161. echo "${ECHO_T}yes" >&6; }
  2162. fsect=5
  2163. else
  2164. { echo "$as_me:$LINENO: result: no" >&5
  2165. echo "${ECHO_T}no" >&6; }
  2166. fsect=4
  2167. fi
  2168. else
  2169. # disable by default
  2170. { echo "$as_me:$LINENO: result: no" >&5
  2171. echo "${ECHO_T}no" >&6; }
  2172. fsect=4
  2173. fi
  2174. if test x$fsect = x5; then
  2175. FSECT5_TRUE=
  2176. FSECT5_FALSE='#'
  2177. else
  2178. FSECT5_TRUE='#'
  2179. FSECT5_FALSE=
  2180. fi
  2181. cat >>confdefs.h <<\_ACEOF
  2182. #define _GNU_SOURCE 1
  2183. _ACEOF
  2184. ac_ext=c
  2185. ac_cpp='$CPP $CPPFLAGS'
  2186. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2187. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2188. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2189. if test -n "$ac_tool_prefix"; then
  2190. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2191. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2192. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2193. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2194. if test "${ac_cv_prog_CC+set}" = set; then
  2195. echo $ECHO_N "(cached) $ECHO_C" >&6
  2196. else
  2197. if test -n "$CC"; then
  2198. ac_cv_prog_CC="$CC" # Let the user override the test.
  2199. else
  2200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2201. for as_dir in $PATH
  2202. do
  2203. IFS=$as_save_IFS
  2204. test -z "$as_dir" && as_dir=.
  2205. for ac_exec_ext in '' $ac_executable_extensions; do
  2206. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2207. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2208. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2209. break 2
  2210. fi
  2211. done
  2212. done
  2213. IFS=$as_save_IFS
  2214. fi
  2215. fi
  2216. CC=$ac_cv_prog_CC
  2217. if test -n "$CC"; then
  2218. { echo "$as_me:$LINENO: result: $CC" >&5
  2219. echo "${ECHO_T}$CC" >&6; }
  2220. else
  2221. { echo "$as_me:$LINENO: result: no" >&5
  2222. echo "${ECHO_T}no" >&6; }
  2223. fi
  2224. fi
  2225. if test -z "$ac_cv_prog_CC"; then
  2226. ac_ct_CC=$CC
  2227. # Extract the first word of "gcc", so it can be a program name with args.
  2228. set dummy gcc; ac_word=$2
  2229. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2230. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2231. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2232. echo $ECHO_N "(cached) $ECHO_C" >&6
  2233. else
  2234. if test -n "$ac_ct_CC"; then
  2235. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2236. else
  2237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2238. for as_dir in $PATH
  2239. do
  2240. IFS=$as_save_IFS
  2241. test -z "$as_dir" && as_dir=.
  2242. for ac_exec_ext in '' $ac_executable_extensions; do
  2243. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2244. ac_cv_prog_ac_ct_CC="gcc"
  2245. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2246. break 2
  2247. fi
  2248. done
  2249. done
  2250. IFS=$as_save_IFS
  2251. fi
  2252. fi
  2253. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2254. if test -n "$ac_ct_CC"; then
  2255. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2256. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2257. else
  2258. { echo "$as_me:$LINENO: result: no" >&5
  2259. echo "${ECHO_T}no" >&6; }
  2260. fi
  2261. if test "x$ac_ct_CC" = x; then
  2262. CC=""
  2263. else
  2264. case $cross_compiling:$ac_tool_warned in
  2265. yes:)
  2266. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2267. whose name does not start with the host triplet. If you think this
  2268. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2269. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2270. whose name does not start with the host triplet. If you think this
  2271. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2272. ac_tool_warned=yes ;;
  2273. esac
  2274. CC=$ac_ct_CC
  2275. fi
  2276. else
  2277. CC="$ac_cv_prog_CC"
  2278. fi
  2279. if test -z "$CC"; then
  2280. if test -n "$ac_tool_prefix"; then
  2281. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2282. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2283. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2284. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2285. if test "${ac_cv_prog_CC+set}" = set; then
  2286. echo $ECHO_N "(cached) $ECHO_C" >&6
  2287. else
  2288. if test -n "$CC"; then
  2289. ac_cv_prog_CC="$CC" # Let the user override the test.
  2290. else
  2291. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2292. for as_dir in $PATH
  2293. do
  2294. IFS=$as_save_IFS
  2295. test -z "$as_dir" && as_dir=.
  2296. for ac_exec_ext in '' $ac_executable_extensions; do
  2297. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2298. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2299. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2300. break 2
  2301. fi
  2302. done
  2303. done
  2304. IFS=$as_save_IFS
  2305. fi
  2306. fi
  2307. CC=$ac_cv_prog_CC
  2308. if test -n "$CC"; then
  2309. { echo "$as_me:$LINENO: result: $CC" >&5
  2310. echo "${ECHO_T}$CC" >&6; }
  2311. else
  2312. { echo "$as_me:$LINENO: result: no" >&5
  2313. echo "${ECHO_T}no" >&6; }
  2314. fi
  2315. fi
  2316. fi
  2317. if test -z "$CC"; then
  2318. # Extract the first word of "cc", so it can be a program name with args.
  2319. set dummy cc; ac_word=$2
  2320. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2321. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2322. if test "${ac_cv_prog_CC+set}" = set; then
  2323. echo $ECHO_N "(cached) $ECHO_C" >&6
  2324. else
  2325. if test -n "$CC"; then
  2326. ac_cv_prog_CC="$CC" # Let the user override the test.
  2327. else
  2328. ac_prog_rejected=no
  2329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2330. for as_dir in $PATH
  2331. do
  2332. IFS=$as_save_IFS
  2333. test -z "$as_dir" && as_dir=.
  2334. for ac_exec_ext in '' $ac_executable_extensions; do
  2335. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2336. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2337. ac_prog_rejected=yes
  2338. continue
  2339. fi
  2340. ac_cv_prog_CC="cc"
  2341. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2342. break 2
  2343. fi
  2344. done
  2345. done
  2346. IFS=$as_save_IFS
  2347. if test $ac_prog_rejected = yes; then
  2348. # We found a bogon in the path, so make sure we never use it.
  2349. set dummy $ac_cv_prog_CC
  2350. shift
  2351. if test $# != 0; then
  2352. # We chose a different compiler from the bogus one.
  2353. # However, it has the same basename, so the bogon will be chosen
  2354. # first if we set CC to just the basename; use the full file name.
  2355. shift
  2356. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2357. fi
  2358. fi
  2359. fi
  2360. fi
  2361. CC=$ac_cv_prog_CC
  2362. if test -n "$CC"; then
  2363. { echo "$as_me:$LINENO: result: $CC" >&5
  2364. echo "${ECHO_T}$CC" >&6; }
  2365. else
  2366. { echo "$as_me:$LINENO: result: no" >&5
  2367. echo "${ECHO_T}no" >&6; }
  2368. fi
  2369. fi
  2370. if test -z "$CC"; then
  2371. if test -n "$ac_tool_prefix"; then
  2372. for ac_prog in cl.exe
  2373. do
  2374. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2375. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2376. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2377. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2378. if test "${ac_cv_prog_CC+set}" = set; then
  2379. echo $ECHO_N "(cached) $ECHO_C" >&6
  2380. else
  2381. if test -n "$CC"; then
  2382. ac_cv_prog_CC="$CC" # Let the user override the test.
  2383. else
  2384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2385. for as_dir in $PATH
  2386. do
  2387. IFS=$as_save_IFS
  2388. test -z "$as_dir" && as_dir=.
  2389. for ac_exec_ext in '' $ac_executable_extensions; do
  2390. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2391. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2392. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2393. break 2
  2394. fi
  2395. done
  2396. done
  2397. IFS=$as_save_IFS
  2398. fi
  2399. fi
  2400. CC=$ac_cv_prog_CC
  2401. if test -n "$CC"; then
  2402. { echo "$as_me:$LINENO: result: $CC" >&5
  2403. echo "${ECHO_T}$CC" >&6; }
  2404. else
  2405. { echo "$as_me:$LINENO: result: no" >&5
  2406. echo "${ECHO_T}no" >&6; }
  2407. fi
  2408. test -n "$CC" && break
  2409. done
  2410. fi
  2411. if test -z "$CC"; then
  2412. ac_ct_CC=$CC
  2413. for ac_prog in cl.exe
  2414. do
  2415. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2416. set dummy $ac_prog; ac_word=$2
  2417. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2418. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2419. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2420. echo $ECHO_N "(cached) $ECHO_C" >&6
  2421. else
  2422. if test -n "$ac_ct_CC"; then
  2423. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2424. else
  2425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2426. for as_dir in $PATH
  2427. do
  2428. IFS=$as_save_IFS
  2429. test -z "$as_dir" && as_dir=.
  2430. for ac_exec_ext in '' $ac_executable_extensions; do
  2431. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2432. ac_cv_prog_ac_ct_CC="$ac_prog"
  2433. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2434. break 2
  2435. fi
  2436. done
  2437. done
  2438. IFS=$as_save_IFS
  2439. fi
  2440. fi
  2441. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2442. if test -n "$ac_ct_CC"; then
  2443. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2444. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2445. else
  2446. { echo "$as_me:$LINENO: result: no" >&5
  2447. echo "${ECHO_T}no" >&6; }
  2448. fi
  2449. test -n "$ac_ct_CC" && break
  2450. done
  2451. if test "x$ac_ct_CC" = x; then
  2452. CC=""
  2453. else
  2454. case $cross_compiling:$ac_tool_warned in
  2455. yes:)
  2456. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2457. whose name does not start with the host triplet. If you think this
  2458. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2459. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2460. whose name does not start with the host triplet. If you think this
  2461. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2462. ac_tool_warned=yes ;;
  2463. esac
  2464. CC=$ac_ct_CC
  2465. fi
  2466. fi
  2467. fi
  2468. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2469. See \`config.log' for more details." >&5
  2470. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2471. See \`config.log' for more details." >&2;}
  2472. { (exit 1); exit 1; }; }
  2473. # Provide some information about the compiler.
  2474. echo "$as_me:$LINENO: checking for C compiler version" >&5
  2475. ac_compiler=`set X $ac_compile; echo $2`
  2476. { (ac_try="$ac_compiler --version >&5"
  2477. case "(($ac_try" in
  2478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2479. *) ac_try_echo=$ac_try;;
  2480. esac
  2481. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2482. (eval "$ac_compiler --version >&5") 2>&5
  2483. ac_status=$?
  2484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2485. (exit $ac_status); }
  2486. { (ac_try="$ac_compiler -v >&5"
  2487. case "(($ac_try" in
  2488. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2489. *) ac_try_echo=$ac_try;;
  2490. esac
  2491. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2492. (eval "$ac_compiler -v >&5") 2>&5
  2493. ac_status=$?
  2494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2495. (exit $ac_status); }
  2496. { (ac_try="$ac_compiler -V >&5"
  2497. case "(($ac_try" in
  2498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2499. *) ac_try_echo=$ac_try;;
  2500. esac
  2501. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2502. (eval "$ac_compiler -V >&5") 2>&5
  2503. ac_status=$?
  2504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2505. (exit $ac_status); }
  2506. cat >conftest.$ac_ext <<_ACEOF
  2507. /* confdefs.h. */
  2508. _ACEOF
  2509. cat confdefs.h >>conftest.$ac_ext
  2510. cat >>conftest.$ac_ext <<_ACEOF
  2511. /* end confdefs.h. */
  2512. int
  2513. main ()
  2514. {
  2515. ;
  2516. return 0;
  2517. }
  2518. _ACEOF
  2519. ac_clean_files_save=$ac_clean_files
  2520. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2521. # Try to create an executable without -o first, disregard a.out.
  2522. # It will help us diagnose broken compilers, and finding out an intuition
  2523. # of exeext.
  2524. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2525. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2526. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2527. #
  2528. # List of possible output files, starting from the most likely.
  2529. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2530. # only as a last resort. b.out is created by i960 compilers.
  2531. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2532. #
  2533. # The IRIX 6 linker writes into existing files which may not be
  2534. # executable, retaining their permissions. Remove them first so a
  2535. # subsequent execution test works.
  2536. ac_rmfiles=
  2537. for ac_file in $ac_files
  2538. do
  2539. case $ac_file in
  2540. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2541. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2542. esac
  2543. done
  2544. rm -f $ac_rmfiles
  2545. if { (ac_try="$ac_link_default"
  2546. case "(($ac_try" in
  2547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2548. *) ac_try_echo=$ac_try;;
  2549. esac
  2550. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2551. (eval "$ac_link_default") 2>&5
  2552. ac_status=$?
  2553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2554. (exit $ac_status); }; then
  2555. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2556. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2557. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2558. # so that the user can short-circuit this test for compilers unknown to
  2559. # Autoconf.
  2560. for ac_file in $ac_files ''
  2561. do
  2562. test -f "$ac_file" || continue
  2563. case $ac_file in
  2564. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2565. ;;
  2566. [ab].out )
  2567. # We found the default executable, but exeext='' is most
  2568. # certainly right.
  2569. break;;
  2570. *.* )
  2571. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2572. then :; else
  2573. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2574. fi
  2575. # We set ac_cv_exeext here because the later test for it is not
  2576. # safe: cross compilers may not add the suffix if given an `-o'
  2577. # argument, so we may need to know it at that point already.
  2578. # Even if this section looks crufty: it has the advantage of
  2579. # actually working.
  2580. break;;
  2581. * )
  2582. break;;
  2583. esac
  2584. done
  2585. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2586. else
  2587. ac_file=''
  2588. fi
  2589. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2590. echo "${ECHO_T}$ac_file" >&6; }
  2591. if test -z "$ac_file"; then
  2592. echo "$as_me: failed program was:" >&5
  2593. sed 's/^/| /' conftest.$ac_ext >&5
  2594. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2595. See \`config.log' for more details." >&5
  2596. echo "$as_me: error: C compiler cannot create executables
  2597. See \`config.log' for more details." >&2;}
  2598. { (exit 77); exit 77; }; }
  2599. fi
  2600. ac_exeext=$ac_cv_exeext
  2601. # Check that the compiler produces executables we can run. If not, either
  2602. # the compiler is broken, or we cross compile.
  2603. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2604. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2605. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2606. # If not cross compiling, check that we can run a simple program.
  2607. if test "$cross_compiling" != yes; then
  2608. if { ac_try='./$ac_file'
  2609. { (case "(($ac_try" in
  2610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2611. *) ac_try_echo=$ac_try;;
  2612. esac
  2613. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2614. (eval "$ac_try") 2>&5
  2615. ac_status=$?
  2616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2617. (exit $ac_status); }; }; then
  2618. cross_compiling=no
  2619. else
  2620. if test "$cross_compiling" = maybe; then
  2621. cross_compiling=yes
  2622. else
  2623. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2624. If you meant to cross compile, use \`--host'.
  2625. See \`config.log' for more details." >&5
  2626. echo "$as_me: error: cannot run C compiled programs.
  2627. If you meant to cross compile, use \`--host'.
  2628. See \`config.log' for more details." >&2;}
  2629. { (exit 1); exit 1; }; }
  2630. fi
  2631. fi
  2632. fi
  2633. { echo "$as_me:$LINENO: result: yes" >&5
  2634. echo "${ECHO_T}yes" >&6; }
  2635. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2636. ac_clean_files=$ac_clean_files_save
  2637. # Check that the compiler produces executables we can run. If not, either
  2638. # the compiler is broken, or we cross compile.
  2639. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2640. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2641. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2642. echo "${ECHO_T}$cross_compiling" >&6; }
  2643. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2644. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2645. if { (ac_try="$ac_link"
  2646. case "(($ac_try" in
  2647. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2648. *) ac_try_echo=$ac_try;;
  2649. esac
  2650. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2651. (eval "$ac_link") 2>&5
  2652. ac_status=$?
  2653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2654. (exit $ac_status); }; then
  2655. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2656. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2657. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2658. # `rm'.
  2659. for ac_file in conftest.exe conftest conftest.*; do
  2660. test -f "$ac_file" || continue
  2661. case $ac_file in
  2662. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2663. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2664. break;;
  2665. * ) break;;
  2666. esac
  2667. done
  2668. else
  2669. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2670. See \`config.log' for more details." >&5
  2671. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2672. See \`config.log' for more details." >&2;}
  2673. { (exit 1); exit 1; }; }
  2674. fi
  2675. rm -f conftest$ac_cv_exeext
  2676. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2677. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2678. rm -f conftest.$ac_ext
  2679. EXEEXT=$ac_cv_exeext
  2680. ac_exeext=$EXEEXT
  2681. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2682. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2683. if test "${ac_cv_objext+set}" = set; then
  2684. echo $ECHO_N "(cached) $ECHO_C" >&6
  2685. else
  2686. cat >conftest.$ac_ext <<_ACEOF
  2687. /* confdefs.h. */
  2688. _ACEOF
  2689. cat confdefs.h >>conftest.$ac_ext
  2690. cat >>conftest.$ac_ext <<_ACEOF
  2691. /* end confdefs.h. */
  2692. int
  2693. main ()
  2694. {
  2695. ;
  2696. return 0;
  2697. }
  2698. _ACEOF
  2699. rm -f conftest.o conftest.obj
  2700. if { (ac_try="$ac_compile"
  2701. case "(($ac_try" in
  2702. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2703. *) ac_try_echo=$ac_try;;
  2704. esac
  2705. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2706. (eval "$ac_compile") 2>&5
  2707. ac_status=$?
  2708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2709. (exit $ac_status); }; then
  2710. for ac_file in conftest.o conftest.obj conftest.*; do
  2711. test -f "$ac_file" || continue;
  2712. case $ac_file in
  2713. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2714. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2715. break;;
  2716. esac
  2717. done
  2718. else
  2719. echo "$as_me: failed program was:" >&5
  2720. sed 's/^/| /' conftest.$ac_ext >&5
  2721. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2722. See \`config.log' for more details." >&5
  2723. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2724. See \`config.log' for more details." >&2;}
  2725. { (exit 1); exit 1; }; }
  2726. fi
  2727. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2728. fi
  2729. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2730. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2731. OBJEXT=$ac_cv_objext
  2732. ac_objext=$OBJEXT
  2733. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2734. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2735. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2736. echo $ECHO_N "(cached) $ECHO_C" >&6
  2737. else
  2738. cat >conftest.$ac_ext <<_ACEOF
  2739. /* confdefs.h. */
  2740. _ACEOF
  2741. cat confdefs.h >>conftest.$ac_ext
  2742. cat >>conftest.$ac_ext <<_ACEOF
  2743. /* end confdefs.h. */
  2744. int
  2745. main ()
  2746. {
  2747. #ifndef __GNUC__
  2748. choke me
  2749. #endif
  2750. ;
  2751. return 0;
  2752. }
  2753. _ACEOF
  2754. rm -f conftest.$ac_objext
  2755. if { (ac_try="$ac_compile"
  2756. case "(($ac_try" in
  2757. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2758. *) ac_try_echo=$ac_try;;
  2759. esac
  2760. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2761. (eval "$ac_compile") 2>conftest.er1
  2762. ac_status=$?
  2763. grep -v '^ *+' conftest.er1 >conftest.err
  2764. rm -f conftest.er1
  2765. cat conftest.err >&5
  2766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2767. (exit $ac_status); } && {
  2768. test -z "$ac_c_werror_flag" ||
  2769. test ! -s conftest.err
  2770. } && test -s conftest.$ac_objext; then
  2771. ac_compiler_gnu=yes
  2772. else
  2773. echo "$as_me: failed program was:" >&5
  2774. sed 's/^/| /' conftest.$ac_ext >&5
  2775. ac_compiler_gnu=no
  2776. fi
  2777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2778. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2779. fi
  2780. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2781. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2782. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2783. ac_test_CFLAGS=${CFLAGS+set}
  2784. ac_save_CFLAGS=$CFLAGS
  2785. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2786. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2787. if test "${ac_cv_prog_cc_g+set}" = set; then
  2788. echo $ECHO_N "(cached) $ECHO_C" >&6
  2789. else
  2790. ac_save_c_werror_flag=$ac_c_werror_flag
  2791. ac_c_werror_flag=yes
  2792. ac_cv_prog_cc_g=no
  2793. CFLAGS="-g"
  2794. cat >conftest.$ac_ext <<_ACEOF
  2795. /* confdefs.h. */
  2796. _ACEOF
  2797. cat confdefs.h >>conftest.$ac_ext
  2798. cat >>conftest.$ac_ext <<_ACEOF
  2799. /* end confdefs.h. */
  2800. int
  2801. main ()
  2802. {
  2803. ;
  2804. return 0;
  2805. }
  2806. _ACEOF
  2807. rm -f conftest.$ac_objext
  2808. if { (ac_try="$ac_compile"
  2809. case "(($ac_try" in
  2810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2811. *) ac_try_echo=$ac_try;;
  2812. esac
  2813. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2814. (eval "$ac_compile") 2>conftest.er1
  2815. ac_status=$?
  2816. grep -v '^ *+' conftest.er1 >conftest.err
  2817. rm -f conftest.er1
  2818. cat conftest.err >&5
  2819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2820. (exit $ac_status); } && {
  2821. test -z "$ac_c_werror_flag" ||
  2822. test ! -s conftest.err
  2823. } && test -s conftest.$ac_objext; then
  2824. ac_cv_prog_cc_g=yes
  2825. else
  2826. echo "$as_me: failed program was:" >&5
  2827. sed 's/^/| /' conftest.$ac_ext >&5
  2828. CFLAGS=""
  2829. cat >conftest.$ac_ext <<_ACEOF
  2830. /* confdefs.h. */
  2831. _ACEOF
  2832. cat confdefs.h >>conftest.$ac_ext
  2833. cat >>conftest.$ac_ext <<_ACEOF
  2834. /* end confdefs.h. */
  2835. int
  2836. main ()
  2837. {
  2838. ;
  2839. return 0;
  2840. }
  2841. _ACEOF
  2842. rm -f conftest.$ac_objext
  2843. if { (ac_try="$ac_compile"
  2844. case "(($ac_try" in
  2845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2846. *) ac_try_echo=$ac_try;;
  2847. esac
  2848. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2849. (eval "$ac_compile") 2>conftest.er1
  2850. ac_status=$?
  2851. grep -v '^ *+' conftest.er1 >conftest.err
  2852. rm -f conftest.er1
  2853. cat conftest.err >&5
  2854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2855. (exit $ac_status); } && {
  2856. test -z "$ac_c_werror_flag" ||
  2857. test ! -s conftest.err
  2858. } && test -s conftest.$ac_objext; then
  2859. :
  2860. else
  2861. echo "$as_me: failed program was:" >&5
  2862. sed 's/^/| /' conftest.$ac_ext >&5
  2863. ac_c_werror_flag=$ac_save_c_werror_flag
  2864. CFLAGS="-g"
  2865. cat >conftest.$ac_ext <<_ACEOF
  2866. /* confdefs.h. */
  2867. _ACEOF
  2868. cat confdefs.h >>conftest.$ac_ext
  2869. cat >>conftest.$ac_ext <<_ACEOF
  2870. /* end confdefs.h. */
  2871. int
  2872. main ()
  2873. {
  2874. ;
  2875. return 0;
  2876. }
  2877. _ACEOF
  2878. rm -f conftest.$ac_objext
  2879. if { (ac_try="$ac_compile"
  2880. case "(($ac_try" in
  2881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2882. *) ac_try_echo=$ac_try;;
  2883. esac
  2884. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2885. (eval "$ac_compile") 2>conftest.er1
  2886. ac_status=$?
  2887. grep -v '^ *+' conftest.er1 >conftest.err
  2888. rm -f conftest.er1
  2889. cat conftest.err >&5
  2890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2891. (exit $ac_status); } && {
  2892. test -z "$ac_c_werror_flag" ||
  2893. test ! -s conftest.err
  2894. } && test -s conftest.$ac_objext; then
  2895. ac_cv_prog_cc_g=yes
  2896. else
  2897. echo "$as_me: failed program was:" >&5
  2898. sed 's/^/| /' conftest.$ac_ext >&5
  2899. fi
  2900. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2901. fi
  2902. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2903. fi
  2904. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2905. ac_c_werror_flag=$ac_save_c_werror_flag
  2906. fi
  2907. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2908. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2909. if test "$ac_test_CFLAGS" = set; then
  2910. CFLAGS=$ac_save_CFLAGS
  2911. elif test $ac_cv_prog_cc_g = yes; then
  2912. if test "$GCC" = yes; then
  2913. CFLAGS="-g -O2"
  2914. else
  2915. CFLAGS="-g"
  2916. fi
  2917. else
  2918. if test "$GCC" = yes; then
  2919. CFLAGS="-O2"
  2920. else
  2921. CFLAGS=
  2922. fi
  2923. fi
  2924. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2925. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  2926. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2927. echo $ECHO_N "(cached) $ECHO_C" >&6
  2928. else
  2929. ac_cv_prog_cc_c89=no
  2930. ac_save_CC=$CC
  2931. cat >conftest.$ac_ext <<_ACEOF
  2932. /* confdefs.h. */
  2933. _ACEOF
  2934. cat confdefs.h >>conftest.$ac_ext
  2935. cat >>conftest.$ac_ext <<_ACEOF
  2936. /* end confdefs.h. */
  2937. #include <stdarg.h>
  2938. #include <stdio.h>
  2939. #include <sys/types.h>
  2940. #include <sys/stat.h>
  2941. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2942. struct buf { int x; };
  2943. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2944. static char *e (p, i)
  2945. char **p;
  2946. int i;
  2947. {
  2948. return p[i];
  2949. }
  2950. static char *f (char * (*g) (char **, int), char **p, ...)
  2951. {
  2952. char *s;
  2953. va_list v;
  2954. va_start (v,p);
  2955. s = g (p, va_arg (v,int));
  2956. va_end (v);
  2957. return s;
  2958. }
  2959. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2960. function prototypes and stuff, but not '\xHH' hex character constants.
  2961. These don't provoke an error unfortunately, instead are silently treated
  2962. as 'x'. The following induces an error, until -std is added to get
  2963. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2964. array size at least. It's necessary to write '\x00'==0 to get something
  2965. that's true only with -std. */
  2966. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2967. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2968. inside strings and character constants. */
  2969. #define FOO(x) 'x'
  2970. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2971. int test (int i, double x);
  2972. struct s1 {int (*f) (int a);};
  2973. struct s2 {int (*f) (double a);};
  2974. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2975. int argc;
  2976. char **argv;
  2977. int
  2978. main ()
  2979. {
  2980. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2981. ;
  2982. return 0;
  2983. }
  2984. _ACEOF
  2985. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2986. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2987. do
  2988. CC="$ac_save_CC $ac_arg"
  2989. rm -f conftest.$ac_objext
  2990. if { (ac_try="$ac_compile"
  2991. case "(($ac_try" in
  2992. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2993. *) ac_try_echo=$ac_try;;
  2994. esac
  2995. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2996. (eval "$ac_compile") 2>conftest.er1
  2997. ac_status=$?
  2998. grep -v '^ *+' conftest.er1 >conftest.err
  2999. rm -f conftest.er1
  3000. cat conftest.err >&5
  3001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3002. (exit $ac_status); } && {
  3003. test -z "$ac_c_werror_flag" ||
  3004. test ! -s conftest.err
  3005. } && test -s conftest.$ac_objext; then
  3006. ac_cv_prog_cc_c89=$ac_arg
  3007. else
  3008. echo "$as_me: failed program was:" >&5
  3009. sed 's/^/| /' conftest.$ac_ext >&5
  3010. fi
  3011. rm -f core conftest.err conftest.$ac_objext
  3012. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3013. done
  3014. rm -f conftest.$ac_ext
  3015. CC=$ac_save_CC
  3016. fi
  3017. # AC_CACHE_VAL
  3018. case "x$ac_cv_prog_cc_c89" in
  3019. x)
  3020. { echo "$as_me:$LINENO: result: none needed" >&5
  3021. echo "${ECHO_T}none needed" >&6; } ;;
  3022. xno)
  3023. { echo "$as_me:$LINENO: result: unsupported" >&5
  3024. echo "${ECHO_T}unsupported" >&6; } ;;
  3025. *)
  3026. CC="$CC $ac_cv_prog_cc_c89"
  3027. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3028. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3029. esac
  3030. ac_ext=c
  3031. ac_cpp='$CPP $CPPFLAGS'
  3032. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3033. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3034. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3035. DEPDIR="${am__leading_dot}deps"
  3036. ac_config_commands="$ac_config_commands depfiles"
  3037. am_make=${MAKE-make}
  3038. cat > confinc << 'END'
  3039. am__doit:
  3040. @echo done
  3041. .PHONY: am__doit
  3042. END
  3043. # If we don't find an include directive, just comment out the code.
  3044. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3045. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  3046. am__include="#"
  3047. am__quote=
  3048. _am_result=none
  3049. # First try GNU make style include.
  3050. echo "include confinc" > confmf
  3051. # We grep out `Entering directory' and `Leaving directory'
  3052. # messages which can occur if `w' ends up in MAKEFLAGS.
  3053. # In particular we don't look at `^make:' because GNU make might
  3054. # be invoked under some other name (usually "gmake"), in which
  3055. # case it prints its new name instead of `make'.
  3056. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3057. am__include=include
  3058. am__quote=
  3059. _am_result=GNU
  3060. fi
  3061. # Now try BSD make style include.
  3062. if test "$am__include" = "#"; then
  3063. echo '.include "confinc"' > confmf
  3064. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3065. am__include=.include
  3066. am__quote="\""
  3067. _am_result=BSD
  3068. fi
  3069. fi
  3070. { echo "$as_me:$LINENO: result: $_am_result" >&5
  3071. echo "${ECHO_T}$_am_result" >&6; }
  3072. rm -f confinc confmf
  3073. # Check whether --enable-dependency-tracking was given.
  3074. if test "${enable_dependency_tracking+set}" = set; then
  3075. enableval=$enable_dependency_tracking;
  3076. fi
  3077. if test "x$enable_dependency_tracking" != xno; then
  3078. am_depcomp="$ac_aux_dir/depcomp"
  3079. AMDEPBACKSLASH='\'
  3080. fi
  3081. if test "x$enable_dependency_tracking" != xno; then
  3082. AMDEP_TRUE=
  3083. AMDEP_FALSE='#'
  3084. else
  3085. AMDEP_TRUE='#'
  3086. AMDEP_FALSE=
  3087. fi
  3088. depcc="$CC" am_compiler_list=
  3089. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3090. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3091. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3092. echo $ECHO_N "(cached) $ECHO_C" >&6
  3093. else
  3094. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3095. # We make a subdir and do the tests there. Otherwise we can end up
  3096. # making bogus files that we don't know about and never remove. For
  3097. # instance it was reported that on HP-UX the gcc test will end up
  3098. # making a dummy file named `D' -- because `-MD' means `put the output
  3099. # in D'.
  3100. mkdir conftest.dir
  3101. # Copy depcomp to subdir because otherwise we won't find it if we're
  3102. # using a relative directory.
  3103. cp "$am_depcomp" conftest.dir
  3104. cd conftest.dir
  3105. # We will build objects and dependencies in a subdirectory because
  3106. # it helps to detect inapplicable dependency modes. For instance
  3107. # both Tru64's cc and ICC support -MD to output dependencies as a
  3108. # side effect of compilation, but ICC will put the dependencies in
  3109. # the current directory while Tru64 will put them in the object
  3110. # directory.
  3111. mkdir sub
  3112. am_cv_CC_dependencies_compiler_type=none
  3113. if test "$am_compiler_list" = ""; then
  3114. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3115. fi
  3116. for depmode in $am_compiler_list; do
  3117. # Setup a source with many dependencies, because some compilers
  3118. # like to wrap large dependency lists on column 80 (with \), and
  3119. # we should not choose a depcomp mode which is confused by this.
  3120. #
  3121. # We need to recreate these files for each test, as the compiler may
  3122. # overwrite some of them when testing with obscure command lines.
  3123. # This happens at least with the AIX C compiler.
  3124. : > sub/conftest.c
  3125. for i in 1 2 3 4 5 6; do
  3126. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3127. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3128. # Solaris 8's {/usr,}/bin/sh.
  3129. touch sub/conftst$i.h
  3130. done
  3131. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3132. case $depmode in
  3133. nosideeffect)
  3134. # after this tag, mechanisms are not by side-effect, so they'll
  3135. # only be used when explicitly requested
  3136. if test "x$enable_dependency_tracking" = xyes; then
  3137. continue
  3138. else
  3139. break
  3140. fi
  3141. ;;
  3142. none) break ;;
  3143. esac
  3144. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3145. # mode. It turns out that the SunPro C++ compiler does not properly
  3146. # handle `-M -o', and we need to detect this.
  3147. if depmode=$depmode \
  3148. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3149. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3150. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3151. >/dev/null 2>conftest.err &&
  3152. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3153. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3154. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3155. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3156. # icc doesn't choke on unknown options, it will just issue warnings
  3157. # or remarks (even with -Werror). So we grep stderr for any message
  3158. # that says an option was ignored or not supported.
  3159. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3160. # icc: Command line warning: ignoring option '-M'; no argument required
  3161. # The diagnosis changed in icc 8.0:
  3162. # icc: Command line remark: option '-MP' not supported
  3163. if (grep 'ignoring option' conftest.err ||
  3164. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3165. am_cv_CC_dependencies_compiler_type=$depmode
  3166. break
  3167. fi
  3168. fi
  3169. done
  3170. cd ..
  3171. rm -rf conftest.dir
  3172. else
  3173. am_cv_CC_dependencies_compiler_type=none
  3174. fi
  3175. fi
  3176. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3177. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3178. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3179. if
  3180. test "x$enable_dependency_tracking" != xno \
  3181. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3182. am__fastdepCC_TRUE=
  3183. am__fastdepCC_FALSE='#'
  3184. else
  3185. am__fastdepCC_TRUE='#'
  3186. am__fastdepCC_FALSE=
  3187. fi
  3188. if test "x$CC" != xcc; then
  3189. { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  3190. echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
  3191. else
  3192. { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  3193. echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
  3194. fi
  3195. set dummy $CC; ac_cc=`echo $2 |
  3196. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3197. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  3198. echo $ECHO_N "(cached) $ECHO_C" >&6
  3199. else
  3200. cat >conftest.$ac_ext <<_ACEOF
  3201. /* confdefs.h. */
  3202. _ACEOF
  3203. cat confdefs.h >>conftest.$ac_ext
  3204. cat >>conftest.$ac_ext <<_ACEOF
  3205. /* end confdefs.h. */
  3206. int
  3207. main ()
  3208. {
  3209. ;
  3210. return 0;
  3211. }
  3212. _ACEOF
  3213. # Make sure it works both with $CC and with simple cc.
  3214. # We do the test twice because some compilers refuse to overwrite an
  3215. # existing .o file with -o, though they will create one.
  3216. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3217. rm -f conftest2.*
  3218. if { (case "(($ac_try" in
  3219. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3220. *) ac_try_echo=$ac_try;;
  3221. esac
  3222. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3223. (eval "$ac_try") 2>&5
  3224. ac_status=$?
  3225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3226. (exit $ac_status); } &&
  3227. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  3228. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3229. *) ac_try_echo=$ac_try;;
  3230. esac
  3231. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3232. (eval "$ac_try") 2>&5
  3233. ac_status=$?
  3234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3235. (exit $ac_status); };
  3236. then
  3237. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3238. if test "x$CC" != xcc; then
  3239. # Test first that cc exists at all.
  3240. if { ac_try='cc -c conftest.$ac_ext >&5'
  3241. { (case "(($ac_try" in
  3242. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3243. *) ac_try_echo=$ac_try;;
  3244. esac
  3245. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3246. (eval "$ac_try") 2>&5
  3247. ac_status=$?
  3248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3249. (exit $ac_status); }; }; then
  3250. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3251. rm -f conftest2.*
  3252. if { (case "(($ac_try" in
  3253. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3254. *) ac_try_echo=$ac_try;;
  3255. esac
  3256. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3257. (eval "$ac_try") 2>&5
  3258. ac_status=$?
  3259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3260. (exit $ac_status); } &&
  3261. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  3262. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3263. *) ac_try_echo=$ac_try;;
  3264. esac
  3265. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3266. (eval "$ac_try") 2>&5
  3267. ac_status=$?
  3268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3269. (exit $ac_status); };
  3270. then
  3271. # cc works too.
  3272. :
  3273. else
  3274. # cc exists but doesn't like -o.
  3275. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3276. fi
  3277. fi
  3278. fi
  3279. else
  3280. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3281. fi
  3282. rm -f core conftest*
  3283. fi
  3284. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  3285. { echo "$as_me:$LINENO: result: yes" >&5
  3286. echo "${ECHO_T}yes" >&6; }
  3287. else
  3288. { echo "$as_me:$LINENO: result: no" >&5
  3289. echo "${ECHO_T}no" >&6; }
  3290. cat >>confdefs.h <<\_ACEOF
  3291. #define NO_MINUS_C_MINUS_O 1
  3292. _ACEOF
  3293. fi
  3294. # FIXME: we rely on the cache variable name because
  3295. # there is no other way.
  3296. set dummy $CC
  3297. ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3298. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  3299. # Losing compiler, so override with the script.
  3300. # FIXME: It is wrong to rewrite CC.
  3301. # But if we don't then we get into trouble of one sort or another.
  3302. # A longer-term fix would be to have automake use am__CC in this case,
  3303. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3304. CC="$am_aux_dir/compile $CC"
  3305. fi
  3306. # Find a good install program. We prefer a C program (faster),
  3307. # so one script is as good as another. But avoid the broken or
  3308. # incompatible versions:
  3309. # SysV /etc/install, /usr/sbin/install
  3310. # SunOS /usr/etc/install
  3311. # IRIX /sbin/install
  3312. # AIX /bin/install
  3313. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3314. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3315. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3316. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3317. # OS/2's system install, which has a completely different semantic
  3318. # ./install, which can be erroneously created by make from ./install.sh.
  3319. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3320. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3321. if test -z "$INSTALL"; then
  3322. if test "${ac_cv_path_install+set}" = set; then
  3323. echo $ECHO_N "(cached) $ECHO_C" >&6
  3324. else
  3325. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3326. for as_dir in $PATH
  3327. do
  3328. IFS=$as_save_IFS
  3329. test -z "$as_dir" && as_dir=.
  3330. # Account for people who put trailing slashes in PATH elements.
  3331. case $as_dir/ in
  3332. ./ | .// | /cC/* | \
  3333. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3334. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3335. /usr/ucb/* ) ;;
  3336. *)
  3337. # OSF1 and SCO ODT 3.0 have their own names for install.
  3338. # Don't use installbsd from OSF since it installs stuff as root
  3339. # by default.
  3340. for ac_prog in ginstall scoinst install; do
  3341. for ac_exec_ext in '' $ac_executable_extensions; do
  3342. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3343. if test $ac_prog = install &&
  3344. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3345. # AIX install. It has an incompatible calling convention.
  3346. :
  3347. elif test $ac_prog = install &&
  3348. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3349. # program-specific install script used by HP pwplus--don't use.
  3350. :
  3351. else
  3352. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3353. break 3
  3354. fi
  3355. fi
  3356. done
  3357. done
  3358. ;;
  3359. esac
  3360. done
  3361. IFS=$as_save_IFS
  3362. fi
  3363. if test "${ac_cv_path_install+set}" = set; then
  3364. INSTALL=$ac_cv_path_install
  3365. else
  3366. # As a last resort, use the slow shell script. Don't cache a
  3367. # value for INSTALL within a source directory, because that will
  3368. # break other packages using the cache if that directory is
  3369. # removed, or if the value is a relative name.
  3370. INSTALL=$ac_install_sh
  3371. fi
  3372. fi
  3373. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3374. echo "${ECHO_T}$INSTALL" >&6; }
  3375. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3376. # It thinks the first close brace ends the variable substitution.
  3377. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3378. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3379. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3380. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3381. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  3382. LN_S=$as_ln_s
  3383. if test "$LN_S" = "ln -s"; then
  3384. { echo "$as_me:$LINENO: result: yes" >&5
  3385. echo "${ECHO_T}yes" >&6; }
  3386. else
  3387. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3388. echo "${ECHO_T}no, using $LN_S" >&6; }
  3389. fi
  3390. # Check whether --enable-shared was given.
  3391. if test "${enable_shared+set}" = set; then
  3392. enableval=$enable_shared; p=${PACKAGE-default}
  3393. case $enableval in
  3394. yes) enable_shared=yes ;;
  3395. no) enable_shared=no ;;
  3396. *)
  3397. enable_shared=no
  3398. # Look at the argument we got. We use all the common list separators.
  3399. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3400. for pkg in $enableval; do
  3401. IFS="$lt_save_ifs"
  3402. if test "X$pkg" = "X$p"; then
  3403. enable_shared=yes
  3404. fi
  3405. done
  3406. IFS="$lt_save_ifs"
  3407. ;;
  3408. esac
  3409. else
  3410. enable_shared=yes
  3411. fi
  3412. # Check whether --enable-static was given.
  3413. if test "${enable_static+set}" = set; then
  3414. enableval=$enable_static; p=${PACKAGE-default}
  3415. case $enableval in
  3416. yes) enable_static=yes ;;
  3417. no) enable_static=no ;;
  3418. *)
  3419. enable_static=no
  3420. # Look at the argument we got. We use all the common list separators.
  3421. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3422. for pkg in $enableval; do
  3423. IFS="$lt_save_ifs"
  3424. if test "X$pkg" = "X$p"; then
  3425. enable_static=yes
  3426. fi
  3427. done
  3428. IFS="$lt_save_ifs"
  3429. ;;
  3430. esac
  3431. else
  3432. enable_static=yes
  3433. fi
  3434. # Check whether --enable-fast-install was given.
  3435. if test "${enable_fast_install+set}" = set; then
  3436. enableval=$enable_fast_install; p=${PACKAGE-default}
  3437. case $enableval in
  3438. yes) enable_fast_install=yes ;;
  3439. no) enable_fast_install=no ;;
  3440. *)
  3441. enable_fast_install=no
  3442. # Look at the argument we got. We use all the common list separators.
  3443. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3444. for pkg in $enableval; do
  3445. IFS="$lt_save_ifs"
  3446. if test "X$pkg" = "X$p"; then
  3447. enable_fast_install=yes
  3448. fi
  3449. done
  3450. IFS="$lt_save_ifs"
  3451. ;;
  3452. esac
  3453. else
  3454. enable_fast_install=yes
  3455. fi
  3456. # Make sure we can run config.sub.
  3457. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3458. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  3459. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  3460. { (exit 1); exit 1; }; }
  3461. { echo "$as_me:$LINENO: checking build system type" >&5
  3462. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  3463. if test "${ac_cv_build+set}" = set; then
  3464. echo $ECHO_N "(cached) $ECHO_C" >&6
  3465. else
  3466. ac_build_alias=$build_alias
  3467. test "x$ac_build_alias" = x &&
  3468. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3469. test "x$ac_build_alias" = x &&
  3470. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  3471. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  3472. { (exit 1); exit 1; }; }
  3473. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3474. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  3475. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  3476. { (exit 1); exit 1; }; }
  3477. fi
  3478. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  3479. echo "${ECHO_T}$ac_cv_build" >&6; }
  3480. case $ac_cv_build in
  3481. *-*-*) ;;
  3482. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  3483. echo "$as_me: error: invalid value of canonical build" >&2;}
  3484. { (exit 1); exit 1; }; };;
  3485. esac
  3486. build=$ac_cv_build
  3487. ac_save_IFS=$IFS; IFS='-'
  3488. set x $ac_cv_build
  3489. shift
  3490. build_cpu=$1
  3491. build_vendor=$2
  3492. shift; shift
  3493. # Remember, the first character of IFS is used to create $*,
  3494. # except with old shells:
  3495. build_os=$*
  3496. IFS=$ac_save_IFS
  3497. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3498. { echo "$as_me:$LINENO: checking host system type" >&5
  3499. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  3500. if test "${ac_cv_host+set}" = set; then
  3501. echo $ECHO_N "(cached) $ECHO_C" >&6
  3502. else
  3503. if test "x$host_alias" = x; then
  3504. ac_cv_host=$ac_cv_build
  3505. else
  3506. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3507. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  3508. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  3509. { (exit 1); exit 1; }; }
  3510. fi
  3511. fi
  3512. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  3513. echo "${ECHO_T}$ac_cv_host" >&6; }
  3514. case $ac_cv_host in
  3515. *-*-*) ;;
  3516. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  3517. echo "$as_me: error: invalid value of canonical host" >&2;}
  3518. { (exit 1); exit 1; }; };;
  3519. esac
  3520. host=$ac_cv_host
  3521. ac_save_IFS=$IFS; IFS='-'
  3522. set x $ac_cv_host
  3523. shift
  3524. host_cpu=$1
  3525. host_vendor=$2
  3526. shift; shift
  3527. # Remember, the first character of IFS is used to create $*,
  3528. # except with old shells:
  3529. host_os=$*
  3530. IFS=$ac_save_IFS
  3531. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3532. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3533. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  3534. if test "${lt_cv_path_SED+set}" = set; then
  3535. echo $ECHO_N "(cached) $ECHO_C" >&6
  3536. else
  3537. # Loop through the user's path and test for sed and gsed.
  3538. # Then use that list of sed's as ones to test for truncation.
  3539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3540. for as_dir in $PATH
  3541. do
  3542. IFS=$as_save_IFS
  3543. test -z "$as_dir" && as_dir=.
  3544. for lt_ac_prog in sed gsed; do
  3545. for ac_exec_ext in '' $ac_executable_extensions; do
  3546. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  3547. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3548. fi
  3549. done
  3550. done
  3551. done
  3552. lt_ac_max=0
  3553. lt_ac_count=0
  3554. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3555. # along with /bin/sed that truncates output.
  3556. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3557. test ! -f $lt_ac_sed && continue
  3558. cat /dev/null > conftest.in
  3559. lt_ac_count=0
  3560. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3561. # Check for GNU sed and select it if it is found.
  3562. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3563. lt_cv_path_SED=$lt_ac_sed
  3564. break
  3565. fi
  3566. while true; do
  3567. cat conftest.in conftest.in >conftest.tmp
  3568. mv conftest.tmp conftest.in
  3569. cp conftest.in conftest.nl
  3570. echo >>conftest.nl
  3571. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3572. cmp -s conftest.out conftest.nl || break
  3573. # 10000 chars as input seems more than enough
  3574. test $lt_ac_count -gt 10 && break
  3575. lt_ac_count=`expr $lt_ac_count + 1`
  3576. if test $lt_ac_count -gt $lt_ac_max; then
  3577. lt_ac_max=$lt_ac_count
  3578. lt_cv_path_SED=$lt_ac_sed
  3579. fi
  3580. done
  3581. done
  3582. fi
  3583. SED=$lt_cv_path_SED
  3584. { echo "$as_me:$LINENO: result: $SED" >&5
  3585. echo "${ECHO_T}$SED" >&6; }
  3586. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3587. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  3588. if test "${ac_cv_path_GREP+set}" = set; then
  3589. echo $ECHO_N "(cached) $ECHO_C" >&6
  3590. else
  3591. # Extract the first word of "grep ggrep" to use in msg output
  3592. if test -z "$GREP"; then
  3593. set dummy grep ggrep; ac_prog_name=$2
  3594. if test "${ac_cv_path_GREP+set}" = set; then
  3595. echo $ECHO_N "(cached) $ECHO_C" >&6
  3596. else
  3597. ac_path_GREP_found=false
  3598. # Loop through the user's path and test for each of PROGNAME-LIST
  3599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3600. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3601. do
  3602. IFS=$as_save_IFS
  3603. test -z "$as_dir" && as_dir=.
  3604. for ac_prog in grep ggrep; do
  3605. for ac_exec_ext in '' $ac_executable_extensions; do
  3606. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3607. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3608. # Check for GNU ac_path_GREP and select it if it is found.
  3609. # Check for GNU $ac_path_GREP
  3610. case `"$ac_path_GREP" --version 2>&1` in
  3611. *GNU*)
  3612. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3613. *)
  3614. ac_count=0
  3615. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3616. while :
  3617. do
  3618. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3619. mv "conftest.tmp" "conftest.in"
  3620. cp "conftest.in" "conftest.nl"
  3621. echo 'GREP' >> "conftest.nl"
  3622. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3623. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3624. ac_count=`expr $ac_count + 1`
  3625. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3626. # Best one so far, save it but keep looking for a better one
  3627. ac_cv_path_GREP="$ac_path_GREP"
  3628. ac_path_GREP_max=$ac_count
  3629. fi
  3630. # 10*(2^10) chars as input seems more than enough
  3631. test $ac_count -gt 10 && break
  3632. done
  3633. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3634. esac
  3635. $ac_path_GREP_found && break 3
  3636. done
  3637. done
  3638. done
  3639. IFS=$as_save_IFS
  3640. fi
  3641. GREP="$ac_cv_path_GREP"
  3642. if test -z "$GREP"; then
  3643. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3644. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3645. { (exit 1); exit 1; }; }
  3646. fi
  3647. else
  3648. ac_cv_path_GREP=$GREP
  3649. fi
  3650. fi
  3651. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3652. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  3653. GREP="$ac_cv_path_GREP"
  3654. { echo "$as_me:$LINENO: checking for egrep" >&5
  3655. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  3656. if test "${ac_cv_path_EGREP+set}" = set; then
  3657. echo $ECHO_N "(cached) $ECHO_C" >&6
  3658. else
  3659. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3660. then ac_cv_path_EGREP="$GREP -E"
  3661. else
  3662. # Extract the first word of "egrep" to use in msg output
  3663. if test -z "$EGREP"; then
  3664. set dummy egrep; ac_prog_name=$2
  3665. if test "${ac_cv_path_EGREP+set}" = set; then
  3666. echo $ECHO_N "(cached) $ECHO_C" >&6
  3667. else
  3668. ac_path_EGREP_found=false
  3669. # Loop through the user's path and test for each of PROGNAME-LIST
  3670. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3671. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3672. do
  3673. IFS=$as_save_IFS
  3674. test -z "$as_dir" && as_dir=.
  3675. for ac_prog in egrep; do
  3676. for ac_exec_ext in '' $ac_executable_extensions; do
  3677. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3678. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3679. # Check for GNU ac_path_EGREP and select it if it is found.
  3680. # Check for GNU $ac_path_EGREP
  3681. case `"$ac_path_EGREP" --version 2>&1` in
  3682. *GNU*)
  3683. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3684. *)
  3685. ac_count=0
  3686. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3687. while :
  3688. do
  3689. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3690. mv "conftest.tmp" "conftest.in"
  3691. cp "conftest.in" "conftest.nl"
  3692. echo 'EGREP' >> "conftest.nl"
  3693. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3694. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3695. ac_count=`expr $ac_count + 1`
  3696. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3697. # Best one so far, save it but keep looking for a better one
  3698. ac_cv_path_EGREP="$ac_path_EGREP"
  3699. ac_path_EGREP_max=$ac_count
  3700. fi
  3701. # 10*(2^10) chars as input seems more than enough
  3702. test $ac_count -gt 10 && break
  3703. done
  3704. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3705. esac
  3706. $ac_path_EGREP_found && break 3
  3707. done
  3708. done
  3709. done
  3710. IFS=$as_save_IFS
  3711. fi
  3712. EGREP="$ac_cv_path_EGREP"
  3713. if test -z "$EGREP"; then
  3714. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3715. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3716. { (exit 1); exit 1; }; }
  3717. fi
  3718. else
  3719. ac_cv_path_EGREP=$EGREP
  3720. fi
  3721. fi
  3722. fi
  3723. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3724. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  3725. EGREP="$ac_cv_path_EGREP"
  3726. # Check whether --with-gnu-ld was given.
  3727. if test "${with_gnu_ld+set}" = set; then
  3728. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3729. else
  3730. with_gnu_ld=no
  3731. fi
  3732. ac_prog=ld
  3733. if test "$GCC" = yes; then
  3734. # Check if gcc -print-prog-name=ld gives a path.
  3735. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3736. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  3737. case $host in
  3738. *-*-mingw*)
  3739. # gcc leaves a trailing carriage return which upsets mingw
  3740. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3741. *)
  3742. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3743. esac
  3744. case $ac_prog in
  3745. # Accept absolute paths.
  3746. [\\/]* | ?:[\\/]*)
  3747. re_direlt='/[^/][^/]*/\.\./'
  3748. # Canonicalize the pathname of ld
  3749. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3750. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3751. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3752. done
  3753. test -z "$LD" && LD="$ac_prog"
  3754. ;;
  3755. "")
  3756. # If it fails, then pretend we aren't using GCC.
  3757. ac_prog=ld
  3758. ;;
  3759. *)
  3760. # If it is relative, then search for the first ld in PATH.
  3761. with_gnu_ld=unknown
  3762. ;;
  3763. esac
  3764. elif test "$with_gnu_ld" = yes; then
  3765. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  3766. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  3767. else
  3768. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3769. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  3770. fi
  3771. if test "${lt_cv_path_LD+set}" = set; then
  3772. echo $ECHO_N "(cached) $ECHO_C" >&6
  3773. else
  3774. if test -z "$LD"; then
  3775. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3776. for ac_dir in $PATH; do
  3777. IFS="$lt_save_ifs"
  3778. test -z "$ac_dir" && ac_dir=.
  3779. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3780. lt_cv_path_LD="$ac_dir/$ac_prog"
  3781. # Check to see if the program is GNU ld. I'd rather use --version,
  3782. # but apparently some GNU ld's only accept -v.
  3783. # Break only if it was the GNU/non-GNU ld that we prefer.
  3784. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3785. *GNU* | *'with BFD'*)
  3786. test "$with_gnu_ld" != no && break
  3787. ;;
  3788. *)
  3789. test "$with_gnu_ld" != yes && break
  3790. ;;
  3791. esac
  3792. fi
  3793. done
  3794. IFS="$lt_save_ifs"
  3795. else
  3796. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3797. fi
  3798. fi
  3799. LD="$lt_cv_path_LD"
  3800. if test -n "$LD"; then
  3801. { echo "$as_me:$LINENO: result: $LD" >&5
  3802. echo "${ECHO_T}$LD" >&6; }
  3803. else
  3804. { echo "$as_me:$LINENO: result: no" >&5
  3805. echo "${ECHO_T}no" >&6; }
  3806. fi
  3807. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3808. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3809. { (exit 1); exit 1; }; }
  3810. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3811. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  3812. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3813. echo $ECHO_N "(cached) $ECHO_C" >&6
  3814. else
  3815. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  3816. case `$LD -v 2>&1 </dev/null` in
  3817. *GNU* | *'with BFD'*)
  3818. lt_cv_prog_gnu_ld=yes
  3819. ;;
  3820. *)
  3821. lt_cv_prog_gnu_ld=no
  3822. ;;
  3823. esac
  3824. fi
  3825. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3826. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  3827. with_gnu_ld=$lt_cv_prog_gnu_ld
  3828. { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3829. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  3830. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3831. echo $ECHO_N "(cached) $ECHO_C" >&6
  3832. else
  3833. lt_cv_ld_reload_flag='-r'
  3834. fi
  3835. { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3836. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  3837. reload_flag=$lt_cv_ld_reload_flag
  3838. case $reload_flag in
  3839. "" | " "*) ;;
  3840. *) reload_flag=" $reload_flag" ;;
  3841. esac
  3842. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3843. case $host_os in
  3844. darwin*)
  3845. if test "$GCC" = yes; then
  3846. reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
  3847. else
  3848. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3849. fi
  3850. ;;
  3851. esac
  3852. { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3853. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  3854. if test "${lt_cv_path_NM+set}" = set; then
  3855. echo $ECHO_N "(cached) $ECHO_C" >&6
  3856. else
  3857. if test -n "$NM"; then
  3858. # Let the user override the test.
  3859. lt_cv_path_NM="$NM"
  3860. else
  3861. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3862. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  3863. IFS="$lt_save_ifs"
  3864. test -z "$ac_dir" && ac_dir=.
  3865. tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  3866. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3867. # Check to see if the nm accepts a BSD-compat flag.
  3868. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3869. # nm: unknown option "B" ignored
  3870. # Tru64's nm complains that /dev/null is an invalid object file
  3871. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3872. */dev/null* | *'Invalid file or object type'*)
  3873. lt_cv_path_NM="$tmp_nm -B"
  3874. break
  3875. ;;
  3876. *)
  3877. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3878. */dev/null*)
  3879. lt_cv_path_NM="$tmp_nm -p"
  3880. break
  3881. ;;
  3882. *)
  3883. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3884. continue # so that we can try to find one that supports BSD flags
  3885. ;;
  3886. esac
  3887. esac
  3888. fi
  3889. done
  3890. IFS="$lt_save_ifs"
  3891. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3892. fi
  3893. fi
  3894. { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3895. echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  3896. NM="$lt_cv_path_NM"
  3897. { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  3898. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
  3899. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3900. echo $ECHO_N "(cached) $ECHO_C" >&6
  3901. else
  3902. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3903. lt_cv_file_magic_test_file=
  3904. lt_cv_deplibs_check_method='unknown'
  3905. # Need to set the preceding variable on all platforms that support
  3906. # interlibrary dependencies.
  3907. # 'none' -- dependencies not supported.
  3908. # `unknown' -- same as none, but documents that we really don't know.
  3909. # 'pass_all' -- all dependencies passed with no checks.
  3910. # 'test_compile' -- check by making test program.
  3911. # 'file_magic [[regex]]' -- check by looking for files in library path
  3912. # which responds to the $file_magic_cmd with a given extended regex.
  3913. # If you have `file' or equivalent on your system and you're not sure
  3914. # whether `pass_all' will *always* work, you probably want this one.
  3915. case $host_os in
  3916. aix4* | aix5*)
  3917. lt_cv_deplibs_check_method=pass_all
  3918. ;;
  3919. beos*)
  3920. lt_cv_deplibs_check_method=pass_all
  3921. ;;
  3922. bsdi[45]*)
  3923. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3924. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3925. lt_cv_file_magic_test_file=/shlib/libc.so
  3926. ;;
  3927. cygwin*)
  3928. # func_win32_libid is a shell function defined in ltmain.sh
  3929. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3930. lt_cv_file_magic_cmd='func_win32_libid'
  3931. ;;
  3932. mingw* | pw32*)
  3933. # Base MSYS/MinGW do not provide the 'file' command needed by
  3934. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  3935. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3936. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3937. ;;
  3938. darwin* | rhapsody*)
  3939. lt_cv_deplibs_check_method=pass_all
  3940. ;;
  3941. freebsd* | kfreebsd*-gnu | dragonfly*)
  3942. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3943. case $host_cpu in
  3944. i*86 )
  3945. # Not sure whether the presence of OpenBSD here was a mistake.
  3946. # Let's accept both of them until this is cleared up.
  3947. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  3948. lt_cv_file_magic_cmd=/usr/bin/file
  3949. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3950. ;;
  3951. esac
  3952. else
  3953. lt_cv_deplibs_check_method=pass_all
  3954. fi
  3955. ;;
  3956. gnu*)
  3957. lt_cv_deplibs_check_method=pass_all
  3958. ;;
  3959. hpux10.20* | hpux11*)
  3960. lt_cv_file_magic_cmd=/usr/bin/file
  3961. case "$host_cpu" in
  3962. ia64*)
  3963. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3964. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3965. ;;
  3966. hppa*64*)
  3967. 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]'
  3968. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3969. ;;
  3970. *)
  3971. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3972. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3973. ;;
  3974. esac
  3975. ;;
  3976. irix5* | irix6* | nonstopux*)
  3977. case $LD in
  3978. *-32|*"-32 ") libmagic=32-bit;;
  3979. *-n32|*"-n32 ") libmagic=N32;;
  3980. *-64|*"-64 ") libmagic=64-bit;;
  3981. *) libmagic=never-match;;
  3982. esac
  3983. lt_cv_deplibs_check_method=pass_all
  3984. ;;
  3985. # This must be Linux ELF.
  3986. linux*)
  3987. lt_cv_deplibs_check_method=pass_all
  3988. ;;
  3989. netbsd*)
  3990. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3991. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3992. else
  3993. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3994. fi
  3995. ;;
  3996. newos6*)
  3997. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3998. lt_cv_file_magic_cmd=/usr/bin/file
  3999. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4000. ;;
  4001. nto-qnx*)
  4002. lt_cv_deplibs_check_method=unknown
  4003. ;;
  4004. openbsd*)
  4005. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4006. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4007. else
  4008. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4009. fi
  4010. ;;
  4011. osf3* | osf4* | osf5*)
  4012. lt_cv_deplibs_check_method=pass_all
  4013. ;;
  4014. sco3.2v5*)
  4015. lt_cv_deplibs_check_method=pass_all
  4016. ;;
  4017. solaris*)
  4018. lt_cv_deplibs_check_method=pass_all
  4019. ;;
  4020. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  4021. case $host_vendor in
  4022. motorola)
  4023. 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]'
  4024. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4025. ;;
  4026. ncr)
  4027. lt_cv_deplibs_check_method=pass_all
  4028. ;;
  4029. sequent)
  4030. lt_cv_file_magic_cmd='/bin/file'
  4031. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4032. ;;
  4033. sni)
  4034. lt_cv_file_magic_cmd='/bin/file'
  4035. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4036. lt_cv_file_magic_test_file=/lib/libc.so
  4037. ;;
  4038. siemens)
  4039. lt_cv_deplibs_check_method=pass_all
  4040. ;;
  4041. esac
  4042. ;;
  4043. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
  4044. lt_cv_deplibs_check_method=pass_all
  4045. ;;
  4046. esac
  4047. fi
  4048. { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4049. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  4050. file_magic_cmd=$lt_cv_file_magic_cmd
  4051. deplibs_check_method=$lt_cv_deplibs_check_method
  4052. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4053. # If no C compiler was specified, use CC.
  4054. LTCC=${LTCC-"$CC"}
  4055. # Allow CC to be a program name with arguments.
  4056. compiler=$CC
  4057. # Check whether --enable-libtool-lock was given.
  4058. if test "${enable_libtool_lock+set}" = set; then
  4059. enableval=$enable_libtool_lock;
  4060. fi
  4061. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4062. # Some flags need to be propagated to the compiler or linker for good
  4063. # libtool support.
  4064. case $host in
  4065. ia64-*-hpux*)
  4066. # Find out which ABI we are using.
  4067. echo 'int i;' > conftest.$ac_ext
  4068. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4069. (eval $ac_compile) 2>&5
  4070. ac_status=$?
  4071. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4072. (exit $ac_status); }; then
  4073. case `/usr/bin/file conftest.$ac_objext` in
  4074. *ELF-32*)
  4075. HPUX_IA64_MODE="32"
  4076. ;;
  4077. *ELF-64*)
  4078. HPUX_IA64_MODE="64"
  4079. ;;
  4080. esac
  4081. fi
  4082. rm -rf conftest*
  4083. ;;
  4084. *-*-irix6*)
  4085. # Find out which ABI we are using.
  4086. echo '#line 4601 "configure"' > conftest.$ac_ext
  4087. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4088. (eval $ac_compile) 2>&5
  4089. ac_status=$?
  4090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4091. (exit $ac_status); }; then
  4092. if test "$lt_cv_prog_gnu_ld" = yes; then
  4093. case `/usr/bin/file conftest.$ac_objext` in
  4094. *32-bit*)
  4095. LD="${LD-ld} -melf32bsmip"
  4096. ;;
  4097. *N32*)
  4098. LD="${LD-ld} -melf32bmipn32"
  4099. ;;
  4100. *64-bit*)
  4101. LD="${LD-ld} -melf64bmip"
  4102. ;;
  4103. esac
  4104. else
  4105. case `/usr/bin/file conftest.$ac_objext` in
  4106. *32-bit*)
  4107. LD="${LD-ld} -32"
  4108. ;;
  4109. *N32*)
  4110. LD="${LD-ld} -n32"
  4111. ;;
  4112. *64-bit*)
  4113. LD="${LD-ld} -64"
  4114. ;;
  4115. esac
  4116. fi
  4117. fi
  4118. rm -rf conftest*
  4119. ;;
  4120. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  4121. # Find out which ABI we are using.
  4122. echo 'int i;' > conftest.$ac_ext
  4123. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4124. (eval $ac_compile) 2>&5
  4125. ac_status=$?
  4126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4127. (exit $ac_status); }; then
  4128. case "`/usr/bin/file conftest.o`" in
  4129. *32-bit*)
  4130. case $host in
  4131. x86_64-*linux*)
  4132. LD="${LD-ld} -m elf_i386"
  4133. ;;
  4134. ppc64-*linux*|powerpc64-*linux*)
  4135. LD="${LD-ld} -m elf32ppclinux"
  4136. ;;
  4137. s390x-*linux*)
  4138. LD="${LD-ld} -m elf_s390"
  4139. ;;
  4140. sparc64-*linux*)
  4141. LD="${LD-ld} -m elf32_sparc"
  4142. ;;
  4143. esac
  4144. ;;
  4145. *64-bit*)
  4146. case $host in
  4147. x86_64-*linux*)
  4148. LD="${LD-ld} -m elf_x86_64"
  4149. ;;
  4150. ppc*-*linux*|powerpc*-*linux*)
  4151. LD="${LD-ld} -m elf64ppc"
  4152. ;;
  4153. s390*-*linux*)
  4154. LD="${LD-ld} -m elf64_s390"
  4155. ;;
  4156. sparc*-*linux*)
  4157. LD="${LD-ld} -m elf64_sparc"
  4158. ;;
  4159. esac
  4160. ;;
  4161. esac
  4162. fi
  4163. rm -rf conftest*
  4164. ;;
  4165. *-*-sco3.2v5*)
  4166. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4167. SAVE_CFLAGS="$CFLAGS"
  4168. CFLAGS="$CFLAGS -belf"
  4169. { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4170. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  4171. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4172. echo $ECHO_N "(cached) $ECHO_C" >&6
  4173. else
  4174. ac_ext=c
  4175. ac_cpp='$CPP $CPPFLAGS'
  4176. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4177. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4178. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4179. cat >conftest.$ac_ext <<_ACEOF
  4180. /* confdefs.h. */
  4181. _ACEOF
  4182. cat confdefs.h >>conftest.$ac_ext
  4183. cat >>conftest.$ac_ext <<_ACEOF
  4184. /* end confdefs.h. */
  4185. int
  4186. main ()
  4187. {
  4188. ;
  4189. return 0;
  4190. }
  4191. _ACEOF
  4192. rm -f conftest.$ac_objext conftest$ac_exeext
  4193. if { (ac_try="$ac_link"
  4194. case "(($ac_try" in
  4195. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4196. *) ac_try_echo=$ac_try;;
  4197. esac
  4198. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4199. (eval "$ac_link") 2>conftest.er1
  4200. ac_status=$?
  4201. grep -v '^ *+' conftest.er1 >conftest.err
  4202. rm -f conftest.er1
  4203. cat conftest.err >&5
  4204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4205. (exit $ac_status); } && {
  4206. test -z "$ac_c_werror_flag" ||
  4207. test ! -s conftest.err
  4208. } && test -s conftest$ac_exeext &&
  4209. $as_test_x conftest$ac_exeext; then
  4210. lt_cv_cc_needs_belf=yes
  4211. else
  4212. echo "$as_me: failed program was:" >&5
  4213. sed 's/^/| /' conftest.$ac_ext >&5
  4214. lt_cv_cc_needs_belf=no
  4215. fi
  4216. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4217. conftest$ac_exeext conftest.$ac_ext
  4218. ac_ext=c
  4219. ac_cpp='$CPP $CPPFLAGS'
  4220. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4221. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4222. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4223. fi
  4224. { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4225. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  4226. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4227. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4228. CFLAGS="$SAVE_CFLAGS"
  4229. fi
  4230. ;;
  4231. esac
  4232. need_locks="$enable_libtool_lock"
  4233. ac_ext=c
  4234. ac_cpp='$CPP $CPPFLAGS'
  4235. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4236. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4237. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4238. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4239. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  4240. # On Suns, sometimes $CPP names a directory.
  4241. if test -n "$CPP" && test -d "$CPP"; then
  4242. CPP=
  4243. fi
  4244. if test -z "$CPP"; then
  4245. if test "${ac_cv_prog_CPP+set}" = set; then
  4246. echo $ECHO_N "(cached) $ECHO_C" >&6
  4247. else
  4248. # Double quotes because CPP needs to be expanded
  4249. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4250. do
  4251. ac_preproc_ok=false
  4252. for ac_c_preproc_warn_flag in '' yes
  4253. do
  4254. # Use a header file that comes with gcc, so configuring glibc
  4255. # with a fresh cross-compiler works.
  4256. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4257. # <limits.h> exists even on freestanding compilers.
  4258. # On the NeXT, cc -E runs the code through the compiler's parser,
  4259. # not just through cpp. "Syntax error" is here to catch this case.
  4260. cat >conftest.$ac_ext <<_ACEOF
  4261. /* confdefs.h. */
  4262. _ACEOF
  4263. cat confdefs.h >>conftest.$ac_ext
  4264. cat >>conftest.$ac_ext <<_ACEOF
  4265. /* end confdefs.h. */
  4266. #ifdef __STDC__
  4267. # include <limits.h>
  4268. #else
  4269. # include <assert.h>
  4270. #endif
  4271. Syntax error
  4272. _ACEOF
  4273. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4274. case "(($ac_try" in
  4275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4276. *) ac_try_echo=$ac_try;;
  4277. esac
  4278. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4279. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4280. ac_status=$?
  4281. grep -v '^ *+' conftest.er1 >conftest.err
  4282. rm -f conftest.er1
  4283. cat conftest.err >&5
  4284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4285. (exit $ac_status); } >/dev/null && {
  4286. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4287. test ! -s conftest.err
  4288. }; then
  4289. :
  4290. else
  4291. echo "$as_me: failed program was:" >&5
  4292. sed 's/^/| /' conftest.$ac_ext >&5
  4293. # Broken: fails on valid input.
  4294. continue
  4295. fi
  4296. rm -f conftest.err conftest.$ac_ext
  4297. # OK, works on sane cases. Now check whether nonexistent headers
  4298. # can be detected and how.
  4299. cat >conftest.$ac_ext <<_ACEOF
  4300. /* confdefs.h. */
  4301. _ACEOF
  4302. cat confdefs.h >>conftest.$ac_ext
  4303. cat >>conftest.$ac_ext <<_ACEOF
  4304. /* end confdefs.h. */
  4305. #include <ac_nonexistent.h>
  4306. _ACEOF
  4307. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4308. case "(($ac_try" in
  4309. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4310. *) ac_try_echo=$ac_try;;
  4311. esac
  4312. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4313. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4314. ac_status=$?
  4315. grep -v '^ *+' conftest.er1 >conftest.err
  4316. rm -f conftest.er1
  4317. cat conftest.err >&5
  4318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4319. (exit $ac_status); } >/dev/null && {
  4320. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4321. test ! -s conftest.err
  4322. }; then
  4323. # Broken: success on invalid input.
  4324. continue
  4325. else
  4326. echo "$as_me: failed program was:" >&5
  4327. sed 's/^/| /' conftest.$ac_ext >&5
  4328. # Passes both tests.
  4329. ac_preproc_ok=:
  4330. break
  4331. fi
  4332. rm -f conftest.err conftest.$ac_ext
  4333. done
  4334. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4335. rm -f conftest.err conftest.$ac_ext
  4336. if $ac_preproc_ok; then
  4337. break
  4338. fi
  4339. done
  4340. ac_cv_prog_CPP=$CPP
  4341. fi
  4342. CPP=$ac_cv_prog_CPP
  4343. else
  4344. ac_cv_prog_CPP=$CPP
  4345. fi
  4346. { echo "$as_me:$LINENO: result: $CPP" >&5
  4347. echo "${ECHO_T}$CPP" >&6; }
  4348. ac_preproc_ok=false
  4349. for ac_c_preproc_warn_flag in '' yes
  4350. do
  4351. # Use a header file that comes with gcc, so configuring glibc
  4352. # with a fresh cross-compiler works.
  4353. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4354. # <limits.h> exists even on freestanding compilers.
  4355. # On the NeXT, cc -E runs the code through the compiler's parser,
  4356. # not just through cpp. "Syntax error" is here to catch this case.
  4357. cat >conftest.$ac_ext <<_ACEOF
  4358. /* confdefs.h. */
  4359. _ACEOF
  4360. cat confdefs.h >>conftest.$ac_ext
  4361. cat >>conftest.$ac_ext <<_ACEOF
  4362. /* end confdefs.h. */
  4363. #ifdef __STDC__
  4364. # include <limits.h>
  4365. #else
  4366. # include <assert.h>
  4367. #endif
  4368. Syntax error
  4369. _ACEOF
  4370. if { (ac_try="$ac_cpp conftest.$ac_ext"
  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_cpp conftest.$ac_ext") 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); } >/dev/null && {
  4383. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4384. test ! -s conftest.err
  4385. }; then
  4386. :
  4387. else
  4388. echo "$as_me: failed program was:" >&5
  4389. sed 's/^/| /' conftest.$ac_ext >&5
  4390. # Broken: fails on valid input.
  4391. continue
  4392. fi
  4393. rm -f conftest.err conftest.$ac_ext
  4394. # OK, works on sane cases. Now check whether nonexistent headers
  4395. # can be detected and how.
  4396. cat >conftest.$ac_ext <<_ACEOF
  4397. /* confdefs.h. */
  4398. _ACEOF
  4399. cat confdefs.h >>conftest.$ac_ext
  4400. cat >>conftest.$ac_ext <<_ACEOF
  4401. /* end confdefs.h. */
  4402. #include <ac_nonexistent.h>
  4403. _ACEOF
  4404. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4405. case "(($ac_try" in
  4406. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4407. *) ac_try_echo=$ac_try;;
  4408. esac
  4409. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4410. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4411. ac_status=$?
  4412. grep -v '^ *+' conftest.er1 >conftest.err
  4413. rm -f conftest.er1
  4414. cat conftest.err >&5
  4415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4416. (exit $ac_status); } >/dev/null && {
  4417. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4418. test ! -s conftest.err
  4419. }; then
  4420. # Broken: success on invalid input.
  4421. continue
  4422. else
  4423. echo "$as_me: failed program was:" >&5
  4424. sed 's/^/| /' conftest.$ac_ext >&5
  4425. # Passes both tests.
  4426. ac_preproc_ok=:
  4427. break
  4428. fi
  4429. rm -f conftest.err conftest.$ac_ext
  4430. done
  4431. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4432. rm -f conftest.err conftest.$ac_ext
  4433. if $ac_preproc_ok; then
  4434. :
  4435. else
  4436. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4437. See \`config.log' for more details." >&5
  4438. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4439. See \`config.log' for more details." >&2;}
  4440. { (exit 1); exit 1; }; }
  4441. fi
  4442. ac_ext=c
  4443. ac_cpp='$CPP $CPPFLAGS'
  4444. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4445. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4446. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4447. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4448. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4449. if test "${ac_cv_header_stdc+set}" = set; then
  4450. echo $ECHO_N "(cached) $ECHO_C" >&6
  4451. else
  4452. cat >conftest.$ac_ext <<_ACEOF
  4453. /* confdefs.h. */
  4454. _ACEOF
  4455. cat confdefs.h >>conftest.$ac_ext
  4456. cat >>conftest.$ac_ext <<_ACEOF
  4457. /* end confdefs.h. */
  4458. #include <stdlib.h>
  4459. #include <stdarg.h>
  4460. #include <string.h>
  4461. #include <float.h>
  4462. int
  4463. main ()
  4464. {
  4465. ;
  4466. return 0;
  4467. }
  4468. _ACEOF
  4469. rm -f conftest.$ac_objext
  4470. if { (ac_try="$ac_compile"
  4471. case "(($ac_try" in
  4472. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4473. *) ac_try_echo=$ac_try;;
  4474. esac
  4475. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4476. (eval "$ac_compile") 2>conftest.er1
  4477. ac_status=$?
  4478. grep -v '^ *+' conftest.er1 >conftest.err
  4479. rm -f conftest.er1
  4480. cat conftest.err >&5
  4481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4482. (exit $ac_status); } && {
  4483. test -z "$ac_c_werror_flag" ||
  4484. test ! -s conftest.err
  4485. } && test -s conftest.$ac_objext; then
  4486. ac_cv_header_stdc=yes
  4487. else
  4488. echo "$as_me: failed program was:" >&5
  4489. sed 's/^/| /' conftest.$ac_ext >&5
  4490. ac_cv_header_stdc=no
  4491. fi
  4492. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4493. if test $ac_cv_header_stdc = yes; then
  4494. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4495. cat >conftest.$ac_ext <<_ACEOF
  4496. /* confdefs.h. */
  4497. _ACEOF
  4498. cat confdefs.h >>conftest.$ac_ext
  4499. cat >>conftest.$ac_ext <<_ACEOF
  4500. /* end confdefs.h. */
  4501. #include <string.h>
  4502. _ACEOF
  4503. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4504. $EGREP "memchr" >/dev/null 2>&1; then
  4505. :
  4506. else
  4507. ac_cv_header_stdc=no
  4508. fi
  4509. rm -f conftest*
  4510. fi
  4511. if test $ac_cv_header_stdc = yes; then
  4512. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  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. #include <stdlib.h>
  4520. _ACEOF
  4521. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4522. $EGREP "free" >/dev/null 2>&1; then
  4523. :
  4524. else
  4525. ac_cv_header_stdc=no
  4526. fi
  4527. rm -f conftest*
  4528. fi
  4529. if test $ac_cv_header_stdc = yes; then
  4530. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4531. if test "$cross_compiling" = yes; then
  4532. :
  4533. else
  4534. cat >conftest.$ac_ext <<_ACEOF
  4535. /* confdefs.h. */
  4536. _ACEOF
  4537. cat confdefs.h >>conftest.$ac_ext
  4538. cat >>conftest.$ac_ext <<_ACEOF
  4539. /* end confdefs.h. */
  4540. #include <ctype.h>
  4541. #include <stdlib.h>
  4542. #if ((' ' & 0x0FF) == 0x020)
  4543. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4544. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4545. #else
  4546. # define ISLOWER(c) \
  4547. (('a' <= (c) && (c) <= 'i') \
  4548. || ('j' <= (c) && (c) <= 'r') \
  4549. || ('s' <= (c) && (c) <= 'z'))
  4550. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4551. #endif
  4552. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4553. int
  4554. main ()
  4555. {
  4556. int i;
  4557. for (i = 0; i < 256; i++)
  4558. if (XOR (islower (i), ISLOWER (i))
  4559. || toupper (i) != TOUPPER (i))
  4560. return 2;
  4561. return 0;
  4562. }
  4563. _ACEOF
  4564. rm -f conftest$ac_exeext
  4565. if { (ac_try="$ac_link"
  4566. case "(($ac_try" in
  4567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4568. *) ac_try_echo=$ac_try;;
  4569. esac
  4570. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4571. (eval "$ac_link") 2>&5
  4572. ac_status=$?
  4573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4574. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4575. { (case "(($ac_try" in
  4576. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4577. *) ac_try_echo=$ac_try;;
  4578. esac
  4579. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4580. (eval "$ac_try") 2>&5
  4581. ac_status=$?
  4582. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4583. (exit $ac_status); }; }; then
  4584. :
  4585. else
  4586. echo "$as_me: program exited with status $ac_status" >&5
  4587. echo "$as_me: failed program was:" >&5
  4588. sed 's/^/| /' conftest.$ac_ext >&5
  4589. ( exit $ac_status )
  4590. ac_cv_header_stdc=no
  4591. fi
  4592. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4593. fi
  4594. fi
  4595. fi
  4596. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4597. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4598. if test $ac_cv_header_stdc = yes; then
  4599. cat >>confdefs.h <<\_ACEOF
  4600. #define STDC_HEADERS 1
  4601. _ACEOF
  4602. fi
  4603. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4604. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4605. inttypes.h stdint.h unistd.h
  4606. do
  4607. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4608. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4609. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4610. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4611. echo $ECHO_N "(cached) $ECHO_C" >&6
  4612. else
  4613. cat >conftest.$ac_ext <<_ACEOF
  4614. /* confdefs.h. */
  4615. _ACEOF
  4616. cat confdefs.h >>conftest.$ac_ext
  4617. cat >>conftest.$ac_ext <<_ACEOF
  4618. /* end confdefs.h. */
  4619. $ac_includes_default
  4620. #include <$ac_header>
  4621. _ACEOF
  4622. rm -f conftest.$ac_objext
  4623. if { (ac_try="$ac_compile"
  4624. case "(($ac_try" in
  4625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4626. *) ac_try_echo=$ac_try;;
  4627. esac
  4628. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4629. (eval "$ac_compile") 2>conftest.er1
  4630. ac_status=$?
  4631. grep -v '^ *+' conftest.er1 >conftest.err
  4632. rm -f conftest.er1
  4633. cat conftest.err >&5
  4634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4635. (exit $ac_status); } && {
  4636. test -z "$ac_c_werror_flag" ||
  4637. test ! -s conftest.err
  4638. } && test -s conftest.$ac_objext; then
  4639. eval "$as_ac_Header=yes"
  4640. else
  4641. echo "$as_me: failed program was:" >&5
  4642. sed 's/^/| /' conftest.$ac_ext >&5
  4643. eval "$as_ac_Header=no"
  4644. fi
  4645. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4646. fi
  4647. ac_res=`eval echo '${'$as_ac_Header'}'`
  4648. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4649. echo "${ECHO_T}$ac_res" >&6; }
  4650. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4651. cat >>confdefs.h <<_ACEOF
  4652. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4653. _ACEOF
  4654. fi
  4655. done
  4656. for ac_header in dlfcn.h
  4657. do
  4658. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4659. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4660. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4661. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4662. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4663. echo $ECHO_N "(cached) $ECHO_C" >&6
  4664. fi
  4665. ac_res=`eval echo '${'$as_ac_Header'}'`
  4666. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4667. echo "${ECHO_T}$ac_res" >&6; }
  4668. else
  4669. # Is the header compilable?
  4670. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4671. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4672. cat >conftest.$ac_ext <<_ACEOF
  4673. /* confdefs.h. */
  4674. _ACEOF
  4675. cat confdefs.h >>conftest.$ac_ext
  4676. cat >>conftest.$ac_ext <<_ACEOF
  4677. /* end confdefs.h. */
  4678. $ac_includes_default
  4679. #include <$ac_header>
  4680. _ACEOF
  4681. rm -f conftest.$ac_objext
  4682. if { (ac_try="$ac_compile"
  4683. case "(($ac_try" in
  4684. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4685. *) ac_try_echo=$ac_try;;
  4686. esac
  4687. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4688. (eval "$ac_compile") 2>conftest.er1
  4689. ac_status=$?
  4690. grep -v '^ *+' conftest.er1 >conftest.err
  4691. rm -f conftest.er1
  4692. cat conftest.err >&5
  4693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4694. (exit $ac_status); } && {
  4695. test -z "$ac_c_werror_flag" ||
  4696. test ! -s conftest.err
  4697. } && test -s conftest.$ac_objext; then
  4698. ac_header_compiler=yes
  4699. else
  4700. echo "$as_me: failed program was:" >&5
  4701. sed 's/^/| /' conftest.$ac_ext >&5
  4702. ac_header_compiler=no
  4703. fi
  4704. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4705. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4706. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4707. # Is the header present?
  4708. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4709. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4710. cat >conftest.$ac_ext <<_ACEOF
  4711. /* confdefs.h. */
  4712. _ACEOF
  4713. cat confdefs.h >>conftest.$ac_ext
  4714. cat >>conftest.$ac_ext <<_ACEOF
  4715. /* end confdefs.h. */
  4716. #include <$ac_header>
  4717. _ACEOF
  4718. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4719. case "(($ac_try" in
  4720. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4721. *) ac_try_echo=$ac_try;;
  4722. esac
  4723. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4724. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4725. ac_status=$?
  4726. grep -v '^ *+' conftest.er1 >conftest.err
  4727. rm -f conftest.er1
  4728. cat conftest.err >&5
  4729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4730. (exit $ac_status); } >/dev/null && {
  4731. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4732. test ! -s conftest.err
  4733. }; then
  4734. ac_header_preproc=yes
  4735. else
  4736. echo "$as_me: failed program was:" >&5
  4737. sed 's/^/| /' conftest.$ac_ext >&5
  4738. ac_header_preproc=no
  4739. fi
  4740. rm -f conftest.err conftest.$ac_ext
  4741. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4742. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4743. # So? What about this header?
  4744. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4745. yes:no: )
  4746. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4747. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4748. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4749. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4750. ac_header_preproc=yes
  4751. ;;
  4752. no:yes:* )
  4753. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4754. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4755. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4756. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4757. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4758. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4759. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4760. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4761. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4762. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4763. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4764. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4765. ( cat <<\_ASBOX
  4766. ## ---------------------------------- ##
  4767. ## Report this to christos@astron.com ##
  4768. ## ---------------------------------- ##
  4769. _ASBOX
  4770. ) | sed "s/^/$as_me: WARNING: /" >&2
  4771. ;;
  4772. esac
  4773. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4774. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4775. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4776. echo $ECHO_N "(cached) $ECHO_C" >&6
  4777. else
  4778. eval "$as_ac_Header=\$ac_header_preproc"
  4779. fi
  4780. ac_res=`eval echo '${'$as_ac_Header'}'`
  4781. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4782. echo "${ECHO_T}$ac_res" >&6; }
  4783. fi
  4784. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4785. cat >>confdefs.h <<_ACEOF
  4786. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4787. _ACEOF
  4788. fi
  4789. done
  4790. ac_ext=cpp
  4791. ac_cpp='$CXXCPP $CPPFLAGS'
  4792. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4793. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4794. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4795. if test -z "$CXX"; then
  4796. if test -n "$CCC"; then
  4797. CXX=$CCC
  4798. else
  4799. if test -n "$ac_tool_prefix"; then
  4800. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4801. do
  4802. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4803. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4804. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4805. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4806. if test "${ac_cv_prog_CXX+set}" = set; then
  4807. echo $ECHO_N "(cached) $ECHO_C" >&6
  4808. else
  4809. if test -n "$CXX"; then
  4810. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4811. else
  4812. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4813. for as_dir in $PATH
  4814. do
  4815. IFS=$as_save_IFS
  4816. test -z "$as_dir" && as_dir=.
  4817. for ac_exec_ext in '' $ac_executable_extensions; do
  4818. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4819. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4820. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4821. break 2
  4822. fi
  4823. done
  4824. done
  4825. IFS=$as_save_IFS
  4826. fi
  4827. fi
  4828. CXX=$ac_cv_prog_CXX
  4829. if test -n "$CXX"; then
  4830. { echo "$as_me:$LINENO: result: $CXX" >&5
  4831. echo "${ECHO_T}$CXX" >&6; }
  4832. else
  4833. { echo "$as_me:$LINENO: result: no" >&5
  4834. echo "${ECHO_T}no" >&6; }
  4835. fi
  4836. test -n "$CXX" && break
  4837. done
  4838. fi
  4839. if test -z "$CXX"; then
  4840. ac_ct_CXX=$CXX
  4841. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4842. do
  4843. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4844. set dummy $ac_prog; ac_word=$2
  4845. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4846. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4847. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  4848. echo $ECHO_N "(cached) $ECHO_C" >&6
  4849. else
  4850. if test -n "$ac_ct_CXX"; then
  4851. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4852. else
  4853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4854. for as_dir in $PATH
  4855. do
  4856. IFS=$as_save_IFS
  4857. test -z "$as_dir" && as_dir=.
  4858. for ac_exec_ext in '' $ac_executable_extensions; do
  4859. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4860. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4861. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4862. break 2
  4863. fi
  4864. done
  4865. done
  4866. IFS=$as_save_IFS
  4867. fi
  4868. fi
  4869. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4870. if test -n "$ac_ct_CXX"; then
  4871. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  4872. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  4873. else
  4874. { echo "$as_me:$LINENO: result: no" >&5
  4875. echo "${ECHO_T}no" >&6; }
  4876. fi
  4877. test -n "$ac_ct_CXX" && break
  4878. done
  4879. if test "x$ac_ct_CXX" = x; then
  4880. CXX="g++"
  4881. else
  4882. case $cross_compiling:$ac_tool_warned in
  4883. yes:)
  4884. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4885. whose name does not start with the host triplet. If you think this
  4886. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4887. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4888. whose name does not start with the host triplet. If you think this
  4889. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4890. ac_tool_warned=yes ;;
  4891. esac
  4892. CXX=$ac_ct_CXX
  4893. fi
  4894. fi
  4895. fi
  4896. fi
  4897. # Provide some information about the compiler.
  4898. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  4899. ac_compiler=`set X $ac_compile; echo $2`
  4900. { (ac_try="$ac_compiler --version >&5"
  4901. case "(($ac_try" in
  4902. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4903. *) ac_try_echo=$ac_try;;
  4904. esac
  4905. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4906. (eval "$ac_compiler --version >&5") 2>&5
  4907. ac_status=$?
  4908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4909. (exit $ac_status); }
  4910. { (ac_try="$ac_compiler -v >&5"
  4911. case "(($ac_try" in
  4912. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4913. *) ac_try_echo=$ac_try;;
  4914. esac
  4915. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4916. (eval "$ac_compiler -v >&5") 2>&5
  4917. ac_status=$?
  4918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4919. (exit $ac_status); }
  4920. { (ac_try="$ac_compiler -V >&5"
  4921. case "(($ac_try" in
  4922. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4923. *) ac_try_echo=$ac_try;;
  4924. esac
  4925. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4926. (eval "$ac_compiler -V >&5") 2>&5
  4927. ac_status=$?
  4928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4929. (exit $ac_status); }
  4930. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  4931. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  4932. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  4933. echo $ECHO_N "(cached) $ECHO_C" >&6
  4934. else
  4935. cat >conftest.$ac_ext <<_ACEOF
  4936. /* confdefs.h. */
  4937. _ACEOF
  4938. cat confdefs.h >>conftest.$ac_ext
  4939. cat >>conftest.$ac_ext <<_ACEOF
  4940. /* end confdefs.h. */
  4941. int
  4942. main ()
  4943. {
  4944. #ifndef __GNUC__
  4945. choke me
  4946. #endif
  4947. ;
  4948. return 0;
  4949. }
  4950. _ACEOF
  4951. rm -f conftest.$ac_objext
  4952. if { (ac_try="$ac_compile"
  4953. case "(($ac_try" in
  4954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4955. *) ac_try_echo=$ac_try;;
  4956. esac
  4957. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4958. (eval "$ac_compile") 2>conftest.er1
  4959. ac_status=$?
  4960. grep -v '^ *+' conftest.er1 >conftest.err
  4961. rm -f conftest.er1
  4962. cat conftest.err >&5
  4963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4964. (exit $ac_status); } && {
  4965. test -z "$ac_cxx_werror_flag" ||
  4966. test ! -s conftest.err
  4967. } && test -s conftest.$ac_objext; then
  4968. ac_compiler_gnu=yes
  4969. else
  4970. echo "$as_me: failed program was:" >&5
  4971. sed 's/^/| /' conftest.$ac_ext >&5
  4972. ac_compiler_gnu=no
  4973. fi
  4974. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4975. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4976. fi
  4977. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  4978. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  4979. GXX=`test $ac_compiler_gnu = yes && echo yes`
  4980. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4981. ac_save_CXXFLAGS=$CXXFLAGS
  4982. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  4983. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  4984. if test "${ac_cv_prog_cxx_g+set}" = set; then
  4985. echo $ECHO_N "(cached) $ECHO_C" >&6
  4986. else
  4987. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4988. ac_cxx_werror_flag=yes
  4989. ac_cv_prog_cxx_g=no
  4990. CXXFLAGS="-g"
  4991. cat >conftest.$ac_ext <<_ACEOF
  4992. /* confdefs.h. */
  4993. _ACEOF
  4994. cat confdefs.h >>conftest.$ac_ext
  4995. cat >>conftest.$ac_ext <<_ACEOF
  4996. /* end confdefs.h. */
  4997. int
  4998. main ()
  4999. {
  5000. ;
  5001. return 0;
  5002. }
  5003. _ACEOF
  5004. rm -f conftest.$ac_objext
  5005. if { (ac_try="$ac_compile"
  5006. case "(($ac_try" in
  5007. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5008. *) ac_try_echo=$ac_try;;
  5009. esac
  5010. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5011. (eval "$ac_compile") 2>conftest.er1
  5012. ac_status=$?
  5013. grep -v '^ *+' conftest.er1 >conftest.err
  5014. rm -f conftest.er1
  5015. cat conftest.err >&5
  5016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5017. (exit $ac_status); } && {
  5018. test -z "$ac_cxx_werror_flag" ||
  5019. test ! -s conftest.err
  5020. } && test -s conftest.$ac_objext; then
  5021. ac_cv_prog_cxx_g=yes
  5022. else
  5023. echo "$as_me: failed program was:" >&5
  5024. sed 's/^/| /' conftest.$ac_ext >&5
  5025. CXXFLAGS=""
  5026. cat >conftest.$ac_ext <<_ACEOF
  5027. /* confdefs.h. */
  5028. _ACEOF
  5029. cat confdefs.h >>conftest.$ac_ext
  5030. cat >>conftest.$ac_ext <<_ACEOF
  5031. /* end confdefs.h. */
  5032. int
  5033. main ()
  5034. {
  5035. ;
  5036. return 0;
  5037. }
  5038. _ACEOF
  5039. rm -f conftest.$ac_objext
  5040. if { (ac_try="$ac_compile"
  5041. case "(($ac_try" in
  5042. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5043. *) ac_try_echo=$ac_try;;
  5044. esac
  5045. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5046. (eval "$ac_compile") 2>conftest.er1
  5047. ac_status=$?
  5048. grep -v '^ *+' conftest.er1 >conftest.err
  5049. rm -f conftest.er1
  5050. cat conftest.err >&5
  5051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5052. (exit $ac_status); } && {
  5053. test -z "$ac_cxx_werror_flag" ||
  5054. test ! -s conftest.err
  5055. } && test -s conftest.$ac_objext; then
  5056. :
  5057. else
  5058. echo "$as_me: failed program was:" >&5
  5059. sed 's/^/| /' conftest.$ac_ext >&5
  5060. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5061. CXXFLAGS="-g"
  5062. cat >conftest.$ac_ext <<_ACEOF
  5063. /* confdefs.h. */
  5064. _ACEOF
  5065. cat confdefs.h >>conftest.$ac_ext
  5066. cat >>conftest.$ac_ext <<_ACEOF
  5067. /* end confdefs.h. */
  5068. int
  5069. main ()
  5070. {
  5071. ;
  5072. return 0;
  5073. }
  5074. _ACEOF
  5075. rm -f conftest.$ac_objext
  5076. if { (ac_try="$ac_compile"
  5077. case "(($ac_try" in
  5078. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5079. *) ac_try_echo=$ac_try;;
  5080. esac
  5081. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5082. (eval "$ac_compile") 2>conftest.er1
  5083. ac_status=$?
  5084. grep -v '^ *+' conftest.er1 >conftest.err
  5085. rm -f conftest.er1
  5086. cat conftest.err >&5
  5087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5088. (exit $ac_status); } && {
  5089. test -z "$ac_cxx_werror_flag" ||
  5090. test ! -s conftest.err
  5091. } && test -s conftest.$ac_objext; then
  5092. ac_cv_prog_cxx_g=yes
  5093. else
  5094. echo "$as_me: failed program was:" >&5
  5095. sed 's/^/| /' conftest.$ac_ext >&5
  5096. fi
  5097. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5098. fi
  5099. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5100. fi
  5101. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5102. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5103. fi
  5104. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  5105. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  5106. if test "$ac_test_CXXFLAGS" = set; then
  5107. CXXFLAGS=$ac_save_CXXFLAGS
  5108. elif test $ac_cv_prog_cxx_g = yes; then
  5109. if test "$GXX" = yes; then
  5110. CXXFLAGS="-g -O2"
  5111. else
  5112. CXXFLAGS="-g"
  5113. fi
  5114. else
  5115. if test "$GXX" = yes; then
  5116. CXXFLAGS="-O2"
  5117. else
  5118. CXXFLAGS=
  5119. fi
  5120. fi
  5121. ac_ext=cpp
  5122. ac_cpp='$CXXCPP $CPPFLAGS'
  5123. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5124. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5125. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5126. depcc="$CXX" am_compiler_list=
  5127. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5128. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  5129. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  5130. echo $ECHO_N "(cached) $ECHO_C" >&6
  5131. else
  5132. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5133. # We make a subdir and do the tests there. Otherwise we can end up
  5134. # making bogus files that we don't know about and never remove. For
  5135. # instance it was reported that on HP-UX the gcc test will end up
  5136. # making a dummy file named `D' -- because `-MD' means `put the output
  5137. # in D'.
  5138. mkdir conftest.dir
  5139. # Copy depcomp to subdir because otherwise we won't find it if we're
  5140. # using a relative directory.
  5141. cp "$am_depcomp" conftest.dir
  5142. cd conftest.dir
  5143. # We will build objects and dependencies in a subdirectory because
  5144. # it helps to detect inapplicable dependency modes. For instance
  5145. # both Tru64's cc and ICC support -MD to output dependencies as a
  5146. # side effect of compilation, but ICC will put the dependencies in
  5147. # the current directory while Tru64 will put them in the object
  5148. # directory.
  5149. mkdir sub
  5150. am_cv_CXX_dependencies_compiler_type=none
  5151. if test "$am_compiler_list" = ""; then
  5152. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5153. fi
  5154. for depmode in $am_compiler_list; do
  5155. # Setup a source with many dependencies, because some compilers
  5156. # like to wrap large dependency lists on column 80 (with \), and
  5157. # we should not choose a depcomp mode which is confused by this.
  5158. #
  5159. # We need to recreate these files for each test, as the compiler may
  5160. # overwrite some of them when testing with obscure command lines.
  5161. # This happens at least with the AIX C compiler.
  5162. : > sub/conftest.c
  5163. for i in 1 2 3 4 5 6; do
  5164. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5165. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5166. # Solaris 8's {/usr,}/bin/sh.
  5167. touch sub/conftst$i.h
  5168. done
  5169. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5170. case $depmode in
  5171. nosideeffect)
  5172. # after this tag, mechanisms are not by side-effect, so they'll
  5173. # only be used when explicitly requested
  5174. if test "x$enable_dependency_tracking" = xyes; then
  5175. continue
  5176. else
  5177. break
  5178. fi
  5179. ;;
  5180. none) break ;;
  5181. esac
  5182. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5183. # mode. It turns out that the SunPro C++ compiler does not properly
  5184. # handle `-M -o', and we need to detect this.
  5185. if depmode=$depmode \
  5186. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5187. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5188. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5189. >/dev/null 2>conftest.err &&
  5190. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5191. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5192. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5193. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5194. # icc doesn't choke on unknown options, it will just issue warnings
  5195. # or remarks (even with -Werror). So we grep stderr for any message
  5196. # that says an option was ignored or not supported.
  5197. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5198. # icc: Command line warning: ignoring option '-M'; no argument required
  5199. # The diagnosis changed in icc 8.0:
  5200. # icc: Command line remark: option '-MP' not supported
  5201. if (grep 'ignoring option' conftest.err ||
  5202. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5203. am_cv_CXX_dependencies_compiler_type=$depmode
  5204. break
  5205. fi
  5206. fi
  5207. done
  5208. cd ..
  5209. rm -rf conftest.dir
  5210. else
  5211. am_cv_CXX_dependencies_compiler_type=none
  5212. fi
  5213. fi
  5214. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  5215. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  5216. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  5217. if
  5218. test "x$enable_dependency_tracking" != xno \
  5219. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  5220. am__fastdepCXX_TRUE=
  5221. am__fastdepCXX_FALSE='#'
  5222. else
  5223. am__fastdepCXX_TRUE='#'
  5224. am__fastdepCXX_FALSE=
  5225. fi
  5226. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5227. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5228. (test "X$CXX" != "Xg++"))) ; then
  5229. ac_ext=cpp
  5230. ac_cpp='$CXXCPP $CPPFLAGS'
  5231. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5232. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5233. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5234. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  5235. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  5236. if test -z "$CXXCPP"; then
  5237. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  5238. echo $ECHO_N "(cached) $ECHO_C" >&6
  5239. else
  5240. # Double quotes because CXXCPP needs to be expanded
  5241. for CXXCPP in "$CXX -E" "/lib/cpp"
  5242. do
  5243. ac_preproc_ok=false
  5244. for ac_cxx_preproc_warn_flag in '' yes
  5245. do
  5246. # Use a header file that comes with gcc, so configuring glibc
  5247. # with a fresh cross-compiler works.
  5248. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5249. # <limits.h> exists even on freestanding compilers.
  5250. # On the NeXT, cc -E runs the code through the compiler's parser,
  5251. # not just through cpp. "Syntax error" is here to catch this case.
  5252. cat >conftest.$ac_ext <<_ACEOF
  5253. /* confdefs.h. */
  5254. _ACEOF
  5255. cat confdefs.h >>conftest.$ac_ext
  5256. cat >>conftest.$ac_ext <<_ACEOF
  5257. /* end confdefs.h. */
  5258. #ifdef __STDC__
  5259. # include <limits.h>
  5260. #else
  5261. # include <assert.h>
  5262. #endif
  5263. Syntax error
  5264. _ACEOF
  5265. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5266. case "(($ac_try" in
  5267. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5268. *) ac_try_echo=$ac_try;;
  5269. esac
  5270. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5271. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5272. ac_status=$?
  5273. grep -v '^ *+' conftest.er1 >conftest.err
  5274. rm -f conftest.er1
  5275. cat conftest.err >&5
  5276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5277. (exit $ac_status); } >/dev/null && {
  5278. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5279. test ! -s conftest.err
  5280. }; then
  5281. :
  5282. else
  5283. echo "$as_me: failed program was:" >&5
  5284. sed 's/^/| /' conftest.$ac_ext >&5
  5285. # Broken: fails on valid input.
  5286. continue
  5287. fi
  5288. rm -f conftest.err conftest.$ac_ext
  5289. # OK, works on sane cases. Now check whether nonexistent headers
  5290. # can be detected and how.
  5291. cat >conftest.$ac_ext <<_ACEOF
  5292. /* confdefs.h. */
  5293. _ACEOF
  5294. cat confdefs.h >>conftest.$ac_ext
  5295. cat >>conftest.$ac_ext <<_ACEOF
  5296. /* end confdefs.h. */
  5297. #include <ac_nonexistent.h>
  5298. _ACEOF
  5299. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5300. case "(($ac_try" in
  5301. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5302. *) ac_try_echo=$ac_try;;
  5303. esac
  5304. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5305. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5306. ac_status=$?
  5307. grep -v '^ *+' conftest.er1 >conftest.err
  5308. rm -f conftest.er1
  5309. cat conftest.err >&5
  5310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5311. (exit $ac_status); } >/dev/null && {
  5312. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5313. test ! -s conftest.err
  5314. }; then
  5315. # Broken: success on invalid input.
  5316. continue
  5317. else
  5318. echo "$as_me: failed program was:" >&5
  5319. sed 's/^/| /' conftest.$ac_ext >&5
  5320. # Passes both tests.
  5321. ac_preproc_ok=:
  5322. break
  5323. fi
  5324. rm -f conftest.err conftest.$ac_ext
  5325. done
  5326. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5327. rm -f conftest.err conftest.$ac_ext
  5328. if $ac_preproc_ok; then
  5329. break
  5330. fi
  5331. done
  5332. ac_cv_prog_CXXCPP=$CXXCPP
  5333. fi
  5334. CXXCPP=$ac_cv_prog_CXXCPP
  5335. else
  5336. ac_cv_prog_CXXCPP=$CXXCPP
  5337. fi
  5338. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  5339. echo "${ECHO_T}$CXXCPP" >&6; }
  5340. ac_preproc_ok=false
  5341. for ac_cxx_preproc_warn_flag in '' yes
  5342. do
  5343. # Use a header file that comes with gcc, so configuring glibc
  5344. # with a fresh cross-compiler works.
  5345. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5346. # <limits.h> exists even on freestanding compilers.
  5347. # On the NeXT, cc -E runs the code through the compiler's parser,
  5348. # not just through cpp. "Syntax error" is here to catch this case.
  5349. cat >conftest.$ac_ext <<_ACEOF
  5350. /* confdefs.h. */
  5351. _ACEOF
  5352. cat confdefs.h >>conftest.$ac_ext
  5353. cat >>conftest.$ac_ext <<_ACEOF
  5354. /* end confdefs.h. */
  5355. #ifdef __STDC__
  5356. # include <limits.h>
  5357. #else
  5358. # include <assert.h>
  5359. #endif
  5360. Syntax error
  5361. _ACEOF
  5362. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5363. case "(($ac_try" in
  5364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5365. *) ac_try_echo=$ac_try;;
  5366. esac
  5367. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5368. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5369. ac_status=$?
  5370. grep -v '^ *+' conftest.er1 >conftest.err
  5371. rm -f conftest.er1
  5372. cat conftest.err >&5
  5373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5374. (exit $ac_status); } >/dev/null && {
  5375. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5376. test ! -s conftest.err
  5377. }; then
  5378. :
  5379. else
  5380. echo "$as_me: failed program was:" >&5
  5381. sed 's/^/| /' conftest.$ac_ext >&5
  5382. # Broken: fails on valid input.
  5383. continue
  5384. fi
  5385. rm -f conftest.err conftest.$ac_ext
  5386. # OK, works on sane cases. Now check whether nonexistent headers
  5387. # can be detected and how.
  5388. cat >conftest.$ac_ext <<_ACEOF
  5389. /* confdefs.h. */
  5390. _ACEOF
  5391. cat confdefs.h >>conftest.$ac_ext
  5392. cat >>conftest.$ac_ext <<_ACEOF
  5393. /* end confdefs.h. */
  5394. #include <ac_nonexistent.h>
  5395. _ACEOF
  5396. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5397. case "(($ac_try" in
  5398. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5399. *) ac_try_echo=$ac_try;;
  5400. esac
  5401. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5402. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5403. ac_status=$?
  5404. grep -v '^ *+' conftest.er1 >conftest.err
  5405. rm -f conftest.er1
  5406. cat conftest.err >&5
  5407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5408. (exit $ac_status); } >/dev/null && {
  5409. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5410. test ! -s conftest.err
  5411. }; then
  5412. # Broken: success on invalid input.
  5413. continue
  5414. else
  5415. echo "$as_me: failed program was:" >&5
  5416. sed 's/^/| /' conftest.$ac_ext >&5
  5417. # Passes both tests.
  5418. ac_preproc_ok=:
  5419. break
  5420. fi
  5421. rm -f conftest.err conftest.$ac_ext
  5422. done
  5423. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5424. rm -f conftest.err conftest.$ac_ext
  5425. if $ac_preproc_ok; then
  5426. :
  5427. else
  5428. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5429. See \`config.log' for more details." >&5
  5430. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5431. See \`config.log' for more details." >&2;}
  5432. { (exit 1); exit 1; }; }
  5433. fi
  5434. ac_ext=cpp
  5435. ac_cpp='$CXXCPP $CPPFLAGS'
  5436. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5437. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5438. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5439. fi
  5440. ac_ext=f
  5441. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  5442. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5443. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  5444. if test -n "$ac_tool_prefix"; then
  5445. 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
  5446. do
  5447. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5448. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5449. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5450. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5451. if test "${ac_cv_prog_F77+set}" = set; then
  5452. echo $ECHO_N "(cached) $ECHO_C" >&6
  5453. else
  5454. if test -n "$F77"; then
  5455. ac_cv_prog_F77="$F77" # Let the user override the test.
  5456. else
  5457. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5458. for as_dir in $PATH
  5459. do
  5460. IFS=$as_save_IFS
  5461. test -z "$as_dir" && as_dir=.
  5462. for ac_exec_ext in '' $ac_executable_extensions; do
  5463. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5464. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  5465. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5466. break 2
  5467. fi
  5468. done
  5469. done
  5470. IFS=$as_save_IFS
  5471. fi
  5472. fi
  5473. F77=$ac_cv_prog_F77
  5474. if test -n "$F77"; then
  5475. { echo "$as_me:$LINENO: result: $F77" >&5
  5476. echo "${ECHO_T}$F77" >&6; }
  5477. else
  5478. { echo "$as_me:$LINENO: result: no" >&5
  5479. echo "${ECHO_T}no" >&6; }
  5480. fi
  5481. test -n "$F77" && break
  5482. done
  5483. fi
  5484. if test -z "$F77"; then
  5485. ac_ct_F77=$F77
  5486. 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
  5487. do
  5488. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5489. set dummy $ac_prog; ac_word=$2
  5490. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5491. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5492. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  5493. echo $ECHO_N "(cached) $ECHO_C" >&6
  5494. else
  5495. if test -n "$ac_ct_F77"; then
  5496. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  5497. else
  5498. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5499. for as_dir in $PATH
  5500. do
  5501. IFS=$as_save_IFS
  5502. test -z "$as_dir" && as_dir=.
  5503. for ac_exec_ext in '' $ac_executable_extensions; do
  5504. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5505. ac_cv_prog_ac_ct_F77="$ac_prog"
  5506. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5507. break 2
  5508. fi
  5509. done
  5510. done
  5511. IFS=$as_save_IFS
  5512. fi
  5513. fi
  5514. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  5515. if test -n "$ac_ct_F77"; then
  5516. { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  5517. echo "${ECHO_T}$ac_ct_F77" >&6; }
  5518. else
  5519. { echo "$as_me:$LINENO: result: no" >&5
  5520. echo "${ECHO_T}no" >&6; }
  5521. fi
  5522. test -n "$ac_ct_F77" && break
  5523. done
  5524. if test "x$ac_ct_F77" = x; then
  5525. F77=""
  5526. else
  5527. case $cross_compiling:$ac_tool_warned in
  5528. yes:)
  5529. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5530. whose name does not start with the host triplet. If you think this
  5531. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5532. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5533. whose name does not start with the host triplet. If you think this
  5534. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5535. ac_tool_warned=yes ;;
  5536. esac
  5537. F77=$ac_ct_F77
  5538. fi
  5539. fi
  5540. # Provide some information about the compiler.
  5541. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  5542. ac_compiler=`set X $ac_compile; echo $2`
  5543. { (ac_try="$ac_compiler --version >&5"
  5544. case "(($ac_try" in
  5545. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5546. *) ac_try_echo=$ac_try;;
  5547. esac
  5548. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5549. (eval "$ac_compiler --version >&5") 2>&5
  5550. ac_status=$?
  5551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5552. (exit $ac_status); }
  5553. { (ac_try="$ac_compiler -v >&5"
  5554. case "(($ac_try" in
  5555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5556. *) ac_try_echo=$ac_try;;
  5557. esac
  5558. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5559. (eval "$ac_compiler -v >&5") 2>&5
  5560. ac_status=$?
  5561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5562. (exit $ac_status); }
  5563. { (ac_try="$ac_compiler -V >&5"
  5564. case "(($ac_try" in
  5565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5566. *) ac_try_echo=$ac_try;;
  5567. esac
  5568. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5569. (eval "$ac_compiler -V >&5") 2>&5
  5570. ac_status=$?
  5571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5572. (exit $ac_status); }
  5573. rm -f a.out
  5574. # If we don't use `.F' as extension, the preprocessor is not run on the
  5575. # input file. (Note that this only needs to work for GNU compilers.)
  5576. ac_save_ext=$ac_ext
  5577. ac_ext=F
  5578. { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  5579. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  5580. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  5581. echo $ECHO_N "(cached) $ECHO_C" >&6
  5582. else
  5583. cat >conftest.$ac_ext <<_ACEOF
  5584. program main
  5585. #ifndef __GNUC__
  5586. choke me
  5587. #endif
  5588. end
  5589. _ACEOF
  5590. rm -f conftest.$ac_objext
  5591. if { (ac_try="$ac_compile"
  5592. case "(($ac_try" in
  5593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5594. *) ac_try_echo=$ac_try;;
  5595. esac
  5596. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5597. (eval "$ac_compile") 2>conftest.er1
  5598. ac_status=$?
  5599. grep -v '^ *+' conftest.er1 >conftest.err
  5600. rm -f conftest.er1
  5601. cat conftest.err >&5
  5602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5603. (exit $ac_status); } && {
  5604. test -z "$ac_f77_werror_flag" ||
  5605. test ! -s conftest.err
  5606. } && test -s conftest.$ac_objext; then
  5607. ac_compiler_gnu=yes
  5608. else
  5609. echo "$as_me: failed program was:" >&5
  5610. sed 's/^/| /' conftest.$ac_ext >&5
  5611. ac_compiler_gnu=no
  5612. fi
  5613. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5614. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5615. fi
  5616. { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5617. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  5618. ac_ext=$ac_save_ext
  5619. ac_test_FFLAGS=${FFLAGS+set}
  5620. ac_save_FFLAGS=$FFLAGS
  5621. FFLAGS=
  5622. { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5623. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  5624. if test "${ac_cv_prog_f77_g+set}" = set; then
  5625. echo $ECHO_N "(cached) $ECHO_C" >&6
  5626. else
  5627. FFLAGS=-g
  5628. cat >conftest.$ac_ext <<_ACEOF
  5629. program main
  5630. end
  5631. _ACEOF
  5632. rm -f conftest.$ac_objext
  5633. if { (ac_try="$ac_compile"
  5634. case "(($ac_try" in
  5635. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5636. *) ac_try_echo=$ac_try;;
  5637. esac
  5638. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5639. (eval "$ac_compile") 2>conftest.er1
  5640. ac_status=$?
  5641. grep -v '^ *+' conftest.er1 >conftest.err
  5642. rm -f conftest.er1
  5643. cat conftest.err >&5
  5644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5645. (exit $ac_status); } && {
  5646. test -z "$ac_f77_werror_flag" ||
  5647. test ! -s conftest.err
  5648. } && test -s conftest.$ac_objext; then
  5649. ac_cv_prog_f77_g=yes
  5650. else
  5651. echo "$as_me: failed program was:" >&5
  5652. sed 's/^/| /' conftest.$ac_ext >&5
  5653. ac_cv_prog_f77_g=no
  5654. fi
  5655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5656. fi
  5657. { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5658. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  5659. if test "$ac_test_FFLAGS" = set; then
  5660. FFLAGS=$ac_save_FFLAGS
  5661. elif test $ac_cv_prog_f77_g = yes; then
  5662. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5663. FFLAGS="-g -O2"
  5664. else
  5665. FFLAGS="-g"
  5666. fi
  5667. else
  5668. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5669. FFLAGS="-O2"
  5670. else
  5671. FFLAGS=
  5672. fi
  5673. fi
  5674. G77=`test $ac_compiler_gnu = yes && echo yes`
  5675. ac_ext=c
  5676. ac_cpp='$CPP $CPPFLAGS'
  5677. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5678. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5679. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5680. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5681. # find the maximum length of command line arguments
  5682. { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5683. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  5684. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5685. echo $ECHO_N "(cached) $ECHO_C" >&6
  5686. else
  5687. i=0
  5688. teststring="ABCD"
  5689. case $build_os in
  5690. msdosdjgpp*)
  5691. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5692. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5693. # during glob expansion). Even if it were fixed, the result of this
  5694. # check would be larger than it should be.
  5695. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5696. ;;
  5697. gnu*)
  5698. # Under GNU Hurd, this test is not required because there is
  5699. # no limit to the length of command line arguments.
  5700. # Libtool will interpret -1 as no limit whatsoever
  5701. lt_cv_sys_max_cmd_len=-1;
  5702. ;;
  5703. cygwin* | mingw*)
  5704. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5705. # about 5 minutes as the teststring grows exponentially.
  5706. # Worse, since 9x/ME are not pre-emptively multitasking,
  5707. # you end up with a "frozen" computer, even though with patience
  5708. # the test eventually succeeds (with a max line length of 256k).
  5709. # Instead, let's just punt: use the minimum linelength reported by
  5710. # all of the supported platforms: 8192 (on NT/2K/XP).
  5711. lt_cv_sys_max_cmd_len=8192;
  5712. ;;
  5713. amigaos*)
  5714. # On AmigaOS with pdksh, this test takes hours, literally.
  5715. # So we just punt and use a minimum line length of 8192.
  5716. lt_cv_sys_max_cmd_len=8192;
  5717. ;;
  5718. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5719. # This has been around since 386BSD, at least. Likely further.
  5720. if test -x /sbin/sysctl; then
  5721. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5722. elif test -x /usr/sbin/sysctl; then
  5723. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5724. else
  5725. lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
  5726. fi
  5727. # And add a safety zone
  5728. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5729. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5730. ;;
  5731. osf*)
  5732. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5733. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5734. # nice to cause kernel panics so lets avoid the loop below.
  5735. # First set a reasonable default.
  5736. lt_cv_sys_max_cmd_len=16384
  5737. #
  5738. if test -x /sbin/sysconfig; then
  5739. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5740. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5741. esac
  5742. fi
  5743. ;;
  5744. *)
  5745. # If test is not a shell built-in, we'll probably end up computing a
  5746. # maximum length that is only half of the actual maximum length, but
  5747. # we can't tell.
  5748. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5749. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5750. = "XX$teststring") >/dev/null 2>&1 &&
  5751. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5752. lt_cv_sys_max_cmd_len=$new_result &&
  5753. test $i != 17 # 1/2 MB should be enough
  5754. do
  5755. i=`expr $i + 1`
  5756. teststring=$teststring$teststring
  5757. done
  5758. teststring=
  5759. # Add a significant safety factor because C++ compilers can tack on massive
  5760. # amounts of additional arguments before passing them to the linker.
  5761. # It appears as though 1/2 is a usable value.
  5762. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5763. ;;
  5764. esac
  5765. fi
  5766. if test -n $lt_cv_sys_max_cmd_len ; then
  5767. { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5768. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  5769. else
  5770. { echo "$as_me:$LINENO: result: none" >&5
  5771. echo "${ECHO_T}none" >&6; }
  5772. fi
  5773. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5774. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5775. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  5776. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5777. echo $ECHO_N "(cached) $ECHO_C" >&6
  5778. else
  5779. # These are sane defaults that work on at least a few old systems.
  5780. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5781. # Character class describing NM global symbol codes.
  5782. symcode='[BCDEGRST]'
  5783. # Regexp to match symbols that can be accessed directly from C.
  5784. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5785. # Transform an extracted symbol line into a proper C declaration
  5786. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5787. # Transform an extracted symbol line into symbol name and symbol address
  5788. 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'"
  5789. # Define system-specific variables.
  5790. case $host_os in
  5791. aix*)
  5792. symcode='[BCDT]'
  5793. ;;
  5794. cygwin* | mingw* | pw32*)
  5795. symcode='[ABCDGISTW]'
  5796. ;;
  5797. hpux*) # Its linker distinguishes data from code symbols
  5798. if test "$host_cpu" = ia64; then
  5799. symcode='[ABCDEGRST]'
  5800. fi
  5801. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5802. 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'"
  5803. ;;
  5804. linux*)
  5805. if test "$host_cpu" = ia64; then
  5806. symcode='[ABCDGIRSTW]'
  5807. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5808. 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'"
  5809. fi
  5810. ;;
  5811. irix* | nonstopux*)
  5812. symcode='[BCDEGRST]'
  5813. ;;
  5814. osf*)
  5815. symcode='[BCDEGQRST]'
  5816. ;;
  5817. solaris* | sysv5*)
  5818. symcode='[BDRT]'
  5819. ;;
  5820. sysv4)
  5821. symcode='[DFNSTU]'
  5822. ;;
  5823. esac
  5824. # Handle CRLF in mingw tool chain
  5825. opt_cr=
  5826. case $build_os in
  5827. mingw*)
  5828. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5829. ;;
  5830. esac
  5831. # If we're using GNU nm, then use its standard symbol codes.
  5832. case `$NM -V 2>&1` in
  5833. *GNU* | *'with BFD'*)
  5834. symcode='[ABCDGIRSTW]' ;;
  5835. esac
  5836. # Try without a prefix undercore, then with it.
  5837. for ac_symprfx in "" "_"; do
  5838. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5839. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5840. # Write the raw and C identifiers.
  5841. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5842. # Check to see that the pipe works correctly.
  5843. pipe_works=no
  5844. rm -f conftest*
  5845. cat > conftest.$ac_ext <<EOF
  5846. #ifdef __cplusplus
  5847. extern "C" {
  5848. #endif
  5849. char nm_test_var;
  5850. void nm_test_func(){}
  5851. #ifdef __cplusplus
  5852. }
  5853. #endif
  5854. int main(){nm_test_var='a';nm_test_func();return(0);}
  5855. EOF
  5856. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5857. (eval $ac_compile) 2>&5
  5858. ac_status=$?
  5859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5860. (exit $ac_status); }; then
  5861. # Now try to grab the symbols.
  5862. nlist=conftest.nm
  5863. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5864. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5865. ac_status=$?
  5866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5867. (exit $ac_status); } && test -s "$nlist"; then
  5868. # Try sorting and uniquifying the output.
  5869. if sort "$nlist" | uniq > "$nlist"T; then
  5870. mv -f "$nlist"T "$nlist"
  5871. else
  5872. rm -f "$nlist"T
  5873. fi
  5874. # Make sure that we snagged all the symbols we need.
  5875. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5876. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5877. cat <<EOF > conftest.$ac_ext
  5878. #ifdef __cplusplus
  5879. extern "C" {
  5880. #endif
  5881. EOF
  5882. # Now generate the symbol file.
  5883. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5884. cat <<EOF >> conftest.$ac_ext
  5885. #if defined (__STDC__) && __STDC__
  5886. # define lt_ptr_t void *
  5887. #else
  5888. # define lt_ptr_t char *
  5889. # define const
  5890. #endif
  5891. /* The mapping between symbol names and symbols. */
  5892. const struct {
  5893. const char *name;
  5894. lt_ptr_t address;
  5895. }
  5896. lt_preloaded_symbols[] =
  5897. {
  5898. EOF
  5899. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5900. cat <<\EOF >> conftest.$ac_ext
  5901. {0, (lt_ptr_t) 0}
  5902. };
  5903. #ifdef __cplusplus
  5904. }
  5905. #endif
  5906. EOF
  5907. # Now try linking the two files.
  5908. mv conftest.$ac_objext conftstm.$ac_objext
  5909. lt_save_LIBS="$LIBS"
  5910. lt_save_CFLAGS="$CFLAGS"
  5911. LIBS="conftstm.$ac_objext"
  5912. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5913. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5914. (eval $ac_link) 2>&5
  5915. ac_status=$?
  5916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5917. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5918. pipe_works=yes
  5919. fi
  5920. LIBS="$lt_save_LIBS"
  5921. CFLAGS="$lt_save_CFLAGS"
  5922. else
  5923. echo "cannot find nm_test_func in $nlist" >&5
  5924. fi
  5925. else
  5926. echo "cannot find nm_test_var in $nlist" >&5
  5927. fi
  5928. else
  5929. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5930. fi
  5931. else
  5932. echo "$progname: failed program was:" >&5
  5933. cat conftest.$ac_ext >&5
  5934. fi
  5935. rm -f conftest* conftst*
  5936. # Do not use the global_symbol_pipe unless it works.
  5937. if test "$pipe_works" = yes; then
  5938. break
  5939. else
  5940. lt_cv_sys_global_symbol_pipe=
  5941. fi
  5942. done
  5943. fi
  5944. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5945. lt_cv_sys_global_symbol_to_cdecl=
  5946. fi
  5947. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5948. { echo "$as_me:$LINENO: result: failed" >&5
  5949. echo "${ECHO_T}failed" >&6; }
  5950. else
  5951. { echo "$as_me:$LINENO: result: ok" >&5
  5952. echo "${ECHO_T}ok" >&6; }
  5953. fi
  5954. { echo "$as_me:$LINENO: checking for objdir" >&5
  5955. echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  5956. if test "${lt_cv_objdir+set}" = set; then
  5957. echo $ECHO_N "(cached) $ECHO_C" >&6
  5958. else
  5959. rm -f .libs 2>/dev/null
  5960. mkdir .libs 2>/dev/null
  5961. if test -d .libs; then
  5962. lt_cv_objdir=.libs
  5963. else
  5964. # MS-DOS does not allow filenames that begin with a dot.
  5965. lt_cv_objdir=_libs
  5966. fi
  5967. rmdir .libs 2>/dev/null
  5968. fi
  5969. { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  5970. echo "${ECHO_T}$lt_cv_objdir" >&6; }
  5971. objdir=$lt_cv_objdir
  5972. case $host_os in
  5973. aix3*)
  5974. # AIX sometimes has problems with the GCC collect2 program. For some
  5975. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5976. # vanish in a puff of smoke.
  5977. if test "X${COLLECT_NAMES+set}" != Xset; then
  5978. COLLECT_NAMES=
  5979. export COLLECT_NAMES
  5980. fi
  5981. ;;
  5982. esac
  5983. # Sed substitution that helps us do robust quoting. It backslashifies
  5984. # metacharacters that are still active within double-quoted strings.
  5985. Xsed='sed -e 1s/^X//'
  5986. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  5987. # Same as above, but do not quote variable references.
  5988. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  5989. # Sed substitution to delay expansion of an escaped shell variable in a
  5990. # double_quote_subst'ed string.
  5991. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5992. # Sed substitution to avoid accidental globbing in evaled expressions
  5993. no_glob_subst='s/\*/\\\*/g'
  5994. # Constants:
  5995. rm="rm -f"
  5996. # Global variables:
  5997. default_ofile=libtool
  5998. can_build_shared=yes
  5999. # All known linkers require a `.a' archive for static linking (except M$VC,
  6000. # which needs '.lib').
  6001. libext=a
  6002. ltmain="$ac_aux_dir/ltmain.sh"
  6003. ofile="$default_ofile"
  6004. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6005. if test -n "$ac_tool_prefix"; then
  6006. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6007. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6008. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6009. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6010. if test "${ac_cv_prog_AR+set}" = set; then
  6011. echo $ECHO_N "(cached) $ECHO_C" >&6
  6012. else
  6013. if test -n "$AR"; then
  6014. ac_cv_prog_AR="$AR" # Let the user override the test.
  6015. else
  6016. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6017. for as_dir in $PATH
  6018. do
  6019. IFS=$as_save_IFS
  6020. test -z "$as_dir" && as_dir=.
  6021. for ac_exec_ext in '' $ac_executable_extensions; do
  6022. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6023. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6024. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6025. break 2
  6026. fi
  6027. done
  6028. done
  6029. IFS=$as_save_IFS
  6030. fi
  6031. fi
  6032. AR=$ac_cv_prog_AR
  6033. if test -n "$AR"; then
  6034. { echo "$as_me:$LINENO: result: $AR" >&5
  6035. echo "${ECHO_T}$AR" >&6; }
  6036. else
  6037. { echo "$as_me:$LINENO: result: no" >&5
  6038. echo "${ECHO_T}no" >&6; }
  6039. fi
  6040. fi
  6041. if test -z "$ac_cv_prog_AR"; then
  6042. ac_ct_AR=$AR
  6043. # Extract the first word of "ar", so it can be a program name with args.
  6044. set dummy ar; ac_word=$2
  6045. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6046. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6047. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  6048. echo $ECHO_N "(cached) $ECHO_C" >&6
  6049. else
  6050. if test -n "$ac_ct_AR"; then
  6051. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6052. else
  6053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6054. for as_dir in $PATH
  6055. do
  6056. IFS=$as_save_IFS
  6057. test -z "$as_dir" && as_dir=.
  6058. for ac_exec_ext in '' $ac_executable_extensions; do
  6059. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6060. ac_cv_prog_ac_ct_AR="ar"
  6061. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6062. break 2
  6063. fi
  6064. done
  6065. done
  6066. IFS=$as_save_IFS
  6067. fi
  6068. fi
  6069. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6070. if test -n "$ac_ct_AR"; then
  6071. { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  6072. echo "${ECHO_T}$ac_ct_AR" >&6; }
  6073. else
  6074. { echo "$as_me:$LINENO: result: no" >&5
  6075. echo "${ECHO_T}no" >&6; }
  6076. fi
  6077. if test "x$ac_ct_AR" = x; then
  6078. AR="false"
  6079. else
  6080. case $cross_compiling:$ac_tool_warned in
  6081. yes:)
  6082. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6083. whose name does not start with the host triplet. If you think this
  6084. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6085. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6086. whose name does not start with the host triplet. If you think this
  6087. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6088. ac_tool_warned=yes ;;
  6089. esac
  6090. AR=$ac_ct_AR
  6091. fi
  6092. else
  6093. AR="$ac_cv_prog_AR"
  6094. fi
  6095. if test -n "$ac_tool_prefix"; then
  6096. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6097. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6098. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6099. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6100. if test "${ac_cv_prog_RANLIB+set}" = set; then
  6101. echo $ECHO_N "(cached) $ECHO_C" >&6
  6102. else
  6103. if test -n "$RANLIB"; then
  6104. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6105. else
  6106. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6107. for as_dir in $PATH
  6108. do
  6109. IFS=$as_save_IFS
  6110. test -z "$as_dir" && as_dir=.
  6111. for ac_exec_ext in '' $ac_executable_extensions; do
  6112. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6113. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6114. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6115. break 2
  6116. fi
  6117. done
  6118. done
  6119. IFS=$as_save_IFS
  6120. fi
  6121. fi
  6122. RANLIB=$ac_cv_prog_RANLIB
  6123. if test -n "$RANLIB"; then
  6124. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  6125. echo "${ECHO_T}$RANLIB" >&6; }
  6126. else
  6127. { echo "$as_me:$LINENO: result: no" >&5
  6128. echo "${ECHO_T}no" >&6; }
  6129. fi
  6130. fi
  6131. if test -z "$ac_cv_prog_RANLIB"; then
  6132. ac_ct_RANLIB=$RANLIB
  6133. # Extract the first word of "ranlib", so it can be a program name with args.
  6134. set dummy ranlib; ac_word=$2
  6135. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6136. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6137. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  6138. echo $ECHO_N "(cached) $ECHO_C" >&6
  6139. else
  6140. if test -n "$ac_ct_RANLIB"; then
  6141. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6142. else
  6143. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6144. for as_dir in $PATH
  6145. do
  6146. IFS=$as_save_IFS
  6147. test -z "$as_dir" && as_dir=.
  6148. for ac_exec_ext in '' $ac_executable_extensions; do
  6149. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6150. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6151. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6152. break 2
  6153. fi
  6154. done
  6155. done
  6156. IFS=$as_save_IFS
  6157. fi
  6158. fi
  6159. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6160. if test -n "$ac_ct_RANLIB"; then
  6161. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  6162. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  6163. else
  6164. { echo "$as_me:$LINENO: result: no" >&5
  6165. echo "${ECHO_T}no" >&6; }
  6166. fi
  6167. if test "x$ac_ct_RANLIB" = x; then
  6168. RANLIB=":"
  6169. else
  6170. case $cross_compiling:$ac_tool_warned in
  6171. yes:)
  6172. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6173. whose name does not start with the host triplet. If you think this
  6174. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6175. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6176. whose name does not start with the host triplet. If you think this
  6177. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6178. ac_tool_warned=yes ;;
  6179. esac
  6180. RANLIB=$ac_ct_RANLIB
  6181. fi
  6182. else
  6183. RANLIB="$ac_cv_prog_RANLIB"
  6184. fi
  6185. if test -n "$ac_tool_prefix"; then
  6186. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6187. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6188. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6189. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6190. if test "${ac_cv_prog_STRIP+set}" = set; then
  6191. echo $ECHO_N "(cached) $ECHO_C" >&6
  6192. else
  6193. if test -n "$STRIP"; then
  6194. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6195. else
  6196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6197. for as_dir in $PATH
  6198. do
  6199. IFS=$as_save_IFS
  6200. test -z "$as_dir" && as_dir=.
  6201. for ac_exec_ext in '' $ac_executable_extensions; do
  6202. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6203. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6204. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6205. break 2
  6206. fi
  6207. done
  6208. done
  6209. IFS=$as_save_IFS
  6210. fi
  6211. fi
  6212. STRIP=$ac_cv_prog_STRIP
  6213. if test -n "$STRIP"; then
  6214. { echo "$as_me:$LINENO: result: $STRIP" >&5
  6215. echo "${ECHO_T}$STRIP" >&6; }
  6216. else
  6217. { echo "$as_me:$LINENO: result: no" >&5
  6218. echo "${ECHO_T}no" >&6; }
  6219. fi
  6220. fi
  6221. if test -z "$ac_cv_prog_STRIP"; then
  6222. ac_ct_STRIP=$STRIP
  6223. # Extract the first word of "strip", so it can be a program name with args.
  6224. set dummy strip; ac_word=$2
  6225. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6226. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6227. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  6228. echo $ECHO_N "(cached) $ECHO_C" >&6
  6229. else
  6230. if test -n "$ac_ct_STRIP"; then
  6231. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6232. else
  6233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6234. for as_dir in $PATH
  6235. do
  6236. IFS=$as_save_IFS
  6237. test -z "$as_dir" && as_dir=.
  6238. for ac_exec_ext in '' $ac_executable_extensions; do
  6239. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6240. ac_cv_prog_ac_ct_STRIP="strip"
  6241. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6242. break 2
  6243. fi
  6244. done
  6245. done
  6246. IFS=$as_save_IFS
  6247. fi
  6248. fi
  6249. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6250. if test -n "$ac_ct_STRIP"; then
  6251. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  6252. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  6253. else
  6254. { echo "$as_me:$LINENO: result: no" >&5
  6255. echo "${ECHO_T}no" >&6; }
  6256. fi
  6257. if test "x$ac_ct_STRIP" = x; then
  6258. STRIP=":"
  6259. else
  6260. case $cross_compiling:$ac_tool_warned in
  6261. yes:)
  6262. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6263. whose name does not start with the host triplet. If you think this
  6264. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6265. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6266. whose name does not start with the host triplet. If you think this
  6267. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6268. ac_tool_warned=yes ;;
  6269. esac
  6270. STRIP=$ac_ct_STRIP
  6271. fi
  6272. else
  6273. STRIP="$ac_cv_prog_STRIP"
  6274. fi
  6275. old_CC="$CC"
  6276. old_CFLAGS="$CFLAGS"
  6277. # Set sane defaults for various variables
  6278. test -z "$AR" && AR=ar
  6279. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6280. test -z "$AS" && AS=as
  6281. test -z "$CC" && CC=cc
  6282. test -z "$LTCC" && LTCC=$CC
  6283. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6284. test -z "$LD" && LD=ld
  6285. test -z "$LN_S" && LN_S="ln -s"
  6286. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6287. test -z "$NM" && NM=nm
  6288. test -z "$SED" && SED=sed
  6289. test -z "$OBJDUMP" && OBJDUMP=objdump
  6290. test -z "$RANLIB" && RANLIB=:
  6291. test -z "$STRIP" && STRIP=:
  6292. test -z "$ac_objext" && ac_objext=o
  6293. # Determine commands to create old-style static archives.
  6294. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  6295. old_postinstall_cmds='chmod 644 $oldlib'
  6296. old_postuninstall_cmds=
  6297. if test -n "$RANLIB"; then
  6298. case $host_os in
  6299. openbsd*)
  6300. old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  6301. ;;
  6302. *)
  6303. old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  6304. ;;
  6305. esac
  6306. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6307. fi
  6308. for cc_temp in $compiler""; do
  6309. case $cc_temp in
  6310. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6311. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6312. \-*) ;;
  6313. *) break;;
  6314. esac
  6315. done
  6316. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6317. # Only perform the check for file, if the check method requires it
  6318. case $deplibs_check_method in
  6319. file_magic*)
  6320. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6321. { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6322. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  6323. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6324. echo $ECHO_N "(cached) $ECHO_C" >&6
  6325. else
  6326. case $MAGIC_CMD in
  6327. [\\/*] | ?:[\\/]*)
  6328. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6329. ;;
  6330. *)
  6331. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6332. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6333. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6334. for ac_dir in $ac_dummy; do
  6335. IFS="$lt_save_ifs"
  6336. test -z "$ac_dir" && ac_dir=.
  6337. if test -f $ac_dir/${ac_tool_prefix}file; then
  6338. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6339. if test -n "$file_magic_test_file"; then
  6340. case $deplibs_check_method in
  6341. "file_magic "*)
  6342. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  6343. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6344. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6345. $EGREP "$file_magic_regex" > /dev/null; then
  6346. :
  6347. else
  6348. cat <<EOF 1>&2
  6349. *** Warning: the command libtool uses to detect shared libraries,
  6350. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6351. *** The result is that libtool may fail to recognize shared libraries
  6352. *** as such. This will affect the creation of libtool libraries that
  6353. *** depend on shared libraries, but programs linked with such libtool
  6354. *** libraries will work regardless of this problem. Nevertheless, you
  6355. *** may want to report the problem to your system manager and/or to
  6356. *** bug-libtool@gnu.org
  6357. EOF
  6358. fi ;;
  6359. esac
  6360. fi
  6361. break
  6362. fi
  6363. done
  6364. IFS="$lt_save_ifs"
  6365. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6366. ;;
  6367. esac
  6368. fi
  6369. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6370. if test -n "$MAGIC_CMD"; then
  6371. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6372. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6373. else
  6374. { echo "$as_me:$LINENO: result: no" >&5
  6375. echo "${ECHO_T}no" >&6; }
  6376. fi
  6377. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6378. if test -n "$ac_tool_prefix"; then
  6379. { echo "$as_me:$LINENO: checking for file" >&5
  6380. echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  6381. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6382. echo $ECHO_N "(cached) $ECHO_C" >&6
  6383. else
  6384. case $MAGIC_CMD in
  6385. [\\/*] | ?:[\\/]*)
  6386. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6387. ;;
  6388. *)
  6389. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6390. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6391. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6392. for ac_dir in $ac_dummy; do
  6393. IFS="$lt_save_ifs"
  6394. test -z "$ac_dir" && ac_dir=.
  6395. if test -f $ac_dir/file; then
  6396. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6397. if test -n "$file_magic_test_file"; then
  6398. case $deplibs_check_method in
  6399. "file_magic "*)
  6400. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  6401. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6402. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6403. $EGREP "$file_magic_regex" > /dev/null; then
  6404. :
  6405. else
  6406. cat <<EOF 1>&2
  6407. *** Warning: the command libtool uses to detect shared libraries,
  6408. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6409. *** The result is that libtool may fail to recognize shared libraries
  6410. *** as such. This will affect the creation of libtool libraries that
  6411. *** depend on shared libraries, but programs linked with such libtool
  6412. *** libraries will work regardless of this problem. Nevertheless, you
  6413. *** may want to report the problem to your system manager and/or to
  6414. *** bug-libtool@gnu.org
  6415. EOF
  6416. fi ;;
  6417. esac
  6418. fi
  6419. break
  6420. fi
  6421. done
  6422. IFS="$lt_save_ifs"
  6423. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6424. ;;
  6425. esac
  6426. fi
  6427. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6428. if test -n "$MAGIC_CMD"; then
  6429. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6430. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6431. else
  6432. { echo "$as_me:$LINENO: result: no" >&5
  6433. echo "${ECHO_T}no" >&6; }
  6434. fi
  6435. else
  6436. MAGIC_CMD=:
  6437. fi
  6438. fi
  6439. fi
  6440. ;;
  6441. esac
  6442. enable_dlopen=no
  6443. enable_win32_dll=no
  6444. # Check whether --enable-libtool-lock was given.
  6445. if test "${enable_libtool_lock+set}" = set; then
  6446. enableval=$enable_libtool_lock;
  6447. fi
  6448. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6449. # Check whether --with-pic was given.
  6450. if test "${with_pic+set}" = set; then
  6451. withval=$with_pic; pic_mode="$withval"
  6452. else
  6453. pic_mode=default
  6454. fi
  6455. test -z "$pic_mode" && pic_mode=default
  6456. # Use C for the default configuration in the libtool script
  6457. tagname=
  6458. lt_save_CC="$CC"
  6459. ac_ext=c
  6460. ac_cpp='$CPP $CPPFLAGS'
  6461. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6462. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6463. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6464. # Source file extension for C test sources.
  6465. ac_ext=c
  6466. # Object file extension for compiled C test sources.
  6467. objext=o
  6468. objext=$objext
  6469. # Code to be used in simple compile tests
  6470. lt_simple_compile_test_code="int some_variable = 0;\n"
  6471. # Code to be used in simple link tests
  6472. lt_simple_link_test_code='int main(){return(0);}\n'
  6473. # If no C compiler was specified, use CC.
  6474. LTCC=${LTCC-"$CC"}
  6475. # Allow CC to be a program name with arguments.
  6476. compiler=$CC
  6477. # save warnings/boilerplate of simple test code
  6478. ac_outfile=conftest.$ac_objext
  6479. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  6480. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  6481. _lt_compiler_boilerplate=`cat conftest.err`
  6482. $rm conftest*
  6483. ac_outfile=conftest.$ac_objext
  6484. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  6485. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  6486. _lt_linker_boilerplate=`cat conftest.err`
  6487. $rm conftest*
  6488. #
  6489. # Check for any special shared library compilation flags.
  6490. #
  6491. lt_prog_cc_shlib=
  6492. if test "$GCC" = no; then
  6493. case $host_os in
  6494. sco3.2v5*)
  6495. lt_prog_cc_shlib='-belf'
  6496. ;;
  6497. esac
  6498. fi
  6499. if test -n "$lt_prog_cc_shlib"; then
  6500. { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
  6501. echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
  6502. if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
  6503. else
  6504. { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  6505. echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  6506. lt_cv_prog_cc_can_build_shared=no
  6507. fi
  6508. fi
  6509. #
  6510. # Check to make sure the static flag actually works.
  6511. #
  6512. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
  6513. echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
  6514. if test "${lt_prog_compiler_static_works+set}" = set; then
  6515. echo $ECHO_N "(cached) $ECHO_C" >&6
  6516. else
  6517. lt_prog_compiler_static_works=no
  6518. save_LDFLAGS="$LDFLAGS"
  6519. LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
  6520. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  6521. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6522. # The compiler can only warn and ignore the option if not recognized
  6523. # So say no if there are warnings
  6524. if test -s conftest.err; then
  6525. # Append any errors to the config.log.
  6526. cat conftest.err 1>&5
  6527. $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
  6528. $SED '/^$/d' conftest.err >conftest.er2
  6529. if diff conftest.exp conftest.er2 >/dev/null; then
  6530. lt_prog_compiler_static_works=yes
  6531. fi
  6532. else
  6533. lt_prog_compiler_static_works=yes
  6534. fi
  6535. fi
  6536. $rm conftest*
  6537. LDFLAGS="$save_LDFLAGS"
  6538. fi
  6539. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  6540. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
  6541. if test x"$lt_prog_compiler_static_works" = xyes; then
  6542. :
  6543. else
  6544. lt_prog_compiler_static=
  6545. fi
  6546. lt_prog_compiler_no_builtin_flag=
  6547. if test "$GCC" = yes; then
  6548. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6549. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6550. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  6551. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  6552. echo $ECHO_N "(cached) $ECHO_C" >&6
  6553. else
  6554. lt_cv_prog_compiler_rtti_exceptions=no
  6555. ac_outfile=conftest.$ac_objext
  6556. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6557. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6558. # Insert the option either (1) after the last *FLAGS variable, or
  6559. # (2) before a word containing "conftest.", or (3) at the end.
  6560. # Note that $ac_compile itself does not contain backslashes and begins
  6561. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6562. # The option is referenced via a variable to avoid confusing sed.
  6563. lt_compile=`echo "$ac_compile" | $SED \
  6564. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  6565. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6566. -e 's:$: $lt_compiler_flag:'`
  6567. (eval echo "\"\$as_me:7347: $lt_compile\"" >&5)
  6568. (eval "$lt_compile" 2>conftest.err)
  6569. ac_status=$?
  6570. cat conftest.err >&5
  6571. echo "$as_me:7351: \$? = $ac_status" >&5
  6572. if (exit $ac_status) && test -s "$ac_outfile"; then
  6573. # The compiler can only warn and ignore the option if not recognized
  6574. # So say no if there are warnings other than the usual output.
  6575. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  6576. $SED '/^$/d' conftest.err >conftest.er2
  6577. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  6578. lt_cv_prog_compiler_rtti_exceptions=yes
  6579. fi
  6580. fi
  6581. $rm conftest*
  6582. fi
  6583. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6584. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6585. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6586. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6587. else
  6588. :
  6589. fi
  6590. fi
  6591. lt_prog_compiler_wl=
  6592. lt_prog_compiler_pic=
  6593. lt_prog_compiler_static=
  6594. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  6595. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  6596. if test "$GCC" = yes; then
  6597. lt_prog_compiler_wl='-Wl,'
  6598. lt_prog_compiler_static='-static'
  6599. case $host_os in
  6600. aix*)
  6601. # All AIX code is PIC.
  6602. if test "$host_cpu" = ia64; then
  6603. # AIX 5 now supports IA64 processor
  6604. lt_prog_compiler_static='-Bstatic'
  6605. fi
  6606. ;;
  6607. amigaos*)
  6608. # FIXME: we need at least 68020 code to build shared libraries, but
  6609. # adding the `-m68020' flag to GCC prevents building anything better,
  6610. # like `-m68040'.
  6611. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6612. ;;
  6613. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6614. # PIC is the default for these OSes.
  6615. ;;
  6616. mingw* | pw32* | os2*)
  6617. # This hack is so that the source file can tell whether it is being
  6618. # built for inclusion in a dll (and should export symbols for example).
  6619. lt_prog_compiler_pic='-DDLL_EXPORT'
  6620. ;;
  6621. darwin* | rhapsody*)
  6622. # PIC is the default on this platform
  6623. # Common symbols not allowed in MH_DYLIB files
  6624. lt_prog_compiler_pic='-fno-common'
  6625. ;;
  6626. msdosdjgpp*)
  6627. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6628. # on systems that don't support them.
  6629. lt_prog_compiler_can_build_shared=no
  6630. enable_shared=no
  6631. ;;
  6632. sysv4*MP*)
  6633. if test -d /usr/nec; then
  6634. lt_prog_compiler_pic=-Kconform_pic
  6635. fi
  6636. ;;
  6637. hpux*)
  6638. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6639. # not for PA HP-UX.
  6640. case "$host_cpu" in
  6641. hppa*64*|ia64*)
  6642. # +Z the default
  6643. ;;
  6644. *)
  6645. lt_prog_compiler_pic='-fPIC'
  6646. ;;
  6647. esac
  6648. ;;
  6649. *)
  6650. lt_prog_compiler_pic='-fPIC'
  6651. ;;
  6652. esac
  6653. else
  6654. # PORTME Check for flag to pass linker flags through the system compiler.
  6655. case $host_os in
  6656. aix*)
  6657. lt_prog_compiler_wl='-Wl,'
  6658. if test "$host_cpu" = ia64; then
  6659. # AIX 5 now supports IA64 processor
  6660. lt_prog_compiler_static='-Bstatic'
  6661. else
  6662. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6663. fi
  6664. ;;
  6665. darwin*)
  6666. # PIC is the default on this platform
  6667. # Common symbols not allowed in MH_DYLIB files
  6668. case $cc_basename in
  6669. xlc*)
  6670. lt_prog_compiler_pic='-qnocommon'
  6671. lt_prog_compiler_wl='-Wl,'
  6672. ;;
  6673. esac
  6674. ;;
  6675. mingw* | pw32* | os2*)
  6676. # This hack is so that the source file can tell whether it is being
  6677. # built for inclusion in a dll (and should export symbols for example).
  6678. lt_prog_compiler_pic='-DDLL_EXPORT'
  6679. ;;
  6680. hpux9* | hpux10* | hpux11*)
  6681. lt_prog_compiler_wl='-Wl,'
  6682. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6683. # not for PA HP-UX.
  6684. case "$host_cpu" in
  6685. hppa*64*|ia64*)
  6686. # +Z the default
  6687. ;;
  6688. *)
  6689. lt_prog_compiler_pic='+Z'
  6690. ;;
  6691. esac
  6692. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6693. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6694. ;;
  6695. irix5* | irix6* | nonstopux*)
  6696. lt_prog_compiler_wl='-Wl,'
  6697. # PIC (with -KPIC) is the default.
  6698. lt_prog_compiler_static='-non_shared'
  6699. ;;
  6700. newsos6)
  6701. lt_prog_compiler_pic='-KPIC'
  6702. lt_prog_compiler_static='-Bstatic'
  6703. ;;
  6704. linux*)
  6705. case $cc_basename in
  6706. icc* | ecc*)
  6707. lt_prog_compiler_wl='-Wl,'
  6708. lt_prog_compiler_pic='-KPIC'
  6709. lt_prog_compiler_static='-static'
  6710. ;;
  6711. pgcc* | pgf77* | pgf90*)
  6712. # Portland Group compilers (*not* the Pentium gcc compiler,
  6713. # which looks to be a dead project)
  6714. lt_prog_compiler_wl='-Wl,'
  6715. lt_prog_compiler_pic='-fpic'
  6716. lt_prog_compiler_static='-static'
  6717. ;;
  6718. ccc*)
  6719. lt_prog_compiler_wl='-Wl,'
  6720. # All Alpha code is PIC.
  6721. lt_prog_compiler_static='-non_shared'
  6722. ;;
  6723. esac
  6724. ;;
  6725. osf3* | osf4* | osf5*)
  6726. lt_prog_compiler_wl='-Wl,'
  6727. # All OSF/1 code is PIC.
  6728. lt_prog_compiler_static='-non_shared'
  6729. ;;
  6730. sco3.2v5*)
  6731. lt_prog_compiler_pic='-Kpic'
  6732. lt_prog_compiler_static='-dn'
  6733. ;;
  6734. solaris*)
  6735. lt_prog_compiler_pic='-KPIC'
  6736. lt_prog_compiler_static='-Bstatic'
  6737. case $cc_basename in
  6738. f77* | f90* | f95*)
  6739. lt_prog_compiler_wl='-Qoption ld ';;
  6740. *)
  6741. lt_prog_compiler_wl='-Wl,';;
  6742. esac
  6743. ;;
  6744. sunos4*)
  6745. lt_prog_compiler_wl='-Qoption ld '
  6746. lt_prog_compiler_pic='-PIC'
  6747. lt_prog_compiler_static='-Bstatic'
  6748. ;;
  6749. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  6750. lt_prog_compiler_wl='-Wl,'
  6751. lt_prog_compiler_pic='-KPIC'
  6752. lt_prog_compiler_static='-Bstatic'
  6753. ;;
  6754. sysv4*MP*)
  6755. if test -d /usr/nec ;then
  6756. lt_prog_compiler_pic='-Kconform_pic'
  6757. lt_prog_compiler_static='-Bstatic'
  6758. fi
  6759. ;;
  6760. unicos*)
  6761. lt_prog_compiler_wl='-Wl,'
  6762. lt_prog_compiler_can_build_shared=no
  6763. ;;
  6764. uts4*)
  6765. lt_prog_compiler_pic='-pic'
  6766. lt_prog_compiler_static='-Bstatic'
  6767. ;;
  6768. *)
  6769. lt_prog_compiler_can_build_shared=no
  6770. ;;
  6771. esac
  6772. fi
  6773. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6774. echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  6775. #
  6776. # Check to make sure the PIC flag actually works.
  6777. #
  6778. if test -n "$lt_prog_compiler_pic"; then
  6779. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6780. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  6781. if test "${lt_prog_compiler_pic_works+set}" = set; then
  6782. echo $ECHO_N "(cached) $ECHO_C" >&6
  6783. else
  6784. lt_prog_compiler_pic_works=no
  6785. ac_outfile=conftest.$ac_objext
  6786. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6787. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6788. # Insert the option either (1) after the last *FLAGS variable, or
  6789. # (2) before a word containing "conftest.", or (3) at the end.
  6790. # Note that $ac_compile itself does not contain backslashes and begins
  6791. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6792. # The option is referenced via a variable to avoid confusing sed.
  6793. lt_compile=`echo "$ac_compile" | $SED \
  6794. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  6795. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6796. -e 's:$: $lt_compiler_flag:'`
  6797. (eval echo "\"\$as_me:7609: $lt_compile\"" >&5)
  6798. (eval "$lt_compile" 2>conftest.err)
  6799. ac_status=$?
  6800. cat conftest.err >&5
  6801. echo "$as_me:7613: \$? = $ac_status" >&5
  6802. if (exit $ac_status) && test -s "$ac_outfile"; then
  6803. # The compiler can only warn and ignore the option if not recognized
  6804. # So say no if there are warnings other than the usual output.
  6805. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  6806. $SED '/^$/d' conftest.err >conftest.er2
  6807. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  6808. lt_prog_compiler_pic_works=yes
  6809. fi
  6810. fi
  6811. $rm conftest*
  6812. fi
  6813. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  6814. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
  6815. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6816. case $lt_prog_compiler_pic in
  6817. "" | " "*) ;;
  6818. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6819. esac
  6820. else
  6821. lt_prog_compiler_pic=
  6822. lt_prog_compiler_can_build_shared=no
  6823. fi
  6824. fi
  6825. case "$host_os" in
  6826. # For platforms which do not support PIC, -DPIC is meaningless:
  6827. *djgpp*)
  6828. lt_prog_compiler_pic=
  6829. ;;
  6830. *)
  6831. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6832. ;;
  6833. esac
  6834. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6835. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  6836. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6837. echo $ECHO_N "(cached) $ECHO_C" >&6
  6838. else
  6839. lt_cv_prog_compiler_c_o=no
  6840. $rm -r conftest 2>/dev/null
  6841. mkdir conftest
  6842. cd conftest
  6843. mkdir out
  6844. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6845. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6846. # Insert the option either (1) after the last *FLAGS variable, or
  6847. # (2) before a word containing "conftest.", or (3) at the end.
  6848. # Note that $ac_compile itself does not contain backslashes and begins
  6849. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6850. lt_compile=`echo "$ac_compile" | $SED \
  6851. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  6852. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6853. -e 's:$: $lt_compiler_flag:'`
  6854. (eval echo "\"\$as_me:7671: $lt_compile\"" >&5)
  6855. (eval "$lt_compile" 2>out/conftest.err)
  6856. ac_status=$?
  6857. cat out/conftest.err >&5
  6858. echo "$as_me:7675: \$? = $ac_status" >&5
  6859. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6860. then
  6861. # The compiler can only warn and ignore the option if not recognized
  6862. # So say no if there are warnings
  6863. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  6864. $SED '/^$/d' out/conftest.err >out/conftest.er2
  6865. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6866. lt_cv_prog_compiler_c_o=yes
  6867. fi
  6868. fi
  6869. chmod u+w .
  6870. $rm conftest*
  6871. # SGI C++ compiler will create directory out/ii_files/ for
  6872. # template instantiation
  6873. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  6874. $rm out/* && rmdir out
  6875. cd ..
  6876. rmdir conftest
  6877. $rm conftest*
  6878. fi
  6879. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6880. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  6881. hard_links="nottested"
  6882. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6883. # do not overwrite the value of need_locks provided by the user
  6884. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6885. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  6886. hard_links=yes
  6887. $rm conftest*
  6888. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6889. touch conftest.a
  6890. ln conftest.a conftest.b 2>&5 || hard_links=no
  6891. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6892. { echo "$as_me:$LINENO: result: $hard_links" >&5
  6893. echo "${ECHO_T}$hard_links" >&6; }
  6894. if test "$hard_links" = no; then
  6895. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6896. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6897. need_locks=warn
  6898. fi
  6899. else
  6900. need_locks=no
  6901. fi
  6902. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6903. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  6904. runpath_var=
  6905. allow_undefined_flag=
  6906. enable_shared_with_static_runtimes=no
  6907. archive_cmds=
  6908. archive_expsym_cmds=
  6909. old_archive_From_new_cmds=
  6910. old_archive_from_expsyms_cmds=
  6911. export_dynamic_flag_spec=
  6912. whole_archive_flag_spec=
  6913. thread_safe_flag_spec=
  6914. hardcode_libdir_flag_spec=
  6915. hardcode_libdir_flag_spec_ld=
  6916. hardcode_libdir_separator=
  6917. hardcode_direct=no
  6918. hardcode_minus_L=no
  6919. hardcode_shlibpath_var=unsupported
  6920. link_all_deplibs=unknown
  6921. hardcode_automatic=no
  6922. module_cmds=
  6923. module_expsym_cmds=
  6924. always_export_symbols=no
  6925. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6926. # include_expsyms should be a list of space-separated symbols to be *always*
  6927. # included in the symbol list
  6928. include_expsyms=
  6929. # exclude_expsyms can be an extended regexp of symbols to exclude
  6930. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6931. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6932. # as well as any symbol that contains `d'.
  6933. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  6934. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6935. # platforms (ab)use it in PIC code, but their linkers get confused if
  6936. # the symbol is explicitly referenced. Since portable code cannot
  6937. # rely on this symbol name, it's probably fine to never include it in
  6938. # preloaded symbol tables.
  6939. extract_expsyms_cmds=
  6940. # Just being paranoid about ensuring that cc_basename is set.
  6941. for cc_temp in $compiler""; do
  6942. case $cc_temp in
  6943. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6944. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6945. \-*) ;;
  6946. *) break;;
  6947. esac
  6948. done
  6949. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6950. case $host_os in
  6951. cygwin* | mingw* | pw32*)
  6952. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6953. # When not using gcc, we currently assume that we are using
  6954. # Microsoft Visual C++.
  6955. if test "$GCC" != yes; then
  6956. with_gnu_ld=no
  6957. fi
  6958. ;;
  6959. openbsd*)
  6960. with_gnu_ld=no
  6961. ;;
  6962. esac
  6963. ld_shlibs=yes
  6964. if test "$with_gnu_ld" = yes; then
  6965. # If archive_cmds runs LD, not CC, wlarc should be empty
  6966. wlarc='${wl}'
  6967. # Set some defaults for GNU ld with shared library support. These
  6968. # are reset later if shared libraries are not supported. Putting them
  6969. # here allows them to be overridden if necessary.
  6970. runpath_var=LD_RUN_PATH
  6971. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  6972. export_dynamic_flag_spec='${wl}--export-dynamic'
  6973. # ancient GNU ld didn't support --whole-archive et. al.
  6974. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  6975. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6976. else
  6977. whole_archive_flag_spec=
  6978. fi
  6979. supports_anon_versioning=no
  6980. case `$LD -v 2>/dev/null` in
  6981. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6982. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6983. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6984. *\ 2.11.*) ;; # other 2.11 versions
  6985. *) supports_anon_versioning=yes ;;
  6986. esac
  6987. # See if GNU ld supports shared libraries.
  6988. case $host_os in
  6989. aix3* | aix4* | aix5*)
  6990. # On AIX/PPC, the GNU linker is very broken
  6991. if test "$host_cpu" != ia64; then
  6992. ld_shlibs=no
  6993. cat <<EOF 1>&2
  6994. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6995. *** to be unable to reliably create shared libraries on AIX.
  6996. *** Therefore, libtool is disabling shared libraries support. If you
  6997. *** really care for shared libraries, you may want to modify your PATH
  6998. *** so that a non-GNU linker is found, and then restart.
  6999. EOF
  7000. fi
  7001. ;;
  7002. amigaos*)
  7003. 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)'
  7004. hardcode_libdir_flag_spec='-L$libdir'
  7005. hardcode_minus_L=yes
  7006. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  7007. # that the semantics of dynamic libraries on AmigaOS, at least up
  7008. # to version 4, is to share data among multiple programs linked
  7009. # with the same dynamic library. Since this doesn't match the
  7010. # behavior of shared libraries on other platforms, we can't use
  7011. # them.
  7012. ld_shlibs=no
  7013. ;;
  7014. beos*)
  7015. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7016. allow_undefined_flag=unsupported
  7017. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7018. # support --undefined. This deserves some investigation. FIXME
  7019. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7020. else
  7021. ld_shlibs=no
  7022. fi
  7023. ;;
  7024. cygwin* | mingw* | pw32*)
  7025. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7026. # as there is no search path for DLLs.
  7027. hardcode_libdir_flag_spec='-L$libdir'
  7028. allow_undefined_flag=unsupported
  7029. always_export_symbols=no
  7030. enable_shared_with_static_runtimes=yes
  7031. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  7032. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  7033. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  7034. # If the export-symbols file already is a .def file (1st line
  7035. # is EXPORTS), use it as is; otherwise, prepend...
  7036. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7037. cp $export_symbols $output_objdir/$soname.def;
  7038. else
  7039. echo EXPORTS > $output_objdir/$soname.def;
  7040. cat $export_symbols >> $output_objdir/$soname.def;
  7041. fi~
  7042. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  7043. else
  7044. ld_shlibs=no
  7045. fi
  7046. ;;
  7047. linux*)
  7048. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7049. tmp_addflag=
  7050. case $cc_basename,$host_cpu in
  7051. pgcc*) # Portland Group C compiler
  7052. 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'
  7053. tmp_addflag=' $pic_flag'
  7054. ;;
  7055. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  7056. 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'
  7057. tmp_addflag=' $pic_flag -Mnomain' ;;
  7058. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7059. tmp_addflag=' -i_dynamic' ;;
  7060. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7061. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7062. ifc* | ifort*) # Intel Fortran compiler
  7063. tmp_addflag=' -nofor_main' ;;
  7064. esac
  7065. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7066. if test $supports_anon_versioning = yes; then
  7067. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  7068. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7069. $echo "local: *; };" >> $output_objdir/$libname.ver~
  7070. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7071. fi
  7072. else
  7073. ld_shlibs=no
  7074. fi
  7075. ;;
  7076. netbsd*)
  7077. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7078. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7079. wlarc=
  7080. else
  7081. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7082. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7083. fi
  7084. ;;
  7085. solaris* | sysv5*)
  7086. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  7087. ld_shlibs=no
  7088. cat <<EOF 1>&2
  7089. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7090. *** create shared libraries on Solaris systems. Therefore, libtool
  7091. *** is disabling shared libraries support. We urge you to upgrade GNU
  7092. *** binutils to release 2.9.1 or newer. Another option is to modify
  7093. *** your PATH or compiler configuration so that the native linker is
  7094. *** used, and then restart.
  7095. EOF
  7096. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7097. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7098. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7099. else
  7100. ld_shlibs=no
  7101. fi
  7102. ;;
  7103. sunos4*)
  7104. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7105. wlarc=
  7106. hardcode_direct=yes
  7107. hardcode_shlibpath_var=no
  7108. ;;
  7109. *)
  7110. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7111. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7112. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7113. else
  7114. ld_shlibs=no
  7115. fi
  7116. ;;
  7117. esac
  7118. if test "$ld_shlibs" = no; then
  7119. runpath_var=
  7120. hardcode_libdir_flag_spec=
  7121. export_dynamic_flag_spec=
  7122. whole_archive_flag_spec=
  7123. fi
  7124. else
  7125. # PORTME fill in a description of your system's linker (not GNU ld)
  7126. case $host_os in
  7127. aix3*)
  7128. allow_undefined_flag=unsupported
  7129. always_export_symbols=yes
  7130. 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'
  7131. # Note: this linker hardcodes the directories in LIBPATH if there
  7132. # are no directories specified by -L.
  7133. hardcode_minus_L=yes
  7134. if test "$GCC" = yes && test -z "$link_static_flag"; then
  7135. # Neither direct hardcoding nor static linking is supported with a
  7136. # broken collect2.
  7137. hardcode_direct=unsupported
  7138. fi
  7139. ;;
  7140. aix4* | aix5*)
  7141. if test "$host_cpu" = ia64; then
  7142. # On IA64, the linker does run time linking by default, so we don't
  7143. # have to do anything special.
  7144. aix_use_runtimelinking=no
  7145. exp_sym_flag='-Bexport'
  7146. no_entry_flag=""
  7147. else
  7148. # If we're using GNU nm, then we don't want the "-C" option.
  7149. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7150. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  7151. 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'
  7152. else
  7153. 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'
  7154. fi
  7155. aix_use_runtimelinking=no
  7156. # Test if we are trying to use run time linking or normal
  7157. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7158. # need to do runtime linking.
  7159. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  7160. for ld_flag in $LDFLAGS; do
  7161. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7162. aix_use_runtimelinking=yes
  7163. break
  7164. fi
  7165. done
  7166. esac
  7167. exp_sym_flag='-bexport'
  7168. no_entry_flag='-bnoentry'
  7169. fi
  7170. # When large executables or shared objects are built, AIX ld can
  7171. # have problems creating the table of contents. If linking a library
  7172. # or program results in "error TOC overflow" add -mminimal-toc to
  7173. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7174. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7175. archive_cmds=''
  7176. hardcode_direct=yes
  7177. hardcode_libdir_separator=':'
  7178. link_all_deplibs=yes
  7179. if test "$GCC" = yes; then
  7180. case $host_os in aix4.[012]|aix4.[012].*)
  7181. # We only want to do this on AIX 4.2 and lower, the check
  7182. # below for broken collect2 doesn't work under 4.3+
  7183. collect2name=`${CC} -print-prog-name=collect2`
  7184. if test -f "$collect2name" && \
  7185. strings "$collect2name" | grep resolve_lib_name >/dev/null
  7186. then
  7187. # We have reworked collect2
  7188. hardcode_direct=yes
  7189. else
  7190. # We have old collect2
  7191. hardcode_direct=unsupported
  7192. # It fails to find uninstalled libraries when the uninstalled
  7193. # path is not listed in the libpath. Setting hardcode_minus_L
  7194. # to unsupported forces relinking
  7195. hardcode_minus_L=yes
  7196. hardcode_libdir_flag_spec='-L$libdir'
  7197. hardcode_libdir_separator=
  7198. fi
  7199. esac
  7200. shared_flag='-shared'
  7201. if test "$aix_use_runtimelinking" = yes; then
  7202. shared_flag="$shared_flag "'${wl}-G'
  7203. fi
  7204. else
  7205. # not using gcc
  7206. if test "$host_cpu" = ia64; then
  7207. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7208. # chokes on -Wl,-G. The following line is correct:
  7209. shared_flag='-G'
  7210. else
  7211. if test "$aix_use_runtimelinking" = yes; then
  7212. shared_flag='${wl}-G'
  7213. else
  7214. shared_flag='${wl}-bM:SRE'
  7215. fi
  7216. fi
  7217. fi
  7218. # It seems that -bexpall does not export symbols beginning with
  7219. # underscore (_), so it is better to generate a list of symbols to export.
  7220. always_export_symbols=yes
  7221. if test "$aix_use_runtimelinking" = yes; then
  7222. # Warning - without using the other runtime loading flags (-brtl),
  7223. # -berok will link without error, but may produce a broken library.
  7224. allow_undefined_flag='-berok'
  7225. # Determine the default libpath from the value encoded in an empty executable.
  7226. cat >conftest.$ac_ext <<_ACEOF
  7227. /* confdefs.h. */
  7228. _ACEOF
  7229. cat confdefs.h >>conftest.$ac_ext
  7230. cat >>conftest.$ac_ext <<_ACEOF
  7231. /* end confdefs.h. */
  7232. int
  7233. main ()
  7234. {
  7235. ;
  7236. return 0;
  7237. }
  7238. _ACEOF
  7239. rm -f conftest.$ac_objext conftest$ac_exeext
  7240. if { (ac_try="$ac_link"
  7241. case "(($ac_try" in
  7242. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7243. *) ac_try_echo=$ac_try;;
  7244. esac
  7245. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7246. (eval "$ac_link") 2>conftest.er1
  7247. ac_status=$?
  7248. grep -v '^ *+' conftest.er1 >conftest.err
  7249. rm -f conftest.er1
  7250. cat conftest.err >&5
  7251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7252. (exit $ac_status); } && {
  7253. test -z "$ac_c_werror_flag" ||
  7254. test ! -s conftest.err
  7255. } && test -s conftest$ac_exeext &&
  7256. $as_test_x conftest$ac_exeext; then
  7257. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7258. }'`
  7259. # Check for a 64-bit object if we didn't find anything.
  7260. 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; }
  7261. }'`; fi
  7262. else
  7263. echo "$as_me: failed program was:" >&5
  7264. sed 's/^/| /' conftest.$ac_ext >&5
  7265. fi
  7266. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7267. conftest$ac_exeext conftest.$ac_ext
  7268. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7269. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7270. 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"
  7271. else
  7272. if test "$host_cpu" = ia64; then
  7273. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7274. allow_undefined_flag="-z nodefs"
  7275. 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"
  7276. else
  7277. # Determine the default libpath from the value encoded in an empty executable.
  7278. cat >conftest.$ac_ext <<_ACEOF
  7279. /* confdefs.h. */
  7280. _ACEOF
  7281. cat confdefs.h >>conftest.$ac_ext
  7282. cat >>conftest.$ac_ext <<_ACEOF
  7283. /* end confdefs.h. */
  7284. int
  7285. main ()
  7286. {
  7287. ;
  7288. return 0;
  7289. }
  7290. _ACEOF
  7291. rm -f conftest.$ac_objext conftest$ac_exeext
  7292. if { (ac_try="$ac_link"
  7293. case "(($ac_try" in
  7294. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7295. *) ac_try_echo=$ac_try;;
  7296. esac
  7297. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7298. (eval "$ac_link") 2>conftest.er1
  7299. ac_status=$?
  7300. grep -v '^ *+' conftest.er1 >conftest.err
  7301. rm -f conftest.er1
  7302. cat conftest.err >&5
  7303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7304. (exit $ac_status); } && {
  7305. test -z "$ac_c_werror_flag" ||
  7306. test ! -s conftest.err
  7307. } && test -s conftest$ac_exeext &&
  7308. $as_test_x conftest$ac_exeext; then
  7309. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7310. }'`
  7311. # Check for a 64-bit object if we didn't find anything.
  7312. 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; }
  7313. }'`; fi
  7314. else
  7315. echo "$as_me: failed program was:" >&5
  7316. sed 's/^/| /' conftest.$ac_ext >&5
  7317. fi
  7318. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7319. conftest$ac_exeext conftest.$ac_ext
  7320. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7321. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7322. # Warning - without using the other run time loading flags,
  7323. # -berok will link without error, but may produce a broken library.
  7324. no_undefined_flag=' ${wl}-bernotok'
  7325. allow_undefined_flag=' ${wl}-berok'
  7326. # -bexpall does not export symbols beginning with underscore (_)
  7327. always_export_symbols=yes
  7328. # Exported symbols can be pulled into shared objects from archives
  7329. whole_archive_flag_spec=' '
  7330. archive_cmds_need_lc=yes
  7331. # This is similar to how AIX traditionally builds it's shared libraries.
  7332. 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'
  7333. fi
  7334. fi
  7335. ;;
  7336. amigaos*)
  7337. 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)'
  7338. hardcode_libdir_flag_spec='-L$libdir'
  7339. hardcode_minus_L=yes
  7340. # see comment about different semantics on the GNU ld section
  7341. ld_shlibs=no
  7342. ;;
  7343. bsdi[45]*)
  7344. export_dynamic_flag_spec=-rdynamic
  7345. ;;
  7346. cygwin* | mingw* | pw32*)
  7347. # When not using gcc, we currently assume that we are using
  7348. # Microsoft Visual C++.
  7349. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7350. # no search path for DLLs.
  7351. hardcode_libdir_flag_spec=' '
  7352. allow_undefined_flag=unsupported
  7353. # Tell ltmain to make .lib files, not .a files.
  7354. libext=lib
  7355. # Tell ltmain to make .dll files, not .so files.
  7356. shrext_cmds=".dll"
  7357. # FIXME: Setting linknames here is a bad hack.
  7358. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7359. # The linker will automatically build a .lib file if we build a DLL.
  7360. old_archive_From_new_cmds='true'
  7361. # FIXME: Should let the user specify the lib program.
  7362. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  7363. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7364. enable_shared_with_static_runtimes=yes
  7365. ;;
  7366. darwin* | rhapsody*)
  7367. case "$host_os" in
  7368. rhapsody* | darwin1.[012])
  7369. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  7370. ;;
  7371. *) # Darwin 1.3 on
  7372. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  7373. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7374. else
  7375. case ${MACOSX_DEPLOYMENT_TARGET} in
  7376. 10.[012])
  7377. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7378. ;;
  7379. 10.*)
  7380. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  7381. ;;
  7382. esac
  7383. fi
  7384. ;;
  7385. esac
  7386. archive_cmds_need_lc=no
  7387. hardcode_direct=no
  7388. hardcode_automatic=yes
  7389. hardcode_shlibpath_var=unsupported
  7390. whole_archive_flag_spec=''
  7391. link_all_deplibs=yes
  7392. if test "$GCC" = yes ; then
  7393. output_verbose_link_cmd='echo'
  7394. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  7395. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7396. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  7397. 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}'
  7398. 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}'
  7399. else
  7400. case $cc_basename in
  7401. xlc*)
  7402. output_verbose_link_cmd='echo'
  7403. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  7404. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7405. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  7406. 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}'
  7407. 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}'
  7408. ;;
  7409. *)
  7410. ld_shlibs=no
  7411. ;;
  7412. esac
  7413. fi
  7414. ;;
  7415. dgux*)
  7416. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7417. hardcode_libdir_flag_spec='-L$libdir'
  7418. hardcode_shlibpath_var=no
  7419. ;;
  7420. freebsd1*)
  7421. ld_shlibs=no
  7422. ;;
  7423. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7424. # support. Future versions do this automatically, but an explicit c++rt0.o
  7425. # does not break anything, and helps significantly (at the cost of a little
  7426. # extra space).
  7427. freebsd2.2*)
  7428. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7429. hardcode_libdir_flag_spec='-R$libdir'
  7430. hardcode_direct=yes
  7431. hardcode_shlibpath_var=no
  7432. ;;
  7433. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7434. freebsd2*)
  7435. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7436. hardcode_direct=yes
  7437. hardcode_minus_L=yes
  7438. hardcode_shlibpath_var=no
  7439. ;;
  7440. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7441. freebsd* | kfreebsd*-gnu | dragonfly*)
  7442. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7443. hardcode_libdir_flag_spec='-R$libdir'
  7444. hardcode_direct=yes
  7445. hardcode_shlibpath_var=no
  7446. ;;
  7447. hpux9*)
  7448. if test "$GCC" = yes; then
  7449. 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'
  7450. else
  7451. 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'
  7452. fi
  7453. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7454. hardcode_libdir_separator=:
  7455. hardcode_direct=yes
  7456. # hardcode_minus_L: Not really in the search PATH,
  7457. # but as the default location of the library.
  7458. hardcode_minus_L=yes
  7459. export_dynamic_flag_spec='${wl}-E'
  7460. ;;
  7461. hpux10* | hpux11*)
  7462. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7463. case "$host_cpu" in
  7464. hppa*64*|ia64*)
  7465. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7466. ;;
  7467. *)
  7468. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7469. ;;
  7470. esac
  7471. else
  7472. case "$host_cpu" in
  7473. hppa*64*|ia64*)
  7474. archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  7475. ;;
  7476. *)
  7477. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7478. ;;
  7479. esac
  7480. fi
  7481. if test "$with_gnu_ld" = no; then
  7482. case "$host_cpu" in
  7483. hppa*64*)
  7484. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7485. hardcode_libdir_flag_spec_ld='+b $libdir'
  7486. hardcode_libdir_separator=:
  7487. hardcode_direct=no
  7488. hardcode_shlibpath_var=no
  7489. ;;
  7490. ia64*)
  7491. hardcode_libdir_flag_spec='-L$libdir'
  7492. hardcode_direct=no
  7493. hardcode_shlibpath_var=no
  7494. # hardcode_minus_L: Not really in the search PATH,
  7495. # but as the default location of the library.
  7496. hardcode_minus_L=yes
  7497. ;;
  7498. *)
  7499. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7500. hardcode_libdir_separator=:
  7501. hardcode_direct=yes
  7502. export_dynamic_flag_spec='${wl}-E'
  7503. # hardcode_minus_L: Not really in the search PATH,
  7504. # but as the default location of the library.
  7505. hardcode_minus_L=yes
  7506. ;;
  7507. esac
  7508. fi
  7509. ;;
  7510. irix5* | irix6* | nonstopux*)
  7511. if test "$GCC" = yes; then
  7512. 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'
  7513. else
  7514. 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'
  7515. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7516. fi
  7517. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7518. hardcode_libdir_separator=:
  7519. link_all_deplibs=yes
  7520. ;;
  7521. netbsd*)
  7522. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7523. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7524. else
  7525. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7526. fi
  7527. hardcode_libdir_flag_spec='-R$libdir'
  7528. hardcode_direct=yes
  7529. hardcode_shlibpath_var=no
  7530. ;;
  7531. newsos6)
  7532. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7533. hardcode_direct=yes
  7534. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7535. hardcode_libdir_separator=:
  7536. hardcode_shlibpath_var=no
  7537. ;;
  7538. openbsd*)
  7539. hardcode_direct=yes
  7540. hardcode_shlibpath_var=no
  7541. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7542. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7543. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7544. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7545. export_dynamic_flag_spec='${wl}-E'
  7546. else
  7547. case $host_os in
  7548. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7549. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7550. hardcode_libdir_flag_spec='-R$libdir'
  7551. ;;
  7552. *)
  7553. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7554. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7555. ;;
  7556. esac
  7557. fi
  7558. ;;
  7559. os2*)
  7560. hardcode_libdir_flag_spec='-L$libdir'
  7561. hardcode_minus_L=yes
  7562. allow_undefined_flag=unsupported
  7563. 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'
  7564. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7565. ;;
  7566. osf3*)
  7567. if test "$GCC" = yes; then
  7568. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7569. 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'
  7570. else
  7571. allow_undefined_flag=' -expect_unresolved \*'
  7572. 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'
  7573. fi
  7574. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7575. hardcode_libdir_separator=:
  7576. ;;
  7577. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7578. if test "$GCC" = yes; then
  7579. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7580. 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'
  7581. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7582. else
  7583. allow_undefined_flag=' -expect_unresolved \*'
  7584. 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'
  7585. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  7586. $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'
  7587. # Both c and cxx compiler support -rpath directly
  7588. hardcode_libdir_flag_spec='-rpath $libdir'
  7589. fi
  7590. hardcode_libdir_separator=:
  7591. ;;
  7592. sco3.2v5*)
  7593. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7594. hardcode_shlibpath_var=no
  7595. export_dynamic_flag_spec='${wl}-Bexport'
  7596. runpath_var=LD_RUN_PATH
  7597. hardcode_runpath_var=yes
  7598. ;;
  7599. solaris*)
  7600. no_undefined_flag=' -z text'
  7601. if test "$GCC" = yes; then
  7602. wlarc='${wl}'
  7603. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7604. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7605. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7606. else
  7607. wlarc=''
  7608. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7609. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7610. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7611. fi
  7612. hardcode_libdir_flag_spec='-R$libdir'
  7613. hardcode_shlibpath_var=no
  7614. case $host_os in
  7615. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7616. *)
  7617. # The compiler driver will combine linker options so we
  7618. # cannot just pass the convience library names through
  7619. # without $wl, iff we do not link with $LD.
  7620. # Luckily, gcc supports the same syntax we need for Sun Studio.
  7621. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7622. case $wlarc in
  7623. '')
  7624. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  7625. *)
  7626. 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' ;;
  7627. esac ;;
  7628. esac
  7629. link_all_deplibs=yes
  7630. ;;
  7631. sunos4*)
  7632. if test "x$host_vendor" = xsequent; then
  7633. # Use $CC to link under sequent, because it throws in some extra .o
  7634. # files that make .init and .fini sections work.
  7635. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7636. else
  7637. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7638. fi
  7639. hardcode_libdir_flag_spec='-L$libdir'
  7640. hardcode_direct=yes
  7641. hardcode_minus_L=yes
  7642. hardcode_shlibpath_var=no
  7643. ;;
  7644. sysv4)
  7645. case $host_vendor in
  7646. sni)
  7647. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7648. hardcode_direct=yes # is this really true???
  7649. ;;
  7650. siemens)
  7651. ## LD is ld it makes a PLAMLIB
  7652. ## CC just makes a GrossModule.
  7653. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7654. reload_cmds='$CC -r -o $output$reload_objs'
  7655. hardcode_direct=no
  7656. ;;
  7657. motorola)
  7658. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7659. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7660. ;;
  7661. esac
  7662. runpath_var='LD_RUN_PATH'
  7663. hardcode_shlibpath_var=no
  7664. ;;
  7665. sysv4.3*)
  7666. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7667. hardcode_shlibpath_var=no
  7668. export_dynamic_flag_spec='-Bexport'
  7669. ;;
  7670. sysv4*MP*)
  7671. if test -d /usr/nec; then
  7672. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7673. hardcode_shlibpath_var=no
  7674. runpath_var=LD_RUN_PATH
  7675. hardcode_runpath_var=yes
  7676. ld_shlibs=yes
  7677. fi
  7678. ;;
  7679. sysv4.2uw2*)
  7680. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7681. hardcode_direct=yes
  7682. hardcode_minus_L=no
  7683. hardcode_shlibpath_var=no
  7684. hardcode_runpath_var=yes
  7685. runpath_var=LD_RUN_PATH
  7686. ;;
  7687. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  7688. no_undefined_flag='${wl}-z ${wl}text'
  7689. if test "$GCC" = yes; then
  7690. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7691. else
  7692. archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7693. fi
  7694. runpath_var='LD_RUN_PATH'
  7695. hardcode_shlibpath_var=no
  7696. ;;
  7697. sysv5*)
  7698. no_undefined_flag=' -z text'
  7699. # $CC -shared without GNU ld will not create a library from C++
  7700. # object files and a static libstdc++, better avoid it by now
  7701. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7702. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7703. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7704. hardcode_libdir_flag_spec=
  7705. hardcode_shlibpath_var=no
  7706. runpath_var='LD_RUN_PATH'
  7707. ;;
  7708. uts4*)
  7709. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7710. hardcode_libdir_flag_spec='-L$libdir'
  7711. hardcode_shlibpath_var=no
  7712. ;;
  7713. *)
  7714. ld_shlibs=no
  7715. ;;
  7716. esac
  7717. fi
  7718. { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7719. echo "${ECHO_T}$ld_shlibs" >&6; }
  7720. test "$ld_shlibs" = no && can_build_shared=no
  7721. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  7722. if test "$GCC" = yes; then
  7723. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  7724. fi
  7725. #
  7726. # Do we need to explicitly link libc?
  7727. #
  7728. case "x$archive_cmds_need_lc" in
  7729. x|xyes)
  7730. # Assume -lc should be added
  7731. archive_cmds_need_lc=yes
  7732. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7733. case $archive_cmds in
  7734. *'~'*)
  7735. # FIXME: we may have to deal with multi-command sequences.
  7736. ;;
  7737. '$CC '*)
  7738. # Test whether the compiler implicitly links with -lc since on some
  7739. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7740. # to ld, don't add -lc before -lgcc.
  7741. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7742. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  7743. $rm conftest*
  7744. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7745. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7746. (eval $ac_compile) 2>&5
  7747. ac_status=$?
  7748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7749. (exit $ac_status); } 2>conftest.err; then
  7750. soname=conftest
  7751. lib=conftest
  7752. libobjs=conftest.$ac_objext
  7753. deplibs=
  7754. wl=$lt_prog_compiler_wl
  7755. compiler_flags=-v
  7756. linker_flags=-v
  7757. verstring=
  7758. output_objdir=.
  7759. libname=conftest
  7760. lt_save_allow_undefined_flag=$allow_undefined_flag
  7761. allow_undefined_flag=
  7762. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7763. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7764. ac_status=$?
  7765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7766. (exit $ac_status); }
  7767. then
  7768. archive_cmds_need_lc=no
  7769. else
  7770. archive_cmds_need_lc=yes
  7771. fi
  7772. allow_undefined_flag=$lt_save_allow_undefined_flag
  7773. else
  7774. cat conftest.err 1>&5
  7775. fi
  7776. $rm conftest*
  7777. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7778. echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  7779. ;;
  7780. esac
  7781. fi
  7782. ;;
  7783. esac
  7784. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7785. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  7786. library_names_spec=
  7787. libname_spec='lib$name'
  7788. soname_spec=
  7789. shrext_cmds=".so"
  7790. postinstall_cmds=
  7791. postuninstall_cmds=
  7792. finish_cmds=
  7793. finish_eval=
  7794. shlibpath_var=
  7795. shlibpath_overrides_runpath=unknown
  7796. version_type=none
  7797. dynamic_linker="$host_os ld.so"
  7798. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7799. if test "$GCC" = yes; then
  7800. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7801. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  7802. # if the path contains ";" then we assume it to be the separator
  7803. # otherwise default to the standard path separator (i.e. ":") - it is
  7804. # assumed that no part of a normal pathname contains ";" but that should
  7805. # okay in the real world where ";" in dirpaths is itself problematic.
  7806. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7807. else
  7808. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7809. fi
  7810. else
  7811. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7812. fi
  7813. need_lib_prefix=unknown
  7814. hardcode_into_libs=no
  7815. # when you set need_version to no, make sure it does not cause -set_version
  7816. # flags to be left without arguments
  7817. need_version=unknown
  7818. case $host_os in
  7819. aix3*)
  7820. version_type=linux
  7821. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7822. shlibpath_var=LIBPATH
  7823. # AIX 3 has no versioning support, so we append a major version to the name.
  7824. soname_spec='${libname}${release}${shared_ext}$major'
  7825. ;;
  7826. aix4* | aix5*)
  7827. version_type=linux
  7828. need_lib_prefix=no
  7829. need_version=no
  7830. hardcode_into_libs=yes
  7831. if test "$host_cpu" = ia64; then
  7832. # AIX 5 supports IA64
  7833. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7834. shlibpath_var=LD_LIBRARY_PATH
  7835. else
  7836. # With GCC up to 2.95.x, collect2 would create an import file
  7837. # for dependence libraries. The import file would start with
  7838. # the line `#! .'. This would cause the generated library to
  7839. # depend on `.', always an invalid library. This was fixed in
  7840. # development snapshots of GCC prior to 3.0.
  7841. case $host_os in
  7842. aix4 | aix4.[01] | aix4.[01].*)
  7843. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7844. echo ' yes '
  7845. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  7846. :
  7847. else
  7848. can_build_shared=no
  7849. fi
  7850. ;;
  7851. esac
  7852. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7853. # soname into executable. Probably we can add versioning support to
  7854. # collect2, so additional links can be useful in future.
  7855. if test "$aix_use_runtimelinking" = yes; then
  7856. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7857. # instead of lib<name>.a to let people know that these are not
  7858. # typical AIX shared libraries.
  7859. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7860. else
  7861. # We preserve .a as extension for shared libraries through AIX4.2
  7862. # and later when we are not doing run time linking.
  7863. library_names_spec='${libname}${release}.a $libname.a'
  7864. soname_spec='${libname}${release}${shared_ext}$major'
  7865. fi
  7866. shlibpath_var=LIBPATH
  7867. fi
  7868. ;;
  7869. amigaos*)
  7870. library_names_spec='$libname.ixlibrary $libname.a'
  7871. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7872. 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'
  7873. ;;
  7874. beos*)
  7875. library_names_spec='${libname}${shared_ext}'
  7876. dynamic_linker="$host_os ld.so"
  7877. shlibpath_var=LIBRARY_PATH
  7878. ;;
  7879. bsdi[45]*)
  7880. version_type=linux
  7881. need_version=no
  7882. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7883. soname_spec='${libname}${release}${shared_ext}$major'
  7884. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7885. shlibpath_var=LD_LIBRARY_PATH
  7886. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7887. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7888. # the default ld.so.conf also contains /usr/contrib/lib and
  7889. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7890. # libtool to hard-code these into programs
  7891. ;;
  7892. cygwin* | mingw* | pw32*)
  7893. version_type=windows
  7894. shrext_cmds=".dll"
  7895. need_version=no
  7896. need_lib_prefix=no
  7897. case $GCC,$host_os in
  7898. yes,cygwin* | yes,mingw* | yes,pw32*)
  7899. library_names_spec='$libname.dll.a'
  7900. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7901. postinstall_cmds='base_file=`basename \${file}`~
  7902. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  7903. dldir=$destdir/`dirname \$dlpath`~
  7904. test -d \$dldir || mkdir -p \$dldir~
  7905. $install_prog $dir/$dlname \$dldir/$dlname'
  7906. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7907. dlpath=$dir/\$dldll~
  7908. $rm \$dlpath'
  7909. shlibpath_overrides_runpath=yes
  7910. case $host_os in
  7911. cygwin*)
  7912. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7913. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7914. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7915. ;;
  7916. mingw*)
  7917. # MinGW DLLs use traditional 'lib' prefix
  7918. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7919. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7920. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  7921. # It is most probably a Windows format PATH printed by
  7922. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7923. # path with ; separators, and with drive letters. We can handle the
  7924. # drive letters (cygwin fileutils understands them), so leave them,
  7925. # especially as we might pass files found there to a mingw objdump,
  7926. # which wouldn't understand a cygwinified path. Ahh.
  7927. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7928. else
  7929. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7930. fi
  7931. ;;
  7932. pw32*)
  7933. # pw32 DLLs use 'pw' prefix rather than 'lib'
  7934. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7935. ;;
  7936. esac
  7937. ;;
  7938. *)
  7939. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  7940. ;;
  7941. esac
  7942. dynamic_linker='Win32 ld.exe'
  7943. # FIXME: first we should search . and the directory the executable is in
  7944. shlibpath_var=PATH
  7945. ;;
  7946. darwin* | rhapsody*)
  7947. dynamic_linker="$host_os dyld"
  7948. version_type=darwin
  7949. need_lib_prefix=no
  7950. need_version=no
  7951. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  7952. soname_spec='${libname}${release}${major}$shared_ext'
  7953. shlibpath_overrides_runpath=yes
  7954. shlibpath_var=DYLD_LIBRARY_PATH
  7955. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  7956. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  7957. if test "$GCC" = yes; then
  7958. 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"`
  7959. else
  7960. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  7961. fi
  7962. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  7963. ;;
  7964. dgux*)
  7965. version_type=linux
  7966. need_lib_prefix=no
  7967. need_version=no
  7968. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  7969. soname_spec='${libname}${release}${shared_ext}$major'
  7970. shlibpath_var=LD_LIBRARY_PATH
  7971. ;;
  7972. freebsd1*)
  7973. dynamic_linker=no
  7974. ;;
  7975. kfreebsd*-gnu)
  7976. version_type=linux
  7977. need_lib_prefix=no
  7978. need_version=no
  7979. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7980. soname_spec='${libname}${release}${shared_ext}$major'
  7981. shlibpath_var=LD_LIBRARY_PATH
  7982. shlibpath_overrides_runpath=no
  7983. hardcode_into_libs=yes
  7984. dynamic_linker='GNU ld.so'
  7985. ;;
  7986. freebsd* | dragonfly*)
  7987. # DragonFly does not have aout. When/if they implement a new
  7988. # versioning mechanism, adjust this.
  7989. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  7990. version_type=freebsd-$objformat
  7991. case $version_type in
  7992. freebsd-elf*)
  7993. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7994. need_version=no
  7995. need_lib_prefix=no
  7996. ;;
  7997. freebsd-*)
  7998. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  7999. need_version=yes
  8000. ;;
  8001. esac
  8002. shlibpath_var=LD_LIBRARY_PATH
  8003. case $host_os in
  8004. freebsd2*)
  8005. shlibpath_overrides_runpath=yes
  8006. ;;
  8007. freebsd3.[01]* | freebsdelf3.[01]*)
  8008. shlibpath_overrides_runpath=yes
  8009. hardcode_into_libs=yes
  8010. ;;
  8011. *) # from 3.2 on
  8012. shlibpath_overrides_runpath=no
  8013. hardcode_into_libs=yes
  8014. ;;
  8015. esac
  8016. ;;
  8017. gnu*)
  8018. version_type=linux
  8019. need_lib_prefix=no
  8020. need_version=no
  8021. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8022. soname_spec='${libname}${release}${shared_ext}$major'
  8023. shlibpath_var=LD_LIBRARY_PATH
  8024. hardcode_into_libs=yes
  8025. ;;
  8026. hpux9* | hpux10* | hpux11*)
  8027. # Give a soname corresponding to the major version so that dld.sl refuses to
  8028. # link against other versions.
  8029. version_type=sunos
  8030. need_lib_prefix=no
  8031. need_version=no
  8032. case "$host_cpu" in
  8033. ia64*)
  8034. shrext_cmds='.so'
  8035. hardcode_into_libs=yes
  8036. dynamic_linker="$host_os dld.so"
  8037. shlibpath_var=LD_LIBRARY_PATH
  8038. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8039. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8040. soname_spec='${libname}${release}${shared_ext}$major'
  8041. if test "X$HPUX_IA64_MODE" = X32; then
  8042. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8043. else
  8044. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8045. fi
  8046. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8047. ;;
  8048. hppa*64*)
  8049. shrext_cmds='.sl'
  8050. hardcode_into_libs=yes
  8051. dynamic_linker="$host_os dld.sl"
  8052. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8053. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8054. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8055. soname_spec='${libname}${release}${shared_ext}$major'
  8056. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8057. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8058. ;;
  8059. *)
  8060. shrext_cmds='.sl'
  8061. dynamic_linker="$host_os dld.sl"
  8062. shlibpath_var=SHLIB_PATH
  8063. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8064. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8065. soname_spec='${libname}${release}${shared_ext}$major'
  8066. ;;
  8067. esac
  8068. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8069. postinstall_cmds='chmod 555 $lib'
  8070. ;;
  8071. irix5* | irix6* | nonstopux*)
  8072. case $host_os in
  8073. nonstopux*) version_type=nonstopux ;;
  8074. *)
  8075. if test "$lt_cv_prog_gnu_ld" = yes; then
  8076. version_type=linux
  8077. else
  8078. version_type=irix
  8079. fi ;;
  8080. esac
  8081. need_lib_prefix=no
  8082. need_version=no
  8083. soname_spec='${libname}${release}${shared_ext}$major'
  8084. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8085. case $host_os in
  8086. irix5* | nonstopux*)
  8087. libsuff= shlibsuff=
  8088. ;;
  8089. *)
  8090. case $LD in # libtool.m4 will add one of these switches to LD
  8091. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8092. libsuff= shlibsuff= libmagic=32-bit;;
  8093. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8094. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8095. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8096. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8097. *) libsuff= shlibsuff= libmagic=never-match;;
  8098. esac
  8099. ;;
  8100. esac
  8101. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8102. shlibpath_overrides_runpath=no
  8103. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8104. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8105. hardcode_into_libs=yes
  8106. ;;
  8107. # No shared lib support for Linux oldld, aout, or coff.
  8108. linux*oldld* | linux*aout* | linux*coff*)
  8109. dynamic_linker=no
  8110. ;;
  8111. # This must be Linux ELF.
  8112. linux*)
  8113. version_type=linux
  8114. need_lib_prefix=no
  8115. need_version=no
  8116. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8117. soname_spec='${libname}${release}${shared_ext}$major'
  8118. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8119. shlibpath_var=LD_LIBRARY_PATH
  8120. shlibpath_overrides_runpath=no
  8121. # This implies no fast_install, which is unacceptable.
  8122. # Some rework will be needed to allow for fast_install
  8123. # before this can be enabled.
  8124. hardcode_into_libs=yes
  8125. # Append ld.so.conf contents to the search path
  8126. if test -f /etc/ld.so.conf; then
  8127. 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' ' '`
  8128. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8129. fi
  8130. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8131. # powerpc, because MkLinux only supported shared libraries with the
  8132. # GNU dynamic linker. Since this was broken with cross compilers,
  8133. # most powerpc-linux boxes support dynamic linking these days and
  8134. # people can always --disable-shared, the test was removed, and we
  8135. # assume the GNU/Linux dynamic linker is in use.
  8136. dynamic_linker='GNU/Linux ld.so'
  8137. ;;
  8138. knetbsd*-gnu)
  8139. version_type=linux
  8140. need_lib_prefix=no
  8141. need_version=no
  8142. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8143. soname_spec='${libname}${release}${shared_ext}$major'
  8144. shlibpath_var=LD_LIBRARY_PATH
  8145. shlibpath_overrides_runpath=no
  8146. hardcode_into_libs=yes
  8147. dynamic_linker='GNU ld.so'
  8148. ;;
  8149. netbsd*)
  8150. version_type=sunos
  8151. need_lib_prefix=no
  8152. need_version=no
  8153. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8154. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8155. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8156. dynamic_linker='NetBSD (a.out) ld.so'
  8157. else
  8158. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8159. soname_spec='${libname}${release}${shared_ext}$major'
  8160. dynamic_linker='NetBSD ld.elf_so'
  8161. fi
  8162. shlibpath_var=LD_LIBRARY_PATH
  8163. shlibpath_overrides_runpath=yes
  8164. hardcode_into_libs=yes
  8165. ;;
  8166. newsos6)
  8167. version_type=linux
  8168. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8169. shlibpath_var=LD_LIBRARY_PATH
  8170. shlibpath_overrides_runpath=yes
  8171. ;;
  8172. nto-qnx*)
  8173. version_type=linux
  8174. need_lib_prefix=no
  8175. need_version=no
  8176. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8177. soname_spec='${libname}${release}${shared_ext}$major'
  8178. shlibpath_var=LD_LIBRARY_PATH
  8179. shlibpath_overrides_runpath=yes
  8180. ;;
  8181. openbsd*)
  8182. version_type=sunos
  8183. need_lib_prefix=no
  8184. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8185. case $host_os in
  8186. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8187. *) need_version=no ;;
  8188. esac
  8189. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8190. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8191. shlibpath_var=LD_LIBRARY_PATH
  8192. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8193. case $host_os in
  8194. openbsd2.[89] | openbsd2.[89].*)
  8195. shlibpath_overrides_runpath=no
  8196. ;;
  8197. *)
  8198. shlibpath_overrides_runpath=yes
  8199. ;;
  8200. esac
  8201. else
  8202. shlibpath_overrides_runpath=yes
  8203. fi
  8204. ;;
  8205. os2*)
  8206. libname_spec='$name'
  8207. shrext_cmds=".dll"
  8208. need_lib_prefix=no
  8209. library_names_spec='$libname${shared_ext} $libname.a'
  8210. dynamic_linker='OS/2 ld.exe'
  8211. shlibpath_var=LIBPATH
  8212. ;;
  8213. osf3* | osf4* | osf5*)
  8214. version_type=osf
  8215. need_lib_prefix=no
  8216. need_version=no
  8217. soname_spec='${libname}${release}${shared_ext}$major'
  8218. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8219. shlibpath_var=LD_LIBRARY_PATH
  8220. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8221. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8222. ;;
  8223. sco3.2v5*)
  8224. version_type=osf
  8225. soname_spec='${libname}${release}${shared_ext}$major'
  8226. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8227. shlibpath_var=LD_LIBRARY_PATH
  8228. ;;
  8229. solaris*)
  8230. version_type=linux
  8231. need_lib_prefix=no
  8232. need_version=no
  8233. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8234. soname_spec='${libname}${release}${shared_ext}$major'
  8235. shlibpath_var=LD_LIBRARY_PATH
  8236. shlibpath_overrides_runpath=yes
  8237. hardcode_into_libs=yes
  8238. # ldd complains unless libraries are executable
  8239. postinstall_cmds='chmod +x $lib'
  8240. ;;
  8241. sunos4*)
  8242. version_type=sunos
  8243. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8244. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8245. shlibpath_var=LD_LIBRARY_PATH
  8246. shlibpath_overrides_runpath=yes
  8247. if test "$with_gnu_ld" = yes; then
  8248. need_lib_prefix=no
  8249. fi
  8250. need_version=yes
  8251. ;;
  8252. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8253. version_type=linux
  8254. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8255. soname_spec='${libname}${release}${shared_ext}$major'
  8256. shlibpath_var=LD_LIBRARY_PATH
  8257. case $host_vendor in
  8258. sni)
  8259. shlibpath_overrides_runpath=no
  8260. need_lib_prefix=no
  8261. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8262. runpath_var=LD_RUN_PATH
  8263. ;;
  8264. siemens)
  8265. need_lib_prefix=no
  8266. ;;
  8267. motorola)
  8268. need_lib_prefix=no
  8269. need_version=no
  8270. shlibpath_overrides_runpath=no
  8271. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8272. ;;
  8273. esac
  8274. ;;
  8275. sysv4*MP*)
  8276. if test -d /usr/nec ;then
  8277. version_type=linux
  8278. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8279. soname_spec='$libname${shared_ext}.$major'
  8280. shlibpath_var=LD_LIBRARY_PATH
  8281. fi
  8282. ;;
  8283. uts4*)
  8284. version_type=linux
  8285. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8286. soname_spec='${libname}${release}${shared_ext}$major'
  8287. shlibpath_var=LD_LIBRARY_PATH
  8288. ;;
  8289. *)
  8290. dynamic_linker=no
  8291. ;;
  8292. esac
  8293. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8294. echo "${ECHO_T}$dynamic_linker" >&6; }
  8295. test "$dynamic_linker" = no && can_build_shared=no
  8296. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8297. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  8298. hardcode_action=
  8299. if test -n "$hardcode_libdir_flag_spec" || \
  8300. test -n "$runpath_var" || \
  8301. test "X$hardcode_automatic" = "Xyes" ; then
  8302. # We can hardcode non-existant directories.
  8303. if test "$hardcode_direct" != no &&
  8304. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8305. # have to relink, otherwise we might link with an installed library
  8306. # when we should be linking with a yet-to-be-installed one
  8307. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8308. test "$hardcode_minus_L" != no; then
  8309. # Linking always hardcodes the temporary library directory.
  8310. hardcode_action=relink
  8311. else
  8312. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8313. hardcode_action=immediate
  8314. fi
  8315. else
  8316. # We cannot hardcode anything, or else we can only hardcode existing
  8317. # directories.
  8318. hardcode_action=unsupported
  8319. fi
  8320. { echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8321. echo "${ECHO_T}$hardcode_action" >&6; }
  8322. if test "$hardcode_action" = relink; then
  8323. # Fast installation is not supported
  8324. enable_fast_install=no
  8325. elif test "$shlibpath_overrides_runpath" = yes ||
  8326. test "$enable_shared" = no; then
  8327. # Fast installation is not necessary
  8328. enable_fast_install=needless
  8329. fi
  8330. striplib=
  8331. old_striplib=
  8332. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  8333. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  8334. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  8335. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  8336. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  8337. { echo "$as_me:$LINENO: result: yes" >&5
  8338. echo "${ECHO_T}yes" >&6; }
  8339. else
  8340. # FIXME - insert some real tests, host_os isn't really good enough
  8341. case $host_os in
  8342. darwin*)
  8343. if test -n "$STRIP" ; then
  8344. striplib="$STRIP -x"
  8345. { echo "$as_me:$LINENO: result: yes" >&5
  8346. echo "${ECHO_T}yes" >&6; }
  8347. else
  8348. { echo "$as_me:$LINENO: result: no" >&5
  8349. echo "${ECHO_T}no" >&6; }
  8350. fi
  8351. ;;
  8352. *)
  8353. { echo "$as_me:$LINENO: result: no" >&5
  8354. echo "${ECHO_T}no" >&6; }
  8355. ;;
  8356. esac
  8357. fi
  8358. if test "x$enable_dlopen" != xyes; then
  8359. enable_dlopen=unknown
  8360. enable_dlopen_self=unknown
  8361. enable_dlopen_self_static=unknown
  8362. else
  8363. lt_cv_dlopen=no
  8364. lt_cv_dlopen_libs=
  8365. case $host_os in
  8366. beos*)
  8367. lt_cv_dlopen="load_add_on"
  8368. lt_cv_dlopen_libs=
  8369. lt_cv_dlopen_self=yes
  8370. ;;
  8371. mingw* | pw32*)
  8372. lt_cv_dlopen="LoadLibrary"
  8373. lt_cv_dlopen_libs=
  8374. ;;
  8375. cygwin*)
  8376. lt_cv_dlopen="dlopen"
  8377. lt_cv_dlopen_libs=
  8378. ;;
  8379. darwin*)
  8380. # if libdl is installed we need to link against it
  8381. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8382. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8383. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8384. echo $ECHO_N "(cached) $ECHO_C" >&6
  8385. else
  8386. ac_check_lib_save_LIBS=$LIBS
  8387. LIBS="-ldl $LIBS"
  8388. cat >conftest.$ac_ext <<_ACEOF
  8389. /* confdefs.h. */
  8390. _ACEOF
  8391. cat confdefs.h >>conftest.$ac_ext
  8392. cat >>conftest.$ac_ext <<_ACEOF
  8393. /* end confdefs.h. */
  8394. /* Override any GCC internal prototype to avoid an error.
  8395. Use char because int might match the return type of a GCC
  8396. builtin and then its argument prototype would still apply. */
  8397. #ifdef __cplusplus
  8398. extern "C"
  8399. #endif
  8400. char dlopen ();
  8401. int
  8402. main ()
  8403. {
  8404. return dlopen ();
  8405. ;
  8406. return 0;
  8407. }
  8408. _ACEOF
  8409. rm -f conftest.$ac_objext conftest$ac_exeext
  8410. if { (ac_try="$ac_link"
  8411. case "(($ac_try" in
  8412. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8413. *) ac_try_echo=$ac_try;;
  8414. esac
  8415. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8416. (eval "$ac_link") 2>conftest.er1
  8417. ac_status=$?
  8418. grep -v '^ *+' conftest.er1 >conftest.err
  8419. rm -f conftest.er1
  8420. cat conftest.err >&5
  8421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8422. (exit $ac_status); } && {
  8423. test -z "$ac_c_werror_flag" ||
  8424. test ! -s conftest.err
  8425. } && test -s conftest$ac_exeext &&
  8426. $as_test_x conftest$ac_exeext; then
  8427. ac_cv_lib_dl_dlopen=yes
  8428. else
  8429. echo "$as_me: failed program was:" >&5
  8430. sed 's/^/| /' conftest.$ac_ext >&5
  8431. ac_cv_lib_dl_dlopen=no
  8432. fi
  8433. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8434. conftest$ac_exeext conftest.$ac_ext
  8435. LIBS=$ac_check_lib_save_LIBS
  8436. fi
  8437. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8438. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8439. if test $ac_cv_lib_dl_dlopen = yes; then
  8440. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8441. else
  8442. lt_cv_dlopen="dyld"
  8443. lt_cv_dlopen_libs=
  8444. lt_cv_dlopen_self=yes
  8445. fi
  8446. ;;
  8447. *)
  8448. { echo "$as_me:$LINENO: checking for shl_load" >&5
  8449. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  8450. if test "${ac_cv_func_shl_load+set}" = set; then
  8451. echo $ECHO_N "(cached) $ECHO_C" >&6
  8452. else
  8453. cat >conftest.$ac_ext <<_ACEOF
  8454. /* confdefs.h. */
  8455. _ACEOF
  8456. cat confdefs.h >>conftest.$ac_ext
  8457. cat >>conftest.$ac_ext <<_ACEOF
  8458. /* end confdefs.h. */
  8459. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8460. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8461. #define shl_load innocuous_shl_load
  8462. /* System header to define __stub macros and hopefully few prototypes,
  8463. which can conflict with char shl_load (); below.
  8464. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8465. <limits.h> exists even on freestanding compilers. */
  8466. #ifdef __STDC__
  8467. # include <limits.h>
  8468. #else
  8469. # include <assert.h>
  8470. #endif
  8471. #undef shl_load
  8472. /* Override any GCC internal prototype to avoid an error.
  8473. Use char because int might match the return type of a GCC
  8474. builtin and then its argument prototype would still apply. */
  8475. #ifdef __cplusplus
  8476. extern "C"
  8477. #endif
  8478. char shl_load ();
  8479. /* The GNU C library defines this for functions which it implements
  8480. to always fail with ENOSYS. Some functions are actually named
  8481. something starting with __ and the normal name is an alias. */
  8482. #if defined __stub_shl_load || defined __stub___shl_load
  8483. choke me
  8484. #endif
  8485. int
  8486. main ()
  8487. {
  8488. return shl_load ();
  8489. ;
  8490. return 0;
  8491. }
  8492. _ACEOF
  8493. rm -f conftest.$ac_objext conftest$ac_exeext
  8494. if { (ac_try="$ac_link"
  8495. case "(($ac_try" in
  8496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8497. *) ac_try_echo=$ac_try;;
  8498. esac
  8499. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8500. (eval "$ac_link") 2>conftest.er1
  8501. ac_status=$?
  8502. grep -v '^ *+' conftest.er1 >conftest.err
  8503. rm -f conftest.er1
  8504. cat conftest.err >&5
  8505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8506. (exit $ac_status); } && {
  8507. test -z "$ac_c_werror_flag" ||
  8508. test ! -s conftest.err
  8509. } && test -s conftest$ac_exeext &&
  8510. $as_test_x conftest$ac_exeext; then
  8511. ac_cv_func_shl_load=yes
  8512. else
  8513. echo "$as_me: failed program was:" >&5
  8514. sed 's/^/| /' conftest.$ac_ext >&5
  8515. ac_cv_func_shl_load=no
  8516. fi
  8517. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8518. conftest$ac_exeext conftest.$ac_ext
  8519. fi
  8520. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8521. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  8522. if test $ac_cv_func_shl_load = yes; then
  8523. lt_cv_dlopen="shl_load"
  8524. else
  8525. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8526. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  8527. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8528. echo $ECHO_N "(cached) $ECHO_C" >&6
  8529. else
  8530. ac_check_lib_save_LIBS=$LIBS
  8531. LIBS="-ldld $LIBS"
  8532. cat >conftest.$ac_ext <<_ACEOF
  8533. /* confdefs.h. */
  8534. _ACEOF
  8535. cat confdefs.h >>conftest.$ac_ext
  8536. cat >>conftest.$ac_ext <<_ACEOF
  8537. /* end confdefs.h. */
  8538. /* Override any GCC internal prototype to avoid an error.
  8539. Use char because int might match the return type of a GCC
  8540. builtin and then its argument prototype would still apply. */
  8541. #ifdef __cplusplus
  8542. extern "C"
  8543. #endif
  8544. char shl_load ();
  8545. int
  8546. main ()
  8547. {
  8548. return shl_load ();
  8549. ;
  8550. return 0;
  8551. }
  8552. _ACEOF
  8553. rm -f conftest.$ac_objext conftest$ac_exeext
  8554. if { (ac_try="$ac_link"
  8555. case "(($ac_try" in
  8556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8557. *) ac_try_echo=$ac_try;;
  8558. esac
  8559. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8560. (eval "$ac_link") 2>conftest.er1
  8561. ac_status=$?
  8562. grep -v '^ *+' conftest.er1 >conftest.err
  8563. rm -f conftest.er1
  8564. cat conftest.err >&5
  8565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8566. (exit $ac_status); } && {
  8567. test -z "$ac_c_werror_flag" ||
  8568. test ! -s conftest.err
  8569. } && test -s conftest$ac_exeext &&
  8570. $as_test_x conftest$ac_exeext; then
  8571. ac_cv_lib_dld_shl_load=yes
  8572. else
  8573. echo "$as_me: failed program was:" >&5
  8574. sed 's/^/| /' conftest.$ac_ext >&5
  8575. ac_cv_lib_dld_shl_load=no
  8576. fi
  8577. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8578. conftest$ac_exeext conftest.$ac_ext
  8579. LIBS=$ac_check_lib_save_LIBS
  8580. fi
  8581. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8582. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  8583. if test $ac_cv_lib_dld_shl_load = yes; then
  8584. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8585. else
  8586. { echo "$as_me:$LINENO: checking for dlopen" >&5
  8587. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  8588. if test "${ac_cv_func_dlopen+set}" = set; then
  8589. echo $ECHO_N "(cached) $ECHO_C" >&6
  8590. else
  8591. cat >conftest.$ac_ext <<_ACEOF
  8592. /* confdefs.h. */
  8593. _ACEOF
  8594. cat confdefs.h >>conftest.$ac_ext
  8595. cat >>conftest.$ac_ext <<_ACEOF
  8596. /* end confdefs.h. */
  8597. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8598. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8599. #define dlopen innocuous_dlopen
  8600. /* System header to define __stub macros and hopefully few prototypes,
  8601. which can conflict with char dlopen (); below.
  8602. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8603. <limits.h> exists even on freestanding compilers. */
  8604. #ifdef __STDC__
  8605. # include <limits.h>
  8606. #else
  8607. # include <assert.h>
  8608. #endif
  8609. #undef dlopen
  8610. /* Override any GCC internal prototype to avoid an error.
  8611. Use char because int might match the return type of a GCC
  8612. builtin and then its argument prototype would still apply. */
  8613. #ifdef __cplusplus
  8614. extern "C"
  8615. #endif
  8616. char dlopen ();
  8617. /* The GNU C library defines this for functions which it implements
  8618. to always fail with ENOSYS. Some functions are actually named
  8619. something starting with __ and the normal name is an alias. */
  8620. #if defined __stub_dlopen || defined __stub___dlopen
  8621. choke me
  8622. #endif
  8623. int
  8624. main ()
  8625. {
  8626. return dlopen ();
  8627. ;
  8628. return 0;
  8629. }
  8630. _ACEOF
  8631. rm -f conftest.$ac_objext conftest$ac_exeext
  8632. if { (ac_try="$ac_link"
  8633. case "(($ac_try" in
  8634. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8635. *) ac_try_echo=$ac_try;;
  8636. esac
  8637. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8638. (eval "$ac_link") 2>conftest.er1
  8639. ac_status=$?
  8640. grep -v '^ *+' conftest.er1 >conftest.err
  8641. rm -f conftest.er1
  8642. cat conftest.err >&5
  8643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8644. (exit $ac_status); } && {
  8645. test -z "$ac_c_werror_flag" ||
  8646. test ! -s conftest.err
  8647. } && test -s conftest$ac_exeext &&
  8648. $as_test_x conftest$ac_exeext; then
  8649. ac_cv_func_dlopen=yes
  8650. else
  8651. echo "$as_me: failed program was:" >&5
  8652. sed 's/^/| /' conftest.$ac_ext >&5
  8653. ac_cv_func_dlopen=no
  8654. fi
  8655. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8656. conftest$ac_exeext conftest.$ac_ext
  8657. fi
  8658. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8659. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  8660. if test $ac_cv_func_dlopen = yes; then
  8661. lt_cv_dlopen="dlopen"
  8662. else
  8663. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8664. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8665. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8666. echo $ECHO_N "(cached) $ECHO_C" >&6
  8667. else
  8668. ac_check_lib_save_LIBS=$LIBS
  8669. LIBS="-ldl $LIBS"
  8670. cat >conftest.$ac_ext <<_ACEOF
  8671. /* confdefs.h. */
  8672. _ACEOF
  8673. cat confdefs.h >>conftest.$ac_ext
  8674. cat >>conftest.$ac_ext <<_ACEOF
  8675. /* end confdefs.h. */
  8676. /* Override any GCC internal prototype to avoid an error.
  8677. Use char because int might match the return type of a GCC
  8678. builtin and then its argument prototype would still apply. */
  8679. #ifdef __cplusplus
  8680. extern "C"
  8681. #endif
  8682. char dlopen ();
  8683. int
  8684. main ()
  8685. {
  8686. return dlopen ();
  8687. ;
  8688. return 0;
  8689. }
  8690. _ACEOF
  8691. rm -f conftest.$ac_objext conftest$ac_exeext
  8692. if { (ac_try="$ac_link"
  8693. case "(($ac_try" in
  8694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8695. *) ac_try_echo=$ac_try;;
  8696. esac
  8697. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8698. (eval "$ac_link") 2>conftest.er1
  8699. ac_status=$?
  8700. grep -v '^ *+' conftest.er1 >conftest.err
  8701. rm -f conftest.er1
  8702. cat conftest.err >&5
  8703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8704. (exit $ac_status); } && {
  8705. test -z "$ac_c_werror_flag" ||
  8706. test ! -s conftest.err
  8707. } && test -s conftest$ac_exeext &&
  8708. $as_test_x conftest$ac_exeext; then
  8709. ac_cv_lib_dl_dlopen=yes
  8710. else
  8711. echo "$as_me: failed program was:" >&5
  8712. sed 's/^/| /' conftest.$ac_ext >&5
  8713. ac_cv_lib_dl_dlopen=no
  8714. fi
  8715. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8716. conftest$ac_exeext conftest.$ac_ext
  8717. LIBS=$ac_check_lib_save_LIBS
  8718. fi
  8719. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8720. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8721. if test $ac_cv_lib_dl_dlopen = yes; then
  8722. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8723. else
  8724. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8725. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  8726. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8727. echo $ECHO_N "(cached) $ECHO_C" >&6
  8728. else
  8729. ac_check_lib_save_LIBS=$LIBS
  8730. LIBS="-lsvld $LIBS"
  8731. cat >conftest.$ac_ext <<_ACEOF
  8732. /* confdefs.h. */
  8733. _ACEOF
  8734. cat confdefs.h >>conftest.$ac_ext
  8735. cat >>conftest.$ac_ext <<_ACEOF
  8736. /* end confdefs.h. */
  8737. /* Override any GCC internal prototype to avoid an error.
  8738. Use char because int might match the return type of a GCC
  8739. builtin and then its argument prototype would still apply. */
  8740. #ifdef __cplusplus
  8741. extern "C"
  8742. #endif
  8743. char dlopen ();
  8744. int
  8745. main ()
  8746. {
  8747. return dlopen ();
  8748. ;
  8749. return 0;
  8750. }
  8751. _ACEOF
  8752. rm -f conftest.$ac_objext conftest$ac_exeext
  8753. if { (ac_try="$ac_link"
  8754. case "(($ac_try" in
  8755. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8756. *) ac_try_echo=$ac_try;;
  8757. esac
  8758. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8759. (eval "$ac_link") 2>conftest.er1
  8760. ac_status=$?
  8761. grep -v '^ *+' conftest.er1 >conftest.err
  8762. rm -f conftest.er1
  8763. cat conftest.err >&5
  8764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8765. (exit $ac_status); } && {
  8766. test -z "$ac_c_werror_flag" ||
  8767. test ! -s conftest.err
  8768. } && test -s conftest$ac_exeext &&
  8769. $as_test_x conftest$ac_exeext; then
  8770. ac_cv_lib_svld_dlopen=yes
  8771. else
  8772. echo "$as_me: failed program was:" >&5
  8773. sed 's/^/| /' conftest.$ac_ext >&5
  8774. ac_cv_lib_svld_dlopen=no
  8775. fi
  8776. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8777. conftest$ac_exeext conftest.$ac_ext
  8778. LIBS=$ac_check_lib_save_LIBS
  8779. fi
  8780. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8781. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  8782. if test $ac_cv_lib_svld_dlopen = yes; then
  8783. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8784. else
  8785. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8786. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  8787. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8788. echo $ECHO_N "(cached) $ECHO_C" >&6
  8789. else
  8790. ac_check_lib_save_LIBS=$LIBS
  8791. LIBS="-ldld $LIBS"
  8792. cat >conftest.$ac_ext <<_ACEOF
  8793. /* confdefs.h. */
  8794. _ACEOF
  8795. cat confdefs.h >>conftest.$ac_ext
  8796. cat >>conftest.$ac_ext <<_ACEOF
  8797. /* end confdefs.h. */
  8798. /* Override any GCC internal prototype to avoid an error.
  8799. Use char because int might match the return type of a GCC
  8800. builtin and then its argument prototype would still apply. */
  8801. #ifdef __cplusplus
  8802. extern "C"
  8803. #endif
  8804. char dld_link ();
  8805. int
  8806. main ()
  8807. {
  8808. return dld_link ();
  8809. ;
  8810. return 0;
  8811. }
  8812. _ACEOF
  8813. rm -f conftest.$ac_objext conftest$ac_exeext
  8814. if { (ac_try="$ac_link"
  8815. case "(($ac_try" in
  8816. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8817. *) ac_try_echo=$ac_try;;
  8818. esac
  8819. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8820. (eval "$ac_link") 2>conftest.er1
  8821. ac_status=$?
  8822. grep -v '^ *+' conftest.er1 >conftest.err
  8823. rm -f conftest.er1
  8824. cat conftest.err >&5
  8825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8826. (exit $ac_status); } && {
  8827. test -z "$ac_c_werror_flag" ||
  8828. test ! -s conftest.err
  8829. } && test -s conftest$ac_exeext &&
  8830. $as_test_x conftest$ac_exeext; then
  8831. ac_cv_lib_dld_dld_link=yes
  8832. else
  8833. echo "$as_me: failed program was:" >&5
  8834. sed 's/^/| /' conftest.$ac_ext >&5
  8835. ac_cv_lib_dld_dld_link=no
  8836. fi
  8837. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8838. conftest$ac_exeext conftest.$ac_ext
  8839. LIBS=$ac_check_lib_save_LIBS
  8840. fi
  8841. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  8842. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  8843. if test $ac_cv_lib_dld_dld_link = yes; then
  8844. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  8845. fi
  8846. fi
  8847. fi
  8848. fi
  8849. fi
  8850. fi
  8851. ;;
  8852. esac
  8853. if test "x$lt_cv_dlopen" != xno; then
  8854. enable_dlopen=yes
  8855. else
  8856. enable_dlopen=no
  8857. fi
  8858. case $lt_cv_dlopen in
  8859. dlopen)
  8860. save_CPPFLAGS="$CPPFLAGS"
  8861. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8862. save_LDFLAGS="$LDFLAGS"
  8863. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8864. save_LIBS="$LIBS"
  8865. LIBS="$lt_cv_dlopen_libs $LIBS"
  8866. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  8867. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  8868. if test "${lt_cv_dlopen_self+set}" = set; then
  8869. echo $ECHO_N "(cached) $ECHO_C" >&6
  8870. else
  8871. if test "$cross_compiling" = yes; then :
  8872. lt_cv_dlopen_self=cross
  8873. else
  8874. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8875. lt_status=$lt_dlunknown
  8876. cat > conftest.$ac_ext <<EOF
  8877. #line 9874 "configure"
  8878. #include "confdefs.h"
  8879. #if HAVE_DLFCN_H
  8880. #include <dlfcn.h>
  8881. #endif
  8882. #include <stdio.h>
  8883. #ifdef RTLD_GLOBAL
  8884. # define LT_DLGLOBAL RTLD_GLOBAL
  8885. #else
  8886. # ifdef DL_GLOBAL
  8887. # define LT_DLGLOBAL DL_GLOBAL
  8888. # else
  8889. # define LT_DLGLOBAL 0
  8890. # endif
  8891. #endif
  8892. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8893. find out it does not work in some platform. */
  8894. #ifndef LT_DLLAZY_OR_NOW
  8895. # ifdef RTLD_LAZY
  8896. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8897. # else
  8898. # ifdef DL_LAZY
  8899. # define LT_DLLAZY_OR_NOW DL_LAZY
  8900. # else
  8901. # ifdef RTLD_NOW
  8902. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8903. # else
  8904. # ifdef DL_NOW
  8905. # define LT_DLLAZY_OR_NOW DL_NOW
  8906. # else
  8907. # define LT_DLLAZY_OR_NOW 0
  8908. # endif
  8909. # endif
  8910. # endif
  8911. # endif
  8912. #endif
  8913. #ifdef __cplusplus
  8914. extern "C" void exit (int);
  8915. #endif
  8916. void fnord() { int i=42;}
  8917. int main ()
  8918. {
  8919. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8920. int status = $lt_dlunknown;
  8921. if (self)
  8922. {
  8923. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8924. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8925. /* dlclose (self); */
  8926. }
  8927. exit (status);
  8928. }
  8929. EOF
  8930. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8931. (eval $ac_link) 2>&5
  8932. ac_status=$?
  8933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8934. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8935. (./conftest; exit; ) 2>/dev/null
  8936. lt_status=$?
  8937. case x$lt_status in
  8938. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8939. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8940. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  8941. esac
  8942. else :
  8943. # compilation failed
  8944. lt_cv_dlopen_self=no
  8945. fi
  8946. fi
  8947. rm -fr conftest*
  8948. fi
  8949. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  8950. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  8951. if test "x$lt_cv_dlopen_self" = xyes; then
  8952. LDFLAGS="$LDFLAGS $link_static_flag"
  8953. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  8954. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  8955. if test "${lt_cv_dlopen_self_static+set}" = set; then
  8956. echo $ECHO_N "(cached) $ECHO_C" >&6
  8957. else
  8958. if test "$cross_compiling" = yes; then :
  8959. lt_cv_dlopen_self_static=cross
  8960. else
  8961. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8962. lt_status=$lt_dlunknown
  8963. cat > conftest.$ac_ext <<EOF
  8964. #line 9972 "configure"
  8965. #include "confdefs.h"
  8966. #if HAVE_DLFCN_H
  8967. #include <dlfcn.h>
  8968. #endif
  8969. #include <stdio.h>
  8970. #ifdef RTLD_GLOBAL
  8971. # define LT_DLGLOBAL RTLD_GLOBAL
  8972. #else
  8973. # ifdef DL_GLOBAL
  8974. # define LT_DLGLOBAL DL_GLOBAL
  8975. # else
  8976. # define LT_DLGLOBAL 0
  8977. # endif
  8978. #endif
  8979. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8980. find out it does not work in some platform. */
  8981. #ifndef LT_DLLAZY_OR_NOW
  8982. # ifdef RTLD_LAZY
  8983. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8984. # else
  8985. # ifdef DL_LAZY
  8986. # define LT_DLLAZY_OR_NOW DL_LAZY
  8987. # else
  8988. # ifdef RTLD_NOW
  8989. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8990. # else
  8991. # ifdef DL_NOW
  8992. # define LT_DLLAZY_OR_NOW DL_NOW
  8993. # else
  8994. # define LT_DLLAZY_OR_NOW 0
  8995. # endif
  8996. # endif
  8997. # endif
  8998. # endif
  8999. #endif
  9000. #ifdef __cplusplus
  9001. extern "C" void exit (int);
  9002. #endif
  9003. void fnord() { int i=42;}
  9004. int main ()
  9005. {
  9006. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9007. int status = $lt_dlunknown;
  9008. if (self)
  9009. {
  9010. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9011. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9012. /* dlclose (self); */
  9013. }
  9014. exit (status);
  9015. }
  9016. EOF
  9017. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9018. (eval $ac_link) 2>&5
  9019. ac_status=$?
  9020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9021. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9022. (./conftest; exit; ) 2>/dev/null
  9023. lt_status=$?
  9024. case x$lt_status in
  9025. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9026. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9027. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  9028. esac
  9029. else :
  9030. # compilation failed
  9031. lt_cv_dlopen_self_static=no
  9032. fi
  9033. fi
  9034. rm -fr conftest*
  9035. fi
  9036. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  9037. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  9038. fi
  9039. CPPFLAGS="$save_CPPFLAGS"
  9040. LDFLAGS="$save_LDFLAGS"
  9041. LIBS="$save_LIBS"
  9042. ;;
  9043. esac
  9044. case $lt_cv_dlopen_self in
  9045. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9046. *) enable_dlopen_self=unknown ;;
  9047. esac
  9048. case $lt_cv_dlopen_self_static in
  9049. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9050. *) enable_dlopen_self_static=unknown ;;
  9051. esac
  9052. fi
  9053. # Report which librarie types wil actually be built
  9054. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9055. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  9056. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9057. echo "${ECHO_T}$can_build_shared" >&6; }
  9058. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9059. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  9060. test "$can_build_shared" = "no" && enable_shared=no
  9061. # On AIX, shared libraries and static libraries use the same namespace, and
  9062. # are all built from PIC.
  9063. case "$host_os" in
  9064. aix3*)
  9065. test "$enable_shared" = yes && enable_static=no
  9066. if test -n "$RANLIB"; then
  9067. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9068. postinstall_cmds='$RANLIB $lib'
  9069. fi
  9070. ;;
  9071. aix4* | aix5*)
  9072. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9073. test "$enable_shared" = yes && enable_static=no
  9074. fi
  9075. ;;
  9076. esac
  9077. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  9078. echo "${ECHO_T}$enable_shared" >&6; }
  9079. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9080. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  9081. # Make sure either enable_shared or enable_static is yes.
  9082. test "$enable_shared" = yes || enable_static=yes
  9083. { echo "$as_me:$LINENO: result: $enable_static" >&5
  9084. echo "${ECHO_T}$enable_static" >&6; }
  9085. # The else clause should only fire when bootstrapping the
  9086. # libtool distribution, otherwise you forgot to ship ltmain.sh
  9087. # with your package, and you will get complaints that there are
  9088. # no rules to generate ltmain.sh.
  9089. if test -f "$ltmain"; then
  9090. # See if we are running on zsh, and set the options which allow our commands through
  9091. # without removal of \ escapes.
  9092. if test -n "${ZSH_VERSION+set}" ; then
  9093. setopt NO_GLOB_SUBST
  9094. fi
  9095. # Now quote all the things that may contain metacharacters while being
  9096. # careful not to overquote the AC_SUBSTed values. We take copies of the
  9097. # variables and quote the copies for generation of the libtool script.
  9098. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  9099. SED SHELL STRIP \
  9100. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  9101. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  9102. deplibs_check_method reload_flag reload_cmds need_locks \
  9103. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  9104. lt_cv_sys_global_symbol_to_c_name_address \
  9105. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  9106. old_postinstall_cmds old_postuninstall_cmds \
  9107. compiler \
  9108. CC \
  9109. LD \
  9110. lt_prog_compiler_wl \
  9111. lt_prog_compiler_pic \
  9112. lt_prog_compiler_static \
  9113. lt_prog_compiler_no_builtin_flag \
  9114. export_dynamic_flag_spec \
  9115. thread_safe_flag_spec \
  9116. whole_archive_flag_spec \
  9117. enable_shared_with_static_runtimes \
  9118. old_archive_cmds \
  9119. old_archive_from_new_cmds \
  9120. predep_objects \
  9121. postdep_objects \
  9122. predeps \
  9123. postdeps \
  9124. compiler_lib_search_path \
  9125. archive_cmds \
  9126. archive_expsym_cmds \
  9127. postinstall_cmds \
  9128. postuninstall_cmds \
  9129. old_archive_from_expsyms_cmds \
  9130. allow_undefined_flag \
  9131. no_undefined_flag \
  9132. export_symbols_cmds \
  9133. hardcode_libdir_flag_spec \
  9134. hardcode_libdir_flag_spec_ld \
  9135. hardcode_libdir_separator \
  9136. hardcode_automatic \
  9137. module_cmds \
  9138. module_expsym_cmds \
  9139. lt_cv_prog_compiler_c_o \
  9140. exclude_expsyms \
  9141. include_expsyms; do
  9142. case $var in
  9143. old_archive_cmds | \
  9144. old_archive_from_new_cmds | \
  9145. archive_cmds | \
  9146. archive_expsym_cmds | \
  9147. module_cmds | \
  9148. module_expsym_cmds | \
  9149. old_archive_from_expsyms_cmds | \
  9150. export_symbols_cmds | \
  9151. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  9152. postinstall_cmds | postuninstall_cmds | \
  9153. old_postinstall_cmds | old_postuninstall_cmds | \
  9154. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  9155. # Double-quote double-evaled strings.
  9156. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  9157. ;;
  9158. *)
  9159. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  9160. ;;
  9161. esac
  9162. done
  9163. case $lt_echo in
  9164. *'\$0 --fallback-echo"')
  9165. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  9166. ;;
  9167. esac
  9168. cfgfile="${ofile}T"
  9169. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  9170. $rm -f "$cfgfile"
  9171. { echo "$as_me:$LINENO: creating $ofile" >&5
  9172. echo "$as_me: creating $ofile" >&6;}
  9173. cat <<__EOF__ >> "$cfgfile"
  9174. #! $SHELL
  9175. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  9176. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  9177. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  9178. #
  9179. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  9180. # Free Software Foundation, Inc.
  9181. #
  9182. # This file is part of GNU Libtool:
  9183. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  9184. #
  9185. # This program is free software; you can redistribute it and/or modify
  9186. # it under the terms of the GNU General Public License as published by
  9187. # the Free Software Foundation; either version 2 of the License, or
  9188. # (at your option) any later version.
  9189. #
  9190. # This program is distributed in the hope that it will be useful, but
  9191. # WITHOUT ANY WARRANTY; without even the implied warranty of
  9192. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  9193. # General Public License for more details.
  9194. #
  9195. # You should have received a copy of the GNU General Public License
  9196. # along with this program; if not, write to the Free Software
  9197. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  9198. #
  9199. # As a special exception to the GNU General Public License, if you
  9200. # distribute this file as part of a program that contains a
  9201. # configuration script generated by Autoconf, you may include it under
  9202. # the same distribution terms that you use for the rest of that program.
  9203. # A sed program that does not truncate output.
  9204. SED=$lt_SED
  9205. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  9206. Xsed="$SED -e 1s/^X//"
  9207. # The HP-UX ksh and POSIX shell print the target directory to stdout
  9208. # if CDPATH is set.
  9209. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9210. # The names of the tagged configurations supported by this script.
  9211. available_tags=
  9212. # ### BEGIN LIBTOOL CONFIG
  9213. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  9214. # Shell to use when invoking shell scripts.
  9215. SHELL=$lt_SHELL
  9216. # Whether or not to build shared libraries.
  9217. build_libtool_libs=$enable_shared
  9218. # Whether or not to build static libraries.
  9219. build_old_libs=$enable_static
  9220. # Whether or not to add -lc for building shared libraries.
  9221. build_libtool_need_lc=$archive_cmds_need_lc
  9222. # Whether or not to disallow shared libs when runtime libs are static
  9223. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  9224. # Whether or not to optimize for fast installation.
  9225. fast_install=$enable_fast_install
  9226. # The host system.
  9227. host_alias=$host_alias
  9228. host=$host
  9229. host_os=$host_os
  9230. # The build system.
  9231. build_alias=$build_alias
  9232. build=$build
  9233. build_os=$build_os
  9234. # An echo program that does not interpret backslashes.
  9235. echo=$lt_echo
  9236. # The archiver.
  9237. AR=$lt_AR
  9238. AR_FLAGS=$lt_AR_FLAGS
  9239. # A C compiler.
  9240. LTCC=$lt_LTCC
  9241. # A language-specific compiler.
  9242. CC=$lt_compiler
  9243. # Is the compiler the GNU C compiler?
  9244. with_gcc=$GCC
  9245. # An ERE matcher.
  9246. EGREP=$lt_EGREP
  9247. # The linker used to build libraries.
  9248. LD=$lt_LD
  9249. # Whether we need hard or soft links.
  9250. LN_S=$lt_LN_S
  9251. # A BSD-compatible nm program.
  9252. NM=$lt_NM
  9253. # A symbol stripping program
  9254. STRIP=$lt_STRIP
  9255. # Used to examine libraries when file_magic_cmd begins "file"
  9256. MAGIC_CMD=$MAGIC_CMD
  9257. # Used on cygwin: DLL creation program.
  9258. DLLTOOL="$DLLTOOL"
  9259. # Used on cygwin: object dumper.
  9260. OBJDUMP="$OBJDUMP"
  9261. # Used on cygwin: assembler.
  9262. AS="$AS"
  9263. # The name of the directory that contains temporary libtool files.
  9264. objdir=$objdir
  9265. # How to create reloadable object files.
  9266. reload_flag=$lt_reload_flag
  9267. reload_cmds=$lt_reload_cmds
  9268. # How to pass a linker flag through the compiler.
  9269. wl=$lt_lt_prog_compiler_wl
  9270. # Object file suffix (normally "o").
  9271. objext="$ac_objext"
  9272. # Old archive suffix (normally "a").
  9273. libext="$libext"
  9274. # Shared library suffix (normally ".so").
  9275. shrext_cmds='$shrext_cmds'
  9276. # Executable file suffix (normally "").
  9277. exeext="$exeext"
  9278. # Additional compiler flags for building library objects.
  9279. pic_flag=$lt_lt_prog_compiler_pic
  9280. pic_mode=$pic_mode
  9281. # What is the maximum length of a command?
  9282. max_cmd_len=$lt_cv_sys_max_cmd_len
  9283. # Does compiler simultaneously support -c and -o options?
  9284. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  9285. # Must we lock files when doing compilation?
  9286. need_locks=$lt_need_locks
  9287. # Do we need the lib prefix for modules?
  9288. need_lib_prefix=$need_lib_prefix
  9289. # Do we need a version for libraries?
  9290. need_version=$need_version
  9291. # Whether dlopen is supported.
  9292. dlopen_support=$enable_dlopen
  9293. # Whether dlopen of programs is supported.
  9294. dlopen_self=$enable_dlopen_self
  9295. # Whether dlopen of statically linked programs is supported.
  9296. dlopen_self_static=$enable_dlopen_self_static
  9297. # Compiler flag to prevent dynamic linking.
  9298. link_static_flag=$lt_lt_prog_compiler_static
  9299. # Compiler flag to turn off builtin functions.
  9300. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  9301. # Compiler flag to allow reflexive dlopens.
  9302. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  9303. # Compiler flag to generate shared objects directly from archives.
  9304. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  9305. # Compiler flag to generate thread-safe objects.
  9306. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  9307. # Library versioning type.
  9308. version_type=$version_type
  9309. # Format of library name prefix.
  9310. libname_spec=$lt_libname_spec
  9311. # List of archive names. First name is the real one, the rest are links.
  9312. # The last name is the one that the linker finds with -lNAME.
  9313. library_names_spec=$lt_library_names_spec
  9314. # The coded name of the library, if different from the real name.
  9315. soname_spec=$lt_soname_spec
  9316. # Commands used to build and install an old-style archive.
  9317. RANLIB=$lt_RANLIB
  9318. old_archive_cmds=$lt_old_archive_cmds
  9319. old_postinstall_cmds=$lt_old_postinstall_cmds
  9320. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  9321. # Create an old-style archive from a shared archive.
  9322. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  9323. # Create a temporary old-style archive to link instead of a shared archive.
  9324. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  9325. # Commands used to build and install a shared archive.
  9326. archive_cmds=$lt_archive_cmds
  9327. archive_expsym_cmds=$lt_archive_expsym_cmds
  9328. postinstall_cmds=$lt_postinstall_cmds
  9329. postuninstall_cmds=$lt_postuninstall_cmds
  9330. # Commands used to build a loadable module (assumed same as above if empty)
  9331. module_cmds=$lt_module_cmds
  9332. module_expsym_cmds=$lt_module_expsym_cmds
  9333. # Commands to strip libraries.
  9334. old_striplib=$lt_old_striplib
  9335. striplib=$lt_striplib
  9336. # Dependencies to place before the objects being linked to create a
  9337. # shared library.
  9338. predep_objects=$lt_predep_objects
  9339. # Dependencies to place after the objects being linked to create a
  9340. # shared library.
  9341. postdep_objects=$lt_postdep_objects
  9342. # Dependencies to place before the objects being linked to create a
  9343. # shared library.
  9344. predeps=$lt_predeps
  9345. # Dependencies to place after the objects being linked to create a
  9346. # shared library.
  9347. postdeps=$lt_postdeps
  9348. # The library search path used internally by the compiler when linking
  9349. # a shared library.
  9350. compiler_lib_search_path=$lt_compiler_lib_search_path
  9351. # Method to check whether dependent libraries are shared objects.
  9352. deplibs_check_method=$lt_deplibs_check_method
  9353. # Command to use when deplibs_check_method == file_magic.
  9354. file_magic_cmd=$lt_file_magic_cmd
  9355. # Flag that allows shared libraries with undefined symbols to be built.
  9356. allow_undefined_flag=$lt_allow_undefined_flag
  9357. # Flag that forces no undefined symbols.
  9358. no_undefined_flag=$lt_no_undefined_flag
  9359. # Commands used to finish a libtool library installation in a directory.
  9360. finish_cmds=$lt_finish_cmds
  9361. # Same as above, but a single script fragment to be evaled but not shown.
  9362. finish_eval=$lt_finish_eval
  9363. # Take the output of nm and produce a listing of raw symbols and C names.
  9364. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  9365. # Transform the output of nm in a proper C declaration
  9366. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  9367. # Transform the output of nm in a C name address pair
  9368. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  9369. # This is the shared library runtime path variable.
  9370. runpath_var=$runpath_var
  9371. # This is the shared library path variable.
  9372. shlibpath_var=$shlibpath_var
  9373. # Is shlibpath searched before the hard-coded library search path?
  9374. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  9375. # How to hardcode a shared library path into an executable.
  9376. hardcode_action=$hardcode_action
  9377. # Whether we should hardcode library paths into libraries.
  9378. hardcode_into_libs=$hardcode_into_libs
  9379. # Flag to hardcode \$libdir into a binary during linking.
  9380. # This must work even if \$libdir does not exist.
  9381. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  9382. # If ld is used when linking, flag to hardcode \$libdir into
  9383. # a binary during linking. This must work even if \$libdir does
  9384. # not exist.
  9385. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  9386. # Whether we need a single -rpath flag with a separated argument.
  9387. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  9388. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  9389. # resulting binary.
  9390. hardcode_direct=$hardcode_direct
  9391. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  9392. # resulting binary.
  9393. hardcode_minus_L=$hardcode_minus_L
  9394. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  9395. # the resulting binary.
  9396. hardcode_shlibpath_var=$hardcode_shlibpath_var
  9397. # Set to yes if building a shared library automatically hardcodes DIR into the library
  9398. # and all subsequent libraries and executables linked against it.
  9399. hardcode_automatic=$hardcode_automatic
  9400. # Variables whose values should be saved in libtool wrapper scripts and
  9401. # restored at relink time.
  9402. variables_saved_for_relink="$variables_saved_for_relink"
  9403. # Whether libtool must link a program against all its dependency libraries.
  9404. link_all_deplibs=$link_all_deplibs
  9405. # Compile-time system search path for libraries
  9406. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  9407. # Run-time system search path for libraries
  9408. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  9409. # Fix the shell variable \$srcfile for the compiler.
  9410. fix_srcfile_path="$fix_srcfile_path"
  9411. # Set to yes if exported symbols are required.
  9412. always_export_symbols=$always_export_symbols
  9413. # The commands to list exported symbols.
  9414. export_symbols_cmds=$lt_export_symbols_cmds
  9415. # The commands to extract the exported symbol list from a shared archive.
  9416. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  9417. # Symbols that should not be listed in the preloaded symbols.
  9418. exclude_expsyms=$lt_exclude_expsyms
  9419. # Symbols that must always be exported.
  9420. include_expsyms=$lt_include_expsyms
  9421. # ### END LIBTOOL CONFIG
  9422. __EOF__
  9423. case $host_os in
  9424. aix3*)
  9425. cat <<\EOF >> "$cfgfile"
  9426. # AIX sometimes has problems with the GCC collect2 program. For some
  9427. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9428. # vanish in a puff of smoke.
  9429. if test "X${COLLECT_NAMES+set}" != Xset; then
  9430. COLLECT_NAMES=
  9431. export COLLECT_NAMES
  9432. fi
  9433. EOF
  9434. ;;
  9435. esac
  9436. # We use sed instead of cat because bash on DJGPP gets confused if
  9437. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  9438. # text mode, it properly converts lines to CR/LF. This bash problem
  9439. # is reportedly fixed, but why not run on old versions too?
  9440. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  9441. mv -f "$cfgfile" "$ofile" || \
  9442. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  9443. chmod +x "$ofile"
  9444. else
  9445. # If there is no Makefile yet, we rely on a make rule to execute
  9446. # `config.status --recheck' to rerun these tests and create the
  9447. # libtool script then.
  9448. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  9449. if test -f "$ltmain_in"; then
  9450. test -f Makefile && make "$ltmain"
  9451. fi
  9452. fi
  9453. ac_ext=c
  9454. ac_cpp='$CPP $CPPFLAGS'
  9455. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9456. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9457. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9458. CC="$lt_save_CC"
  9459. # Check whether --with-tags was given.
  9460. if test "${with_tags+set}" = set; then
  9461. withval=$with_tags; tagnames="$withval"
  9462. fi
  9463. if test -f "$ltmain" && test -n "$tagnames"; then
  9464. if test ! -f "${ofile}"; then
  9465. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  9466. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  9467. fi
  9468. if test -z "$LTCC"; then
  9469. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  9470. if test -z "$LTCC"; then
  9471. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  9472. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  9473. else
  9474. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  9475. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  9476. fi
  9477. fi
  9478. # Extract list of available tagged configurations in $ofile.
  9479. # Note that this assumes the entire list is on one line.
  9480. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  9481. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9482. for tagname in $tagnames; do
  9483. IFS="$lt_save_ifs"
  9484. # Check whether tagname contains only valid characters
  9485. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  9486. "") ;;
  9487. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  9488. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  9489. { (exit 1); exit 1; }; }
  9490. ;;
  9491. esac
  9492. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  9493. then
  9494. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  9495. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  9496. { (exit 1); exit 1; }; }
  9497. fi
  9498. # Update the list of available tags.
  9499. if test -n "$tagname"; then
  9500. echo appending configuration tag \"$tagname\" to $ofile
  9501. case $tagname in
  9502. CXX)
  9503. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9504. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9505. (test "X$CXX" != "Xg++"))) ; then
  9506. ac_ext=cpp
  9507. ac_cpp='$CXXCPP $CPPFLAGS'
  9508. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9509. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9510. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9511. archive_cmds_need_lc_CXX=no
  9512. allow_undefined_flag_CXX=
  9513. always_export_symbols_CXX=no
  9514. archive_expsym_cmds_CXX=
  9515. export_dynamic_flag_spec_CXX=
  9516. hardcode_direct_CXX=no
  9517. hardcode_libdir_flag_spec_CXX=
  9518. hardcode_libdir_flag_spec_ld_CXX=
  9519. hardcode_libdir_separator_CXX=
  9520. hardcode_minus_L_CXX=no
  9521. hardcode_automatic_CXX=no
  9522. module_cmds_CXX=
  9523. module_expsym_cmds_CXX=
  9524. link_all_deplibs_CXX=unknown
  9525. old_archive_cmds_CXX=$old_archive_cmds
  9526. no_undefined_flag_CXX=
  9527. whole_archive_flag_spec_CXX=
  9528. enable_shared_with_static_runtimes_CXX=no
  9529. # Dependencies to place before and after the object being linked:
  9530. predep_objects_CXX=
  9531. postdep_objects_CXX=
  9532. predeps_CXX=
  9533. postdeps_CXX=
  9534. compiler_lib_search_path_CXX=
  9535. # Source file extension for C++ test sources.
  9536. ac_ext=cc
  9537. # Object file extension for compiled C++ test sources.
  9538. objext=o
  9539. objext_CXX=$objext
  9540. # Code to be used in simple compile tests
  9541. lt_simple_compile_test_code="int some_variable = 0;\n"
  9542. # Code to be used in simple link tests
  9543. lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
  9544. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9545. # If no C compiler was specified, use CC.
  9546. LTCC=${LTCC-"$CC"}
  9547. # Allow CC to be a program name with arguments.
  9548. compiler=$CC
  9549. # save warnings/boilerplate of simple test code
  9550. ac_outfile=conftest.$ac_objext
  9551. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  9552. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  9553. _lt_compiler_boilerplate=`cat conftest.err`
  9554. $rm conftest*
  9555. ac_outfile=conftest.$ac_objext
  9556. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  9557. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  9558. _lt_linker_boilerplate=`cat conftest.err`
  9559. $rm conftest*
  9560. # Allow CC to be a program name with arguments.
  9561. lt_save_CC=$CC
  9562. lt_save_LD=$LD
  9563. lt_save_GCC=$GCC
  9564. GCC=$GXX
  9565. lt_save_with_gnu_ld=$with_gnu_ld
  9566. lt_save_path_LD=$lt_cv_path_LD
  9567. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9568. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9569. else
  9570. unset lt_cv_prog_gnu_ld
  9571. fi
  9572. if test -n "${lt_cv_path_LDCXX+set}"; then
  9573. lt_cv_path_LD=$lt_cv_path_LDCXX
  9574. else
  9575. unset lt_cv_path_LD
  9576. fi
  9577. test -z "${LDCXX+set}" || LD=$LDCXX
  9578. CC=${CXX-"c++"}
  9579. compiler=$CC
  9580. compiler_CXX=$CC
  9581. for cc_temp in $compiler""; do
  9582. case $cc_temp in
  9583. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9584. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9585. \-*) ;;
  9586. *) break;;
  9587. esac
  9588. done
  9589. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9590. # We don't want -fno-exception wen compiling C++ code, so set the
  9591. # no_builtin_flag separately
  9592. if test "$GXX" = yes; then
  9593. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9594. else
  9595. lt_prog_compiler_no_builtin_flag_CXX=
  9596. fi
  9597. if test "$GXX" = yes; then
  9598. # Set up default GNU C++ configuration
  9599. # Check whether --with-gnu-ld was given.
  9600. if test "${with_gnu_ld+set}" = set; then
  9601. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9602. else
  9603. with_gnu_ld=no
  9604. fi
  9605. ac_prog=ld
  9606. if test "$GCC" = yes; then
  9607. # Check if gcc -print-prog-name=ld gives a path.
  9608. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  9609. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  9610. case $host in
  9611. *-*-mingw*)
  9612. # gcc leaves a trailing carriage return which upsets mingw
  9613. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9614. *)
  9615. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9616. esac
  9617. case $ac_prog in
  9618. # Accept absolute paths.
  9619. [\\/]* | ?:[\\/]*)
  9620. re_direlt='/[^/][^/]*/\.\./'
  9621. # Canonicalize the pathname of ld
  9622. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  9623. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9624. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  9625. done
  9626. test -z "$LD" && LD="$ac_prog"
  9627. ;;
  9628. "")
  9629. # If it fails, then pretend we aren't using GCC.
  9630. ac_prog=ld
  9631. ;;
  9632. *)
  9633. # If it is relative, then search for the first ld in PATH.
  9634. with_gnu_ld=unknown
  9635. ;;
  9636. esac
  9637. elif test "$with_gnu_ld" = yes; then
  9638. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  9639. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  9640. else
  9641. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9642. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  9643. fi
  9644. if test "${lt_cv_path_LD+set}" = set; then
  9645. echo $ECHO_N "(cached) $ECHO_C" >&6
  9646. else
  9647. if test -z "$LD"; then
  9648. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9649. for ac_dir in $PATH; do
  9650. IFS="$lt_save_ifs"
  9651. test -z "$ac_dir" && ac_dir=.
  9652. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9653. lt_cv_path_LD="$ac_dir/$ac_prog"
  9654. # Check to see if the program is GNU ld. I'd rather use --version,
  9655. # but apparently some GNU ld's only accept -v.
  9656. # Break only if it was the GNU/non-GNU ld that we prefer.
  9657. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9658. *GNU* | *'with BFD'*)
  9659. test "$with_gnu_ld" != no && break
  9660. ;;
  9661. *)
  9662. test "$with_gnu_ld" != yes && break
  9663. ;;
  9664. esac
  9665. fi
  9666. done
  9667. IFS="$lt_save_ifs"
  9668. else
  9669. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9670. fi
  9671. fi
  9672. LD="$lt_cv_path_LD"
  9673. if test -n "$LD"; then
  9674. { echo "$as_me:$LINENO: result: $LD" >&5
  9675. echo "${ECHO_T}$LD" >&6; }
  9676. else
  9677. { echo "$as_me:$LINENO: result: no" >&5
  9678. echo "${ECHO_T}no" >&6; }
  9679. fi
  9680. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  9681. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  9682. { (exit 1); exit 1; }; }
  9683. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  9684. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  9685. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  9686. echo $ECHO_N "(cached) $ECHO_C" >&6
  9687. else
  9688. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  9689. case `$LD -v 2>&1 </dev/null` in
  9690. *GNU* | *'with BFD'*)
  9691. lt_cv_prog_gnu_ld=yes
  9692. ;;
  9693. *)
  9694. lt_cv_prog_gnu_ld=no
  9695. ;;
  9696. esac
  9697. fi
  9698. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  9699. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  9700. with_gnu_ld=$lt_cv_prog_gnu_ld
  9701. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9702. # archiving commands below assume that GNU ld is being used.
  9703. if test "$with_gnu_ld" = yes; then
  9704. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9705. 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'
  9706. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9707. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9708. # If archive_cmds runs LD, not CC, wlarc should be empty
  9709. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9710. # investigate it a little bit more. (MM)
  9711. wlarc='${wl}'
  9712. # ancient GNU ld didn't support --whole-archive et. al.
  9713. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  9714. grep 'no-whole-archive' > /dev/null; then
  9715. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9716. else
  9717. whole_archive_flag_spec_CXX=
  9718. fi
  9719. else
  9720. with_gnu_ld=no
  9721. wlarc=
  9722. # A generic and very simple default shared library creation
  9723. # command for GNU C++ for the case where it uses the native
  9724. # linker, instead of GNU ld. If possible, this setting should
  9725. # overridden to take advantage of the native linker features on
  9726. # the platform it is being used on.
  9727. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9728. fi
  9729. # Commands to make compiler produce verbose output that lists
  9730. # what "hidden" libraries, object files and flags are used when
  9731. # linking a shared library.
  9732. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9733. else
  9734. GXX=no
  9735. with_gnu_ld=no
  9736. wlarc=
  9737. fi
  9738. # PORTME: fill in a description of your system's C++ link characteristics
  9739. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9740. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  9741. ld_shlibs_CXX=yes
  9742. case $host_os in
  9743. aix3*)
  9744. # FIXME: insert proper C++ library support
  9745. ld_shlibs_CXX=no
  9746. ;;
  9747. aix4* | aix5*)
  9748. if test "$host_cpu" = ia64; then
  9749. # On IA64, the linker does run time linking by default, so we don't
  9750. # have to do anything special.
  9751. aix_use_runtimelinking=no
  9752. exp_sym_flag='-Bexport'
  9753. no_entry_flag=""
  9754. else
  9755. aix_use_runtimelinking=no
  9756. # Test if we are trying to use run time linking or normal
  9757. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9758. # need to do runtime linking.
  9759. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  9760. for ld_flag in $LDFLAGS; do
  9761. case $ld_flag in
  9762. *-brtl*)
  9763. aix_use_runtimelinking=yes
  9764. break
  9765. ;;
  9766. esac
  9767. done
  9768. esac
  9769. exp_sym_flag='-bexport'
  9770. no_entry_flag='-bnoentry'
  9771. fi
  9772. # When large executables or shared objects are built, AIX ld can
  9773. # have problems creating the table of contents. If linking a library
  9774. # or program results in "error TOC overflow" add -mminimal-toc to
  9775. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9776. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9777. archive_cmds_CXX=''
  9778. hardcode_direct_CXX=yes
  9779. hardcode_libdir_separator_CXX=':'
  9780. link_all_deplibs_CXX=yes
  9781. if test "$GXX" = yes; then
  9782. case $host_os in aix4.[012]|aix4.[012].*)
  9783. # We only want to do this on AIX 4.2 and lower, the check
  9784. # below for broken collect2 doesn't work under 4.3+
  9785. collect2name=`${CC} -print-prog-name=collect2`
  9786. if test -f "$collect2name" && \
  9787. strings "$collect2name" | grep resolve_lib_name >/dev/null
  9788. then
  9789. # We have reworked collect2
  9790. hardcode_direct_CXX=yes
  9791. else
  9792. # We have old collect2
  9793. hardcode_direct_CXX=unsupported
  9794. # It fails to find uninstalled libraries when the uninstalled
  9795. # path is not listed in the libpath. Setting hardcode_minus_L
  9796. # to unsupported forces relinking
  9797. hardcode_minus_L_CXX=yes
  9798. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9799. hardcode_libdir_separator_CXX=
  9800. fi
  9801. esac
  9802. shared_flag='-shared'
  9803. if test "$aix_use_runtimelinking" = yes; then
  9804. shared_flag="$shared_flag "'${wl}-G'
  9805. fi
  9806. else
  9807. # not using gcc
  9808. if test "$host_cpu" = ia64; then
  9809. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9810. # chokes on -Wl,-G. The following line is correct:
  9811. shared_flag='-G'
  9812. else
  9813. if test "$aix_use_runtimelinking" = yes; then
  9814. shared_flag='${wl}-G'
  9815. else
  9816. shared_flag='${wl}-bM:SRE'
  9817. fi
  9818. fi
  9819. fi
  9820. # It seems that -bexpall does not export symbols beginning with
  9821. # underscore (_), so it is better to generate a list of symbols to export.
  9822. always_export_symbols_CXX=yes
  9823. if test "$aix_use_runtimelinking" = yes; then
  9824. # Warning - without using the other runtime loading flags (-brtl),
  9825. # -berok will link without error, but may produce a broken library.
  9826. allow_undefined_flag_CXX='-berok'
  9827. # Determine the default libpath from the value encoded in an empty executable.
  9828. cat >conftest.$ac_ext <<_ACEOF
  9829. /* confdefs.h. */
  9830. _ACEOF
  9831. cat confdefs.h >>conftest.$ac_ext
  9832. cat >>conftest.$ac_ext <<_ACEOF
  9833. /* end confdefs.h. */
  9834. int
  9835. main ()
  9836. {
  9837. ;
  9838. return 0;
  9839. }
  9840. _ACEOF
  9841. rm -f conftest.$ac_objext conftest$ac_exeext
  9842. if { (ac_try="$ac_link"
  9843. case "(($ac_try" in
  9844. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9845. *) ac_try_echo=$ac_try;;
  9846. esac
  9847. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9848. (eval "$ac_link") 2>conftest.er1
  9849. ac_status=$?
  9850. grep -v '^ *+' conftest.er1 >conftest.err
  9851. rm -f conftest.er1
  9852. cat conftest.err >&5
  9853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9854. (exit $ac_status); } && {
  9855. test -z "$ac_cxx_werror_flag" ||
  9856. test ! -s conftest.err
  9857. } && test -s conftest$ac_exeext &&
  9858. $as_test_x conftest$ac_exeext; then
  9859. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9860. }'`
  9861. # Check for a 64-bit object if we didn't find anything.
  9862. 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; }
  9863. }'`; fi
  9864. else
  9865. echo "$as_me: failed program was:" >&5
  9866. sed 's/^/| /' conftest.$ac_ext >&5
  9867. fi
  9868. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9869. conftest$ac_exeext conftest.$ac_ext
  9870. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9871. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9872. 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"
  9873. else
  9874. if test "$host_cpu" = ia64; then
  9875. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  9876. allow_undefined_flag_CXX="-z nodefs"
  9877. 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"
  9878. else
  9879. # Determine the default libpath from the value encoded in an empty executable.
  9880. cat >conftest.$ac_ext <<_ACEOF
  9881. /* confdefs.h. */
  9882. _ACEOF
  9883. cat confdefs.h >>conftest.$ac_ext
  9884. cat >>conftest.$ac_ext <<_ACEOF
  9885. /* end confdefs.h. */
  9886. int
  9887. main ()
  9888. {
  9889. ;
  9890. return 0;
  9891. }
  9892. _ACEOF
  9893. rm -f conftest.$ac_objext conftest$ac_exeext
  9894. if { (ac_try="$ac_link"
  9895. case "(($ac_try" in
  9896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9897. *) ac_try_echo=$ac_try;;
  9898. esac
  9899. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9900. (eval "$ac_link") 2>conftest.er1
  9901. ac_status=$?
  9902. grep -v '^ *+' conftest.er1 >conftest.err
  9903. rm -f conftest.er1
  9904. cat conftest.err >&5
  9905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9906. (exit $ac_status); } && {
  9907. test -z "$ac_cxx_werror_flag" ||
  9908. test ! -s conftest.err
  9909. } && test -s conftest$ac_exeext &&
  9910. $as_test_x conftest$ac_exeext; then
  9911. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9912. }'`
  9913. # Check for a 64-bit object if we didn't find anything.
  9914. 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; }
  9915. }'`; fi
  9916. else
  9917. echo "$as_me: failed program was:" >&5
  9918. sed 's/^/| /' conftest.$ac_ext >&5
  9919. fi
  9920. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9921. conftest$ac_exeext conftest.$ac_ext
  9922. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9923. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9924. # Warning - without using the other run time loading flags,
  9925. # -berok will link without error, but may produce a broken library.
  9926. no_undefined_flag_CXX=' ${wl}-bernotok'
  9927. allow_undefined_flag_CXX=' ${wl}-berok'
  9928. # -bexpall does not export symbols beginning with underscore (_)
  9929. always_export_symbols_CXX=yes
  9930. # Exported symbols can be pulled into shared objects from archives
  9931. whole_archive_flag_spec_CXX=' '
  9932. archive_cmds_need_lc_CXX=yes
  9933. # This is similar to how AIX traditionally builds it's shared libraries.
  9934. 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'
  9935. fi
  9936. fi
  9937. ;;
  9938. chorus*)
  9939. case $cc_basename in
  9940. *)
  9941. # FIXME: insert proper C++ library support
  9942. ld_shlibs_CXX=no
  9943. ;;
  9944. esac
  9945. ;;
  9946. cygwin* | mingw* | pw32*)
  9947. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  9948. # as there is no search path for DLLs.
  9949. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9950. allow_undefined_flag_CXX=unsupported
  9951. always_export_symbols_CXX=no
  9952. enable_shared_with_static_runtimes_CXX=yes
  9953. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9954. 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'
  9955. # If the export-symbols file already is a .def file (1st line
  9956. # is EXPORTS), use it as is; otherwise, prepend...
  9957. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9958. cp $export_symbols $output_objdir/$soname.def;
  9959. else
  9960. echo EXPORTS > $output_objdir/$soname.def;
  9961. cat $export_symbols >> $output_objdir/$soname.def;
  9962. fi~
  9963. $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'
  9964. else
  9965. ld_shlibs_CXX=no
  9966. fi
  9967. ;;
  9968. darwin* | rhapsody*)
  9969. case "$host_os" in
  9970. rhapsody* | darwin1.[012])
  9971. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  9972. ;;
  9973. *) # Darwin 1.3 on
  9974. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  9975. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9976. else
  9977. case ${MACOSX_DEPLOYMENT_TARGET} in
  9978. 10.[012])
  9979. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9980. ;;
  9981. 10.*)
  9982. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  9983. ;;
  9984. esac
  9985. fi
  9986. ;;
  9987. esac
  9988. archive_cmds_need_lc_CXX=no
  9989. hardcode_direct_CXX=no
  9990. hardcode_automatic_CXX=yes
  9991. hardcode_shlibpath_var_CXX=unsupported
  9992. whole_archive_flag_spec_CXX=''
  9993. link_all_deplibs_CXX=yes
  9994. if test "$GXX" = yes ; then
  9995. lt_int_apple_cc_single_mod=no
  9996. output_verbose_link_cmd='echo'
  9997. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  9998. lt_int_apple_cc_single_mod=yes
  9999. fi
  10000. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10001. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  10002. else
  10003. 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'
  10004. fi
  10005. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10006. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  10007. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10008. 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}'
  10009. else
  10010. 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}'
  10011. fi
  10012. 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}'
  10013. else
  10014. case $cc_basename in
  10015. xlc*)
  10016. output_verbose_link_cmd='echo'
  10017. 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'
  10018. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10019. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  10020. 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}'
  10021. 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}'
  10022. ;;
  10023. *)
  10024. ld_shlibs_CXX=no
  10025. ;;
  10026. esac
  10027. fi
  10028. ;;
  10029. dgux*)
  10030. case $cc_basename in
  10031. ec++*)
  10032. # FIXME: insert proper C++ library support
  10033. ld_shlibs_CXX=no
  10034. ;;
  10035. ghcx*)
  10036. # Green Hills C++ Compiler
  10037. # FIXME: insert proper C++ library support
  10038. ld_shlibs_CXX=no
  10039. ;;
  10040. *)
  10041. # FIXME: insert proper C++ library support
  10042. ld_shlibs_CXX=no
  10043. ;;
  10044. esac
  10045. ;;
  10046. freebsd[12]*)
  10047. # C++ shared libraries reported to be fairly broken before switch to ELF
  10048. ld_shlibs_CXX=no
  10049. ;;
  10050. freebsd-elf*)
  10051. archive_cmds_need_lc_CXX=no
  10052. ;;
  10053. freebsd* | kfreebsd*-gnu | dragonfly*)
  10054. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10055. # conventions
  10056. ld_shlibs_CXX=yes
  10057. ;;
  10058. gnu*)
  10059. ;;
  10060. hpux9*)
  10061. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10062. hardcode_libdir_separator_CXX=:
  10063. export_dynamic_flag_spec_CXX='${wl}-E'
  10064. hardcode_direct_CXX=yes
  10065. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10066. # but as the default
  10067. # location of the library.
  10068. case $cc_basename in
  10069. CC*)
  10070. # FIXME: insert proper C++ library support
  10071. ld_shlibs_CXX=no
  10072. ;;
  10073. aCC*)
  10074. 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'
  10075. # Commands to make compiler produce verbose output that lists
  10076. # what "hidden" libraries, object files and flags are used when
  10077. # linking a shared library.
  10078. #
  10079. # There doesn't appear to be a way to prevent this compiler from
  10080. # explicitly linking system object files so we need to strip them
  10081. # from the output so that they don't get included in the library
  10082. # dependencies.
  10083. 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'
  10084. ;;
  10085. *)
  10086. if test "$GXX" = yes; then
  10087. 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'
  10088. else
  10089. # FIXME: insert proper C++ library support
  10090. ld_shlibs_CXX=no
  10091. fi
  10092. ;;
  10093. esac
  10094. ;;
  10095. hpux10*|hpux11*)
  10096. if test $with_gnu_ld = no; then
  10097. case "$host_cpu" in
  10098. hppa*64*)
  10099. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10100. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  10101. hardcode_libdir_separator_CXX=:
  10102. ;;
  10103. ia64*)
  10104. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10105. ;;
  10106. *)
  10107. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10108. hardcode_libdir_separator_CXX=:
  10109. export_dynamic_flag_spec_CXX='${wl}-E'
  10110. ;;
  10111. esac
  10112. fi
  10113. case "$host_cpu" in
  10114. hppa*64*)
  10115. hardcode_direct_CXX=no
  10116. hardcode_shlibpath_var_CXX=no
  10117. ;;
  10118. ia64*)
  10119. hardcode_direct_CXX=no
  10120. hardcode_shlibpath_var_CXX=no
  10121. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10122. # but as the default
  10123. # location of the library.
  10124. ;;
  10125. *)
  10126. hardcode_direct_CXX=yes
  10127. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10128. # but as the default
  10129. # location of the library.
  10130. ;;
  10131. esac
  10132. case $cc_basename in
  10133. CC*)
  10134. # FIXME: insert proper C++ library support
  10135. ld_shlibs_CXX=no
  10136. ;;
  10137. aCC*)
  10138. case "$host_cpu" in
  10139. hppa*64*|ia64*)
  10140. archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  10141. ;;
  10142. *)
  10143. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10144. ;;
  10145. esac
  10146. # Commands to make compiler produce verbose output that lists
  10147. # what "hidden" libraries, object files and flags are used when
  10148. # linking a shared library.
  10149. #
  10150. # There doesn't appear to be a way to prevent this compiler from
  10151. # explicitly linking system object files so we need to strip them
  10152. # from the output so that they don't get included in the library
  10153. # dependencies.
  10154. 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'
  10155. ;;
  10156. *)
  10157. if test "$GXX" = yes; then
  10158. if test $with_gnu_ld = no; then
  10159. case "$host_cpu" in
  10160. ia64*|hppa*64*)
  10161. archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  10162. ;;
  10163. *)
  10164. 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'
  10165. ;;
  10166. esac
  10167. fi
  10168. else
  10169. # FIXME: insert proper C++ library support
  10170. ld_shlibs_CXX=no
  10171. fi
  10172. ;;
  10173. esac
  10174. ;;
  10175. irix5* | irix6*)
  10176. case $cc_basename in
  10177. CC*)
  10178. # SGI C++
  10179. 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'
  10180. # Archives containing C++ object files must be created using
  10181. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10182. # necessary to make sure instantiated templates are included
  10183. # in the archive.
  10184. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10185. ;;
  10186. *)
  10187. if test "$GXX" = yes; then
  10188. if test "$with_gnu_ld" = no; then
  10189. 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'
  10190. else
  10191. 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'
  10192. fi
  10193. fi
  10194. link_all_deplibs_CXX=yes
  10195. ;;
  10196. esac
  10197. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10198. hardcode_libdir_separator_CXX=:
  10199. ;;
  10200. linux*)
  10201. case $cc_basename in
  10202. KCC*)
  10203. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10204. # KCC will only create a shared library if the output file
  10205. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10206. # to its proper name (with version) after linking.
  10207. 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'
  10208. 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'
  10209. # Commands to make compiler produce verbose output that lists
  10210. # what "hidden" libraries, object files and flags are used when
  10211. # linking a shared library.
  10212. #
  10213. # There doesn't appear to be a way to prevent this compiler from
  10214. # explicitly linking system object files so we need to strip them
  10215. # from the output so that they don't get included in the library
  10216. # dependencies.
  10217. 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'
  10218. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  10219. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10220. # Archives containing C++ object files must be created using
  10221. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10222. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10223. ;;
  10224. icpc*)
  10225. # Intel C++
  10226. with_gnu_ld=yes
  10227. # version 8.0 and above of icpc choke on multiply defined symbols
  10228. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10229. # earlier do not add the objects themselves.
  10230. case `$CC -V 2>&1` in
  10231. *"Version 7."*)
  10232. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10233. 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'
  10234. ;;
  10235. *) # Version 8.0 or newer
  10236. tmp_idyn=
  10237. case $host_cpu in
  10238. ia64*) tmp_idyn=' -i_dynamic';;
  10239. esac
  10240. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10241. 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'
  10242. ;;
  10243. esac
  10244. archive_cmds_need_lc_CXX=no
  10245. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10246. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10247. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10248. ;;
  10249. pgCC*)
  10250. # Portland Group C++ compiler
  10251. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10252. 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'
  10253. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10254. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10255. 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'
  10256. ;;
  10257. cxx*)
  10258. # Compaq C++
  10259. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10260. 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'
  10261. runpath_var=LD_RUN_PATH
  10262. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10263. hardcode_libdir_separator_CXX=:
  10264. # Commands to make compiler produce verbose output that lists
  10265. # what "hidden" libraries, object files and flags are used when
  10266. # linking a shared library.
  10267. #
  10268. # There doesn't appear to be a way to prevent this compiler from
  10269. # explicitly linking system object files so we need to strip them
  10270. # from the output so that they don't get included in the library
  10271. # dependencies.
  10272. 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'
  10273. ;;
  10274. esac
  10275. ;;
  10276. lynxos*)
  10277. # FIXME: insert proper C++ library support
  10278. ld_shlibs_CXX=no
  10279. ;;
  10280. m88k*)
  10281. # FIXME: insert proper C++ library support
  10282. ld_shlibs_CXX=no
  10283. ;;
  10284. mvs*)
  10285. case $cc_basename in
  10286. cxx*)
  10287. # FIXME: insert proper C++ library support
  10288. ld_shlibs_CXX=no
  10289. ;;
  10290. *)
  10291. # FIXME: insert proper C++ library support
  10292. ld_shlibs_CXX=no
  10293. ;;
  10294. esac
  10295. ;;
  10296. netbsd*)
  10297. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10298. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10299. wlarc=
  10300. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10301. hardcode_direct_CXX=yes
  10302. hardcode_shlibpath_var_CXX=no
  10303. fi
  10304. # Workaround some broken pre-1.5 toolchains
  10305. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10306. ;;
  10307. openbsd2*)
  10308. # C++ shared libraries are fairly broken
  10309. ld_shlibs_CXX=no
  10310. ;;
  10311. openbsd*)
  10312. hardcode_direct_CXX=yes
  10313. hardcode_shlibpath_var_CXX=no
  10314. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10315. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10316. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10317. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10318. export_dynamic_flag_spec_CXX='${wl}-E'
  10319. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10320. fi
  10321. output_verbose_link_cmd='echo'
  10322. ;;
  10323. osf3*)
  10324. case $cc_basename in
  10325. KCC*)
  10326. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10327. # KCC will only create a shared library if the output file
  10328. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10329. # to its proper name (with version) after linking.
  10330. 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'
  10331. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10332. hardcode_libdir_separator_CXX=:
  10333. # Archives containing C++ object files must be created using
  10334. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10335. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10336. ;;
  10337. RCC*)
  10338. # Rational C++ 2.4.1
  10339. # FIXME: insert proper C++ library support
  10340. ld_shlibs_CXX=no
  10341. ;;
  10342. cxx*)
  10343. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10344. 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'
  10345. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10346. hardcode_libdir_separator_CXX=:
  10347. # Commands to make compiler produce verbose output that lists
  10348. # what "hidden" libraries, object files and flags are used when
  10349. # linking a shared library.
  10350. #
  10351. # There doesn't appear to be a way to prevent this compiler from
  10352. # explicitly linking system object files so we need to strip them
  10353. # from the output so that they don't get included in the library
  10354. # dependencies.
  10355. 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'
  10356. ;;
  10357. *)
  10358. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10359. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10360. 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'
  10361. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10362. hardcode_libdir_separator_CXX=:
  10363. # Commands to make compiler produce verbose output that lists
  10364. # what "hidden" libraries, object files and flags are used when
  10365. # linking a shared library.
  10366. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10367. else
  10368. # FIXME: insert proper C++ library support
  10369. ld_shlibs_CXX=no
  10370. fi
  10371. ;;
  10372. esac
  10373. ;;
  10374. osf4* | osf5*)
  10375. case $cc_basename in
  10376. KCC*)
  10377. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10378. # KCC will only create a shared library if the output file
  10379. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10380. # to its proper name (with version) after linking.
  10381. 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'
  10382. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10383. hardcode_libdir_separator_CXX=:
  10384. # Archives containing C++ object files must be created using
  10385. # the KAI C++ compiler.
  10386. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  10387. ;;
  10388. RCC*)
  10389. # Rational C++ 2.4.1
  10390. # FIXME: insert proper C++ library support
  10391. ld_shlibs_CXX=no
  10392. ;;
  10393. cxx*)
  10394. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10395. 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'
  10396. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10397. echo "-hidden">> $lib.exp~
  10398. $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~
  10399. $rm $lib.exp'
  10400. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10401. hardcode_libdir_separator_CXX=:
  10402. # Commands to make compiler produce verbose output that lists
  10403. # what "hidden" libraries, object files and flags are used when
  10404. # linking a shared library.
  10405. #
  10406. # There doesn't appear to be a way to prevent this compiler from
  10407. # explicitly linking system object files so we need to strip them
  10408. # from the output so that they don't get included in the library
  10409. # dependencies.
  10410. 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'
  10411. ;;
  10412. *)
  10413. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10414. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10415. 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'
  10416. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10417. hardcode_libdir_separator_CXX=:
  10418. # Commands to make compiler produce verbose output that lists
  10419. # what "hidden" libraries, object files and flags are used when
  10420. # linking a shared library.
  10421. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10422. else
  10423. # FIXME: insert proper C++ library support
  10424. ld_shlibs_CXX=no
  10425. fi
  10426. ;;
  10427. esac
  10428. ;;
  10429. psos*)
  10430. # FIXME: insert proper C++ library support
  10431. ld_shlibs_CXX=no
  10432. ;;
  10433. sco*)
  10434. archive_cmds_need_lc_CXX=no
  10435. case $cc_basename in
  10436. CC*)
  10437. # FIXME: insert proper C++ library support
  10438. ld_shlibs_CXX=no
  10439. ;;
  10440. *)
  10441. # FIXME: insert proper C++ library support
  10442. ld_shlibs_CXX=no
  10443. ;;
  10444. esac
  10445. ;;
  10446. sunos4*)
  10447. case $cc_basename in
  10448. CC*)
  10449. # Sun C++ 4.x
  10450. # FIXME: insert proper C++ library support
  10451. ld_shlibs_CXX=no
  10452. ;;
  10453. lcc*)
  10454. # Lucid
  10455. # FIXME: insert proper C++ library support
  10456. ld_shlibs_CXX=no
  10457. ;;
  10458. *)
  10459. # FIXME: insert proper C++ library support
  10460. ld_shlibs_CXX=no
  10461. ;;
  10462. esac
  10463. ;;
  10464. solaris*)
  10465. case $cc_basename in
  10466. CC*)
  10467. # Sun C++ 4.2, 5.x and Centerline C++
  10468. no_undefined_flag_CXX=' -zdefs'
  10469. archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10470. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10471. $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'
  10472. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10473. hardcode_shlibpath_var_CXX=no
  10474. case $host_os in
  10475. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10476. *)
  10477. # The C++ compiler is used as linker so we must use $wl
  10478. # flag to pass the commands to the underlying system
  10479. # linker. We must also pass each convience library through
  10480. # to the system linker between allextract/defaultextract.
  10481. # The C++ compiler will combine linker options so we
  10482. # cannot just pass the convience library names through
  10483. # without $wl.
  10484. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10485. 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'
  10486. ;;
  10487. esac
  10488. link_all_deplibs_CXX=yes
  10489. # Commands to make compiler produce verbose output that lists
  10490. # what "hidden" libraries, object files and flags are used when
  10491. # linking a shared library.
  10492. #
  10493. # There doesn't appear to be a way to prevent this compiler from
  10494. # explicitly linking system object files so we need to strip them
  10495. # from the output so that they don't get included in the library
  10496. # dependencies.
  10497. 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'
  10498. # Archives containing C++ object files must be created using
  10499. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10500. # necessary to make sure instantiated templates are included
  10501. # in the archive.
  10502. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10503. ;;
  10504. gcx*)
  10505. # Green Hills C++ Compiler
  10506. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10507. # The C++ compiler must be used to create the archive.
  10508. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10509. ;;
  10510. *)
  10511. # GNU C++ compiler with Solaris linker
  10512. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10513. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10514. if $CC --version | grep -v '^2\.7' > /dev/null; then
  10515. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10516. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10517. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10518. # Commands to make compiler produce verbose output that lists
  10519. # what "hidden" libraries, object files and flags are used when
  10520. # linking a shared library.
  10521. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10522. else
  10523. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10524. # platform.
  10525. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10526. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10527. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10528. # Commands to make compiler produce verbose output that lists
  10529. # what "hidden" libraries, object files and flags are used when
  10530. # linking a shared library.
  10531. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10532. fi
  10533. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10534. fi
  10535. ;;
  10536. esac
  10537. ;;
  10538. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  10539. archive_cmds_need_lc_CXX=no
  10540. ;;
  10541. tandem*)
  10542. case $cc_basename in
  10543. NCC*)
  10544. # NonStop-UX NCC 3.20
  10545. # FIXME: insert proper C++ library support
  10546. ld_shlibs_CXX=no
  10547. ;;
  10548. *)
  10549. # FIXME: insert proper C++ library support
  10550. ld_shlibs_CXX=no
  10551. ;;
  10552. esac
  10553. ;;
  10554. vxworks*)
  10555. # FIXME: insert proper C++ library support
  10556. ld_shlibs_CXX=no
  10557. ;;
  10558. *)
  10559. # FIXME: insert proper C++ library support
  10560. ld_shlibs_CXX=no
  10561. ;;
  10562. esac
  10563. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10564. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  10565. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10566. GCC_CXX="$GXX"
  10567. LD_CXX="$LD"
  10568. cat > conftest.$ac_ext <<EOF
  10569. class Foo
  10570. {
  10571. public:
  10572. Foo (void) { a = 0; }
  10573. private:
  10574. int a;
  10575. };
  10576. EOF
  10577. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10578. (eval $ac_compile) 2>&5
  10579. ac_status=$?
  10580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10581. (exit $ac_status); }; then
  10582. # Parse the compiler output and extract the necessary
  10583. # objects, libraries and library flags.
  10584. # Sentinel used to keep track of whether or not we are before
  10585. # the conftest object file.
  10586. pre_test_object_deps_done=no
  10587. # The `*' in the case matches for architectures that use `case' in
  10588. # $output_verbose_cmd can trigger glob expansion during the loop
  10589. # eval without this substitution.
  10590. output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  10591. for p in `eval $output_verbose_link_cmd`; do
  10592. case $p in
  10593. -L* | -R* | -l*)
  10594. # Some compilers place space between "-{L,R}" and the path.
  10595. # Remove the space.
  10596. if test $p = "-L" \
  10597. || test $p = "-R"; then
  10598. prev=$p
  10599. continue
  10600. else
  10601. prev=
  10602. fi
  10603. if test "$pre_test_object_deps_done" = no; then
  10604. case $p in
  10605. -L* | -R*)
  10606. # Internal compiler library paths should come after those
  10607. # provided the user. The postdeps already come after the
  10608. # user supplied libs so there is no need to process them.
  10609. if test -z "$compiler_lib_search_path_CXX"; then
  10610. compiler_lib_search_path_CXX="${prev}${p}"
  10611. else
  10612. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10613. fi
  10614. ;;
  10615. # The "-l" case would never come before the object being
  10616. # linked, so don't bother handling this case.
  10617. esac
  10618. else
  10619. if test -z "$postdeps_CXX"; then
  10620. postdeps_CXX="${prev}${p}"
  10621. else
  10622. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10623. fi
  10624. fi
  10625. ;;
  10626. *.$objext)
  10627. # This assumes that the test object file only shows up
  10628. # once in the compiler output.
  10629. if test "$p" = "conftest.$objext"; then
  10630. pre_test_object_deps_done=yes
  10631. continue
  10632. fi
  10633. if test "$pre_test_object_deps_done" = no; then
  10634. if test -z "$predep_objects_CXX"; then
  10635. predep_objects_CXX="$p"
  10636. else
  10637. predep_objects_CXX="$predep_objects_CXX $p"
  10638. fi
  10639. else
  10640. if test -z "$postdep_objects_CXX"; then
  10641. postdep_objects_CXX="$p"
  10642. else
  10643. postdep_objects_CXX="$postdep_objects_CXX $p"
  10644. fi
  10645. fi
  10646. ;;
  10647. *) ;; # Ignore the rest.
  10648. esac
  10649. done
  10650. # Clean up.
  10651. rm -f a.out a.exe
  10652. else
  10653. echo "libtool.m4: error: problem compiling CXX test program"
  10654. fi
  10655. $rm -f confest.$objext
  10656. case " $postdeps_CXX " in
  10657. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10658. esac
  10659. lt_prog_compiler_wl_CXX=
  10660. lt_prog_compiler_pic_CXX=
  10661. lt_prog_compiler_static_CXX=
  10662. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  10663. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  10664. # C++ specific cases for pic, static, wl, etc.
  10665. if test "$GXX" = yes; then
  10666. lt_prog_compiler_wl_CXX='-Wl,'
  10667. lt_prog_compiler_static_CXX='-static'
  10668. case $host_os in
  10669. aix*)
  10670. # All AIX code is PIC.
  10671. if test "$host_cpu" = ia64; then
  10672. # AIX 5 now supports IA64 processor
  10673. lt_prog_compiler_static_CXX='-Bstatic'
  10674. fi
  10675. ;;
  10676. amigaos*)
  10677. # FIXME: we need at least 68020 code to build shared libraries, but
  10678. # adding the `-m68020' flag to GCC prevents building anything better,
  10679. # like `-m68040'.
  10680. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  10681. ;;
  10682. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10683. # PIC is the default for these OSes.
  10684. ;;
  10685. mingw* | os2* | pw32*)
  10686. # This hack is so that the source file can tell whether it is being
  10687. # built for inclusion in a dll (and should export symbols for example).
  10688. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  10689. ;;
  10690. darwin* | rhapsody*)
  10691. # PIC is the default on this platform
  10692. # Common symbols not allowed in MH_DYLIB files
  10693. lt_prog_compiler_pic_CXX='-fno-common'
  10694. ;;
  10695. *djgpp*)
  10696. # DJGPP does not support shared libraries at all
  10697. lt_prog_compiler_pic_CXX=
  10698. ;;
  10699. sysv4*MP*)
  10700. if test -d /usr/nec; then
  10701. lt_prog_compiler_pic_CXX=-Kconform_pic
  10702. fi
  10703. ;;
  10704. hpux*)
  10705. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10706. # not for PA HP-UX.
  10707. case "$host_cpu" in
  10708. hppa*64*|ia64*)
  10709. ;;
  10710. *)
  10711. lt_prog_compiler_pic_CXX='-fPIC'
  10712. ;;
  10713. esac
  10714. ;;
  10715. *)
  10716. lt_prog_compiler_pic_CXX='-fPIC'
  10717. ;;
  10718. esac
  10719. else
  10720. case $host_os in
  10721. aix4* | aix5*)
  10722. # All AIX code is PIC.
  10723. if test "$host_cpu" = ia64; then
  10724. # AIX 5 now supports IA64 processor
  10725. lt_prog_compiler_static_CXX='-Bstatic'
  10726. else
  10727. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  10728. fi
  10729. ;;
  10730. chorus*)
  10731. case $cc_basename in
  10732. cxch68*)
  10733. # Green Hills C++ Compiler
  10734. # _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"
  10735. ;;
  10736. esac
  10737. ;;
  10738. darwin*)
  10739. # PIC is the default on this platform
  10740. # Common symbols not allowed in MH_DYLIB files
  10741. case $cc_basename in
  10742. xlc*)
  10743. lt_prog_compiler_pic_CXX='-qnocommon'
  10744. lt_prog_compiler_wl_CXX='-Wl,'
  10745. ;;
  10746. esac
  10747. ;;
  10748. dgux*)
  10749. case $cc_basename in
  10750. ec++*)
  10751. lt_prog_compiler_pic_CXX='-KPIC'
  10752. ;;
  10753. ghcx*)
  10754. # Green Hills C++ Compiler
  10755. lt_prog_compiler_pic_CXX='-pic'
  10756. ;;
  10757. *)
  10758. ;;
  10759. esac
  10760. ;;
  10761. freebsd* | kfreebsd*-gnu | dragonfly*)
  10762. # FreeBSD uses GNU C++
  10763. ;;
  10764. hpux9* | hpux10* | hpux11*)
  10765. case $cc_basename in
  10766. CC*)
  10767. lt_prog_compiler_wl_CXX='-Wl,'
  10768. lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  10769. if test "$host_cpu" != ia64; then
  10770. lt_prog_compiler_pic_CXX='+Z'
  10771. fi
  10772. ;;
  10773. aCC*)
  10774. lt_prog_compiler_wl_CXX='-Wl,'
  10775. lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  10776. case "$host_cpu" in
  10777. hppa*64*|ia64*)
  10778. # +Z the default
  10779. ;;
  10780. *)
  10781. lt_prog_compiler_pic_CXX='+Z'
  10782. ;;
  10783. esac
  10784. ;;
  10785. *)
  10786. ;;
  10787. esac
  10788. ;;
  10789. irix5* | irix6* | nonstopux*)
  10790. case $cc_basename in
  10791. CC*)
  10792. lt_prog_compiler_wl_CXX='-Wl,'
  10793. lt_prog_compiler_static_CXX='-non_shared'
  10794. # CC pic flag -KPIC is the default.
  10795. ;;
  10796. *)
  10797. ;;
  10798. esac
  10799. ;;
  10800. linux*)
  10801. case $cc_basename in
  10802. KCC*)
  10803. # KAI C++ Compiler
  10804. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10805. lt_prog_compiler_pic_CXX='-fPIC'
  10806. ;;
  10807. icpc* | ecpc*)
  10808. # Intel C++
  10809. lt_prog_compiler_wl_CXX='-Wl,'
  10810. lt_prog_compiler_pic_CXX='-KPIC'
  10811. lt_prog_compiler_static_CXX='-static'
  10812. ;;
  10813. pgCC*)
  10814. # Portland Group C++ compiler.
  10815. lt_prog_compiler_wl_CXX='-Wl,'
  10816. lt_prog_compiler_pic_CXX='-fpic'
  10817. lt_prog_compiler_static_CXX='-static'
  10818. ;;
  10819. cxx*)
  10820. # Compaq C++
  10821. # Make sure the PIC flag is empty. It appears that all Alpha
  10822. # Linux and Compaq Tru64 Unix objects are PIC.
  10823. lt_prog_compiler_pic_CXX=
  10824. lt_prog_compiler_static_CXX='-non_shared'
  10825. ;;
  10826. *)
  10827. ;;
  10828. esac
  10829. ;;
  10830. lynxos*)
  10831. ;;
  10832. m88k*)
  10833. ;;
  10834. mvs*)
  10835. case $cc_basename in
  10836. cxx*)
  10837. lt_prog_compiler_pic_CXX='-W c,exportall'
  10838. ;;
  10839. *)
  10840. ;;
  10841. esac
  10842. ;;
  10843. netbsd*)
  10844. ;;
  10845. osf3* | osf4* | osf5*)
  10846. case $cc_basename in
  10847. KCC*)
  10848. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10849. ;;
  10850. RCC*)
  10851. # Rational C++ 2.4.1
  10852. lt_prog_compiler_pic_CXX='-pic'
  10853. ;;
  10854. cxx*)
  10855. # Digital/Compaq C++
  10856. lt_prog_compiler_wl_CXX='-Wl,'
  10857. # Make sure the PIC flag is empty. It appears that all Alpha
  10858. # Linux and Compaq Tru64 Unix objects are PIC.
  10859. lt_prog_compiler_pic_CXX=
  10860. lt_prog_compiler_static_CXX='-non_shared'
  10861. ;;
  10862. *)
  10863. ;;
  10864. esac
  10865. ;;
  10866. psos*)
  10867. ;;
  10868. sco*)
  10869. case $cc_basename in
  10870. CC*)
  10871. lt_prog_compiler_pic_CXX='-fPIC'
  10872. ;;
  10873. *)
  10874. ;;
  10875. esac
  10876. ;;
  10877. solaris*)
  10878. case $cc_basename in
  10879. CC*)
  10880. # Sun C++ 4.2, 5.x and Centerline C++
  10881. lt_prog_compiler_pic_CXX='-KPIC'
  10882. lt_prog_compiler_static_CXX='-Bstatic'
  10883. lt_prog_compiler_wl_CXX='-Qoption ld '
  10884. ;;
  10885. gcx*)
  10886. # Green Hills C++ Compiler
  10887. lt_prog_compiler_pic_CXX='-PIC'
  10888. ;;
  10889. *)
  10890. ;;
  10891. esac
  10892. ;;
  10893. sunos4*)
  10894. case $cc_basename in
  10895. CC*)
  10896. # Sun C++ 4.x
  10897. lt_prog_compiler_pic_CXX='-pic'
  10898. lt_prog_compiler_static_CXX='-Bstatic'
  10899. ;;
  10900. lcc*)
  10901. # Lucid
  10902. lt_prog_compiler_pic_CXX='-pic'
  10903. ;;
  10904. *)
  10905. ;;
  10906. esac
  10907. ;;
  10908. tandem*)
  10909. case $cc_basename in
  10910. NCC*)
  10911. # NonStop-UX NCC 3.20
  10912. lt_prog_compiler_pic_CXX='-KPIC'
  10913. ;;
  10914. *)
  10915. ;;
  10916. esac
  10917. ;;
  10918. unixware*)
  10919. ;;
  10920. vxworks*)
  10921. ;;
  10922. *)
  10923. lt_prog_compiler_can_build_shared_CXX=no
  10924. ;;
  10925. esac
  10926. fi
  10927. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  10928. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  10929. #
  10930. # Check to make sure the PIC flag actually works.
  10931. #
  10932. if test -n "$lt_prog_compiler_pic_CXX"; then
  10933. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  10934. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  10935. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  10936. echo $ECHO_N "(cached) $ECHO_C" >&6
  10937. else
  10938. lt_prog_compiler_pic_works_CXX=no
  10939. ac_outfile=conftest.$ac_objext
  10940. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10941. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  10942. # Insert the option either (1) after the last *FLAGS variable, or
  10943. # (2) before a word containing "conftest.", or (3) at the end.
  10944. # Note that $ac_compile itself does not contain backslashes and begins
  10945. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10946. # The option is referenced via a variable to avoid confusing sed.
  10947. lt_compile=`echo "$ac_compile" | $SED \
  10948. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  10949. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10950. -e 's:$: $lt_compiler_flag:'`
  10951. (eval echo "\"\$as_me:12216: $lt_compile\"" >&5)
  10952. (eval "$lt_compile" 2>conftest.err)
  10953. ac_status=$?
  10954. cat conftest.err >&5
  10955. echo "$as_me:12220: \$? = $ac_status" >&5
  10956. if (exit $ac_status) && test -s "$ac_outfile"; then
  10957. # The compiler can only warn and ignore the option if not recognized
  10958. # So say no if there are warnings other than the usual output.
  10959. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  10960. $SED '/^$/d' conftest.err >conftest.er2
  10961. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  10962. lt_prog_compiler_pic_works_CXX=yes
  10963. fi
  10964. fi
  10965. $rm conftest*
  10966. fi
  10967. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  10968. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
  10969. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  10970. case $lt_prog_compiler_pic_CXX in
  10971. "" | " "*) ;;
  10972. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  10973. esac
  10974. else
  10975. lt_prog_compiler_pic_CXX=
  10976. lt_prog_compiler_can_build_shared_CXX=no
  10977. fi
  10978. fi
  10979. case "$host_os" in
  10980. # For platforms which do not support PIC, -DPIC is meaningless:
  10981. *djgpp*)
  10982. lt_prog_compiler_pic_CXX=
  10983. ;;
  10984. *)
  10985. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  10986. ;;
  10987. esac
  10988. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  10989. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  10990. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  10991. echo $ECHO_N "(cached) $ECHO_C" >&6
  10992. else
  10993. lt_cv_prog_compiler_c_o_CXX=no
  10994. $rm -r conftest 2>/dev/null
  10995. mkdir conftest
  10996. cd conftest
  10997. mkdir out
  10998. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10999. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11000. # Insert the option either (1) after the last *FLAGS variable, or
  11001. # (2) before a word containing "conftest.", or (3) at the end.
  11002. # Note that $ac_compile itself does not contain backslashes and begins
  11003. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11004. lt_compile=`echo "$ac_compile" | $SED \
  11005. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  11006. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11007. -e 's:$: $lt_compiler_flag:'`
  11008. (eval echo "\"\$as_me:12278: $lt_compile\"" >&5)
  11009. (eval "$lt_compile" 2>out/conftest.err)
  11010. ac_status=$?
  11011. cat out/conftest.err >&5
  11012. echo "$as_me:12282: \$? = $ac_status" >&5
  11013. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11014. then
  11015. # The compiler can only warn and ignore the option if not recognized
  11016. # So say no if there are warnings
  11017. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  11018. $SED '/^$/d' out/conftest.err >out/conftest.er2
  11019. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11020. lt_cv_prog_compiler_c_o_CXX=yes
  11021. fi
  11022. fi
  11023. chmod u+w .
  11024. $rm conftest*
  11025. # SGI C++ compiler will create directory out/ii_files/ for
  11026. # template instantiation
  11027. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  11028. $rm out/* && rmdir out
  11029. cd ..
  11030. rmdir conftest
  11031. $rm conftest*
  11032. fi
  11033. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11034. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11035. hard_links="nottested"
  11036. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11037. # do not overwrite the value of need_locks provided by the user
  11038. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11039. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  11040. hard_links=yes
  11041. $rm conftest*
  11042. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11043. touch conftest.a
  11044. ln conftest.a conftest.b 2>&5 || hard_links=no
  11045. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11046. { echo "$as_me:$LINENO: result: $hard_links" >&5
  11047. echo "${ECHO_T}$hard_links" >&6; }
  11048. if test "$hard_links" = no; then
  11049. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11050. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11051. need_locks=warn
  11052. fi
  11053. else
  11054. need_locks=no
  11055. fi
  11056. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11057. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  11058. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11059. case $host_os in
  11060. aix4* | aix5*)
  11061. # If we're using GNU nm, then we don't want the "-C" option.
  11062. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11063. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11064. 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'
  11065. else
  11066. 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'
  11067. fi
  11068. ;;
  11069. pw32*)
  11070. export_symbols_cmds_CXX="$ltdll_cmds"
  11071. ;;
  11072. cygwin* | mingw*)
  11073. 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'
  11074. ;;
  11075. *)
  11076. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11077. ;;
  11078. esac
  11079. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11080. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  11081. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11082. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11083. if test "$GCC" = yes; then
  11084. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11085. fi
  11086. #
  11087. # Do we need to explicitly link libc?
  11088. #
  11089. case "x$archive_cmds_need_lc_CXX" in
  11090. x|xyes)
  11091. # Assume -lc should be added
  11092. archive_cmds_need_lc_CXX=yes
  11093. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11094. case $archive_cmds_CXX in
  11095. *'~'*)
  11096. # FIXME: we may have to deal with multi-command sequences.
  11097. ;;
  11098. '$CC '*)
  11099. # Test whether the compiler implicitly links with -lc since on some
  11100. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11101. # to ld, don't add -lc before -lgcc.
  11102. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  11103. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  11104. $rm conftest*
  11105. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11106. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11107. (eval $ac_compile) 2>&5
  11108. ac_status=$?
  11109. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11110. (exit $ac_status); } 2>conftest.err; then
  11111. soname=conftest
  11112. lib=conftest
  11113. libobjs=conftest.$ac_objext
  11114. deplibs=
  11115. wl=$lt_prog_compiler_wl_CXX
  11116. compiler_flags=-v
  11117. linker_flags=-v
  11118. verstring=
  11119. output_objdir=.
  11120. libname=conftest
  11121. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11122. allow_undefined_flag_CXX=
  11123. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  11124. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11125. ac_status=$?
  11126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11127. (exit $ac_status); }
  11128. then
  11129. archive_cmds_need_lc_CXX=no
  11130. else
  11131. archive_cmds_need_lc_CXX=yes
  11132. fi
  11133. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11134. else
  11135. cat conftest.err 1>&5
  11136. fi
  11137. $rm conftest*
  11138. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  11139. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  11140. ;;
  11141. esac
  11142. fi
  11143. ;;
  11144. esac
  11145. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  11146. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  11147. library_names_spec=
  11148. libname_spec='lib$name'
  11149. soname_spec=
  11150. shrext_cmds=".so"
  11151. postinstall_cmds=
  11152. postuninstall_cmds=
  11153. finish_cmds=
  11154. finish_eval=
  11155. shlibpath_var=
  11156. shlibpath_overrides_runpath=unknown
  11157. version_type=none
  11158. dynamic_linker="$host_os ld.so"
  11159. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11160. if test "$GCC" = yes; then
  11161. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11162. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  11163. # if the path contains ";" then we assume it to be the separator
  11164. # otherwise default to the standard path separator (i.e. ":") - it is
  11165. # assumed that no part of a normal pathname contains ";" but that should
  11166. # okay in the real world where ";" in dirpaths is itself problematic.
  11167. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11168. else
  11169. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11170. fi
  11171. else
  11172. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11173. fi
  11174. need_lib_prefix=unknown
  11175. hardcode_into_libs=no
  11176. # when you set need_version to no, make sure it does not cause -set_version
  11177. # flags to be left without arguments
  11178. need_version=unknown
  11179. case $host_os in
  11180. aix3*)
  11181. version_type=linux
  11182. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11183. shlibpath_var=LIBPATH
  11184. # AIX 3 has no versioning support, so we append a major version to the name.
  11185. soname_spec='${libname}${release}${shared_ext}$major'
  11186. ;;
  11187. aix4* | aix5*)
  11188. version_type=linux
  11189. need_lib_prefix=no
  11190. need_version=no
  11191. hardcode_into_libs=yes
  11192. if test "$host_cpu" = ia64; then
  11193. # AIX 5 supports IA64
  11194. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11195. shlibpath_var=LD_LIBRARY_PATH
  11196. else
  11197. # With GCC up to 2.95.x, collect2 would create an import file
  11198. # for dependence libraries. The import file would start with
  11199. # the line `#! .'. This would cause the generated library to
  11200. # depend on `.', always an invalid library. This was fixed in
  11201. # development snapshots of GCC prior to 3.0.
  11202. case $host_os in
  11203. aix4 | aix4.[01] | aix4.[01].*)
  11204. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11205. echo ' yes '
  11206. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  11207. :
  11208. else
  11209. can_build_shared=no
  11210. fi
  11211. ;;
  11212. esac
  11213. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11214. # soname into executable. Probably we can add versioning support to
  11215. # collect2, so additional links can be useful in future.
  11216. if test "$aix_use_runtimelinking" = yes; then
  11217. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11218. # instead of lib<name>.a to let people know that these are not
  11219. # typical AIX shared libraries.
  11220. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11221. else
  11222. # We preserve .a as extension for shared libraries through AIX4.2
  11223. # and later when we are not doing run time linking.
  11224. library_names_spec='${libname}${release}.a $libname.a'
  11225. soname_spec='${libname}${release}${shared_ext}$major'
  11226. fi
  11227. shlibpath_var=LIBPATH
  11228. fi
  11229. ;;
  11230. amigaos*)
  11231. library_names_spec='$libname.ixlibrary $libname.a'
  11232. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11233. 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'
  11234. ;;
  11235. beos*)
  11236. library_names_spec='${libname}${shared_ext}'
  11237. dynamic_linker="$host_os ld.so"
  11238. shlibpath_var=LIBRARY_PATH
  11239. ;;
  11240. bsdi[45]*)
  11241. version_type=linux
  11242. need_version=no
  11243. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11244. soname_spec='${libname}${release}${shared_ext}$major'
  11245. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11246. shlibpath_var=LD_LIBRARY_PATH
  11247. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11248. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11249. # the default ld.so.conf also contains /usr/contrib/lib and
  11250. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11251. # libtool to hard-code these into programs
  11252. ;;
  11253. cygwin* | mingw* | pw32*)
  11254. version_type=windows
  11255. shrext_cmds=".dll"
  11256. need_version=no
  11257. need_lib_prefix=no
  11258. case $GCC,$host_os in
  11259. yes,cygwin* | yes,mingw* | yes,pw32*)
  11260. library_names_spec='$libname.dll.a'
  11261. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11262. postinstall_cmds='base_file=`basename \${file}`~
  11263. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  11264. dldir=$destdir/`dirname \$dlpath`~
  11265. test -d \$dldir || mkdir -p \$dldir~
  11266. $install_prog $dir/$dlname \$dldir/$dlname'
  11267. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11268. dlpath=$dir/\$dldll~
  11269. $rm \$dlpath'
  11270. shlibpath_overrides_runpath=yes
  11271. case $host_os in
  11272. cygwin*)
  11273. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11274. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11275. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11276. ;;
  11277. mingw*)
  11278. # MinGW DLLs use traditional 'lib' prefix
  11279. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11280. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11281. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  11282. # It is most probably a Windows format PATH printed by
  11283. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11284. # path with ; separators, and with drive letters. We can handle the
  11285. # drive letters (cygwin fileutils understands them), so leave them,
  11286. # especially as we might pass files found there to a mingw objdump,
  11287. # which wouldn't understand a cygwinified path. Ahh.
  11288. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11289. else
  11290. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11291. fi
  11292. ;;
  11293. pw32*)
  11294. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11295. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11296. ;;
  11297. esac
  11298. ;;
  11299. *)
  11300. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11301. ;;
  11302. esac
  11303. dynamic_linker='Win32 ld.exe'
  11304. # FIXME: first we should search . and the directory the executable is in
  11305. shlibpath_var=PATH
  11306. ;;
  11307. darwin* | rhapsody*)
  11308. dynamic_linker="$host_os dyld"
  11309. version_type=darwin
  11310. need_lib_prefix=no
  11311. need_version=no
  11312. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11313. soname_spec='${libname}${release}${major}$shared_ext'
  11314. shlibpath_overrides_runpath=yes
  11315. shlibpath_var=DYLD_LIBRARY_PATH
  11316. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  11317. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  11318. if test "$GCC" = yes; then
  11319. 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"`
  11320. else
  11321. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  11322. fi
  11323. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11324. ;;
  11325. dgux*)
  11326. version_type=linux
  11327. need_lib_prefix=no
  11328. need_version=no
  11329. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11330. soname_spec='${libname}${release}${shared_ext}$major'
  11331. shlibpath_var=LD_LIBRARY_PATH
  11332. ;;
  11333. freebsd1*)
  11334. dynamic_linker=no
  11335. ;;
  11336. kfreebsd*-gnu)
  11337. version_type=linux
  11338. need_lib_prefix=no
  11339. need_version=no
  11340. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11341. soname_spec='${libname}${release}${shared_ext}$major'
  11342. shlibpath_var=LD_LIBRARY_PATH
  11343. shlibpath_overrides_runpath=no
  11344. hardcode_into_libs=yes
  11345. dynamic_linker='GNU ld.so'
  11346. ;;
  11347. freebsd* | dragonfly*)
  11348. # DragonFly does not have aout. When/if they implement a new
  11349. # versioning mechanism, adjust this.
  11350. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  11351. version_type=freebsd-$objformat
  11352. case $version_type in
  11353. freebsd-elf*)
  11354. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11355. need_version=no
  11356. need_lib_prefix=no
  11357. ;;
  11358. freebsd-*)
  11359. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11360. need_version=yes
  11361. ;;
  11362. esac
  11363. shlibpath_var=LD_LIBRARY_PATH
  11364. case $host_os in
  11365. freebsd2*)
  11366. shlibpath_overrides_runpath=yes
  11367. ;;
  11368. freebsd3.[01]* | freebsdelf3.[01]*)
  11369. shlibpath_overrides_runpath=yes
  11370. hardcode_into_libs=yes
  11371. ;;
  11372. *) # from 3.2 on
  11373. shlibpath_overrides_runpath=no
  11374. hardcode_into_libs=yes
  11375. ;;
  11376. esac
  11377. ;;
  11378. gnu*)
  11379. version_type=linux
  11380. need_lib_prefix=no
  11381. need_version=no
  11382. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11383. soname_spec='${libname}${release}${shared_ext}$major'
  11384. shlibpath_var=LD_LIBRARY_PATH
  11385. hardcode_into_libs=yes
  11386. ;;
  11387. hpux9* | hpux10* | hpux11*)
  11388. # Give a soname corresponding to the major version so that dld.sl refuses to
  11389. # link against other versions.
  11390. version_type=sunos
  11391. need_lib_prefix=no
  11392. need_version=no
  11393. case "$host_cpu" in
  11394. ia64*)
  11395. shrext_cmds='.so'
  11396. hardcode_into_libs=yes
  11397. dynamic_linker="$host_os dld.so"
  11398. shlibpath_var=LD_LIBRARY_PATH
  11399. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11400. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11401. soname_spec='${libname}${release}${shared_ext}$major'
  11402. if test "X$HPUX_IA64_MODE" = X32; then
  11403. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11404. else
  11405. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11406. fi
  11407. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11408. ;;
  11409. hppa*64*)
  11410. shrext_cmds='.sl'
  11411. hardcode_into_libs=yes
  11412. dynamic_linker="$host_os dld.sl"
  11413. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11414. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11415. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11416. soname_spec='${libname}${release}${shared_ext}$major'
  11417. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11418. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11419. ;;
  11420. *)
  11421. shrext_cmds='.sl'
  11422. dynamic_linker="$host_os dld.sl"
  11423. shlibpath_var=SHLIB_PATH
  11424. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11425. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11426. soname_spec='${libname}${release}${shared_ext}$major'
  11427. ;;
  11428. esac
  11429. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11430. postinstall_cmds='chmod 555 $lib'
  11431. ;;
  11432. irix5* | irix6* | nonstopux*)
  11433. case $host_os in
  11434. nonstopux*) version_type=nonstopux ;;
  11435. *)
  11436. if test "$lt_cv_prog_gnu_ld" = yes; then
  11437. version_type=linux
  11438. else
  11439. version_type=irix
  11440. fi ;;
  11441. esac
  11442. need_lib_prefix=no
  11443. need_version=no
  11444. soname_spec='${libname}${release}${shared_ext}$major'
  11445. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11446. case $host_os in
  11447. irix5* | nonstopux*)
  11448. libsuff= shlibsuff=
  11449. ;;
  11450. *)
  11451. case $LD in # libtool.m4 will add one of these switches to LD
  11452. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11453. libsuff= shlibsuff= libmagic=32-bit;;
  11454. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11455. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11456. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11457. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11458. *) libsuff= shlibsuff= libmagic=never-match;;
  11459. esac
  11460. ;;
  11461. esac
  11462. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11463. shlibpath_overrides_runpath=no
  11464. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11465. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11466. hardcode_into_libs=yes
  11467. ;;
  11468. # No shared lib support for Linux oldld, aout, or coff.
  11469. linux*oldld* | linux*aout* | linux*coff*)
  11470. dynamic_linker=no
  11471. ;;
  11472. # This must be Linux ELF.
  11473. linux*)
  11474. version_type=linux
  11475. need_lib_prefix=no
  11476. need_version=no
  11477. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11478. soname_spec='${libname}${release}${shared_ext}$major'
  11479. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11480. shlibpath_var=LD_LIBRARY_PATH
  11481. shlibpath_overrides_runpath=no
  11482. # This implies no fast_install, which is unacceptable.
  11483. # Some rework will be needed to allow for fast_install
  11484. # before this can be enabled.
  11485. hardcode_into_libs=yes
  11486. # Append ld.so.conf contents to the search path
  11487. if test -f /etc/ld.so.conf; then
  11488. 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' ' '`
  11489. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11490. fi
  11491. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11492. # powerpc, because MkLinux only supported shared libraries with the
  11493. # GNU dynamic linker. Since this was broken with cross compilers,
  11494. # most powerpc-linux boxes support dynamic linking these days and
  11495. # people can always --disable-shared, the test was removed, and we
  11496. # assume the GNU/Linux dynamic linker is in use.
  11497. dynamic_linker='GNU/Linux ld.so'
  11498. ;;
  11499. knetbsd*-gnu)
  11500. version_type=linux
  11501. need_lib_prefix=no
  11502. need_version=no
  11503. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11504. soname_spec='${libname}${release}${shared_ext}$major'
  11505. shlibpath_var=LD_LIBRARY_PATH
  11506. shlibpath_overrides_runpath=no
  11507. hardcode_into_libs=yes
  11508. dynamic_linker='GNU ld.so'
  11509. ;;
  11510. netbsd*)
  11511. version_type=sunos
  11512. need_lib_prefix=no
  11513. need_version=no
  11514. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11515. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11516. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11517. dynamic_linker='NetBSD (a.out) ld.so'
  11518. else
  11519. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11520. soname_spec='${libname}${release}${shared_ext}$major'
  11521. dynamic_linker='NetBSD ld.elf_so'
  11522. fi
  11523. shlibpath_var=LD_LIBRARY_PATH
  11524. shlibpath_overrides_runpath=yes
  11525. hardcode_into_libs=yes
  11526. ;;
  11527. newsos6)
  11528. version_type=linux
  11529. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11530. shlibpath_var=LD_LIBRARY_PATH
  11531. shlibpath_overrides_runpath=yes
  11532. ;;
  11533. nto-qnx*)
  11534. version_type=linux
  11535. need_lib_prefix=no
  11536. need_version=no
  11537. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11538. soname_spec='${libname}${release}${shared_ext}$major'
  11539. shlibpath_var=LD_LIBRARY_PATH
  11540. shlibpath_overrides_runpath=yes
  11541. ;;
  11542. openbsd*)
  11543. version_type=sunos
  11544. need_lib_prefix=no
  11545. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11546. case $host_os in
  11547. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11548. *) need_version=no ;;
  11549. esac
  11550. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11551. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11552. shlibpath_var=LD_LIBRARY_PATH
  11553. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11554. case $host_os in
  11555. openbsd2.[89] | openbsd2.[89].*)
  11556. shlibpath_overrides_runpath=no
  11557. ;;
  11558. *)
  11559. shlibpath_overrides_runpath=yes
  11560. ;;
  11561. esac
  11562. else
  11563. shlibpath_overrides_runpath=yes
  11564. fi
  11565. ;;
  11566. os2*)
  11567. libname_spec='$name'
  11568. shrext_cmds=".dll"
  11569. need_lib_prefix=no
  11570. library_names_spec='$libname${shared_ext} $libname.a'
  11571. dynamic_linker='OS/2 ld.exe'
  11572. shlibpath_var=LIBPATH
  11573. ;;
  11574. osf3* | osf4* | osf5*)
  11575. version_type=osf
  11576. need_lib_prefix=no
  11577. need_version=no
  11578. soname_spec='${libname}${release}${shared_ext}$major'
  11579. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11580. shlibpath_var=LD_LIBRARY_PATH
  11581. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11582. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11583. ;;
  11584. sco3.2v5*)
  11585. version_type=osf
  11586. soname_spec='${libname}${release}${shared_ext}$major'
  11587. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11588. shlibpath_var=LD_LIBRARY_PATH
  11589. ;;
  11590. solaris*)
  11591. version_type=linux
  11592. need_lib_prefix=no
  11593. need_version=no
  11594. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11595. soname_spec='${libname}${release}${shared_ext}$major'
  11596. shlibpath_var=LD_LIBRARY_PATH
  11597. shlibpath_overrides_runpath=yes
  11598. hardcode_into_libs=yes
  11599. # ldd complains unless libraries are executable
  11600. postinstall_cmds='chmod +x $lib'
  11601. ;;
  11602. sunos4*)
  11603. version_type=sunos
  11604. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11605. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11606. shlibpath_var=LD_LIBRARY_PATH
  11607. shlibpath_overrides_runpath=yes
  11608. if test "$with_gnu_ld" = yes; then
  11609. need_lib_prefix=no
  11610. fi
  11611. need_version=yes
  11612. ;;
  11613. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11614. version_type=linux
  11615. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11616. soname_spec='${libname}${release}${shared_ext}$major'
  11617. shlibpath_var=LD_LIBRARY_PATH
  11618. case $host_vendor in
  11619. sni)
  11620. shlibpath_overrides_runpath=no
  11621. need_lib_prefix=no
  11622. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11623. runpath_var=LD_RUN_PATH
  11624. ;;
  11625. siemens)
  11626. need_lib_prefix=no
  11627. ;;
  11628. motorola)
  11629. need_lib_prefix=no
  11630. need_version=no
  11631. shlibpath_overrides_runpath=no
  11632. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11633. ;;
  11634. esac
  11635. ;;
  11636. sysv4*MP*)
  11637. if test -d /usr/nec ;then
  11638. version_type=linux
  11639. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11640. soname_spec='$libname${shared_ext}.$major'
  11641. shlibpath_var=LD_LIBRARY_PATH
  11642. fi
  11643. ;;
  11644. uts4*)
  11645. version_type=linux
  11646. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11647. soname_spec='${libname}${release}${shared_ext}$major'
  11648. shlibpath_var=LD_LIBRARY_PATH
  11649. ;;
  11650. *)
  11651. dynamic_linker=no
  11652. ;;
  11653. esac
  11654. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  11655. echo "${ECHO_T}$dynamic_linker" >&6; }
  11656. test "$dynamic_linker" = no && can_build_shared=no
  11657. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  11658. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  11659. hardcode_action_CXX=
  11660. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  11661. test -n "$runpath_var_CXX" || \
  11662. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  11663. # We can hardcode non-existant directories.
  11664. if test "$hardcode_direct_CXX" != no &&
  11665. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11666. # have to relink, otherwise we might link with an installed library
  11667. # when we should be linking with a yet-to-be-installed one
  11668. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  11669. test "$hardcode_minus_L_CXX" != no; then
  11670. # Linking always hardcodes the temporary library directory.
  11671. hardcode_action_CXX=relink
  11672. else
  11673. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11674. hardcode_action_CXX=immediate
  11675. fi
  11676. else
  11677. # We cannot hardcode anything, or else we can only hardcode existing
  11678. # directories.
  11679. hardcode_action_CXX=unsupported
  11680. fi
  11681. { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  11682. echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  11683. if test "$hardcode_action_CXX" = relink; then
  11684. # Fast installation is not supported
  11685. enable_fast_install=no
  11686. elif test "$shlibpath_overrides_runpath" = yes ||
  11687. test "$enable_shared" = no; then
  11688. # Fast installation is not necessary
  11689. enable_fast_install=needless
  11690. fi
  11691. striplib=
  11692. old_striplib=
  11693. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  11694. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  11695. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  11696. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11697. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11698. { echo "$as_me:$LINENO: result: yes" >&5
  11699. echo "${ECHO_T}yes" >&6; }
  11700. else
  11701. # FIXME - insert some real tests, host_os isn't really good enough
  11702. case $host_os in
  11703. darwin*)
  11704. if test -n "$STRIP" ; then
  11705. striplib="$STRIP -x"
  11706. { echo "$as_me:$LINENO: result: yes" >&5
  11707. echo "${ECHO_T}yes" >&6; }
  11708. else
  11709. { echo "$as_me:$LINENO: result: no" >&5
  11710. echo "${ECHO_T}no" >&6; }
  11711. fi
  11712. ;;
  11713. *)
  11714. { echo "$as_me:$LINENO: result: no" >&5
  11715. echo "${ECHO_T}no" >&6; }
  11716. ;;
  11717. esac
  11718. fi
  11719. if test "x$enable_dlopen" != xyes; then
  11720. enable_dlopen=unknown
  11721. enable_dlopen_self=unknown
  11722. enable_dlopen_self_static=unknown
  11723. else
  11724. lt_cv_dlopen=no
  11725. lt_cv_dlopen_libs=
  11726. case $host_os in
  11727. beos*)
  11728. lt_cv_dlopen="load_add_on"
  11729. lt_cv_dlopen_libs=
  11730. lt_cv_dlopen_self=yes
  11731. ;;
  11732. mingw* | pw32*)
  11733. lt_cv_dlopen="LoadLibrary"
  11734. lt_cv_dlopen_libs=
  11735. ;;
  11736. cygwin*)
  11737. lt_cv_dlopen="dlopen"
  11738. lt_cv_dlopen_libs=
  11739. ;;
  11740. darwin*)
  11741. # if libdl is installed we need to link against it
  11742. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  11743. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  11744. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  11745. echo $ECHO_N "(cached) $ECHO_C" >&6
  11746. else
  11747. ac_check_lib_save_LIBS=$LIBS
  11748. LIBS="-ldl $LIBS"
  11749. cat >conftest.$ac_ext <<_ACEOF
  11750. /* confdefs.h. */
  11751. _ACEOF
  11752. cat confdefs.h >>conftest.$ac_ext
  11753. cat >>conftest.$ac_ext <<_ACEOF
  11754. /* end confdefs.h. */
  11755. /* Override any GCC internal prototype to avoid an error.
  11756. Use char because int might match the return type of a GCC
  11757. builtin and then its argument prototype would still apply. */
  11758. #ifdef __cplusplus
  11759. extern "C"
  11760. #endif
  11761. char dlopen ();
  11762. int
  11763. main ()
  11764. {
  11765. return dlopen ();
  11766. ;
  11767. return 0;
  11768. }
  11769. _ACEOF
  11770. rm -f conftest.$ac_objext conftest$ac_exeext
  11771. if { (ac_try="$ac_link"
  11772. case "(($ac_try" in
  11773. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11774. *) ac_try_echo=$ac_try;;
  11775. esac
  11776. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11777. (eval "$ac_link") 2>conftest.er1
  11778. ac_status=$?
  11779. grep -v '^ *+' conftest.er1 >conftest.err
  11780. rm -f conftest.er1
  11781. cat conftest.err >&5
  11782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11783. (exit $ac_status); } && {
  11784. test -z "$ac_cxx_werror_flag" ||
  11785. test ! -s conftest.err
  11786. } && test -s conftest$ac_exeext &&
  11787. $as_test_x conftest$ac_exeext; then
  11788. ac_cv_lib_dl_dlopen=yes
  11789. else
  11790. echo "$as_me: failed program was:" >&5
  11791. sed 's/^/| /' conftest.$ac_ext >&5
  11792. ac_cv_lib_dl_dlopen=no
  11793. fi
  11794. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11795. conftest$ac_exeext conftest.$ac_ext
  11796. LIBS=$ac_check_lib_save_LIBS
  11797. fi
  11798. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  11799. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  11800. if test $ac_cv_lib_dl_dlopen = yes; then
  11801. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11802. else
  11803. lt_cv_dlopen="dyld"
  11804. lt_cv_dlopen_libs=
  11805. lt_cv_dlopen_self=yes
  11806. fi
  11807. ;;
  11808. *)
  11809. { echo "$as_me:$LINENO: checking for shl_load" >&5
  11810. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  11811. if test "${ac_cv_func_shl_load+set}" = set; then
  11812. echo $ECHO_N "(cached) $ECHO_C" >&6
  11813. else
  11814. cat >conftest.$ac_ext <<_ACEOF
  11815. /* confdefs.h. */
  11816. _ACEOF
  11817. cat confdefs.h >>conftest.$ac_ext
  11818. cat >>conftest.$ac_ext <<_ACEOF
  11819. /* end confdefs.h. */
  11820. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  11821. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11822. #define shl_load innocuous_shl_load
  11823. /* System header to define __stub macros and hopefully few prototypes,
  11824. which can conflict with char shl_load (); below.
  11825. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11826. <limits.h> exists even on freestanding compilers. */
  11827. #ifdef __STDC__
  11828. # include <limits.h>
  11829. #else
  11830. # include <assert.h>
  11831. #endif
  11832. #undef shl_load
  11833. /* Override any GCC internal prototype to avoid an error.
  11834. Use char because int might match the return type of a GCC
  11835. builtin and then its argument prototype would still apply. */
  11836. #ifdef __cplusplus
  11837. extern "C"
  11838. #endif
  11839. char shl_load ();
  11840. /* The GNU C library defines this for functions which it implements
  11841. to always fail with ENOSYS. Some functions are actually named
  11842. something starting with __ and the normal name is an alias. */
  11843. #if defined __stub_shl_load || defined __stub___shl_load
  11844. choke me
  11845. #endif
  11846. int
  11847. main ()
  11848. {
  11849. return shl_load ();
  11850. ;
  11851. return 0;
  11852. }
  11853. _ACEOF
  11854. rm -f conftest.$ac_objext conftest$ac_exeext
  11855. if { (ac_try="$ac_link"
  11856. case "(($ac_try" in
  11857. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11858. *) ac_try_echo=$ac_try;;
  11859. esac
  11860. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11861. (eval "$ac_link") 2>conftest.er1
  11862. ac_status=$?
  11863. grep -v '^ *+' conftest.er1 >conftest.err
  11864. rm -f conftest.er1
  11865. cat conftest.err >&5
  11866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11867. (exit $ac_status); } && {
  11868. test -z "$ac_cxx_werror_flag" ||
  11869. test ! -s conftest.err
  11870. } && test -s conftest$ac_exeext &&
  11871. $as_test_x conftest$ac_exeext; then
  11872. ac_cv_func_shl_load=yes
  11873. else
  11874. echo "$as_me: failed program was:" >&5
  11875. sed 's/^/| /' conftest.$ac_ext >&5
  11876. ac_cv_func_shl_load=no
  11877. fi
  11878. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11879. conftest$ac_exeext conftest.$ac_ext
  11880. fi
  11881. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  11882. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  11883. if test $ac_cv_func_shl_load = yes; then
  11884. lt_cv_dlopen="shl_load"
  11885. else
  11886. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  11887. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  11888. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  11889. echo $ECHO_N "(cached) $ECHO_C" >&6
  11890. else
  11891. ac_check_lib_save_LIBS=$LIBS
  11892. LIBS="-ldld $LIBS"
  11893. cat >conftest.$ac_ext <<_ACEOF
  11894. /* confdefs.h. */
  11895. _ACEOF
  11896. cat confdefs.h >>conftest.$ac_ext
  11897. cat >>conftest.$ac_ext <<_ACEOF
  11898. /* end confdefs.h. */
  11899. /* Override any GCC internal prototype to avoid an error.
  11900. Use char because int might match the return type of a GCC
  11901. builtin and then its argument prototype would still apply. */
  11902. #ifdef __cplusplus
  11903. extern "C"
  11904. #endif
  11905. char shl_load ();
  11906. int
  11907. main ()
  11908. {
  11909. return shl_load ();
  11910. ;
  11911. return 0;
  11912. }
  11913. _ACEOF
  11914. rm -f conftest.$ac_objext conftest$ac_exeext
  11915. if { (ac_try="$ac_link"
  11916. case "(($ac_try" in
  11917. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11918. *) ac_try_echo=$ac_try;;
  11919. esac
  11920. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11921. (eval "$ac_link") 2>conftest.er1
  11922. ac_status=$?
  11923. grep -v '^ *+' conftest.er1 >conftest.err
  11924. rm -f conftest.er1
  11925. cat conftest.err >&5
  11926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11927. (exit $ac_status); } && {
  11928. test -z "$ac_cxx_werror_flag" ||
  11929. test ! -s conftest.err
  11930. } && test -s conftest$ac_exeext &&
  11931. $as_test_x conftest$ac_exeext; then
  11932. ac_cv_lib_dld_shl_load=yes
  11933. else
  11934. echo "$as_me: failed program was:" >&5
  11935. sed 's/^/| /' conftest.$ac_ext >&5
  11936. ac_cv_lib_dld_shl_load=no
  11937. fi
  11938. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11939. conftest$ac_exeext conftest.$ac_ext
  11940. LIBS=$ac_check_lib_save_LIBS
  11941. fi
  11942. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  11943. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  11944. if test $ac_cv_lib_dld_shl_load = yes; then
  11945. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  11946. else
  11947. { echo "$as_me:$LINENO: checking for dlopen" >&5
  11948. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  11949. if test "${ac_cv_func_dlopen+set}" = set; then
  11950. echo $ECHO_N "(cached) $ECHO_C" >&6
  11951. else
  11952. cat >conftest.$ac_ext <<_ACEOF
  11953. /* confdefs.h. */
  11954. _ACEOF
  11955. cat confdefs.h >>conftest.$ac_ext
  11956. cat >>conftest.$ac_ext <<_ACEOF
  11957. /* end confdefs.h. */
  11958. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  11959. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11960. #define dlopen innocuous_dlopen
  11961. /* System header to define __stub macros and hopefully few prototypes,
  11962. which can conflict with char dlopen (); below.
  11963. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11964. <limits.h> exists even on freestanding compilers. */
  11965. #ifdef __STDC__
  11966. # include <limits.h>
  11967. #else
  11968. # include <assert.h>
  11969. #endif
  11970. #undef dlopen
  11971. /* Override any GCC internal prototype to avoid an error.
  11972. Use char because int might match the return type of a GCC
  11973. builtin and then its argument prototype would still apply. */
  11974. #ifdef __cplusplus
  11975. extern "C"
  11976. #endif
  11977. char dlopen ();
  11978. /* The GNU C library defines this for functions which it implements
  11979. to always fail with ENOSYS. Some functions are actually named
  11980. something starting with __ and the normal name is an alias. */
  11981. #if defined __stub_dlopen || defined __stub___dlopen
  11982. choke me
  11983. #endif
  11984. int
  11985. main ()
  11986. {
  11987. return dlopen ();
  11988. ;
  11989. return 0;
  11990. }
  11991. _ACEOF
  11992. rm -f conftest.$ac_objext conftest$ac_exeext
  11993. if { (ac_try="$ac_link"
  11994. case "(($ac_try" in
  11995. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11996. *) ac_try_echo=$ac_try;;
  11997. esac
  11998. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11999. (eval "$ac_link") 2>conftest.er1
  12000. ac_status=$?
  12001. grep -v '^ *+' conftest.er1 >conftest.err
  12002. rm -f conftest.er1
  12003. cat conftest.err >&5
  12004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12005. (exit $ac_status); } && {
  12006. test -z "$ac_cxx_werror_flag" ||
  12007. test ! -s conftest.err
  12008. } && test -s conftest$ac_exeext &&
  12009. $as_test_x conftest$ac_exeext; then
  12010. ac_cv_func_dlopen=yes
  12011. else
  12012. echo "$as_me: failed program was:" >&5
  12013. sed 's/^/| /' conftest.$ac_ext >&5
  12014. ac_cv_func_dlopen=no
  12015. fi
  12016. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12017. conftest$ac_exeext conftest.$ac_ext
  12018. fi
  12019. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  12020. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  12021. if test $ac_cv_func_dlopen = yes; then
  12022. lt_cv_dlopen="dlopen"
  12023. else
  12024. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  12025. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  12026. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  12027. echo $ECHO_N "(cached) $ECHO_C" >&6
  12028. else
  12029. ac_check_lib_save_LIBS=$LIBS
  12030. LIBS="-ldl $LIBS"
  12031. cat >conftest.$ac_ext <<_ACEOF
  12032. /* confdefs.h. */
  12033. _ACEOF
  12034. cat confdefs.h >>conftest.$ac_ext
  12035. cat >>conftest.$ac_ext <<_ACEOF
  12036. /* end confdefs.h. */
  12037. /* Override any GCC internal prototype to avoid an error.
  12038. Use char because int might match the return type of a GCC
  12039. builtin and then its argument prototype would still apply. */
  12040. #ifdef __cplusplus
  12041. extern "C"
  12042. #endif
  12043. char dlopen ();
  12044. int
  12045. main ()
  12046. {
  12047. return dlopen ();
  12048. ;
  12049. return 0;
  12050. }
  12051. _ACEOF
  12052. rm -f conftest.$ac_objext conftest$ac_exeext
  12053. if { (ac_try="$ac_link"
  12054. case "(($ac_try" in
  12055. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12056. *) ac_try_echo=$ac_try;;
  12057. esac
  12058. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12059. (eval "$ac_link") 2>conftest.er1
  12060. ac_status=$?
  12061. grep -v '^ *+' conftest.er1 >conftest.err
  12062. rm -f conftest.er1
  12063. cat conftest.err >&5
  12064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12065. (exit $ac_status); } && {
  12066. test -z "$ac_cxx_werror_flag" ||
  12067. test ! -s conftest.err
  12068. } && test -s conftest$ac_exeext &&
  12069. $as_test_x conftest$ac_exeext; then
  12070. ac_cv_lib_dl_dlopen=yes
  12071. else
  12072. echo "$as_me: failed program was:" >&5
  12073. sed 's/^/| /' conftest.$ac_ext >&5
  12074. ac_cv_lib_dl_dlopen=no
  12075. fi
  12076. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12077. conftest$ac_exeext conftest.$ac_ext
  12078. LIBS=$ac_check_lib_save_LIBS
  12079. fi
  12080. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  12081. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  12082. if test $ac_cv_lib_dl_dlopen = yes; then
  12083. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  12084. else
  12085. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  12086. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  12087. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  12088. echo $ECHO_N "(cached) $ECHO_C" >&6
  12089. else
  12090. ac_check_lib_save_LIBS=$LIBS
  12091. LIBS="-lsvld $LIBS"
  12092. cat >conftest.$ac_ext <<_ACEOF
  12093. /* confdefs.h. */
  12094. _ACEOF
  12095. cat confdefs.h >>conftest.$ac_ext
  12096. cat >>conftest.$ac_ext <<_ACEOF
  12097. /* end confdefs.h. */
  12098. /* Override any GCC internal prototype to avoid an error.
  12099. Use char because int might match the return type of a GCC
  12100. builtin and then its argument prototype would still apply. */
  12101. #ifdef __cplusplus
  12102. extern "C"
  12103. #endif
  12104. char dlopen ();
  12105. int
  12106. main ()
  12107. {
  12108. return dlopen ();
  12109. ;
  12110. return 0;
  12111. }
  12112. _ACEOF
  12113. rm -f conftest.$ac_objext conftest$ac_exeext
  12114. if { (ac_try="$ac_link"
  12115. case "(($ac_try" in
  12116. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12117. *) ac_try_echo=$ac_try;;
  12118. esac
  12119. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12120. (eval "$ac_link") 2>conftest.er1
  12121. ac_status=$?
  12122. grep -v '^ *+' conftest.er1 >conftest.err
  12123. rm -f conftest.er1
  12124. cat conftest.err >&5
  12125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12126. (exit $ac_status); } && {
  12127. test -z "$ac_cxx_werror_flag" ||
  12128. test ! -s conftest.err
  12129. } && test -s conftest$ac_exeext &&
  12130. $as_test_x conftest$ac_exeext; then
  12131. ac_cv_lib_svld_dlopen=yes
  12132. else
  12133. echo "$as_me: failed program was:" >&5
  12134. sed 's/^/| /' conftest.$ac_ext >&5
  12135. ac_cv_lib_svld_dlopen=no
  12136. fi
  12137. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12138. conftest$ac_exeext conftest.$ac_ext
  12139. LIBS=$ac_check_lib_save_LIBS
  12140. fi
  12141. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  12142. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  12143. if test $ac_cv_lib_svld_dlopen = yes; then
  12144. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  12145. else
  12146. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  12147. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  12148. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  12149. echo $ECHO_N "(cached) $ECHO_C" >&6
  12150. else
  12151. ac_check_lib_save_LIBS=$LIBS
  12152. LIBS="-ldld $LIBS"
  12153. cat >conftest.$ac_ext <<_ACEOF
  12154. /* confdefs.h. */
  12155. _ACEOF
  12156. cat confdefs.h >>conftest.$ac_ext
  12157. cat >>conftest.$ac_ext <<_ACEOF
  12158. /* end confdefs.h. */
  12159. /* Override any GCC internal prototype to avoid an error.
  12160. Use char because int might match the return type of a GCC
  12161. builtin and then its argument prototype would still apply. */
  12162. #ifdef __cplusplus
  12163. extern "C"
  12164. #endif
  12165. char dld_link ();
  12166. int
  12167. main ()
  12168. {
  12169. return dld_link ();
  12170. ;
  12171. return 0;
  12172. }
  12173. _ACEOF
  12174. rm -f conftest.$ac_objext conftest$ac_exeext
  12175. if { (ac_try="$ac_link"
  12176. case "(($ac_try" in
  12177. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12178. *) ac_try_echo=$ac_try;;
  12179. esac
  12180. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12181. (eval "$ac_link") 2>conftest.er1
  12182. ac_status=$?
  12183. grep -v '^ *+' conftest.er1 >conftest.err
  12184. rm -f conftest.er1
  12185. cat conftest.err >&5
  12186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12187. (exit $ac_status); } && {
  12188. test -z "$ac_cxx_werror_flag" ||
  12189. test ! -s conftest.err
  12190. } && test -s conftest$ac_exeext &&
  12191. $as_test_x conftest$ac_exeext; then
  12192. ac_cv_lib_dld_dld_link=yes
  12193. else
  12194. echo "$as_me: failed program was:" >&5
  12195. sed 's/^/| /' conftest.$ac_ext >&5
  12196. ac_cv_lib_dld_dld_link=no
  12197. fi
  12198. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12199. conftest$ac_exeext conftest.$ac_ext
  12200. LIBS=$ac_check_lib_save_LIBS
  12201. fi
  12202. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  12203. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  12204. if test $ac_cv_lib_dld_dld_link = yes; then
  12205. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  12206. fi
  12207. fi
  12208. fi
  12209. fi
  12210. fi
  12211. fi
  12212. ;;
  12213. esac
  12214. if test "x$lt_cv_dlopen" != xno; then
  12215. enable_dlopen=yes
  12216. else
  12217. enable_dlopen=no
  12218. fi
  12219. case $lt_cv_dlopen in
  12220. dlopen)
  12221. save_CPPFLAGS="$CPPFLAGS"
  12222. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  12223. save_LDFLAGS="$LDFLAGS"
  12224. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  12225. save_LIBS="$LIBS"
  12226. LIBS="$lt_cv_dlopen_libs $LIBS"
  12227. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  12228. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  12229. if test "${lt_cv_dlopen_self+set}" = set; then
  12230. echo $ECHO_N "(cached) $ECHO_C" >&6
  12231. else
  12232. if test "$cross_compiling" = yes; then :
  12233. lt_cv_dlopen_self=cross
  12234. else
  12235. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12236. lt_status=$lt_dlunknown
  12237. cat > conftest.$ac_ext <<EOF
  12238. #line 13614 "configure"
  12239. #include "confdefs.h"
  12240. #if HAVE_DLFCN_H
  12241. #include <dlfcn.h>
  12242. #endif
  12243. #include <stdio.h>
  12244. #ifdef RTLD_GLOBAL
  12245. # define LT_DLGLOBAL RTLD_GLOBAL
  12246. #else
  12247. # ifdef DL_GLOBAL
  12248. # define LT_DLGLOBAL DL_GLOBAL
  12249. # else
  12250. # define LT_DLGLOBAL 0
  12251. # endif
  12252. #endif
  12253. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12254. find out it does not work in some platform. */
  12255. #ifndef LT_DLLAZY_OR_NOW
  12256. # ifdef RTLD_LAZY
  12257. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12258. # else
  12259. # ifdef DL_LAZY
  12260. # define LT_DLLAZY_OR_NOW DL_LAZY
  12261. # else
  12262. # ifdef RTLD_NOW
  12263. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12264. # else
  12265. # ifdef DL_NOW
  12266. # define LT_DLLAZY_OR_NOW DL_NOW
  12267. # else
  12268. # define LT_DLLAZY_OR_NOW 0
  12269. # endif
  12270. # endif
  12271. # endif
  12272. # endif
  12273. #endif
  12274. #ifdef __cplusplus
  12275. extern "C" void exit (int);
  12276. #endif
  12277. void fnord() { int i=42;}
  12278. int main ()
  12279. {
  12280. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12281. int status = $lt_dlunknown;
  12282. if (self)
  12283. {
  12284. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12285. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12286. /* dlclose (self); */
  12287. }
  12288. exit (status);
  12289. }
  12290. EOF
  12291. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12292. (eval $ac_link) 2>&5
  12293. ac_status=$?
  12294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12295. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  12296. (./conftest; exit; ) 2>/dev/null
  12297. lt_status=$?
  12298. case x$lt_status in
  12299. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  12300. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  12301. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  12302. esac
  12303. else :
  12304. # compilation failed
  12305. lt_cv_dlopen_self=no
  12306. fi
  12307. fi
  12308. rm -fr conftest*
  12309. fi
  12310. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  12311. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  12312. if test "x$lt_cv_dlopen_self" = xyes; then
  12313. LDFLAGS="$LDFLAGS $link_static_flag"
  12314. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  12315. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  12316. if test "${lt_cv_dlopen_self_static+set}" = set; then
  12317. echo $ECHO_N "(cached) $ECHO_C" >&6
  12318. else
  12319. if test "$cross_compiling" = yes; then :
  12320. lt_cv_dlopen_self_static=cross
  12321. else
  12322. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12323. lt_status=$lt_dlunknown
  12324. cat > conftest.$ac_ext <<EOF
  12325. #line 13712 "configure"
  12326. #include "confdefs.h"
  12327. #if HAVE_DLFCN_H
  12328. #include <dlfcn.h>
  12329. #endif
  12330. #include <stdio.h>
  12331. #ifdef RTLD_GLOBAL
  12332. # define LT_DLGLOBAL RTLD_GLOBAL
  12333. #else
  12334. # ifdef DL_GLOBAL
  12335. # define LT_DLGLOBAL DL_GLOBAL
  12336. # else
  12337. # define LT_DLGLOBAL 0
  12338. # endif
  12339. #endif
  12340. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12341. find out it does not work in some platform. */
  12342. #ifndef LT_DLLAZY_OR_NOW
  12343. # ifdef RTLD_LAZY
  12344. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12345. # else
  12346. # ifdef DL_LAZY
  12347. # define LT_DLLAZY_OR_NOW DL_LAZY
  12348. # else
  12349. # ifdef RTLD_NOW
  12350. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12351. # else
  12352. # ifdef DL_NOW
  12353. # define LT_DLLAZY_OR_NOW DL_NOW
  12354. # else
  12355. # define LT_DLLAZY_OR_NOW 0
  12356. # endif
  12357. # endif
  12358. # endif
  12359. # endif
  12360. #endif
  12361. #ifdef __cplusplus
  12362. extern "C" void exit (int);
  12363. #endif
  12364. void fnord() { int i=42;}
  12365. int main ()
  12366. {
  12367. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12368. int status = $lt_dlunknown;
  12369. if (self)
  12370. {
  12371. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12372. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12373. /* dlclose (self); */
  12374. }
  12375. exit (status);
  12376. }
  12377. EOF
  12378. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12379. (eval $ac_link) 2>&5
  12380. ac_status=$?
  12381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12382. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  12383. (./conftest; exit; ) 2>/dev/null
  12384. lt_status=$?
  12385. case x$lt_status in
  12386. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  12387. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  12388. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  12389. esac
  12390. else :
  12391. # compilation failed
  12392. lt_cv_dlopen_self_static=no
  12393. fi
  12394. fi
  12395. rm -fr conftest*
  12396. fi
  12397. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  12398. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  12399. fi
  12400. CPPFLAGS="$save_CPPFLAGS"
  12401. LDFLAGS="$save_LDFLAGS"
  12402. LIBS="$save_LIBS"
  12403. ;;
  12404. esac
  12405. case $lt_cv_dlopen_self in
  12406. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  12407. *) enable_dlopen_self=unknown ;;
  12408. esac
  12409. case $lt_cv_dlopen_self_static in
  12410. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  12411. *) enable_dlopen_self_static=unknown ;;
  12412. esac
  12413. fi
  12414. # The else clause should only fire when bootstrapping the
  12415. # libtool distribution, otherwise you forgot to ship ltmain.sh
  12416. # with your package, and you will get complaints that there are
  12417. # no rules to generate ltmain.sh.
  12418. if test -f "$ltmain"; then
  12419. # See if we are running on zsh, and set the options which allow our commands through
  12420. # without removal of \ escapes.
  12421. if test -n "${ZSH_VERSION+set}" ; then
  12422. setopt NO_GLOB_SUBST
  12423. fi
  12424. # Now quote all the things that may contain metacharacters while being
  12425. # careful not to overquote the AC_SUBSTed values. We take copies of the
  12426. # variables and quote the copies for generation of the libtool script.
  12427. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  12428. SED SHELL STRIP \
  12429. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  12430. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  12431. deplibs_check_method reload_flag reload_cmds need_locks \
  12432. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  12433. lt_cv_sys_global_symbol_to_c_name_address \
  12434. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  12435. old_postinstall_cmds old_postuninstall_cmds \
  12436. compiler_CXX \
  12437. CC_CXX \
  12438. LD_CXX \
  12439. lt_prog_compiler_wl_CXX \
  12440. lt_prog_compiler_pic_CXX \
  12441. lt_prog_compiler_static_CXX \
  12442. lt_prog_compiler_no_builtin_flag_CXX \
  12443. export_dynamic_flag_spec_CXX \
  12444. thread_safe_flag_spec_CXX \
  12445. whole_archive_flag_spec_CXX \
  12446. enable_shared_with_static_runtimes_CXX \
  12447. old_archive_cmds_CXX \
  12448. old_archive_from_new_cmds_CXX \
  12449. predep_objects_CXX \
  12450. postdep_objects_CXX \
  12451. predeps_CXX \
  12452. postdeps_CXX \
  12453. compiler_lib_search_path_CXX \
  12454. archive_cmds_CXX \
  12455. archive_expsym_cmds_CXX \
  12456. postinstall_cmds_CXX \
  12457. postuninstall_cmds_CXX \
  12458. old_archive_from_expsyms_cmds_CXX \
  12459. allow_undefined_flag_CXX \
  12460. no_undefined_flag_CXX \
  12461. export_symbols_cmds_CXX \
  12462. hardcode_libdir_flag_spec_CXX \
  12463. hardcode_libdir_flag_spec_ld_CXX \
  12464. hardcode_libdir_separator_CXX \
  12465. hardcode_automatic_CXX \
  12466. module_cmds_CXX \
  12467. module_expsym_cmds_CXX \
  12468. lt_cv_prog_compiler_c_o_CXX \
  12469. exclude_expsyms_CXX \
  12470. include_expsyms_CXX; do
  12471. case $var in
  12472. old_archive_cmds_CXX | \
  12473. old_archive_from_new_cmds_CXX | \
  12474. archive_cmds_CXX | \
  12475. archive_expsym_cmds_CXX | \
  12476. module_cmds_CXX | \
  12477. module_expsym_cmds_CXX | \
  12478. old_archive_from_expsyms_cmds_CXX | \
  12479. export_symbols_cmds_CXX | \
  12480. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  12481. postinstall_cmds | postuninstall_cmds | \
  12482. old_postinstall_cmds | old_postuninstall_cmds | \
  12483. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  12484. # Double-quote double-evaled strings.
  12485. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  12486. ;;
  12487. *)
  12488. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  12489. ;;
  12490. esac
  12491. done
  12492. case $lt_echo in
  12493. *'\$0 --fallback-echo"')
  12494. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  12495. ;;
  12496. esac
  12497. cfgfile="$ofile"
  12498. cat <<__EOF__ >> "$cfgfile"
  12499. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  12500. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12501. # Shell to use when invoking shell scripts.
  12502. SHELL=$lt_SHELL
  12503. # Whether or not to build shared libraries.
  12504. build_libtool_libs=$enable_shared
  12505. # Whether or not to build static libraries.
  12506. build_old_libs=$enable_static
  12507. # Whether or not to add -lc for building shared libraries.
  12508. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  12509. # Whether or not to disallow shared libs when runtime libs are static
  12510. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  12511. # Whether or not to optimize for fast installation.
  12512. fast_install=$enable_fast_install
  12513. # The host system.
  12514. host_alias=$host_alias
  12515. host=$host
  12516. host_os=$host_os
  12517. # The build system.
  12518. build_alias=$build_alias
  12519. build=$build
  12520. build_os=$build_os
  12521. # An echo program that does not interpret backslashes.
  12522. echo=$lt_echo
  12523. # The archiver.
  12524. AR=$lt_AR
  12525. AR_FLAGS=$lt_AR_FLAGS
  12526. # A C compiler.
  12527. LTCC=$lt_LTCC
  12528. # A language-specific compiler.
  12529. CC=$lt_compiler_CXX
  12530. # Is the compiler the GNU C compiler?
  12531. with_gcc=$GCC_CXX
  12532. # An ERE matcher.
  12533. EGREP=$lt_EGREP
  12534. # The linker used to build libraries.
  12535. LD=$lt_LD_CXX
  12536. # Whether we need hard or soft links.
  12537. LN_S=$lt_LN_S
  12538. # A BSD-compatible nm program.
  12539. NM=$lt_NM
  12540. # A symbol stripping program
  12541. STRIP=$lt_STRIP
  12542. # Used to examine libraries when file_magic_cmd begins "file"
  12543. MAGIC_CMD=$MAGIC_CMD
  12544. # Used on cygwin: DLL creation program.
  12545. DLLTOOL="$DLLTOOL"
  12546. # Used on cygwin: object dumper.
  12547. OBJDUMP="$OBJDUMP"
  12548. # Used on cygwin: assembler.
  12549. AS="$AS"
  12550. # The name of the directory that contains temporary libtool files.
  12551. objdir=$objdir
  12552. # How to create reloadable object files.
  12553. reload_flag=$lt_reload_flag
  12554. reload_cmds=$lt_reload_cmds
  12555. # How to pass a linker flag through the compiler.
  12556. wl=$lt_lt_prog_compiler_wl_CXX
  12557. # Object file suffix (normally "o").
  12558. objext="$ac_objext"
  12559. # Old archive suffix (normally "a").
  12560. libext="$libext"
  12561. # Shared library suffix (normally ".so").
  12562. shrext_cmds='$shrext_cmds'
  12563. # Executable file suffix (normally "").
  12564. exeext="$exeext"
  12565. # Additional compiler flags for building library objects.
  12566. pic_flag=$lt_lt_prog_compiler_pic_CXX
  12567. pic_mode=$pic_mode
  12568. # What is the maximum length of a command?
  12569. max_cmd_len=$lt_cv_sys_max_cmd_len
  12570. # Does compiler simultaneously support -c and -o options?
  12571. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  12572. # Must we lock files when doing compilation?
  12573. need_locks=$lt_need_locks
  12574. # Do we need the lib prefix for modules?
  12575. need_lib_prefix=$need_lib_prefix
  12576. # Do we need a version for libraries?
  12577. need_version=$need_version
  12578. # Whether dlopen is supported.
  12579. dlopen_support=$enable_dlopen
  12580. # Whether dlopen of programs is supported.
  12581. dlopen_self=$enable_dlopen_self
  12582. # Whether dlopen of statically linked programs is supported.
  12583. dlopen_self_static=$enable_dlopen_self_static
  12584. # Compiler flag to prevent dynamic linking.
  12585. link_static_flag=$lt_lt_prog_compiler_static_CXX
  12586. # Compiler flag to turn off builtin functions.
  12587. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  12588. # Compiler flag to allow reflexive dlopens.
  12589. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  12590. # Compiler flag to generate shared objects directly from archives.
  12591. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  12592. # Compiler flag to generate thread-safe objects.
  12593. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  12594. # Library versioning type.
  12595. version_type=$version_type
  12596. # Format of library name prefix.
  12597. libname_spec=$lt_libname_spec
  12598. # List of archive names. First name is the real one, the rest are links.
  12599. # The last name is the one that the linker finds with -lNAME.
  12600. library_names_spec=$lt_library_names_spec
  12601. # The coded name of the library, if different from the real name.
  12602. soname_spec=$lt_soname_spec
  12603. # Commands used to build and install an old-style archive.
  12604. RANLIB=$lt_RANLIB
  12605. old_archive_cmds=$lt_old_archive_cmds_CXX
  12606. old_postinstall_cmds=$lt_old_postinstall_cmds
  12607. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12608. # Create an old-style archive from a shared archive.
  12609. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  12610. # Create a temporary old-style archive to link instead of a shared archive.
  12611. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  12612. # Commands used to build and install a shared archive.
  12613. archive_cmds=$lt_archive_cmds_CXX
  12614. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  12615. postinstall_cmds=$lt_postinstall_cmds
  12616. postuninstall_cmds=$lt_postuninstall_cmds
  12617. # Commands used to build a loadable module (assumed same as above if empty)
  12618. module_cmds=$lt_module_cmds_CXX
  12619. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  12620. # Commands to strip libraries.
  12621. old_striplib=$lt_old_striplib
  12622. striplib=$lt_striplib
  12623. # Dependencies to place before the objects being linked to create a
  12624. # shared library.
  12625. predep_objects=$lt_predep_objects_CXX
  12626. # Dependencies to place after the objects being linked to create a
  12627. # shared library.
  12628. postdep_objects=$lt_postdep_objects_CXX
  12629. # Dependencies to place before the objects being linked to create a
  12630. # shared library.
  12631. predeps=$lt_predeps_CXX
  12632. # Dependencies to place after the objects being linked to create a
  12633. # shared library.
  12634. postdeps=$lt_postdeps_CXX
  12635. # The library search path used internally by the compiler when linking
  12636. # a shared library.
  12637. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  12638. # Method to check whether dependent libraries are shared objects.
  12639. deplibs_check_method=$lt_deplibs_check_method
  12640. # Command to use when deplibs_check_method == file_magic.
  12641. file_magic_cmd=$lt_file_magic_cmd
  12642. # Flag that allows shared libraries with undefined symbols to be built.
  12643. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  12644. # Flag that forces no undefined symbols.
  12645. no_undefined_flag=$lt_no_undefined_flag_CXX
  12646. # Commands used to finish a libtool library installation in a directory.
  12647. finish_cmds=$lt_finish_cmds
  12648. # Same as above, but a single script fragment to be evaled but not shown.
  12649. finish_eval=$lt_finish_eval
  12650. # Take the output of nm and produce a listing of raw symbols and C names.
  12651. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12652. # Transform the output of nm in a proper C declaration
  12653. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12654. # Transform the output of nm in a C name address pair
  12655. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12656. # This is the shared library runtime path variable.
  12657. runpath_var=$runpath_var
  12658. # This is the shared library path variable.
  12659. shlibpath_var=$shlibpath_var
  12660. # Is shlibpath searched before the hard-coded library search path?
  12661. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12662. # How to hardcode a shared library path into an executable.
  12663. hardcode_action=$hardcode_action_CXX
  12664. # Whether we should hardcode library paths into libraries.
  12665. hardcode_into_libs=$hardcode_into_libs
  12666. # Flag to hardcode \$libdir into a binary during linking.
  12667. # This must work even if \$libdir does not exist.
  12668. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  12669. # If ld is used when linking, flag to hardcode \$libdir into
  12670. # a binary during linking. This must work even if \$libdir does
  12671. # not exist.
  12672. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  12673. # Whether we need a single -rpath flag with a separated argument.
  12674. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  12675. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  12676. # resulting binary.
  12677. hardcode_direct=$hardcode_direct_CXX
  12678. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  12679. # resulting binary.
  12680. hardcode_minus_L=$hardcode_minus_L_CXX
  12681. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  12682. # the resulting binary.
  12683. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  12684. # Set to yes if building a shared library automatically hardcodes DIR into the library
  12685. # and all subsequent libraries and executables linked against it.
  12686. hardcode_automatic=$hardcode_automatic_CXX
  12687. # Variables whose values should be saved in libtool wrapper scripts and
  12688. # restored at relink time.
  12689. variables_saved_for_relink="$variables_saved_for_relink"
  12690. # Whether libtool must link a program against all its dependency libraries.
  12691. link_all_deplibs=$link_all_deplibs_CXX
  12692. # Compile-time system search path for libraries
  12693. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12694. # Run-time system search path for libraries
  12695. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12696. # Fix the shell variable \$srcfile for the compiler.
  12697. fix_srcfile_path="$fix_srcfile_path_CXX"
  12698. # Set to yes if exported symbols are required.
  12699. always_export_symbols=$always_export_symbols_CXX
  12700. # The commands to list exported symbols.
  12701. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  12702. # The commands to extract the exported symbol list from a shared archive.
  12703. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12704. # Symbols that should not be listed in the preloaded symbols.
  12705. exclude_expsyms=$lt_exclude_expsyms_CXX
  12706. # Symbols that must always be exported.
  12707. include_expsyms=$lt_include_expsyms_CXX
  12708. # ### END LIBTOOL TAG CONFIG: $tagname
  12709. __EOF__
  12710. else
  12711. # If there is no Makefile yet, we rely on a make rule to execute
  12712. # `config.status --recheck' to rerun these tests and create the
  12713. # libtool script then.
  12714. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  12715. if test -f "$ltmain_in"; then
  12716. test -f Makefile && make "$ltmain"
  12717. fi
  12718. fi
  12719. ac_ext=c
  12720. ac_cpp='$CPP $CPPFLAGS'
  12721. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12722. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12723. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12724. CC=$lt_save_CC
  12725. LDCXX=$LD
  12726. LD=$lt_save_LD
  12727. GCC=$lt_save_GCC
  12728. with_gnu_ldcxx=$with_gnu_ld
  12729. with_gnu_ld=$lt_save_with_gnu_ld
  12730. lt_cv_path_LDCXX=$lt_cv_path_LD
  12731. lt_cv_path_LD=$lt_save_path_LD
  12732. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12733. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12734. else
  12735. tagname=""
  12736. fi
  12737. ;;
  12738. F77)
  12739. if test -n "$F77" && test "X$F77" != "Xno"; then
  12740. ac_ext=f
  12741. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  12742. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12743. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  12744. archive_cmds_need_lc_F77=no
  12745. allow_undefined_flag_F77=
  12746. always_export_symbols_F77=no
  12747. archive_expsym_cmds_F77=
  12748. export_dynamic_flag_spec_F77=
  12749. hardcode_direct_F77=no
  12750. hardcode_libdir_flag_spec_F77=
  12751. hardcode_libdir_flag_spec_ld_F77=
  12752. hardcode_libdir_separator_F77=
  12753. hardcode_minus_L_F77=no
  12754. hardcode_automatic_F77=no
  12755. module_cmds_F77=
  12756. module_expsym_cmds_F77=
  12757. link_all_deplibs_F77=unknown
  12758. old_archive_cmds_F77=$old_archive_cmds
  12759. no_undefined_flag_F77=
  12760. whole_archive_flag_spec_F77=
  12761. enable_shared_with_static_runtimes_F77=no
  12762. # Source file extension for f77 test sources.
  12763. ac_ext=f
  12764. # Object file extension for compiled f77 test sources.
  12765. objext=o
  12766. objext_F77=$objext
  12767. # Code to be used in simple compile tests
  12768. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  12769. # Code to be used in simple link tests
  12770. lt_simple_link_test_code=" program t\n end\n"
  12771. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12772. # If no C compiler was specified, use CC.
  12773. LTCC=${LTCC-"$CC"}
  12774. # Allow CC to be a program name with arguments.
  12775. compiler=$CC
  12776. # save warnings/boilerplate of simple test code
  12777. ac_outfile=conftest.$ac_objext
  12778. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  12779. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  12780. _lt_compiler_boilerplate=`cat conftest.err`
  12781. $rm conftest*
  12782. ac_outfile=conftest.$ac_objext
  12783. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  12784. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  12785. _lt_linker_boilerplate=`cat conftest.err`
  12786. $rm conftest*
  12787. # Allow CC to be a program name with arguments.
  12788. lt_save_CC="$CC"
  12789. CC=${F77-"f77"}
  12790. compiler=$CC
  12791. compiler_F77=$CC
  12792. for cc_temp in $compiler""; do
  12793. case $cc_temp in
  12794. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12795. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12796. \-*) ;;
  12797. *) break;;
  12798. esac
  12799. done
  12800. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12801. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  12802. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  12803. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  12804. echo "${ECHO_T}$can_build_shared" >&6; }
  12805. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  12806. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  12807. test "$can_build_shared" = "no" && enable_shared=no
  12808. # On AIX, shared libraries and static libraries use the same namespace, and
  12809. # are all built from PIC.
  12810. case "$host_os" in
  12811. aix3*)
  12812. test "$enable_shared" = yes && enable_static=no
  12813. if test -n "$RANLIB"; then
  12814. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12815. postinstall_cmds='$RANLIB $lib'
  12816. fi
  12817. ;;
  12818. aix4* | aix5*)
  12819. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  12820. test "$enable_shared" = yes && enable_static=no
  12821. fi
  12822. ;;
  12823. esac
  12824. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  12825. echo "${ECHO_T}$enable_shared" >&6; }
  12826. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  12827. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  12828. # Make sure either enable_shared or enable_static is yes.
  12829. test "$enable_shared" = yes || enable_static=yes
  12830. { echo "$as_me:$LINENO: result: $enable_static" >&5
  12831. echo "${ECHO_T}$enable_static" >&6; }
  12832. test "$ld_shlibs_F77" = no && can_build_shared=no
  12833. GCC_F77="$G77"
  12834. LD_F77="$LD"
  12835. lt_prog_compiler_wl_F77=
  12836. lt_prog_compiler_pic_F77=
  12837. lt_prog_compiler_static_F77=
  12838. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12839. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  12840. if test "$GCC" = yes; then
  12841. lt_prog_compiler_wl_F77='-Wl,'
  12842. lt_prog_compiler_static_F77='-static'
  12843. case $host_os in
  12844. aix*)
  12845. # All AIX code is PIC.
  12846. if test "$host_cpu" = ia64; then
  12847. # AIX 5 now supports IA64 processor
  12848. lt_prog_compiler_static_F77='-Bstatic'
  12849. fi
  12850. ;;
  12851. amigaos*)
  12852. # FIXME: we need at least 68020 code to build shared libraries, but
  12853. # adding the `-m68020' flag to GCC prevents building anything better,
  12854. # like `-m68040'.
  12855. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  12856. ;;
  12857. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12858. # PIC is the default for these OSes.
  12859. ;;
  12860. mingw* | pw32* | os2*)
  12861. # This hack is so that the source file can tell whether it is being
  12862. # built for inclusion in a dll (and should export symbols for example).
  12863. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12864. ;;
  12865. darwin* | rhapsody*)
  12866. # PIC is the default on this platform
  12867. # Common symbols not allowed in MH_DYLIB files
  12868. lt_prog_compiler_pic_F77='-fno-common'
  12869. ;;
  12870. msdosdjgpp*)
  12871. # Just because we use GCC doesn't mean we suddenly get shared libraries
  12872. # on systems that don't support them.
  12873. lt_prog_compiler_can_build_shared_F77=no
  12874. enable_shared=no
  12875. ;;
  12876. sysv4*MP*)
  12877. if test -d /usr/nec; then
  12878. lt_prog_compiler_pic_F77=-Kconform_pic
  12879. fi
  12880. ;;
  12881. hpux*)
  12882. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12883. # not for PA HP-UX.
  12884. case "$host_cpu" in
  12885. hppa*64*|ia64*)
  12886. # +Z the default
  12887. ;;
  12888. *)
  12889. lt_prog_compiler_pic_F77='-fPIC'
  12890. ;;
  12891. esac
  12892. ;;
  12893. *)
  12894. lt_prog_compiler_pic_F77='-fPIC'
  12895. ;;
  12896. esac
  12897. else
  12898. # PORTME Check for flag to pass linker flags through the system compiler.
  12899. case $host_os in
  12900. aix*)
  12901. lt_prog_compiler_wl_F77='-Wl,'
  12902. if test "$host_cpu" = ia64; then
  12903. # AIX 5 now supports IA64 processor
  12904. lt_prog_compiler_static_F77='-Bstatic'
  12905. else
  12906. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  12907. fi
  12908. ;;
  12909. darwin*)
  12910. # PIC is the default on this platform
  12911. # Common symbols not allowed in MH_DYLIB files
  12912. case $cc_basename in
  12913. xlc*)
  12914. lt_prog_compiler_pic_F77='-qnocommon'
  12915. lt_prog_compiler_wl_F77='-Wl,'
  12916. ;;
  12917. esac
  12918. ;;
  12919. mingw* | pw32* | os2*)
  12920. # This hack is so that the source file can tell whether it is being
  12921. # built for inclusion in a dll (and should export symbols for example).
  12922. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12923. ;;
  12924. hpux9* | hpux10* | hpux11*)
  12925. lt_prog_compiler_wl_F77='-Wl,'
  12926. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12927. # not for PA HP-UX.
  12928. case "$host_cpu" in
  12929. hppa*64*|ia64*)
  12930. # +Z the default
  12931. ;;
  12932. *)
  12933. lt_prog_compiler_pic_F77='+Z'
  12934. ;;
  12935. esac
  12936. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12937. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  12938. ;;
  12939. irix5* | irix6* | nonstopux*)
  12940. lt_prog_compiler_wl_F77='-Wl,'
  12941. # PIC (with -KPIC) is the default.
  12942. lt_prog_compiler_static_F77='-non_shared'
  12943. ;;
  12944. newsos6)
  12945. lt_prog_compiler_pic_F77='-KPIC'
  12946. lt_prog_compiler_static_F77='-Bstatic'
  12947. ;;
  12948. linux*)
  12949. case $cc_basename in
  12950. icc* | ecc*)
  12951. lt_prog_compiler_wl_F77='-Wl,'
  12952. lt_prog_compiler_pic_F77='-KPIC'
  12953. lt_prog_compiler_static_F77='-static'
  12954. ;;
  12955. pgcc* | pgf77* | pgf90*)
  12956. # Portland Group compilers (*not* the Pentium gcc compiler,
  12957. # which looks to be a dead project)
  12958. lt_prog_compiler_wl_F77='-Wl,'
  12959. lt_prog_compiler_pic_F77='-fpic'
  12960. lt_prog_compiler_static_F77='-static'
  12961. ;;
  12962. ccc*)
  12963. lt_prog_compiler_wl_F77='-Wl,'
  12964. # All Alpha code is PIC.
  12965. lt_prog_compiler_static_F77='-non_shared'
  12966. ;;
  12967. esac
  12968. ;;
  12969. osf3* | osf4* | osf5*)
  12970. lt_prog_compiler_wl_F77='-Wl,'
  12971. # All OSF/1 code is PIC.
  12972. lt_prog_compiler_static_F77='-non_shared'
  12973. ;;
  12974. sco3.2v5*)
  12975. lt_prog_compiler_pic_F77='-Kpic'
  12976. lt_prog_compiler_static_F77='-dn'
  12977. ;;
  12978. solaris*)
  12979. lt_prog_compiler_pic_F77='-KPIC'
  12980. lt_prog_compiler_static_F77='-Bstatic'
  12981. case $cc_basename in
  12982. f77* | f90* | f95*)
  12983. lt_prog_compiler_wl_F77='-Qoption ld ';;
  12984. *)
  12985. lt_prog_compiler_wl_F77='-Wl,';;
  12986. esac
  12987. ;;
  12988. sunos4*)
  12989. lt_prog_compiler_wl_F77='-Qoption ld '
  12990. lt_prog_compiler_pic_F77='-PIC'
  12991. lt_prog_compiler_static_F77='-Bstatic'
  12992. ;;
  12993. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  12994. lt_prog_compiler_wl_F77='-Wl,'
  12995. lt_prog_compiler_pic_F77='-KPIC'
  12996. lt_prog_compiler_static_F77='-Bstatic'
  12997. ;;
  12998. sysv4*MP*)
  12999. if test -d /usr/nec ;then
  13000. lt_prog_compiler_pic_F77='-Kconform_pic'
  13001. lt_prog_compiler_static_F77='-Bstatic'
  13002. fi
  13003. ;;
  13004. unicos*)
  13005. lt_prog_compiler_wl_F77='-Wl,'
  13006. lt_prog_compiler_can_build_shared_F77=no
  13007. ;;
  13008. uts4*)
  13009. lt_prog_compiler_pic_F77='-pic'
  13010. lt_prog_compiler_static_F77='-Bstatic'
  13011. ;;
  13012. *)
  13013. lt_prog_compiler_can_build_shared_F77=no
  13014. ;;
  13015. esac
  13016. fi
  13017. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  13018. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  13019. #
  13020. # Check to make sure the PIC flag actually works.
  13021. #
  13022. if test -n "$lt_prog_compiler_pic_F77"; then
  13023. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  13024. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  13025. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  13026. echo $ECHO_N "(cached) $ECHO_C" >&6
  13027. else
  13028. lt_prog_compiler_pic_works_F77=no
  13029. ac_outfile=conftest.$ac_objext
  13030. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13031. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  13032. # Insert the option either (1) after the last *FLAGS variable, or
  13033. # (2) before a word containing "conftest.", or (3) at the end.
  13034. # Note that $ac_compile itself does not contain backslashes and begins
  13035. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13036. # The option is referenced via a variable to avoid confusing sed.
  13037. lt_compile=`echo "$ac_compile" | $SED \
  13038. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  13039. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13040. -e 's:$: $lt_compiler_flag:'`
  13041. (eval echo "\"\$as_me:14597: $lt_compile\"" >&5)
  13042. (eval "$lt_compile" 2>conftest.err)
  13043. ac_status=$?
  13044. cat conftest.err >&5
  13045. echo "$as_me:14601: \$? = $ac_status" >&5
  13046. if (exit $ac_status) && test -s "$ac_outfile"; then
  13047. # The compiler can only warn and ignore the option if not recognized
  13048. # So say no if there are warnings other than the usual output.
  13049. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  13050. $SED '/^$/d' conftest.err >conftest.er2
  13051. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  13052. lt_prog_compiler_pic_works_F77=yes
  13053. fi
  13054. fi
  13055. $rm conftest*
  13056. fi
  13057. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  13058. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
  13059. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  13060. case $lt_prog_compiler_pic_F77 in
  13061. "" | " "*) ;;
  13062. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  13063. esac
  13064. else
  13065. lt_prog_compiler_pic_F77=
  13066. lt_prog_compiler_can_build_shared_F77=no
  13067. fi
  13068. fi
  13069. case "$host_os" in
  13070. # For platforms which do not support PIC, -DPIC is meaningless:
  13071. *djgpp*)
  13072. lt_prog_compiler_pic_F77=
  13073. ;;
  13074. *)
  13075. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  13076. ;;
  13077. esac
  13078. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  13079. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  13080. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  13081. echo $ECHO_N "(cached) $ECHO_C" >&6
  13082. else
  13083. lt_cv_prog_compiler_c_o_F77=no
  13084. $rm -r conftest 2>/dev/null
  13085. mkdir conftest
  13086. cd conftest
  13087. mkdir out
  13088. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13089. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13090. # Insert the option either (1) after the last *FLAGS variable, or
  13091. # (2) before a word containing "conftest.", or (3) at the end.
  13092. # Note that $ac_compile itself does not contain backslashes and begins
  13093. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13094. lt_compile=`echo "$ac_compile" | $SED \
  13095. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  13096. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13097. -e 's:$: $lt_compiler_flag:'`
  13098. (eval echo "\"\$as_me:14659: $lt_compile\"" >&5)
  13099. (eval "$lt_compile" 2>out/conftest.err)
  13100. ac_status=$?
  13101. cat out/conftest.err >&5
  13102. echo "$as_me:14663: \$? = $ac_status" >&5
  13103. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13104. then
  13105. # The compiler can only warn and ignore the option if not recognized
  13106. # So say no if there are warnings
  13107. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  13108. $SED '/^$/d' out/conftest.err >out/conftest.er2
  13109. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13110. lt_cv_prog_compiler_c_o_F77=yes
  13111. fi
  13112. fi
  13113. chmod u+w .
  13114. $rm conftest*
  13115. # SGI C++ compiler will create directory out/ii_files/ for
  13116. # template instantiation
  13117. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  13118. $rm out/* && rmdir out
  13119. cd ..
  13120. rmdir conftest
  13121. $rm conftest*
  13122. fi
  13123. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  13124. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  13125. hard_links="nottested"
  13126. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  13127. # do not overwrite the value of need_locks provided by the user
  13128. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  13129. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  13130. hard_links=yes
  13131. $rm conftest*
  13132. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13133. touch conftest.a
  13134. ln conftest.a conftest.b 2>&5 || hard_links=no
  13135. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13136. { echo "$as_me:$LINENO: result: $hard_links" >&5
  13137. echo "${ECHO_T}$hard_links" >&6; }
  13138. if test "$hard_links" = no; then
  13139. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  13140. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  13141. need_locks=warn
  13142. fi
  13143. else
  13144. need_locks=no
  13145. fi
  13146. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13147. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  13148. runpath_var=
  13149. allow_undefined_flag_F77=
  13150. enable_shared_with_static_runtimes_F77=no
  13151. archive_cmds_F77=
  13152. archive_expsym_cmds_F77=
  13153. old_archive_From_new_cmds_F77=
  13154. old_archive_from_expsyms_cmds_F77=
  13155. export_dynamic_flag_spec_F77=
  13156. whole_archive_flag_spec_F77=
  13157. thread_safe_flag_spec_F77=
  13158. hardcode_libdir_flag_spec_F77=
  13159. hardcode_libdir_flag_spec_ld_F77=
  13160. hardcode_libdir_separator_F77=
  13161. hardcode_direct_F77=no
  13162. hardcode_minus_L_F77=no
  13163. hardcode_shlibpath_var_F77=unsupported
  13164. link_all_deplibs_F77=unknown
  13165. hardcode_automatic_F77=no
  13166. module_cmds_F77=
  13167. module_expsym_cmds_F77=
  13168. always_export_symbols_F77=no
  13169. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13170. # include_expsyms should be a list of space-separated symbols to be *always*
  13171. # included in the symbol list
  13172. include_expsyms_F77=
  13173. # exclude_expsyms can be an extended regexp of symbols to exclude
  13174. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  13175. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  13176. # as well as any symbol that contains `d'.
  13177. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  13178. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  13179. # platforms (ab)use it in PIC code, but their linkers get confused if
  13180. # the symbol is explicitly referenced. Since portable code cannot
  13181. # rely on this symbol name, it's probably fine to never include it in
  13182. # preloaded symbol tables.
  13183. extract_expsyms_cmds=
  13184. # Just being paranoid about ensuring that cc_basename is set.
  13185. for cc_temp in $compiler""; do
  13186. case $cc_temp in
  13187. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13188. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13189. \-*) ;;
  13190. *) break;;
  13191. esac
  13192. done
  13193. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13194. case $host_os in
  13195. cygwin* | mingw* | pw32*)
  13196. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  13197. # When not using gcc, we currently assume that we are using
  13198. # Microsoft Visual C++.
  13199. if test "$GCC" != yes; then
  13200. with_gnu_ld=no
  13201. fi
  13202. ;;
  13203. openbsd*)
  13204. with_gnu_ld=no
  13205. ;;
  13206. esac
  13207. ld_shlibs_F77=yes
  13208. if test "$with_gnu_ld" = yes; then
  13209. # If archive_cmds runs LD, not CC, wlarc should be empty
  13210. wlarc='${wl}'
  13211. # Set some defaults for GNU ld with shared library support. These
  13212. # are reset later if shared libraries are not supported. Putting them
  13213. # here allows them to be overridden if necessary.
  13214. runpath_var=LD_RUN_PATH
  13215. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  13216. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  13217. # ancient GNU ld didn't support --whole-archive et. al.
  13218. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  13219. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  13220. else
  13221. whole_archive_flag_spec_F77=
  13222. fi
  13223. supports_anon_versioning=no
  13224. case `$LD -v 2>/dev/null` in
  13225. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  13226. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  13227. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  13228. *\ 2.11.*) ;; # other 2.11 versions
  13229. *) supports_anon_versioning=yes ;;
  13230. esac
  13231. # See if GNU ld supports shared libraries.
  13232. case $host_os in
  13233. aix3* | aix4* | aix5*)
  13234. # On AIX/PPC, the GNU linker is very broken
  13235. if test "$host_cpu" != ia64; then
  13236. ld_shlibs_F77=no
  13237. cat <<EOF 1>&2
  13238. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  13239. *** to be unable to reliably create shared libraries on AIX.
  13240. *** Therefore, libtool is disabling shared libraries support. If you
  13241. *** really care for shared libraries, you may want to modify your PATH
  13242. *** so that a non-GNU linker is found, and then restart.
  13243. EOF
  13244. fi
  13245. ;;
  13246. amigaos*)
  13247. 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)'
  13248. hardcode_libdir_flag_spec_F77='-L$libdir'
  13249. hardcode_minus_L_F77=yes
  13250. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  13251. # that the semantics of dynamic libraries on AmigaOS, at least up
  13252. # to version 4, is to share data among multiple programs linked
  13253. # with the same dynamic library. Since this doesn't match the
  13254. # behavior of shared libraries on other platforms, we can't use
  13255. # them.
  13256. ld_shlibs_F77=no
  13257. ;;
  13258. beos*)
  13259. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13260. allow_undefined_flag_F77=unsupported
  13261. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13262. # support --undefined. This deserves some investigation. FIXME
  13263. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13264. else
  13265. ld_shlibs_F77=no
  13266. fi
  13267. ;;
  13268. cygwin* | mingw* | pw32*)
  13269. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  13270. # as there is no search path for DLLs.
  13271. hardcode_libdir_flag_spec_F77='-L$libdir'
  13272. allow_undefined_flag_F77=unsupported
  13273. always_export_symbols_F77=no
  13274. enable_shared_with_static_runtimes_F77=yes
  13275. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  13276. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  13277. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  13278. # If the export-symbols file already is a .def file (1st line
  13279. # is EXPORTS), use it as is; otherwise, prepend...
  13280. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13281. cp $export_symbols $output_objdir/$soname.def;
  13282. else
  13283. echo EXPORTS > $output_objdir/$soname.def;
  13284. cat $export_symbols >> $output_objdir/$soname.def;
  13285. fi~
  13286. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  13287. else
  13288. ld_shlibs_F77=no
  13289. fi
  13290. ;;
  13291. linux*)
  13292. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13293. tmp_addflag=
  13294. case $cc_basename,$host_cpu in
  13295. pgcc*) # Portland Group C compiler
  13296. 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'
  13297. tmp_addflag=' $pic_flag'
  13298. ;;
  13299. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  13300. 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'
  13301. tmp_addflag=' $pic_flag -Mnomain' ;;
  13302. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  13303. tmp_addflag=' -i_dynamic' ;;
  13304. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  13305. tmp_addflag=' -i_dynamic -nofor_main' ;;
  13306. ifc* | ifort*) # Intel Fortran compiler
  13307. tmp_addflag=' -nofor_main' ;;
  13308. esac
  13309. archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13310. if test $supports_anon_versioning = yes; then
  13311. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  13312. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13313. $echo "local: *; };" >> $output_objdir/$libname.ver~
  13314. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  13315. fi
  13316. else
  13317. ld_shlibs_F77=no
  13318. fi
  13319. ;;
  13320. netbsd*)
  13321. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13322. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13323. wlarc=
  13324. else
  13325. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13326. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13327. fi
  13328. ;;
  13329. solaris* | sysv5*)
  13330. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  13331. ld_shlibs_F77=no
  13332. cat <<EOF 1>&2
  13333. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13334. *** create shared libraries on Solaris systems. Therefore, libtool
  13335. *** is disabling shared libraries support. We urge you to upgrade GNU
  13336. *** binutils to release 2.9.1 or newer. Another option is to modify
  13337. *** your PATH or compiler configuration so that the native linker is
  13338. *** used, and then restart.
  13339. EOF
  13340. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13341. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13342. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13343. else
  13344. ld_shlibs_F77=no
  13345. fi
  13346. ;;
  13347. sunos4*)
  13348. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13349. wlarc=
  13350. hardcode_direct_F77=yes
  13351. hardcode_shlibpath_var_F77=no
  13352. ;;
  13353. *)
  13354. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13355. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13356. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13357. else
  13358. ld_shlibs_F77=no
  13359. fi
  13360. ;;
  13361. esac
  13362. if test "$ld_shlibs_F77" = no; then
  13363. runpath_var=
  13364. hardcode_libdir_flag_spec_F77=
  13365. export_dynamic_flag_spec_F77=
  13366. whole_archive_flag_spec_F77=
  13367. fi
  13368. else
  13369. # PORTME fill in a description of your system's linker (not GNU ld)
  13370. case $host_os in
  13371. aix3*)
  13372. allow_undefined_flag_F77=unsupported
  13373. always_export_symbols_F77=yes
  13374. 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'
  13375. # Note: this linker hardcodes the directories in LIBPATH if there
  13376. # are no directories specified by -L.
  13377. hardcode_minus_L_F77=yes
  13378. if test "$GCC" = yes && test -z "$link_static_flag"; then
  13379. # Neither direct hardcoding nor static linking is supported with a
  13380. # broken collect2.
  13381. hardcode_direct_F77=unsupported
  13382. fi
  13383. ;;
  13384. aix4* | aix5*)
  13385. if test "$host_cpu" = ia64; then
  13386. # On IA64, the linker does run time linking by default, so we don't
  13387. # have to do anything special.
  13388. aix_use_runtimelinking=no
  13389. exp_sym_flag='-Bexport'
  13390. no_entry_flag=""
  13391. else
  13392. # If we're using GNU nm, then we don't want the "-C" option.
  13393. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13394. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  13395. 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'
  13396. else
  13397. 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'
  13398. fi
  13399. aix_use_runtimelinking=no
  13400. # Test if we are trying to use run time linking or normal
  13401. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13402. # need to do runtime linking.
  13403. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  13404. for ld_flag in $LDFLAGS; do
  13405. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  13406. aix_use_runtimelinking=yes
  13407. break
  13408. fi
  13409. done
  13410. esac
  13411. exp_sym_flag='-bexport'
  13412. no_entry_flag='-bnoentry'
  13413. fi
  13414. # When large executables or shared objects are built, AIX ld can
  13415. # have problems creating the table of contents. If linking a library
  13416. # or program results in "error TOC overflow" add -mminimal-toc to
  13417. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13418. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13419. archive_cmds_F77=''
  13420. hardcode_direct_F77=yes
  13421. hardcode_libdir_separator_F77=':'
  13422. link_all_deplibs_F77=yes
  13423. if test "$GCC" = yes; then
  13424. case $host_os in aix4.[012]|aix4.[012].*)
  13425. # We only want to do this on AIX 4.2 and lower, the check
  13426. # below for broken collect2 doesn't work under 4.3+
  13427. collect2name=`${CC} -print-prog-name=collect2`
  13428. if test -f "$collect2name" && \
  13429. strings "$collect2name" | grep resolve_lib_name >/dev/null
  13430. then
  13431. # We have reworked collect2
  13432. hardcode_direct_F77=yes
  13433. else
  13434. # We have old collect2
  13435. hardcode_direct_F77=unsupported
  13436. # It fails to find uninstalled libraries when the uninstalled
  13437. # path is not listed in the libpath. Setting hardcode_minus_L
  13438. # to unsupported forces relinking
  13439. hardcode_minus_L_F77=yes
  13440. hardcode_libdir_flag_spec_F77='-L$libdir'
  13441. hardcode_libdir_separator_F77=
  13442. fi
  13443. esac
  13444. shared_flag='-shared'
  13445. if test "$aix_use_runtimelinking" = yes; then
  13446. shared_flag="$shared_flag "'${wl}-G'
  13447. fi
  13448. else
  13449. # not using gcc
  13450. if test "$host_cpu" = ia64; then
  13451. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13452. # chokes on -Wl,-G. The following line is correct:
  13453. shared_flag='-G'
  13454. else
  13455. if test "$aix_use_runtimelinking" = yes; then
  13456. shared_flag='${wl}-G'
  13457. else
  13458. shared_flag='${wl}-bM:SRE'
  13459. fi
  13460. fi
  13461. fi
  13462. # It seems that -bexpall does not export symbols beginning with
  13463. # underscore (_), so it is better to generate a list of symbols to export.
  13464. always_export_symbols_F77=yes
  13465. if test "$aix_use_runtimelinking" = yes; then
  13466. # Warning - without using the other runtime loading flags (-brtl),
  13467. # -berok will link without error, but may produce a broken library.
  13468. allow_undefined_flag_F77='-berok'
  13469. # Determine the default libpath from the value encoded in an empty executable.
  13470. cat >conftest.$ac_ext <<_ACEOF
  13471. program main
  13472. end
  13473. _ACEOF
  13474. rm -f conftest.$ac_objext conftest$ac_exeext
  13475. if { (ac_try="$ac_link"
  13476. case "(($ac_try" in
  13477. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13478. *) ac_try_echo=$ac_try;;
  13479. esac
  13480. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13481. (eval "$ac_link") 2>conftest.er1
  13482. ac_status=$?
  13483. grep -v '^ *+' conftest.er1 >conftest.err
  13484. rm -f conftest.er1
  13485. cat conftest.err >&5
  13486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13487. (exit $ac_status); } && {
  13488. test -z "$ac_f77_werror_flag" ||
  13489. test ! -s conftest.err
  13490. } && test -s conftest$ac_exeext &&
  13491. $as_test_x conftest$ac_exeext; then
  13492. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13493. }'`
  13494. # Check for a 64-bit object if we didn't find anything.
  13495. 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; }
  13496. }'`; fi
  13497. else
  13498. echo "$as_me: failed program was:" >&5
  13499. sed 's/^/| /' conftest.$ac_ext >&5
  13500. fi
  13501. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13502. conftest$ac_exeext conftest.$ac_ext
  13503. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13504. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13505. 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"
  13506. else
  13507. if test "$host_cpu" = ia64; then
  13508. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  13509. allow_undefined_flag_F77="-z nodefs"
  13510. 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"
  13511. else
  13512. # Determine the default libpath from the value encoded in an empty executable.
  13513. cat >conftest.$ac_ext <<_ACEOF
  13514. program main
  13515. end
  13516. _ACEOF
  13517. rm -f conftest.$ac_objext conftest$ac_exeext
  13518. if { (ac_try="$ac_link"
  13519. case "(($ac_try" in
  13520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13521. *) ac_try_echo=$ac_try;;
  13522. esac
  13523. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13524. (eval "$ac_link") 2>conftest.er1
  13525. ac_status=$?
  13526. grep -v '^ *+' conftest.er1 >conftest.err
  13527. rm -f conftest.er1
  13528. cat conftest.err >&5
  13529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13530. (exit $ac_status); } && {
  13531. test -z "$ac_f77_werror_flag" ||
  13532. test ! -s conftest.err
  13533. } && test -s conftest$ac_exeext &&
  13534. $as_test_x conftest$ac_exeext; then
  13535. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13536. }'`
  13537. # Check for a 64-bit object if we didn't find anything.
  13538. 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; }
  13539. }'`; fi
  13540. else
  13541. echo "$as_me: failed program was:" >&5
  13542. sed 's/^/| /' conftest.$ac_ext >&5
  13543. fi
  13544. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13545. conftest$ac_exeext conftest.$ac_ext
  13546. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13547. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13548. # Warning - without using the other run time loading flags,
  13549. # -berok will link without error, but may produce a broken library.
  13550. no_undefined_flag_F77=' ${wl}-bernotok'
  13551. allow_undefined_flag_F77=' ${wl}-berok'
  13552. # -bexpall does not export symbols beginning with underscore (_)
  13553. always_export_symbols_F77=yes
  13554. # Exported symbols can be pulled into shared objects from archives
  13555. whole_archive_flag_spec_F77=' '
  13556. archive_cmds_need_lc_F77=yes
  13557. # This is similar to how AIX traditionally builds it's shared libraries.
  13558. 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'
  13559. fi
  13560. fi
  13561. ;;
  13562. amigaos*)
  13563. 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)'
  13564. hardcode_libdir_flag_spec_F77='-L$libdir'
  13565. hardcode_minus_L_F77=yes
  13566. # see comment about different semantics on the GNU ld section
  13567. ld_shlibs_F77=no
  13568. ;;
  13569. bsdi[45]*)
  13570. export_dynamic_flag_spec_F77=-rdynamic
  13571. ;;
  13572. cygwin* | mingw* | pw32*)
  13573. # When not using gcc, we currently assume that we are using
  13574. # Microsoft Visual C++.
  13575. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13576. # no search path for DLLs.
  13577. hardcode_libdir_flag_spec_F77=' '
  13578. allow_undefined_flag_F77=unsupported
  13579. # Tell ltmain to make .lib files, not .a files.
  13580. libext=lib
  13581. # Tell ltmain to make .dll files, not .so files.
  13582. shrext_cmds=".dll"
  13583. # FIXME: Setting linknames here is a bad hack.
  13584. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  13585. # The linker will automatically build a .lib file if we build a DLL.
  13586. old_archive_From_new_cmds_F77='true'
  13587. # FIXME: Should let the user specify the lib program.
  13588. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  13589. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  13590. enable_shared_with_static_runtimes_F77=yes
  13591. ;;
  13592. darwin* | rhapsody*)
  13593. case "$host_os" in
  13594. rhapsody* | darwin1.[012])
  13595. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  13596. ;;
  13597. *) # Darwin 1.3 on
  13598. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  13599. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13600. else
  13601. case ${MACOSX_DEPLOYMENT_TARGET} in
  13602. 10.[012])
  13603. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13604. ;;
  13605. 10.*)
  13606. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  13607. ;;
  13608. esac
  13609. fi
  13610. ;;
  13611. esac
  13612. archive_cmds_need_lc_F77=no
  13613. hardcode_direct_F77=no
  13614. hardcode_automatic_F77=yes
  13615. hardcode_shlibpath_var_F77=unsupported
  13616. whole_archive_flag_spec_F77=''
  13617. link_all_deplibs_F77=yes
  13618. if test "$GCC" = yes ; then
  13619. output_verbose_link_cmd='echo'
  13620. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  13621. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13622. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  13623. 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}'
  13624. 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}'
  13625. else
  13626. case $cc_basename in
  13627. xlc*)
  13628. output_verbose_link_cmd='echo'
  13629. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  13630. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13631. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  13632. 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}'
  13633. 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}'
  13634. ;;
  13635. *)
  13636. ld_shlibs_F77=no
  13637. ;;
  13638. esac
  13639. fi
  13640. ;;
  13641. dgux*)
  13642. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13643. hardcode_libdir_flag_spec_F77='-L$libdir'
  13644. hardcode_shlibpath_var_F77=no
  13645. ;;
  13646. freebsd1*)
  13647. ld_shlibs_F77=no
  13648. ;;
  13649. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  13650. # support. Future versions do this automatically, but an explicit c++rt0.o
  13651. # does not break anything, and helps significantly (at the cost of a little
  13652. # extra space).
  13653. freebsd2.2*)
  13654. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  13655. hardcode_libdir_flag_spec_F77='-R$libdir'
  13656. hardcode_direct_F77=yes
  13657. hardcode_shlibpath_var_F77=no
  13658. ;;
  13659. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  13660. freebsd2*)
  13661. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13662. hardcode_direct_F77=yes
  13663. hardcode_minus_L_F77=yes
  13664. hardcode_shlibpath_var_F77=no
  13665. ;;
  13666. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  13667. freebsd* | kfreebsd*-gnu | dragonfly*)
  13668. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  13669. hardcode_libdir_flag_spec_F77='-R$libdir'
  13670. hardcode_direct_F77=yes
  13671. hardcode_shlibpath_var_F77=no
  13672. ;;
  13673. hpux9*)
  13674. if test "$GCC" = yes; then
  13675. 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'
  13676. else
  13677. 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'
  13678. fi
  13679. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13680. hardcode_libdir_separator_F77=:
  13681. hardcode_direct_F77=yes
  13682. # hardcode_minus_L: Not really in the search PATH,
  13683. # but as the default location of the library.
  13684. hardcode_minus_L_F77=yes
  13685. export_dynamic_flag_spec_F77='${wl}-E'
  13686. ;;
  13687. hpux10* | hpux11*)
  13688. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13689. case "$host_cpu" in
  13690. hppa*64*|ia64*)
  13691. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13692. ;;
  13693. *)
  13694. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13695. ;;
  13696. esac
  13697. else
  13698. case "$host_cpu" in
  13699. hppa*64*|ia64*)
  13700. archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  13701. ;;
  13702. *)
  13703. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13704. ;;
  13705. esac
  13706. fi
  13707. if test "$with_gnu_ld" = no; then
  13708. case "$host_cpu" in
  13709. hppa*64*)
  13710. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13711. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  13712. hardcode_libdir_separator_F77=:
  13713. hardcode_direct_F77=no
  13714. hardcode_shlibpath_var_F77=no
  13715. ;;
  13716. ia64*)
  13717. hardcode_libdir_flag_spec_F77='-L$libdir'
  13718. hardcode_direct_F77=no
  13719. hardcode_shlibpath_var_F77=no
  13720. # hardcode_minus_L: Not really in the search PATH,
  13721. # but as the default location of the library.
  13722. hardcode_minus_L_F77=yes
  13723. ;;
  13724. *)
  13725. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13726. hardcode_libdir_separator_F77=:
  13727. hardcode_direct_F77=yes
  13728. export_dynamic_flag_spec_F77='${wl}-E'
  13729. # hardcode_minus_L: Not really in the search PATH,
  13730. # but as the default location of the library.
  13731. hardcode_minus_L_F77=yes
  13732. ;;
  13733. esac
  13734. fi
  13735. ;;
  13736. irix5* | irix6* | nonstopux*)
  13737. if test "$GCC" = yes; then
  13738. 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'
  13739. else
  13740. 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'
  13741. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  13742. fi
  13743. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13744. hardcode_libdir_separator_F77=:
  13745. link_all_deplibs_F77=yes
  13746. ;;
  13747. netbsd*)
  13748. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13749. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  13750. else
  13751. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  13752. fi
  13753. hardcode_libdir_flag_spec_F77='-R$libdir'
  13754. hardcode_direct_F77=yes
  13755. hardcode_shlibpath_var_F77=no
  13756. ;;
  13757. newsos6)
  13758. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13759. hardcode_direct_F77=yes
  13760. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13761. hardcode_libdir_separator_F77=:
  13762. hardcode_shlibpath_var_F77=no
  13763. ;;
  13764. openbsd*)
  13765. hardcode_direct_F77=yes
  13766. hardcode_shlibpath_var_F77=no
  13767. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13768. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13769. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  13770. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13771. export_dynamic_flag_spec_F77='${wl}-E'
  13772. else
  13773. case $host_os in
  13774. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  13775. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13776. hardcode_libdir_flag_spec_F77='-R$libdir'
  13777. ;;
  13778. *)
  13779. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13780. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13781. ;;
  13782. esac
  13783. fi
  13784. ;;
  13785. os2*)
  13786. hardcode_libdir_flag_spec_F77='-L$libdir'
  13787. hardcode_minus_L_F77=yes
  13788. allow_undefined_flag_F77=unsupported
  13789. 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'
  13790. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  13791. ;;
  13792. osf3*)
  13793. if test "$GCC" = yes; then
  13794. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13795. 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'
  13796. else
  13797. allow_undefined_flag_F77=' -expect_unresolved \*'
  13798. 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'
  13799. fi
  13800. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13801. hardcode_libdir_separator_F77=:
  13802. ;;
  13803. osf4* | osf5*) # as osf3* with the addition of -msym flag
  13804. if test "$GCC" = yes; then
  13805. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13806. 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'
  13807. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13808. else
  13809. allow_undefined_flag_F77=' -expect_unresolved \*'
  13810. 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'
  13811. 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~
  13812. $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'
  13813. # Both c and cxx compiler support -rpath directly
  13814. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  13815. fi
  13816. hardcode_libdir_separator_F77=:
  13817. ;;
  13818. sco3.2v5*)
  13819. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13820. hardcode_shlibpath_var_F77=no
  13821. export_dynamic_flag_spec_F77='${wl}-Bexport'
  13822. runpath_var=LD_RUN_PATH
  13823. hardcode_runpath_var=yes
  13824. ;;
  13825. solaris*)
  13826. no_undefined_flag_F77=' -z text'
  13827. if test "$GCC" = yes; then
  13828. wlarc='${wl}'
  13829. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13830. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13831. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  13832. else
  13833. wlarc=''
  13834. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13835. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13836. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13837. fi
  13838. hardcode_libdir_flag_spec_F77='-R$libdir'
  13839. hardcode_shlibpath_var_F77=no
  13840. case $host_os in
  13841. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13842. *)
  13843. # The compiler driver will combine linker options so we
  13844. # cannot just pass the convience library names through
  13845. # without $wl, iff we do not link with $LD.
  13846. # Luckily, gcc supports the same syntax we need for Sun Studio.
  13847. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13848. case $wlarc in
  13849. '')
  13850. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  13851. *)
  13852. 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' ;;
  13853. esac ;;
  13854. esac
  13855. link_all_deplibs_F77=yes
  13856. ;;
  13857. sunos4*)
  13858. if test "x$host_vendor" = xsequent; then
  13859. # Use $CC to link under sequent, because it throws in some extra .o
  13860. # files that make .init and .fini sections work.
  13861. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13862. else
  13863. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13864. fi
  13865. hardcode_libdir_flag_spec_F77='-L$libdir'
  13866. hardcode_direct_F77=yes
  13867. hardcode_minus_L_F77=yes
  13868. hardcode_shlibpath_var_F77=no
  13869. ;;
  13870. sysv4)
  13871. case $host_vendor in
  13872. sni)
  13873. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13874. hardcode_direct_F77=yes # is this really true???
  13875. ;;
  13876. siemens)
  13877. ## LD is ld it makes a PLAMLIB
  13878. ## CC just makes a GrossModule.
  13879. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13880. reload_cmds_F77='$CC -r -o $output$reload_objs'
  13881. hardcode_direct_F77=no
  13882. ;;
  13883. motorola)
  13884. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13885. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  13886. ;;
  13887. esac
  13888. runpath_var='LD_RUN_PATH'
  13889. hardcode_shlibpath_var_F77=no
  13890. ;;
  13891. sysv4.3*)
  13892. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13893. hardcode_shlibpath_var_F77=no
  13894. export_dynamic_flag_spec_F77='-Bexport'
  13895. ;;
  13896. sysv4*MP*)
  13897. if test -d /usr/nec; then
  13898. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13899. hardcode_shlibpath_var_F77=no
  13900. runpath_var=LD_RUN_PATH
  13901. hardcode_runpath_var=yes
  13902. ld_shlibs_F77=yes
  13903. fi
  13904. ;;
  13905. sysv4.2uw2*)
  13906. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13907. hardcode_direct_F77=yes
  13908. hardcode_minus_L_F77=no
  13909. hardcode_shlibpath_var_F77=no
  13910. hardcode_runpath_var=yes
  13911. runpath_var=LD_RUN_PATH
  13912. ;;
  13913. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  13914. no_undefined_flag_F77='${wl}-z ${wl}text'
  13915. if test "$GCC" = yes; then
  13916. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13917. else
  13918. archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13919. fi
  13920. runpath_var='LD_RUN_PATH'
  13921. hardcode_shlibpath_var_F77=no
  13922. ;;
  13923. sysv5*)
  13924. no_undefined_flag_F77=' -z text'
  13925. # $CC -shared without GNU ld will not create a library from C++
  13926. # object files and a static libstdc++, better avoid it by now
  13927. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13928. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13929. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13930. hardcode_libdir_flag_spec_F77=
  13931. hardcode_shlibpath_var_F77=no
  13932. runpath_var='LD_RUN_PATH'
  13933. ;;
  13934. uts4*)
  13935. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13936. hardcode_libdir_flag_spec_F77='-L$libdir'
  13937. hardcode_shlibpath_var_F77=no
  13938. ;;
  13939. *)
  13940. ld_shlibs_F77=no
  13941. ;;
  13942. esac
  13943. fi
  13944. { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  13945. echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  13946. test "$ld_shlibs_F77" = no && can_build_shared=no
  13947. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13948. if test "$GCC" = yes; then
  13949. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13950. fi
  13951. #
  13952. # Do we need to explicitly link libc?
  13953. #
  13954. case "x$archive_cmds_need_lc_F77" in
  13955. x|xyes)
  13956. # Assume -lc should be added
  13957. archive_cmds_need_lc_F77=yes
  13958. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13959. case $archive_cmds_F77 in
  13960. *'~'*)
  13961. # FIXME: we may have to deal with multi-command sequences.
  13962. ;;
  13963. '$CC '*)
  13964. # Test whether the compiler implicitly links with -lc since on some
  13965. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13966. # to ld, don't add -lc before -lgcc.
  13967. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13968. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  13969. $rm conftest*
  13970. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13971. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13972. (eval $ac_compile) 2>&5
  13973. ac_status=$?
  13974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13975. (exit $ac_status); } 2>conftest.err; then
  13976. soname=conftest
  13977. lib=conftest
  13978. libobjs=conftest.$ac_objext
  13979. deplibs=
  13980. wl=$lt_prog_compiler_wl_F77
  13981. compiler_flags=-v
  13982. linker_flags=-v
  13983. verstring=
  13984. output_objdir=.
  13985. libname=conftest
  13986. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  13987. allow_undefined_flag_F77=
  13988. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13989. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13990. ac_status=$?
  13991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13992. (exit $ac_status); }
  13993. then
  13994. archive_cmds_need_lc_F77=no
  13995. else
  13996. archive_cmds_need_lc_F77=yes
  13997. fi
  13998. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  13999. else
  14000. cat conftest.err 1>&5
  14001. fi
  14002. $rm conftest*
  14003. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  14004. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  14005. ;;
  14006. esac
  14007. fi
  14008. ;;
  14009. esac
  14010. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  14011. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  14012. library_names_spec=
  14013. libname_spec='lib$name'
  14014. soname_spec=
  14015. shrext_cmds=".so"
  14016. postinstall_cmds=
  14017. postuninstall_cmds=
  14018. finish_cmds=
  14019. finish_eval=
  14020. shlibpath_var=
  14021. shlibpath_overrides_runpath=unknown
  14022. version_type=none
  14023. dynamic_linker="$host_os ld.so"
  14024. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14025. if test "$GCC" = yes; then
  14026. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14027. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  14028. # if the path contains ";" then we assume it to be the separator
  14029. # otherwise default to the standard path separator (i.e. ":") - it is
  14030. # assumed that no part of a normal pathname contains ";" but that should
  14031. # okay in the real world where ";" in dirpaths is itself problematic.
  14032. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14033. else
  14034. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14035. fi
  14036. else
  14037. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14038. fi
  14039. need_lib_prefix=unknown
  14040. hardcode_into_libs=no
  14041. # when you set need_version to no, make sure it does not cause -set_version
  14042. # flags to be left without arguments
  14043. need_version=unknown
  14044. case $host_os in
  14045. aix3*)
  14046. version_type=linux
  14047. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  14048. shlibpath_var=LIBPATH
  14049. # AIX 3 has no versioning support, so we append a major version to the name.
  14050. soname_spec='${libname}${release}${shared_ext}$major'
  14051. ;;
  14052. aix4* | aix5*)
  14053. version_type=linux
  14054. need_lib_prefix=no
  14055. need_version=no
  14056. hardcode_into_libs=yes
  14057. if test "$host_cpu" = ia64; then
  14058. # AIX 5 supports IA64
  14059. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  14060. shlibpath_var=LD_LIBRARY_PATH
  14061. else
  14062. # With GCC up to 2.95.x, collect2 would create an import file
  14063. # for dependence libraries. The import file would start with
  14064. # the line `#! .'. This would cause the generated library to
  14065. # depend on `.', always an invalid library. This was fixed in
  14066. # development snapshots of GCC prior to 3.0.
  14067. case $host_os in
  14068. aix4 | aix4.[01] | aix4.[01].*)
  14069. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14070. echo ' yes '
  14071. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  14072. :
  14073. else
  14074. can_build_shared=no
  14075. fi
  14076. ;;
  14077. esac
  14078. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  14079. # soname into executable. Probably we can add versioning support to
  14080. # collect2, so additional links can be useful in future.
  14081. if test "$aix_use_runtimelinking" = yes; then
  14082. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14083. # instead of lib<name>.a to let people know that these are not
  14084. # typical AIX shared libraries.
  14085. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14086. else
  14087. # We preserve .a as extension for shared libraries through AIX4.2
  14088. # and later when we are not doing run time linking.
  14089. library_names_spec='${libname}${release}.a $libname.a'
  14090. soname_spec='${libname}${release}${shared_ext}$major'
  14091. fi
  14092. shlibpath_var=LIBPATH
  14093. fi
  14094. ;;
  14095. amigaos*)
  14096. library_names_spec='$libname.ixlibrary $libname.a'
  14097. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14098. 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'
  14099. ;;
  14100. beos*)
  14101. library_names_spec='${libname}${shared_ext}'
  14102. dynamic_linker="$host_os ld.so"
  14103. shlibpath_var=LIBRARY_PATH
  14104. ;;
  14105. bsdi[45]*)
  14106. version_type=linux
  14107. need_version=no
  14108. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14109. soname_spec='${libname}${release}${shared_ext}$major'
  14110. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14111. shlibpath_var=LD_LIBRARY_PATH
  14112. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14113. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14114. # the default ld.so.conf also contains /usr/contrib/lib and
  14115. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14116. # libtool to hard-code these into programs
  14117. ;;
  14118. cygwin* | mingw* | pw32*)
  14119. version_type=windows
  14120. shrext_cmds=".dll"
  14121. need_version=no
  14122. need_lib_prefix=no
  14123. case $GCC,$host_os in
  14124. yes,cygwin* | yes,mingw* | yes,pw32*)
  14125. library_names_spec='$libname.dll.a'
  14126. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14127. postinstall_cmds='base_file=`basename \${file}`~
  14128. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  14129. dldir=$destdir/`dirname \$dlpath`~
  14130. test -d \$dldir || mkdir -p \$dldir~
  14131. $install_prog $dir/$dlname \$dldir/$dlname'
  14132. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14133. dlpath=$dir/\$dldll~
  14134. $rm \$dlpath'
  14135. shlibpath_overrides_runpath=yes
  14136. case $host_os in
  14137. cygwin*)
  14138. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14139. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14140. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  14141. ;;
  14142. mingw*)
  14143. # MinGW DLLs use traditional 'lib' prefix
  14144. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14145. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14146. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  14147. # It is most probably a Windows format PATH printed by
  14148. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  14149. # path with ; separators, and with drive letters. We can handle the
  14150. # drive letters (cygwin fileutils understands them), so leave them,
  14151. # especially as we might pass files found there to a mingw objdump,
  14152. # which wouldn't understand a cygwinified path. Ahh.
  14153. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14154. else
  14155. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14156. fi
  14157. ;;
  14158. pw32*)
  14159. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14160. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14161. ;;
  14162. esac
  14163. ;;
  14164. *)
  14165. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  14166. ;;
  14167. esac
  14168. dynamic_linker='Win32 ld.exe'
  14169. # FIXME: first we should search . and the directory the executable is in
  14170. shlibpath_var=PATH
  14171. ;;
  14172. darwin* | rhapsody*)
  14173. dynamic_linker="$host_os dyld"
  14174. version_type=darwin
  14175. need_lib_prefix=no
  14176. need_version=no
  14177. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  14178. soname_spec='${libname}${release}${major}$shared_ext'
  14179. shlibpath_overrides_runpath=yes
  14180. shlibpath_var=DYLD_LIBRARY_PATH
  14181. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  14182. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  14183. if test "$GCC" = yes; then
  14184. 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"`
  14185. else
  14186. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  14187. fi
  14188. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14189. ;;
  14190. dgux*)
  14191. version_type=linux
  14192. need_lib_prefix=no
  14193. need_version=no
  14194. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  14195. soname_spec='${libname}${release}${shared_ext}$major'
  14196. shlibpath_var=LD_LIBRARY_PATH
  14197. ;;
  14198. freebsd1*)
  14199. dynamic_linker=no
  14200. ;;
  14201. kfreebsd*-gnu)
  14202. version_type=linux
  14203. need_lib_prefix=no
  14204. need_version=no
  14205. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14206. soname_spec='${libname}${release}${shared_ext}$major'
  14207. shlibpath_var=LD_LIBRARY_PATH
  14208. shlibpath_overrides_runpath=no
  14209. hardcode_into_libs=yes
  14210. dynamic_linker='GNU ld.so'
  14211. ;;
  14212. freebsd* | dragonfly*)
  14213. # DragonFly does not have aout. When/if they implement a new
  14214. # versioning mechanism, adjust this.
  14215. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  14216. version_type=freebsd-$objformat
  14217. case $version_type in
  14218. freebsd-elf*)
  14219. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14220. need_version=no
  14221. need_lib_prefix=no
  14222. ;;
  14223. freebsd-*)
  14224. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  14225. need_version=yes
  14226. ;;
  14227. esac
  14228. shlibpath_var=LD_LIBRARY_PATH
  14229. case $host_os in
  14230. freebsd2*)
  14231. shlibpath_overrides_runpath=yes
  14232. ;;
  14233. freebsd3.[01]* | freebsdelf3.[01]*)
  14234. shlibpath_overrides_runpath=yes
  14235. hardcode_into_libs=yes
  14236. ;;
  14237. *) # from 3.2 on
  14238. shlibpath_overrides_runpath=no
  14239. hardcode_into_libs=yes
  14240. ;;
  14241. esac
  14242. ;;
  14243. gnu*)
  14244. version_type=linux
  14245. need_lib_prefix=no
  14246. need_version=no
  14247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14248. soname_spec='${libname}${release}${shared_ext}$major'
  14249. shlibpath_var=LD_LIBRARY_PATH
  14250. hardcode_into_libs=yes
  14251. ;;
  14252. hpux9* | hpux10* | hpux11*)
  14253. # Give a soname corresponding to the major version so that dld.sl refuses to
  14254. # link against other versions.
  14255. version_type=sunos
  14256. need_lib_prefix=no
  14257. need_version=no
  14258. case "$host_cpu" in
  14259. ia64*)
  14260. shrext_cmds='.so'
  14261. hardcode_into_libs=yes
  14262. dynamic_linker="$host_os dld.so"
  14263. shlibpath_var=LD_LIBRARY_PATH
  14264. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14265. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14266. soname_spec='${libname}${release}${shared_ext}$major'
  14267. if test "X$HPUX_IA64_MODE" = X32; then
  14268. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14269. else
  14270. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14271. fi
  14272. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14273. ;;
  14274. hppa*64*)
  14275. shrext_cmds='.sl'
  14276. hardcode_into_libs=yes
  14277. dynamic_linker="$host_os dld.sl"
  14278. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14279. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14280. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14281. soname_spec='${libname}${release}${shared_ext}$major'
  14282. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14283. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14284. ;;
  14285. *)
  14286. shrext_cmds='.sl'
  14287. dynamic_linker="$host_os dld.sl"
  14288. shlibpath_var=SHLIB_PATH
  14289. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14290. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14291. soname_spec='${libname}${release}${shared_ext}$major'
  14292. ;;
  14293. esac
  14294. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  14295. postinstall_cmds='chmod 555 $lib'
  14296. ;;
  14297. irix5* | irix6* | nonstopux*)
  14298. case $host_os in
  14299. nonstopux*) version_type=nonstopux ;;
  14300. *)
  14301. if test "$lt_cv_prog_gnu_ld" = yes; then
  14302. version_type=linux
  14303. else
  14304. version_type=irix
  14305. fi ;;
  14306. esac
  14307. need_lib_prefix=no
  14308. need_version=no
  14309. soname_spec='${libname}${release}${shared_ext}$major'
  14310. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  14311. case $host_os in
  14312. irix5* | nonstopux*)
  14313. libsuff= shlibsuff=
  14314. ;;
  14315. *)
  14316. case $LD in # libtool.m4 will add one of these switches to LD
  14317. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14318. libsuff= shlibsuff= libmagic=32-bit;;
  14319. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14320. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14321. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14322. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14323. *) libsuff= shlibsuff= libmagic=never-match;;
  14324. esac
  14325. ;;
  14326. esac
  14327. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14328. shlibpath_overrides_runpath=no
  14329. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  14330. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  14331. hardcode_into_libs=yes
  14332. ;;
  14333. # No shared lib support for Linux oldld, aout, or coff.
  14334. linux*oldld* | linux*aout* | linux*coff*)
  14335. dynamic_linker=no
  14336. ;;
  14337. # This must be Linux ELF.
  14338. linux*)
  14339. version_type=linux
  14340. need_lib_prefix=no
  14341. need_version=no
  14342. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14343. soname_spec='${libname}${release}${shared_ext}$major'
  14344. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14345. shlibpath_var=LD_LIBRARY_PATH
  14346. shlibpath_overrides_runpath=no
  14347. # This implies no fast_install, which is unacceptable.
  14348. # Some rework will be needed to allow for fast_install
  14349. # before this can be enabled.
  14350. hardcode_into_libs=yes
  14351. # Append ld.so.conf contents to the search path
  14352. if test -f /etc/ld.so.conf; then
  14353. 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' ' '`
  14354. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14355. fi
  14356. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14357. # powerpc, because MkLinux only supported shared libraries with the
  14358. # GNU dynamic linker. Since this was broken with cross compilers,
  14359. # most powerpc-linux boxes support dynamic linking these days and
  14360. # people can always --disable-shared, the test was removed, and we
  14361. # assume the GNU/Linux dynamic linker is in use.
  14362. dynamic_linker='GNU/Linux ld.so'
  14363. ;;
  14364. knetbsd*-gnu)
  14365. version_type=linux
  14366. need_lib_prefix=no
  14367. need_version=no
  14368. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14369. soname_spec='${libname}${release}${shared_ext}$major'
  14370. shlibpath_var=LD_LIBRARY_PATH
  14371. shlibpath_overrides_runpath=no
  14372. hardcode_into_libs=yes
  14373. dynamic_linker='GNU ld.so'
  14374. ;;
  14375. netbsd*)
  14376. version_type=sunos
  14377. need_lib_prefix=no
  14378. need_version=no
  14379. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14380. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14381. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14382. dynamic_linker='NetBSD (a.out) ld.so'
  14383. else
  14384. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14385. soname_spec='${libname}${release}${shared_ext}$major'
  14386. dynamic_linker='NetBSD ld.elf_so'
  14387. fi
  14388. shlibpath_var=LD_LIBRARY_PATH
  14389. shlibpath_overrides_runpath=yes
  14390. hardcode_into_libs=yes
  14391. ;;
  14392. newsos6)
  14393. version_type=linux
  14394. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14395. shlibpath_var=LD_LIBRARY_PATH
  14396. shlibpath_overrides_runpath=yes
  14397. ;;
  14398. nto-qnx*)
  14399. version_type=linux
  14400. need_lib_prefix=no
  14401. need_version=no
  14402. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14403. soname_spec='${libname}${release}${shared_ext}$major'
  14404. shlibpath_var=LD_LIBRARY_PATH
  14405. shlibpath_overrides_runpath=yes
  14406. ;;
  14407. openbsd*)
  14408. version_type=sunos
  14409. need_lib_prefix=no
  14410. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  14411. case $host_os in
  14412. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  14413. *) need_version=no ;;
  14414. esac
  14415. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14416. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14417. shlibpath_var=LD_LIBRARY_PATH
  14418. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14419. case $host_os in
  14420. openbsd2.[89] | openbsd2.[89].*)
  14421. shlibpath_overrides_runpath=no
  14422. ;;
  14423. *)
  14424. shlibpath_overrides_runpath=yes
  14425. ;;
  14426. esac
  14427. else
  14428. shlibpath_overrides_runpath=yes
  14429. fi
  14430. ;;
  14431. os2*)
  14432. libname_spec='$name'
  14433. shrext_cmds=".dll"
  14434. need_lib_prefix=no
  14435. library_names_spec='$libname${shared_ext} $libname.a'
  14436. dynamic_linker='OS/2 ld.exe'
  14437. shlibpath_var=LIBPATH
  14438. ;;
  14439. osf3* | osf4* | osf5*)
  14440. version_type=osf
  14441. need_lib_prefix=no
  14442. need_version=no
  14443. soname_spec='${libname}${release}${shared_ext}$major'
  14444. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14445. shlibpath_var=LD_LIBRARY_PATH
  14446. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14447. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14448. ;;
  14449. sco3.2v5*)
  14450. version_type=osf
  14451. soname_spec='${libname}${release}${shared_ext}$major'
  14452. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14453. shlibpath_var=LD_LIBRARY_PATH
  14454. ;;
  14455. solaris*)
  14456. version_type=linux
  14457. need_lib_prefix=no
  14458. need_version=no
  14459. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14460. soname_spec='${libname}${release}${shared_ext}$major'
  14461. shlibpath_var=LD_LIBRARY_PATH
  14462. shlibpath_overrides_runpath=yes
  14463. hardcode_into_libs=yes
  14464. # ldd complains unless libraries are executable
  14465. postinstall_cmds='chmod +x $lib'
  14466. ;;
  14467. sunos4*)
  14468. version_type=sunos
  14469. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14470. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14471. shlibpath_var=LD_LIBRARY_PATH
  14472. shlibpath_overrides_runpath=yes
  14473. if test "$with_gnu_ld" = yes; then
  14474. need_lib_prefix=no
  14475. fi
  14476. need_version=yes
  14477. ;;
  14478. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  14479. version_type=linux
  14480. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14481. soname_spec='${libname}${release}${shared_ext}$major'
  14482. shlibpath_var=LD_LIBRARY_PATH
  14483. case $host_vendor in
  14484. sni)
  14485. shlibpath_overrides_runpath=no
  14486. need_lib_prefix=no
  14487. export_dynamic_flag_spec='${wl}-Blargedynsym'
  14488. runpath_var=LD_RUN_PATH
  14489. ;;
  14490. siemens)
  14491. need_lib_prefix=no
  14492. ;;
  14493. motorola)
  14494. need_lib_prefix=no
  14495. need_version=no
  14496. shlibpath_overrides_runpath=no
  14497. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14498. ;;
  14499. esac
  14500. ;;
  14501. sysv4*MP*)
  14502. if test -d /usr/nec ;then
  14503. version_type=linux
  14504. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14505. soname_spec='$libname${shared_ext}.$major'
  14506. shlibpath_var=LD_LIBRARY_PATH
  14507. fi
  14508. ;;
  14509. uts4*)
  14510. version_type=linux
  14511. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14512. soname_spec='${libname}${release}${shared_ext}$major'
  14513. shlibpath_var=LD_LIBRARY_PATH
  14514. ;;
  14515. *)
  14516. dynamic_linker=no
  14517. ;;
  14518. esac
  14519. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  14520. echo "${ECHO_T}$dynamic_linker" >&6; }
  14521. test "$dynamic_linker" = no && can_build_shared=no
  14522. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  14523. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  14524. hardcode_action_F77=
  14525. if test -n "$hardcode_libdir_flag_spec_F77" || \
  14526. test -n "$runpath_var_F77" || \
  14527. test "X$hardcode_automatic_F77" = "Xyes" ; then
  14528. # We can hardcode non-existant directories.
  14529. if test "$hardcode_direct_F77" != no &&
  14530. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14531. # have to relink, otherwise we might link with an installed library
  14532. # when we should be linking with a yet-to-be-installed one
  14533. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  14534. test "$hardcode_minus_L_F77" != no; then
  14535. # Linking always hardcodes the temporary library directory.
  14536. hardcode_action_F77=relink
  14537. else
  14538. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14539. hardcode_action_F77=immediate
  14540. fi
  14541. else
  14542. # We cannot hardcode anything, or else we can only hardcode existing
  14543. # directories.
  14544. hardcode_action_F77=unsupported
  14545. fi
  14546. { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  14547. echo "${ECHO_T}$hardcode_action_F77" >&6; }
  14548. if test "$hardcode_action_F77" = relink; then
  14549. # Fast installation is not supported
  14550. enable_fast_install=no
  14551. elif test "$shlibpath_overrides_runpath" = yes ||
  14552. test "$enable_shared" = no; then
  14553. # Fast installation is not necessary
  14554. enable_fast_install=needless
  14555. fi
  14556. striplib=
  14557. old_striplib=
  14558. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  14559. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  14560. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  14561. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  14562. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  14563. { echo "$as_me:$LINENO: result: yes" >&5
  14564. echo "${ECHO_T}yes" >&6; }
  14565. else
  14566. # FIXME - insert some real tests, host_os isn't really good enough
  14567. case $host_os in
  14568. darwin*)
  14569. if test -n "$STRIP" ; then
  14570. striplib="$STRIP -x"
  14571. { echo "$as_me:$LINENO: result: yes" >&5
  14572. echo "${ECHO_T}yes" >&6; }
  14573. else
  14574. { echo "$as_me:$LINENO: result: no" >&5
  14575. echo "${ECHO_T}no" >&6; }
  14576. fi
  14577. ;;
  14578. *)
  14579. { echo "$as_me:$LINENO: result: no" >&5
  14580. echo "${ECHO_T}no" >&6; }
  14581. ;;
  14582. esac
  14583. fi
  14584. # The else clause should only fire when bootstrapping the
  14585. # libtool distribution, otherwise you forgot to ship ltmain.sh
  14586. # with your package, and you will get complaints that there are
  14587. # no rules to generate ltmain.sh.
  14588. if test -f "$ltmain"; then
  14589. # See if we are running on zsh, and set the options which allow our commands through
  14590. # without removal of \ escapes.
  14591. if test -n "${ZSH_VERSION+set}" ; then
  14592. setopt NO_GLOB_SUBST
  14593. fi
  14594. # Now quote all the things that may contain metacharacters while being
  14595. # careful not to overquote the AC_SUBSTed values. We take copies of the
  14596. # variables and quote the copies for generation of the libtool script.
  14597. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  14598. SED SHELL STRIP \
  14599. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  14600. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  14601. deplibs_check_method reload_flag reload_cmds need_locks \
  14602. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  14603. lt_cv_sys_global_symbol_to_c_name_address \
  14604. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  14605. old_postinstall_cmds old_postuninstall_cmds \
  14606. compiler_F77 \
  14607. CC_F77 \
  14608. LD_F77 \
  14609. lt_prog_compiler_wl_F77 \
  14610. lt_prog_compiler_pic_F77 \
  14611. lt_prog_compiler_static_F77 \
  14612. lt_prog_compiler_no_builtin_flag_F77 \
  14613. export_dynamic_flag_spec_F77 \
  14614. thread_safe_flag_spec_F77 \
  14615. whole_archive_flag_spec_F77 \
  14616. enable_shared_with_static_runtimes_F77 \
  14617. old_archive_cmds_F77 \
  14618. old_archive_from_new_cmds_F77 \
  14619. predep_objects_F77 \
  14620. postdep_objects_F77 \
  14621. predeps_F77 \
  14622. postdeps_F77 \
  14623. compiler_lib_search_path_F77 \
  14624. archive_cmds_F77 \
  14625. archive_expsym_cmds_F77 \
  14626. postinstall_cmds_F77 \
  14627. postuninstall_cmds_F77 \
  14628. old_archive_from_expsyms_cmds_F77 \
  14629. allow_undefined_flag_F77 \
  14630. no_undefined_flag_F77 \
  14631. export_symbols_cmds_F77 \
  14632. hardcode_libdir_flag_spec_F77 \
  14633. hardcode_libdir_flag_spec_ld_F77 \
  14634. hardcode_libdir_separator_F77 \
  14635. hardcode_automatic_F77 \
  14636. module_cmds_F77 \
  14637. module_expsym_cmds_F77 \
  14638. lt_cv_prog_compiler_c_o_F77 \
  14639. exclude_expsyms_F77 \
  14640. include_expsyms_F77; do
  14641. case $var in
  14642. old_archive_cmds_F77 | \
  14643. old_archive_from_new_cmds_F77 | \
  14644. archive_cmds_F77 | \
  14645. archive_expsym_cmds_F77 | \
  14646. module_cmds_F77 | \
  14647. module_expsym_cmds_F77 | \
  14648. old_archive_from_expsyms_cmds_F77 | \
  14649. export_symbols_cmds_F77 | \
  14650. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  14651. postinstall_cmds | postuninstall_cmds | \
  14652. old_postinstall_cmds | old_postuninstall_cmds | \
  14653. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  14654. # Double-quote double-evaled strings.
  14655. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  14656. ;;
  14657. *)
  14658. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  14659. ;;
  14660. esac
  14661. done
  14662. case $lt_echo in
  14663. *'\$0 --fallback-echo"')
  14664. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  14665. ;;
  14666. esac
  14667. cfgfile="$ofile"
  14668. cat <<__EOF__ >> "$cfgfile"
  14669. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  14670. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14671. # Shell to use when invoking shell scripts.
  14672. SHELL=$lt_SHELL
  14673. # Whether or not to build shared libraries.
  14674. build_libtool_libs=$enable_shared
  14675. # Whether or not to build static libraries.
  14676. build_old_libs=$enable_static
  14677. # Whether or not to add -lc for building shared libraries.
  14678. build_libtool_need_lc=$archive_cmds_need_lc_F77
  14679. # Whether or not to disallow shared libs when runtime libs are static
  14680. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  14681. # Whether or not to optimize for fast installation.
  14682. fast_install=$enable_fast_install
  14683. # The host system.
  14684. host_alias=$host_alias
  14685. host=$host
  14686. host_os=$host_os
  14687. # The build system.
  14688. build_alias=$build_alias
  14689. build=$build
  14690. build_os=$build_os
  14691. # An echo program that does not interpret backslashes.
  14692. echo=$lt_echo
  14693. # The archiver.
  14694. AR=$lt_AR
  14695. AR_FLAGS=$lt_AR_FLAGS
  14696. # A C compiler.
  14697. LTCC=$lt_LTCC
  14698. # A language-specific compiler.
  14699. CC=$lt_compiler_F77
  14700. # Is the compiler the GNU C compiler?
  14701. with_gcc=$GCC_F77
  14702. # An ERE matcher.
  14703. EGREP=$lt_EGREP
  14704. # The linker used to build libraries.
  14705. LD=$lt_LD_F77
  14706. # Whether we need hard or soft links.
  14707. LN_S=$lt_LN_S
  14708. # A BSD-compatible nm program.
  14709. NM=$lt_NM
  14710. # A symbol stripping program
  14711. STRIP=$lt_STRIP
  14712. # Used to examine libraries when file_magic_cmd begins "file"
  14713. MAGIC_CMD=$MAGIC_CMD
  14714. # Used on cygwin: DLL creation program.
  14715. DLLTOOL="$DLLTOOL"
  14716. # Used on cygwin: object dumper.
  14717. OBJDUMP="$OBJDUMP"
  14718. # Used on cygwin: assembler.
  14719. AS="$AS"
  14720. # The name of the directory that contains temporary libtool files.
  14721. objdir=$objdir
  14722. # How to create reloadable object files.
  14723. reload_flag=$lt_reload_flag
  14724. reload_cmds=$lt_reload_cmds
  14725. # How to pass a linker flag through the compiler.
  14726. wl=$lt_lt_prog_compiler_wl_F77
  14727. # Object file suffix (normally "o").
  14728. objext="$ac_objext"
  14729. # Old archive suffix (normally "a").
  14730. libext="$libext"
  14731. # Shared library suffix (normally ".so").
  14732. shrext_cmds='$shrext_cmds'
  14733. # Executable file suffix (normally "").
  14734. exeext="$exeext"
  14735. # Additional compiler flags for building library objects.
  14736. pic_flag=$lt_lt_prog_compiler_pic_F77
  14737. pic_mode=$pic_mode
  14738. # What is the maximum length of a command?
  14739. max_cmd_len=$lt_cv_sys_max_cmd_len
  14740. # Does compiler simultaneously support -c and -o options?
  14741. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  14742. # Must we lock files when doing compilation?
  14743. need_locks=$lt_need_locks
  14744. # Do we need the lib prefix for modules?
  14745. need_lib_prefix=$need_lib_prefix
  14746. # Do we need a version for libraries?
  14747. need_version=$need_version
  14748. # Whether dlopen is supported.
  14749. dlopen_support=$enable_dlopen
  14750. # Whether dlopen of programs is supported.
  14751. dlopen_self=$enable_dlopen_self
  14752. # Whether dlopen of statically linked programs is supported.
  14753. dlopen_self_static=$enable_dlopen_self_static
  14754. # Compiler flag to prevent dynamic linking.
  14755. link_static_flag=$lt_lt_prog_compiler_static_F77
  14756. # Compiler flag to turn off builtin functions.
  14757. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  14758. # Compiler flag to allow reflexive dlopens.
  14759. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  14760. # Compiler flag to generate shared objects directly from archives.
  14761. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  14762. # Compiler flag to generate thread-safe objects.
  14763. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  14764. # Library versioning type.
  14765. version_type=$version_type
  14766. # Format of library name prefix.
  14767. libname_spec=$lt_libname_spec
  14768. # List of archive names. First name is the real one, the rest are links.
  14769. # The last name is the one that the linker finds with -lNAME.
  14770. library_names_spec=$lt_library_names_spec
  14771. # The coded name of the library, if different from the real name.
  14772. soname_spec=$lt_soname_spec
  14773. # Commands used to build and install an old-style archive.
  14774. RANLIB=$lt_RANLIB
  14775. old_archive_cmds=$lt_old_archive_cmds_F77
  14776. old_postinstall_cmds=$lt_old_postinstall_cmds
  14777. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14778. # Create an old-style archive from a shared archive.
  14779. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  14780. # Create a temporary old-style archive to link instead of a shared archive.
  14781. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  14782. # Commands used to build and install a shared archive.
  14783. archive_cmds=$lt_archive_cmds_F77
  14784. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  14785. postinstall_cmds=$lt_postinstall_cmds
  14786. postuninstall_cmds=$lt_postuninstall_cmds
  14787. # Commands used to build a loadable module (assumed same as above if empty)
  14788. module_cmds=$lt_module_cmds_F77
  14789. module_expsym_cmds=$lt_module_expsym_cmds_F77
  14790. # Commands to strip libraries.
  14791. old_striplib=$lt_old_striplib
  14792. striplib=$lt_striplib
  14793. # Dependencies to place before the objects being linked to create a
  14794. # shared library.
  14795. predep_objects=$lt_predep_objects_F77
  14796. # Dependencies to place after the objects being linked to create a
  14797. # shared library.
  14798. postdep_objects=$lt_postdep_objects_F77
  14799. # Dependencies to place before the objects being linked to create a
  14800. # shared library.
  14801. predeps=$lt_predeps_F77
  14802. # Dependencies to place after the objects being linked to create a
  14803. # shared library.
  14804. postdeps=$lt_postdeps_F77
  14805. # The library search path used internally by the compiler when linking
  14806. # a shared library.
  14807. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  14808. # Method to check whether dependent libraries are shared objects.
  14809. deplibs_check_method=$lt_deplibs_check_method
  14810. # Command to use when deplibs_check_method == file_magic.
  14811. file_magic_cmd=$lt_file_magic_cmd
  14812. # Flag that allows shared libraries with undefined symbols to be built.
  14813. allow_undefined_flag=$lt_allow_undefined_flag_F77
  14814. # Flag that forces no undefined symbols.
  14815. no_undefined_flag=$lt_no_undefined_flag_F77
  14816. # Commands used to finish a libtool library installation in a directory.
  14817. finish_cmds=$lt_finish_cmds
  14818. # Same as above, but a single script fragment to be evaled but not shown.
  14819. finish_eval=$lt_finish_eval
  14820. # Take the output of nm and produce a listing of raw symbols and C names.
  14821. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14822. # Transform the output of nm in a proper C declaration
  14823. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14824. # Transform the output of nm in a C name address pair
  14825. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14826. # This is the shared library runtime path variable.
  14827. runpath_var=$runpath_var
  14828. # This is the shared library path variable.
  14829. shlibpath_var=$shlibpath_var
  14830. # Is shlibpath searched before the hard-coded library search path?
  14831. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14832. # How to hardcode a shared library path into an executable.
  14833. hardcode_action=$hardcode_action_F77
  14834. # Whether we should hardcode library paths into libraries.
  14835. hardcode_into_libs=$hardcode_into_libs
  14836. # Flag to hardcode \$libdir into a binary during linking.
  14837. # This must work even if \$libdir does not exist.
  14838. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  14839. # If ld is used when linking, flag to hardcode \$libdir into
  14840. # a binary during linking. This must work even if \$libdir does
  14841. # not exist.
  14842. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  14843. # Whether we need a single -rpath flag with a separated argument.
  14844. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  14845. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  14846. # resulting binary.
  14847. hardcode_direct=$hardcode_direct_F77
  14848. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  14849. # resulting binary.
  14850. hardcode_minus_L=$hardcode_minus_L_F77
  14851. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  14852. # the resulting binary.
  14853. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  14854. # Set to yes if building a shared library automatically hardcodes DIR into the library
  14855. # and all subsequent libraries and executables linked against it.
  14856. hardcode_automatic=$hardcode_automatic_F77
  14857. # Variables whose values should be saved in libtool wrapper scripts and
  14858. # restored at relink time.
  14859. variables_saved_for_relink="$variables_saved_for_relink"
  14860. # Whether libtool must link a program against all its dependency libraries.
  14861. link_all_deplibs=$link_all_deplibs_F77
  14862. # Compile-time system search path for libraries
  14863. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14864. # Run-time system search path for libraries
  14865. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14866. # Fix the shell variable \$srcfile for the compiler.
  14867. fix_srcfile_path="$fix_srcfile_path_F77"
  14868. # Set to yes if exported symbols are required.
  14869. always_export_symbols=$always_export_symbols_F77
  14870. # The commands to list exported symbols.
  14871. export_symbols_cmds=$lt_export_symbols_cmds_F77
  14872. # The commands to extract the exported symbol list from a shared archive.
  14873. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14874. # Symbols that should not be listed in the preloaded symbols.
  14875. exclude_expsyms=$lt_exclude_expsyms_F77
  14876. # Symbols that must always be exported.
  14877. include_expsyms=$lt_include_expsyms_F77
  14878. # ### END LIBTOOL TAG CONFIG: $tagname
  14879. __EOF__
  14880. else
  14881. # If there is no Makefile yet, we rely on a make rule to execute
  14882. # `config.status --recheck' to rerun these tests and create the
  14883. # libtool script then.
  14884. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  14885. if test -f "$ltmain_in"; then
  14886. test -f Makefile && make "$ltmain"
  14887. fi
  14888. fi
  14889. ac_ext=c
  14890. ac_cpp='$CPP $CPPFLAGS'
  14891. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14892. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14893. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14894. CC="$lt_save_CC"
  14895. else
  14896. tagname=""
  14897. fi
  14898. ;;
  14899. GCJ)
  14900. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  14901. # Source file extension for Java test sources.
  14902. ac_ext=java
  14903. # Object file extension for compiled Java test sources.
  14904. objext=o
  14905. objext_GCJ=$objext
  14906. # Code to be used in simple compile tests
  14907. lt_simple_compile_test_code="class foo {}\n"
  14908. # Code to be used in simple link tests
  14909. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  14910. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14911. # If no C compiler was specified, use CC.
  14912. LTCC=${LTCC-"$CC"}
  14913. # Allow CC to be a program name with arguments.
  14914. compiler=$CC
  14915. # save warnings/boilerplate of simple test code
  14916. ac_outfile=conftest.$ac_objext
  14917. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  14918. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  14919. _lt_compiler_boilerplate=`cat conftest.err`
  14920. $rm conftest*
  14921. ac_outfile=conftest.$ac_objext
  14922. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  14923. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  14924. _lt_linker_boilerplate=`cat conftest.err`
  14925. $rm conftest*
  14926. # Allow CC to be a program name with arguments.
  14927. lt_save_CC="$CC"
  14928. CC=${GCJ-"gcj"}
  14929. compiler=$CC
  14930. compiler_GCJ=$CC
  14931. for cc_temp in $compiler""; do
  14932. case $cc_temp in
  14933. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14934. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14935. \-*) ;;
  14936. *) break;;
  14937. esac
  14938. done
  14939. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14940. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  14941. archive_cmds_need_lc_GCJ=no
  14942. old_archive_cmds_GCJ=$old_archive_cmds
  14943. lt_prog_compiler_no_builtin_flag_GCJ=
  14944. if test "$GCC" = yes; then
  14945. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  14946. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14947. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  14948. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  14949. echo $ECHO_N "(cached) $ECHO_C" >&6
  14950. else
  14951. lt_cv_prog_compiler_rtti_exceptions=no
  14952. ac_outfile=conftest.$ac_objext
  14953. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14954. lt_compiler_flag="-fno-rtti -fno-exceptions"
  14955. # Insert the option either (1) after the last *FLAGS variable, or
  14956. # (2) before a word containing "conftest.", or (3) at the end.
  14957. # Note that $ac_compile itself does not contain backslashes and begins
  14958. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14959. # The option is referenced via a variable to avoid confusing sed.
  14960. lt_compile=`echo "$ac_compile" | $SED \
  14961. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  14962. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14963. -e 's:$: $lt_compiler_flag:'`
  14964. (eval echo "\"\$as_me:16776: $lt_compile\"" >&5)
  14965. (eval "$lt_compile" 2>conftest.err)
  14966. ac_status=$?
  14967. cat conftest.err >&5
  14968. echo "$as_me:16780: \$? = $ac_status" >&5
  14969. if (exit $ac_status) && test -s "$ac_outfile"; then
  14970. # The compiler can only warn and ignore the option if not recognized
  14971. # So say no if there are warnings other than the usual output.
  14972. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  14973. $SED '/^$/d' conftest.err >conftest.er2
  14974. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  14975. lt_cv_prog_compiler_rtti_exceptions=yes
  14976. fi
  14977. fi
  14978. $rm conftest*
  14979. fi
  14980. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  14981. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  14982. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  14983. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  14984. else
  14985. :
  14986. fi
  14987. fi
  14988. lt_prog_compiler_wl_GCJ=
  14989. lt_prog_compiler_pic_GCJ=
  14990. lt_prog_compiler_static_GCJ=
  14991. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14992. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  14993. if test "$GCC" = yes; then
  14994. lt_prog_compiler_wl_GCJ='-Wl,'
  14995. lt_prog_compiler_static_GCJ='-static'
  14996. case $host_os in
  14997. aix*)
  14998. # All AIX code is PIC.
  14999. if test "$host_cpu" = ia64; then
  15000. # AIX 5 now supports IA64 processor
  15001. lt_prog_compiler_static_GCJ='-Bstatic'
  15002. fi
  15003. ;;
  15004. amigaos*)
  15005. # FIXME: we need at least 68020 code to build shared libraries, but
  15006. # adding the `-m68020' flag to GCC prevents building anything better,
  15007. # like `-m68040'.
  15008. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  15009. ;;
  15010. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  15011. # PIC is the default for these OSes.
  15012. ;;
  15013. mingw* | pw32* | os2*)
  15014. # This hack is so that the source file can tell whether it is being
  15015. # built for inclusion in a dll (and should export symbols for example).
  15016. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  15017. ;;
  15018. darwin* | rhapsody*)
  15019. # PIC is the default on this platform
  15020. # Common symbols not allowed in MH_DYLIB files
  15021. lt_prog_compiler_pic_GCJ='-fno-common'
  15022. ;;
  15023. msdosdjgpp*)
  15024. # Just because we use GCC doesn't mean we suddenly get shared libraries
  15025. # on systems that don't support them.
  15026. lt_prog_compiler_can_build_shared_GCJ=no
  15027. enable_shared=no
  15028. ;;
  15029. sysv4*MP*)
  15030. if test -d /usr/nec; then
  15031. lt_prog_compiler_pic_GCJ=-Kconform_pic
  15032. fi
  15033. ;;
  15034. hpux*)
  15035. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  15036. # not for PA HP-UX.
  15037. case "$host_cpu" in
  15038. hppa*64*|ia64*)
  15039. # +Z the default
  15040. ;;
  15041. *)
  15042. lt_prog_compiler_pic_GCJ='-fPIC'
  15043. ;;
  15044. esac
  15045. ;;
  15046. *)
  15047. lt_prog_compiler_pic_GCJ='-fPIC'
  15048. ;;
  15049. esac
  15050. else
  15051. # PORTME Check for flag to pass linker flags through the system compiler.
  15052. case $host_os in
  15053. aix*)
  15054. lt_prog_compiler_wl_GCJ='-Wl,'
  15055. if test "$host_cpu" = ia64; then
  15056. # AIX 5 now supports IA64 processor
  15057. lt_prog_compiler_static_GCJ='-Bstatic'
  15058. else
  15059. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  15060. fi
  15061. ;;
  15062. darwin*)
  15063. # PIC is the default on this platform
  15064. # Common symbols not allowed in MH_DYLIB files
  15065. case $cc_basename in
  15066. xlc*)
  15067. lt_prog_compiler_pic_GCJ='-qnocommon'
  15068. lt_prog_compiler_wl_GCJ='-Wl,'
  15069. ;;
  15070. esac
  15071. ;;
  15072. mingw* | pw32* | os2*)
  15073. # This hack is so that the source file can tell whether it is being
  15074. # built for inclusion in a dll (and should export symbols for example).
  15075. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  15076. ;;
  15077. hpux9* | hpux10* | hpux11*)
  15078. lt_prog_compiler_wl_GCJ='-Wl,'
  15079. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  15080. # not for PA HP-UX.
  15081. case "$host_cpu" in
  15082. hppa*64*|ia64*)
  15083. # +Z the default
  15084. ;;
  15085. *)
  15086. lt_prog_compiler_pic_GCJ='+Z'
  15087. ;;
  15088. esac
  15089. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  15090. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  15091. ;;
  15092. irix5* | irix6* | nonstopux*)
  15093. lt_prog_compiler_wl_GCJ='-Wl,'
  15094. # PIC (with -KPIC) is the default.
  15095. lt_prog_compiler_static_GCJ='-non_shared'
  15096. ;;
  15097. newsos6)
  15098. lt_prog_compiler_pic_GCJ='-KPIC'
  15099. lt_prog_compiler_static_GCJ='-Bstatic'
  15100. ;;
  15101. linux*)
  15102. case $cc_basename in
  15103. icc* | ecc*)
  15104. lt_prog_compiler_wl_GCJ='-Wl,'
  15105. lt_prog_compiler_pic_GCJ='-KPIC'
  15106. lt_prog_compiler_static_GCJ='-static'
  15107. ;;
  15108. pgcc* | pgf77* | pgf90*)
  15109. # Portland Group compilers (*not* the Pentium gcc compiler,
  15110. # which looks to be a dead project)
  15111. lt_prog_compiler_wl_GCJ='-Wl,'
  15112. lt_prog_compiler_pic_GCJ='-fpic'
  15113. lt_prog_compiler_static_GCJ='-static'
  15114. ;;
  15115. ccc*)
  15116. lt_prog_compiler_wl_GCJ='-Wl,'
  15117. # All Alpha code is PIC.
  15118. lt_prog_compiler_static_GCJ='-non_shared'
  15119. ;;
  15120. esac
  15121. ;;
  15122. osf3* | osf4* | osf5*)
  15123. lt_prog_compiler_wl_GCJ='-Wl,'
  15124. # All OSF/1 code is PIC.
  15125. lt_prog_compiler_static_GCJ='-non_shared'
  15126. ;;
  15127. sco3.2v5*)
  15128. lt_prog_compiler_pic_GCJ='-Kpic'
  15129. lt_prog_compiler_static_GCJ='-dn'
  15130. ;;
  15131. solaris*)
  15132. lt_prog_compiler_pic_GCJ='-KPIC'
  15133. lt_prog_compiler_static_GCJ='-Bstatic'
  15134. case $cc_basename in
  15135. f77* | f90* | f95*)
  15136. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  15137. *)
  15138. lt_prog_compiler_wl_GCJ='-Wl,';;
  15139. esac
  15140. ;;
  15141. sunos4*)
  15142. lt_prog_compiler_wl_GCJ='-Qoption ld '
  15143. lt_prog_compiler_pic_GCJ='-PIC'
  15144. lt_prog_compiler_static_GCJ='-Bstatic'
  15145. ;;
  15146. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  15147. lt_prog_compiler_wl_GCJ='-Wl,'
  15148. lt_prog_compiler_pic_GCJ='-KPIC'
  15149. lt_prog_compiler_static_GCJ='-Bstatic'
  15150. ;;
  15151. sysv4*MP*)
  15152. if test -d /usr/nec ;then
  15153. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  15154. lt_prog_compiler_static_GCJ='-Bstatic'
  15155. fi
  15156. ;;
  15157. unicos*)
  15158. lt_prog_compiler_wl_GCJ='-Wl,'
  15159. lt_prog_compiler_can_build_shared_GCJ=no
  15160. ;;
  15161. uts4*)
  15162. lt_prog_compiler_pic_GCJ='-pic'
  15163. lt_prog_compiler_static_GCJ='-Bstatic'
  15164. ;;
  15165. *)
  15166. lt_prog_compiler_can_build_shared_GCJ=no
  15167. ;;
  15168. esac
  15169. fi
  15170. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  15171. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  15172. #
  15173. # Check to make sure the PIC flag actually works.
  15174. #
  15175. if test -n "$lt_prog_compiler_pic_GCJ"; then
  15176. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  15177. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  15178. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  15179. echo $ECHO_N "(cached) $ECHO_C" >&6
  15180. else
  15181. lt_prog_compiler_pic_works_GCJ=no
  15182. ac_outfile=conftest.$ac_objext
  15183. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15184. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  15185. # Insert the option either (1) after the last *FLAGS variable, or
  15186. # (2) before a word containing "conftest.", or (3) at the end.
  15187. # Note that $ac_compile itself does not contain backslashes and begins
  15188. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15189. # The option is referenced via a variable to avoid confusing sed.
  15190. lt_compile=`echo "$ac_compile" | $SED \
  15191. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  15192. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15193. -e 's:$: $lt_compiler_flag:'`
  15194. (eval echo "\"\$as_me:17038: $lt_compile\"" >&5)
  15195. (eval "$lt_compile" 2>conftest.err)
  15196. ac_status=$?
  15197. cat conftest.err >&5
  15198. echo "$as_me:17042: \$? = $ac_status" >&5
  15199. if (exit $ac_status) && test -s "$ac_outfile"; then
  15200. # The compiler can only warn and ignore the option if not recognized
  15201. # So say no if there are warnings other than the usual output.
  15202. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  15203. $SED '/^$/d' conftest.err >conftest.er2
  15204. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  15205. lt_prog_compiler_pic_works_GCJ=yes
  15206. fi
  15207. fi
  15208. $rm conftest*
  15209. fi
  15210. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  15211. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
  15212. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  15213. case $lt_prog_compiler_pic_GCJ in
  15214. "" | " "*) ;;
  15215. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  15216. esac
  15217. else
  15218. lt_prog_compiler_pic_GCJ=
  15219. lt_prog_compiler_can_build_shared_GCJ=no
  15220. fi
  15221. fi
  15222. case "$host_os" in
  15223. # For platforms which do not support PIC, -DPIC is meaningless:
  15224. *djgpp*)
  15225. lt_prog_compiler_pic_GCJ=
  15226. ;;
  15227. *)
  15228. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  15229. ;;
  15230. esac
  15231. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  15232. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  15233. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  15234. echo $ECHO_N "(cached) $ECHO_C" >&6
  15235. else
  15236. lt_cv_prog_compiler_c_o_GCJ=no
  15237. $rm -r conftest 2>/dev/null
  15238. mkdir conftest
  15239. cd conftest
  15240. mkdir out
  15241. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15242. lt_compiler_flag="-o out/conftest2.$ac_objext"
  15243. # Insert the option either (1) after the last *FLAGS variable, or
  15244. # (2) before a word containing "conftest.", or (3) at the end.
  15245. # Note that $ac_compile itself does not contain backslashes and begins
  15246. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15247. lt_compile=`echo "$ac_compile" | $SED \
  15248. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  15249. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15250. -e 's:$: $lt_compiler_flag:'`
  15251. (eval echo "\"\$as_me:17100: $lt_compile\"" >&5)
  15252. (eval "$lt_compile" 2>out/conftest.err)
  15253. ac_status=$?
  15254. cat out/conftest.err >&5
  15255. echo "$as_me:17104: \$? = $ac_status" >&5
  15256. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15257. then
  15258. # The compiler can only warn and ignore the option if not recognized
  15259. # So say no if there are warnings
  15260. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  15261. $SED '/^$/d' out/conftest.err >out/conftest.er2
  15262. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15263. lt_cv_prog_compiler_c_o_GCJ=yes
  15264. fi
  15265. fi
  15266. chmod u+w .
  15267. $rm conftest*
  15268. # SGI C++ compiler will create directory out/ii_files/ for
  15269. # template instantiation
  15270. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  15271. $rm out/* && rmdir out
  15272. cd ..
  15273. rmdir conftest
  15274. $rm conftest*
  15275. fi
  15276. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  15277. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  15278. hard_links="nottested"
  15279. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  15280. # do not overwrite the value of need_locks provided by the user
  15281. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  15282. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  15283. hard_links=yes
  15284. $rm conftest*
  15285. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15286. touch conftest.a
  15287. ln conftest.a conftest.b 2>&5 || hard_links=no
  15288. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15289. { echo "$as_me:$LINENO: result: $hard_links" >&5
  15290. echo "${ECHO_T}$hard_links" >&6; }
  15291. if test "$hard_links" = no; then
  15292. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  15293. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  15294. need_locks=warn
  15295. fi
  15296. else
  15297. need_locks=no
  15298. fi
  15299. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  15300. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  15301. runpath_var=
  15302. allow_undefined_flag_GCJ=
  15303. enable_shared_with_static_runtimes_GCJ=no
  15304. archive_cmds_GCJ=
  15305. archive_expsym_cmds_GCJ=
  15306. old_archive_From_new_cmds_GCJ=
  15307. old_archive_from_expsyms_cmds_GCJ=
  15308. export_dynamic_flag_spec_GCJ=
  15309. whole_archive_flag_spec_GCJ=
  15310. thread_safe_flag_spec_GCJ=
  15311. hardcode_libdir_flag_spec_GCJ=
  15312. hardcode_libdir_flag_spec_ld_GCJ=
  15313. hardcode_libdir_separator_GCJ=
  15314. hardcode_direct_GCJ=no
  15315. hardcode_minus_L_GCJ=no
  15316. hardcode_shlibpath_var_GCJ=unsupported
  15317. link_all_deplibs_GCJ=unknown
  15318. hardcode_automatic_GCJ=no
  15319. module_cmds_GCJ=
  15320. module_expsym_cmds_GCJ=
  15321. always_export_symbols_GCJ=no
  15322. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15323. # include_expsyms should be a list of space-separated symbols to be *always*
  15324. # included in the symbol list
  15325. include_expsyms_GCJ=
  15326. # exclude_expsyms can be an extended regexp of symbols to exclude
  15327. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  15328. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  15329. # as well as any symbol that contains `d'.
  15330. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  15331. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  15332. # platforms (ab)use it in PIC code, but their linkers get confused if
  15333. # the symbol is explicitly referenced. Since portable code cannot
  15334. # rely on this symbol name, it's probably fine to never include it in
  15335. # preloaded symbol tables.
  15336. extract_expsyms_cmds=
  15337. # Just being paranoid about ensuring that cc_basename is set.
  15338. for cc_temp in $compiler""; do
  15339. case $cc_temp in
  15340. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15341. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15342. \-*) ;;
  15343. *) break;;
  15344. esac
  15345. done
  15346. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  15347. case $host_os in
  15348. cygwin* | mingw* | pw32*)
  15349. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  15350. # When not using gcc, we currently assume that we are using
  15351. # Microsoft Visual C++.
  15352. if test "$GCC" != yes; then
  15353. with_gnu_ld=no
  15354. fi
  15355. ;;
  15356. openbsd*)
  15357. with_gnu_ld=no
  15358. ;;
  15359. esac
  15360. ld_shlibs_GCJ=yes
  15361. if test "$with_gnu_ld" = yes; then
  15362. # If archive_cmds runs LD, not CC, wlarc should be empty
  15363. wlarc='${wl}'
  15364. # Set some defaults for GNU ld with shared library support. These
  15365. # are reset later if shared libraries are not supported. Putting them
  15366. # here allows them to be overridden if necessary.
  15367. runpath_var=LD_RUN_PATH
  15368. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  15369. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  15370. # ancient GNU ld didn't support --whole-archive et. al.
  15371. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  15372. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  15373. else
  15374. whole_archive_flag_spec_GCJ=
  15375. fi
  15376. supports_anon_versioning=no
  15377. case `$LD -v 2>/dev/null` in
  15378. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  15379. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  15380. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  15381. *\ 2.11.*) ;; # other 2.11 versions
  15382. *) supports_anon_versioning=yes ;;
  15383. esac
  15384. # See if GNU ld supports shared libraries.
  15385. case $host_os in
  15386. aix3* | aix4* | aix5*)
  15387. # On AIX/PPC, the GNU linker is very broken
  15388. if test "$host_cpu" != ia64; then
  15389. ld_shlibs_GCJ=no
  15390. cat <<EOF 1>&2
  15391. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  15392. *** to be unable to reliably create shared libraries on AIX.
  15393. *** Therefore, libtool is disabling shared libraries support. If you
  15394. *** really care for shared libraries, you may want to modify your PATH
  15395. *** so that a non-GNU linker is found, and then restart.
  15396. EOF
  15397. fi
  15398. ;;
  15399. amigaos*)
  15400. 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)'
  15401. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15402. hardcode_minus_L_GCJ=yes
  15403. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  15404. # that the semantics of dynamic libraries on AmigaOS, at least up
  15405. # to version 4, is to share data among multiple programs linked
  15406. # with the same dynamic library. Since this doesn't match the
  15407. # behavior of shared libraries on other platforms, we can't use
  15408. # them.
  15409. ld_shlibs_GCJ=no
  15410. ;;
  15411. beos*)
  15412. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15413. allow_undefined_flag_GCJ=unsupported
  15414. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  15415. # support --undefined. This deserves some investigation. FIXME
  15416. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15417. else
  15418. ld_shlibs_GCJ=no
  15419. fi
  15420. ;;
  15421. cygwin* | mingw* | pw32*)
  15422. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  15423. # as there is no search path for DLLs.
  15424. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15425. allow_undefined_flag_GCJ=unsupported
  15426. always_export_symbols_GCJ=no
  15427. enable_shared_with_static_runtimes_GCJ=yes
  15428. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  15429. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  15430. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  15431. # If the export-symbols file already is a .def file (1st line
  15432. # is EXPORTS), use it as is; otherwise, prepend...
  15433. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  15434. cp $export_symbols $output_objdir/$soname.def;
  15435. else
  15436. echo EXPORTS > $output_objdir/$soname.def;
  15437. cat $export_symbols >> $output_objdir/$soname.def;
  15438. fi~
  15439. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  15440. else
  15441. ld_shlibs_GCJ=no
  15442. fi
  15443. ;;
  15444. linux*)
  15445. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15446. tmp_addflag=
  15447. case $cc_basename,$host_cpu in
  15448. pgcc*) # Portland Group C compiler
  15449. 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'
  15450. tmp_addflag=' $pic_flag'
  15451. ;;
  15452. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  15453. 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'
  15454. tmp_addflag=' $pic_flag -Mnomain' ;;
  15455. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  15456. tmp_addflag=' -i_dynamic' ;;
  15457. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  15458. tmp_addflag=' -i_dynamic -nofor_main' ;;
  15459. ifc* | ifort*) # Intel Fortran compiler
  15460. tmp_addflag=' -nofor_main' ;;
  15461. esac
  15462. archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15463. if test $supports_anon_versioning = yes; then
  15464. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  15465. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  15466. $echo "local: *; };" >> $output_objdir/$libname.ver~
  15467. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  15468. fi
  15469. else
  15470. ld_shlibs_GCJ=no
  15471. fi
  15472. ;;
  15473. netbsd*)
  15474. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15475. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  15476. wlarc=
  15477. else
  15478. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15479. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15480. fi
  15481. ;;
  15482. solaris* | sysv5*)
  15483. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  15484. ld_shlibs_GCJ=no
  15485. cat <<EOF 1>&2
  15486. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  15487. *** create shared libraries on Solaris systems. Therefore, libtool
  15488. *** is disabling shared libraries support. We urge you to upgrade GNU
  15489. *** binutils to release 2.9.1 or newer. Another option is to modify
  15490. *** your PATH or compiler configuration so that the native linker is
  15491. *** used, and then restart.
  15492. EOF
  15493. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15494. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15495. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15496. else
  15497. ld_shlibs_GCJ=no
  15498. fi
  15499. ;;
  15500. sunos4*)
  15501. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15502. wlarc=
  15503. hardcode_direct_GCJ=yes
  15504. hardcode_shlibpath_var_GCJ=no
  15505. ;;
  15506. *)
  15507. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15508. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15509. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15510. else
  15511. ld_shlibs_GCJ=no
  15512. fi
  15513. ;;
  15514. esac
  15515. if test "$ld_shlibs_GCJ" = no; then
  15516. runpath_var=
  15517. hardcode_libdir_flag_spec_GCJ=
  15518. export_dynamic_flag_spec_GCJ=
  15519. whole_archive_flag_spec_GCJ=
  15520. fi
  15521. else
  15522. # PORTME fill in a description of your system's linker (not GNU ld)
  15523. case $host_os in
  15524. aix3*)
  15525. allow_undefined_flag_GCJ=unsupported
  15526. always_export_symbols_GCJ=yes
  15527. 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'
  15528. # Note: this linker hardcodes the directories in LIBPATH if there
  15529. # are no directories specified by -L.
  15530. hardcode_minus_L_GCJ=yes
  15531. if test "$GCC" = yes && test -z "$link_static_flag"; then
  15532. # Neither direct hardcoding nor static linking is supported with a
  15533. # broken collect2.
  15534. hardcode_direct_GCJ=unsupported
  15535. fi
  15536. ;;
  15537. aix4* | aix5*)
  15538. if test "$host_cpu" = ia64; then
  15539. # On IA64, the linker does run time linking by default, so we don't
  15540. # have to do anything special.
  15541. aix_use_runtimelinking=no
  15542. exp_sym_flag='-Bexport'
  15543. no_entry_flag=""
  15544. else
  15545. # If we're using GNU nm, then we don't want the "-C" option.
  15546. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  15547. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  15548. 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'
  15549. else
  15550. 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'
  15551. fi
  15552. aix_use_runtimelinking=no
  15553. # Test if we are trying to use run time linking or normal
  15554. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  15555. # need to do runtime linking.
  15556. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  15557. for ld_flag in $LDFLAGS; do
  15558. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  15559. aix_use_runtimelinking=yes
  15560. break
  15561. fi
  15562. done
  15563. esac
  15564. exp_sym_flag='-bexport'
  15565. no_entry_flag='-bnoentry'
  15566. fi
  15567. # When large executables or shared objects are built, AIX ld can
  15568. # have problems creating the table of contents. If linking a library
  15569. # or program results in "error TOC overflow" add -mminimal-toc to
  15570. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  15571. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  15572. archive_cmds_GCJ=''
  15573. hardcode_direct_GCJ=yes
  15574. hardcode_libdir_separator_GCJ=':'
  15575. link_all_deplibs_GCJ=yes
  15576. if test "$GCC" = yes; then
  15577. case $host_os in aix4.[012]|aix4.[012].*)
  15578. # We only want to do this on AIX 4.2 and lower, the check
  15579. # below for broken collect2 doesn't work under 4.3+
  15580. collect2name=`${CC} -print-prog-name=collect2`
  15581. if test -f "$collect2name" && \
  15582. strings "$collect2name" | grep resolve_lib_name >/dev/null
  15583. then
  15584. # We have reworked collect2
  15585. hardcode_direct_GCJ=yes
  15586. else
  15587. # We have old collect2
  15588. hardcode_direct_GCJ=unsupported
  15589. # It fails to find uninstalled libraries when the uninstalled
  15590. # path is not listed in the libpath. Setting hardcode_minus_L
  15591. # to unsupported forces relinking
  15592. hardcode_minus_L_GCJ=yes
  15593. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15594. hardcode_libdir_separator_GCJ=
  15595. fi
  15596. esac
  15597. shared_flag='-shared'
  15598. if test "$aix_use_runtimelinking" = yes; then
  15599. shared_flag="$shared_flag "'${wl}-G'
  15600. fi
  15601. else
  15602. # not using gcc
  15603. if test "$host_cpu" = ia64; then
  15604. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  15605. # chokes on -Wl,-G. The following line is correct:
  15606. shared_flag='-G'
  15607. else
  15608. if test "$aix_use_runtimelinking" = yes; then
  15609. shared_flag='${wl}-G'
  15610. else
  15611. shared_flag='${wl}-bM:SRE'
  15612. fi
  15613. fi
  15614. fi
  15615. # It seems that -bexpall does not export symbols beginning with
  15616. # underscore (_), so it is better to generate a list of symbols to export.
  15617. always_export_symbols_GCJ=yes
  15618. if test "$aix_use_runtimelinking" = yes; then
  15619. # Warning - without using the other runtime loading flags (-brtl),
  15620. # -berok will link without error, but may produce a broken library.
  15621. allow_undefined_flag_GCJ='-berok'
  15622. # Determine the default libpath from the value encoded in an empty executable.
  15623. cat >conftest.$ac_ext <<_ACEOF
  15624. /* confdefs.h. */
  15625. _ACEOF
  15626. cat confdefs.h >>conftest.$ac_ext
  15627. cat >>conftest.$ac_ext <<_ACEOF
  15628. /* end confdefs.h. */
  15629. int
  15630. main ()
  15631. {
  15632. ;
  15633. return 0;
  15634. }
  15635. _ACEOF
  15636. rm -f conftest.$ac_objext conftest$ac_exeext
  15637. if { (ac_try="$ac_link"
  15638. case "(($ac_try" in
  15639. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15640. *) ac_try_echo=$ac_try;;
  15641. esac
  15642. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15643. (eval "$ac_link") 2>conftest.er1
  15644. ac_status=$?
  15645. grep -v '^ *+' conftest.er1 >conftest.err
  15646. rm -f conftest.er1
  15647. cat conftest.err >&5
  15648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15649. (exit $ac_status); } && {
  15650. test -z "$ac_c_werror_flag" ||
  15651. test ! -s conftest.err
  15652. } && test -s conftest$ac_exeext &&
  15653. $as_test_x conftest$ac_exeext; then
  15654. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15655. }'`
  15656. # Check for a 64-bit object if we didn't find anything.
  15657. 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; }
  15658. }'`; fi
  15659. else
  15660. echo "$as_me: failed program was:" >&5
  15661. sed 's/^/| /' conftest.$ac_ext >&5
  15662. fi
  15663. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15664. conftest$ac_exeext conftest.$ac_ext
  15665. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15666. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15667. 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"
  15668. else
  15669. if test "$host_cpu" = ia64; then
  15670. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  15671. allow_undefined_flag_GCJ="-z nodefs"
  15672. 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"
  15673. else
  15674. # Determine the default libpath from the value encoded in an empty executable.
  15675. cat >conftest.$ac_ext <<_ACEOF
  15676. /* confdefs.h. */
  15677. _ACEOF
  15678. cat confdefs.h >>conftest.$ac_ext
  15679. cat >>conftest.$ac_ext <<_ACEOF
  15680. /* end confdefs.h. */
  15681. int
  15682. main ()
  15683. {
  15684. ;
  15685. return 0;
  15686. }
  15687. _ACEOF
  15688. rm -f conftest.$ac_objext conftest$ac_exeext
  15689. if { (ac_try="$ac_link"
  15690. case "(($ac_try" in
  15691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15692. *) ac_try_echo=$ac_try;;
  15693. esac
  15694. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15695. (eval "$ac_link") 2>conftest.er1
  15696. ac_status=$?
  15697. grep -v '^ *+' conftest.er1 >conftest.err
  15698. rm -f conftest.er1
  15699. cat conftest.err >&5
  15700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15701. (exit $ac_status); } && {
  15702. test -z "$ac_c_werror_flag" ||
  15703. test ! -s conftest.err
  15704. } && test -s conftest$ac_exeext &&
  15705. $as_test_x conftest$ac_exeext; then
  15706. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15707. }'`
  15708. # Check for a 64-bit object if we didn't find anything.
  15709. 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; }
  15710. }'`; fi
  15711. else
  15712. echo "$as_me: failed program was:" >&5
  15713. sed 's/^/| /' conftest.$ac_ext >&5
  15714. fi
  15715. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15716. conftest$ac_exeext conftest.$ac_ext
  15717. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15718. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15719. # Warning - without using the other run time loading flags,
  15720. # -berok will link without error, but may produce a broken library.
  15721. no_undefined_flag_GCJ=' ${wl}-bernotok'
  15722. allow_undefined_flag_GCJ=' ${wl}-berok'
  15723. # -bexpall does not export symbols beginning with underscore (_)
  15724. always_export_symbols_GCJ=yes
  15725. # Exported symbols can be pulled into shared objects from archives
  15726. whole_archive_flag_spec_GCJ=' '
  15727. archive_cmds_need_lc_GCJ=yes
  15728. # This is similar to how AIX traditionally builds it's shared libraries.
  15729. 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'
  15730. fi
  15731. fi
  15732. ;;
  15733. amigaos*)
  15734. 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)'
  15735. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15736. hardcode_minus_L_GCJ=yes
  15737. # see comment about different semantics on the GNU ld section
  15738. ld_shlibs_GCJ=no
  15739. ;;
  15740. bsdi[45]*)
  15741. export_dynamic_flag_spec_GCJ=-rdynamic
  15742. ;;
  15743. cygwin* | mingw* | pw32*)
  15744. # When not using gcc, we currently assume that we are using
  15745. # Microsoft Visual C++.
  15746. # hardcode_libdir_flag_spec is actually meaningless, as there is
  15747. # no search path for DLLs.
  15748. hardcode_libdir_flag_spec_GCJ=' '
  15749. allow_undefined_flag_GCJ=unsupported
  15750. # Tell ltmain to make .lib files, not .a files.
  15751. libext=lib
  15752. # Tell ltmain to make .dll files, not .so files.
  15753. shrext_cmds=".dll"
  15754. # FIXME: Setting linknames here is a bad hack.
  15755. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  15756. # The linker will automatically build a .lib file if we build a DLL.
  15757. old_archive_From_new_cmds_GCJ='true'
  15758. # FIXME: Should let the user specify the lib program.
  15759. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  15760. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  15761. enable_shared_with_static_runtimes_GCJ=yes
  15762. ;;
  15763. darwin* | rhapsody*)
  15764. case "$host_os" in
  15765. rhapsody* | darwin1.[012])
  15766. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  15767. ;;
  15768. *) # Darwin 1.3 on
  15769. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  15770. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15771. else
  15772. case ${MACOSX_DEPLOYMENT_TARGET} in
  15773. 10.[012])
  15774. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15775. ;;
  15776. 10.*)
  15777. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  15778. ;;
  15779. esac
  15780. fi
  15781. ;;
  15782. esac
  15783. archive_cmds_need_lc_GCJ=no
  15784. hardcode_direct_GCJ=no
  15785. hardcode_automatic_GCJ=yes
  15786. hardcode_shlibpath_var_GCJ=unsupported
  15787. whole_archive_flag_spec_GCJ=''
  15788. link_all_deplibs_GCJ=yes
  15789. if test "$GCC" = yes ; then
  15790. output_verbose_link_cmd='echo'
  15791. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  15792. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15793. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  15794. 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}'
  15795. 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}'
  15796. else
  15797. case $cc_basename in
  15798. xlc*)
  15799. output_verbose_link_cmd='echo'
  15800. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  15801. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15802. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  15803. 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}'
  15804. 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}'
  15805. ;;
  15806. *)
  15807. ld_shlibs_GCJ=no
  15808. ;;
  15809. esac
  15810. fi
  15811. ;;
  15812. dgux*)
  15813. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15814. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15815. hardcode_shlibpath_var_GCJ=no
  15816. ;;
  15817. freebsd1*)
  15818. ld_shlibs_GCJ=no
  15819. ;;
  15820. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  15821. # support. Future versions do this automatically, but an explicit c++rt0.o
  15822. # does not break anything, and helps significantly (at the cost of a little
  15823. # extra space).
  15824. freebsd2.2*)
  15825. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15826. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15827. hardcode_direct_GCJ=yes
  15828. hardcode_shlibpath_var_GCJ=no
  15829. ;;
  15830. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15831. freebsd2*)
  15832. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15833. hardcode_direct_GCJ=yes
  15834. hardcode_minus_L_GCJ=yes
  15835. hardcode_shlibpath_var_GCJ=no
  15836. ;;
  15837. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15838. freebsd* | kfreebsd*-gnu | dragonfly*)
  15839. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15840. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15841. hardcode_direct_GCJ=yes
  15842. hardcode_shlibpath_var_GCJ=no
  15843. ;;
  15844. hpux9*)
  15845. if test "$GCC" = yes; then
  15846. 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'
  15847. else
  15848. 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'
  15849. fi
  15850. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15851. hardcode_libdir_separator_GCJ=:
  15852. hardcode_direct_GCJ=yes
  15853. # hardcode_minus_L: Not really in the search PATH,
  15854. # but as the default location of the library.
  15855. hardcode_minus_L_GCJ=yes
  15856. export_dynamic_flag_spec_GCJ='${wl}-E'
  15857. ;;
  15858. hpux10* | hpux11*)
  15859. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15860. case "$host_cpu" in
  15861. hppa*64*|ia64*)
  15862. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15863. ;;
  15864. *)
  15865. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15866. ;;
  15867. esac
  15868. else
  15869. case "$host_cpu" in
  15870. hppa*64*|ia64*)
  15871. archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  15872. ;;
  15873. *)
  15874. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  15875. ;;
  15876. esac
  15877. fi
  15878. if test "$with_gnu_ld" = no; then
  15879. case "$host_cpu" in
  15880. hppa*64*)
  15881. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15882. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  15883. hardcode_libdir_separator_GCJ=:
  15884. hardcode_direct_GCJ=no
  15885. hardcode_shlibpath_var_GCJ=no
  15886. ;;
  15887. ia64*)
  15888. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15889. hardcode_direct_GCJ=no
  15890. hardcode_shlibpath_var_GCJ=no
  15891. # hardcode_minus_L: Not really in the search PATH,
  15892. # but as the default location of the library.
  15893. hardcode_minus_L_GCJ=yes
  15894. ;;
  15895. *)
  15896. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15897. hardcode_libdir_separator_GCJ=:
  15898. hardcode_direct_GCJ=yes
  15899. export_dynamic_flag_spec_GCJ='${wl}-E'
  15900. # hardcode_minus_L: Not really in the search PATH,
  15901. # but as the default location of the library.
  15902. hardcode_minus_L_GCJ=yes
  15903. ;;
  15904. esac
  15905. fi
  15906. ;;
  15907. irix5* | irix6* | nonstopux*)
  15908. if test "$GCC" = yes; then
  15909. 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'
  15910. else
  15911. 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'
  15912. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  15913. fi
  15914. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15915. hardcode_libdir_separator_GCJ=:
  15916. link_all_deplibs_GCJ=yes
  15917. ;;
  15918. netbsd*)
  15919. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15920. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  15921. else
  15922. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  15923. fi
  15924. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15925. hardcode_direct_GCJ=yes
  15926. hardcode_shlibpath_var_GCJ=no
  15927. ;;
  15928. newsos6)
  15929. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15930. hardcode_direct_GCJ=yes
  15931. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15932. hardcode_libdir_separator_GCJ=:
  15933. hardcode_shlibpath_var_GCJ=no
  15934. ;;
  15935. openbsd*)
  15936. hardcode_direct_GCJ=yes
  15937. hardcode_shlibpath_var_GCJ=no
  15938. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15939. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15940. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  15941. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15942. export_dynamic_flag_spec_GCJ='${wl}-E'
  15943. else
  15944. case $host_os in
  15945. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  15946. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15947. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15948. ;;
  15949. *)
  15950. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15951. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15952. ;;
  15953. esac
  15954. fi
  15955. ;;
  15956. os2*)
  15957. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15958. hardcode_minus_L_GCJ=yes
  15959. allow_undefined_flag_GCJ=unsupported
  15960. 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'
  15961. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  15962. ;;
  15963. osf3*)
  15964. if test "$GCC" = yes; then
  15965. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15966. 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'
  15967. else
  15968. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15969. 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'
  15970. fi
  15971. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15972. hardcode_libdir_separator_GCJ=:
  15973. ;;
  15974. osf4* | osf5*) # as osf3* with the addition of -msym flag
  15975. if test "$GCC" = yes; then
  15976. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15977. 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'
  15978. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15979. else
  15980. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15981. 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'
  15982. 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~
  15983. $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'
  15984. # Both c and cxx compiler support -rpath directly
  15985. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  15986. fi
  15987. hardcode_libdir_separator_GCJ=:
  15988. ;;
  15989. sco3.2v5*)
  15990. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15991. hardcode_shlibpath_var_GCJ=no
  15992. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  15993. runpath_var=LD_RUN_PATH
  15994. hardcode_runpath_var=yes
  15995. ;;
  15996. solaris*)
  15997. no_undefined_flag_GCJ=' -z text'
  15998. if test "$GCC" = yes; then
  15999. wlarc='${wl}'
  16000. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16001. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16002. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  16003. else
  16004. wlarc=''
  16005. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16006. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16007. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  16008. fi
  16009. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16010. hardcode_shlibpath_var_GCJ=no
  16011. case $host_os in
  16012. solaris2.[0-5] | solaris2.[0-5].*) ;;
  16013. *)
  16014. # The compiler driver will combine linker options so we
  16015. # cannot just pass the convience library names through
  16016. # without $wl, iff we do not link with $LD.
  16017. # Luckily, gcc supports the same syntax we need for Sun Studio.
  16018. # Supported since Solaris 2.6 (maybe 2.5.1?)
  16019. case $wlarc in
  16020. '')
  16021. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  16022. *)
  16023. 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' ;;
  16024. esac ;;
  16025. esac
  16026. link_all_deplibs_GCJ=yes
  16027. ;;
  16028. sunos4*)
  16029. if test "x$host_vendor" = xsequent; then
  16030. # Use $CC to link under sequent, because it throws in some extra .o
  16031. # files that make .init and .fini sections work.
  16032. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  16033. else
  16034. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  16035. fi
  16036. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16037. hardcode_direct_GCJ=yes
  16038. hardcode_minus_L_GCJ=yes
  16039. hardcode_shlibpath_var_GCJ=no
  16040. ;;
  16041. sysv4)
  16042. case $host_vendor in
  16043. sni)
  16044. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16045. hardcode_direct_GCJ=yes # is this really true???
  16046. ;;
  16047. siemens)
  16048. ## LD is ld it makes a PLAMLIB
  16049. ## CC just makes a GrossModule.
  16050. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  16051. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  16052. hardcode_direct_GCJ=no
  16053. ;;
  16054. motorola)
  16055. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16056. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  16057. ;;
  16058. esac
  16059. runpath_var='LD_RUN_PATH'
  16060. hardcode_shlibpath_var_GCJ=no
  16061. ;;
  16062. sysv4.3*)
  16063. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16064. hardcode_shlibpath_var_GCJ=no
  16065. export_dynamic_flag_spec_GCJ='-Bexport'
  16066. ;;
  16067. sysv4*MP*)
  16068. if test -d /usr/nec; then
  16069. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16070. hardcode_shlibpath_var_GCJ=no
  16071. runpath_var=LD_RUN_PATH
  16072. hardcode_runpath_var=yes
  16073. ld_shlibs_GCJ=yes
  16074. fi
  16075. ;;
  16076. sysv4.2uw2*)
  16077. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  16078. hardcode_direct_GCJ=yes
  16079. hardcode_minus_L_GCJ=no
  16080. hardcode_shlibpath_var_GCJ=no
  16081. hardcode_runpath_var=yes
  16082. runpath_var=LD_RUN_PATH
  16083. ;;
  16084. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  16085. no_undefined_flag_GCJ='${wl}-z ${wl}text'
  16086. if test "$GCC" = yes; then
  16087. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16088. else
  16089. archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16090. fi
  16091. runpath_var='LD_RUN_PATH'
  16092. hardcode_shlibpath_var_GCJ=no
  16093. ;;
  16094. sysv5*)
  16095. no_undefined_flag_GCJ=' -z text'
  16096. # $CC -shared without GNU ld will not create a library from C++
  16097. # object files and a static libstdc++, better avoid it by now
  16098. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16099. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16100. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  16101. hardcode_libdir_flag_spec_GCJ=
  16102. hardcode_shlibpath_var_GCJ=no
  16103. runpath_var='LD_RUN_PATH'
  16104. ;;
  16105. uts4*)
  16106. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16107. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16108. hardcode_shlibpath_var_GCJ=no
  16109. ;;
  16110. *)
  16111. ld_shlibs_GCJ=no
  16112. ;;
  16113. esac
  16114. fi
  16115. { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  16116. echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  16117. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  16118. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16119. if test "$GCC" = yes; then
  16120. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16121. fi
  16122. #
  16123. # Do we need to explicitly link libc?
  16124. #
  16125. case "x$archive_cmds_need_lc_GCJ" in
  16126. x|xyes)
  16127. # Assume -lc should be added
  16128. archive_cmds_need_lc_GCJ=yes
  16129. if test "$enable_shared" = yes && test "$GCC" = yes; then
  16130. case $archive_cmds_GCJ in
  16131. *'~'*)
  16132. # FIXME: we may have to deal with multi-command sequences.
  16133. ;;
  16134. '$CC '*)
  16135. # Test whether the compiler implicitly links with -lc since on some
  16136. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  16137. # to ld, don't add -lc before -lgcc.
  16138. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  16139. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  16140. $rm conftest*
  16141. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  16142. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16143. (eval $ac_compile) 2>&5
  16144. ac_status=$?
  16145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16146. (exit $ac_status); } 2>conftest.err; then
  16147. soname=conftest
  16148. lib=conftest
  16149. libobjs=conftest.$ac_objext
  16150. deplibs=
  16151. wl=$lt_prog_compiler_wl_GCJ
  16152. compiler_flags=-v
  16153. linker_flags=-v
  16154. verstring=
  16155. output_objdir=.
  16156. libname=conftest
  16157. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  16158. allow_undefined_flag_GCJ=
  16159. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  16160. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  16161. ac_status=$?
  16162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16163. (exit $ac_status); }
  16164. then
  16165. archive_cmds_need_lc_GCJ=no
  16166. else
  16167. archive_cmds_need_lc_GCJ=yes
  16168. fi
  16169. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  16170. else
  16171. cat conftest.err 1>&5
  16172. fi
  16173. $rm conftest*
  16174. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  16175. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  16176. ;;
  16177. esac
  16178. fi
  16179. ;;
  16180. esac
  16181. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  16182. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  16183. library_names_spec=
  16184. libname_spec='lib$name'
  16185. soname_spec=
  16186. shrext_cmds=".so"
  16187. postinstall_cmds=
  16188. postuninstall_cmds=
  16189. finish_cmds=
  16190. finish_eval=
  16191. shlibpath_var=
  16192. shlibpath_overrides_runpath=unknown
  16193. version_type=none
  16194. dynamic_linker="$host_os ld.so"
  16195. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  16196. if test "$GCC" = yes; then
  16197. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16198. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  16199. # if the path contains ";" then we assume it to be the separator
  16200. # otherwise default to the standard path separator (i.e. ":") - it is
  16201. # assumed that no part of a normal pathname contains ";" but that should
  16202. # okay in the real world where ";" in dirpaths is itself problematic.
  16203. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16204. else
  16205. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16206. fi
  16207. else
  16208. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  16209. fi
  16210. need_lib_prefix=unknown
  16211. hardcode_into_libs=no
  16212. # when you set need_version to no, make sure it does not cause -set_version
  16213. # flags to be left without arguments
  16214. need_version=unknown
  16215. case $host_os in
  16216. aix3*)
  16217. version_type=linux
  16218. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  16219. shlibpath_var=LIBPATH
  16220. # AIX 3 has no versioning support, so we append a major version to the name.
  16221. soname_spec='${libname}${release}${shared_ext}$major'
  16222. ;;
  16223. aix4* | aix5*)
  16224. version_type=linux
  16225. need_lib_prefix=no
  16226. need_version=no
  16227. hardcode_into_libs=yes
  16228. if test "$host_cpu" = ia64; then
  16229. # AIX 5 supports IA64
  16230. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  16231. shlibpath_var=LD_LIBRARY_PATH
  16232. else
  16233. # With GCC up to 2.95.x, collect2 would create an import file
  16234. # for dependence libraries. The import file would start with
  16235. # the line `#! .'. This would cause the generated library to
  16236. # depend on `.', always an invalid library. This was fixed in
  16237. # development snapshots of GCC prior to 3.0.
  16238. case $host_os in
  16239. aix4 | aix4.[01] | aix4.[01].*)
  16240. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  16241. echo ' yes '
  16242. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  16243. :
  16244. else
  16245. can_build_shared=no
  16246. fi
  16247. ;;
  16248. esac
  16249. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  16250. # soname into executable. Probably we can add versioning support to
  16251. # collect2, so additional links can be useful in future.
  16252. if test "$aix_use_runtimelinking" = yes; then
  16253. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  16254. # instead of lib<name>.a to let people know that these are not
  16255. # typical AIX shared libraries.
  16256. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16257. else
  16258. # We preserve .a as extension for shared libraries through AIX4.2
  16259. # and later when we are not doing run time linking.
  16260. library_names_spec='${libname}${release}.a $libname.a'
  16261. soname_spec='${libname}${release}${shared_ext}$major'
  16262. fi
  16263. shlibpath_var=LIBPATH
  16264. fi
  16265. ;;
  16266. amigaos*)
  16267. library_names_spec='$libname.ixlibrary $libname.a'
  16268. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  16269. 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'
  16270. ;;
  16271. beos*)
  16272. library_names_spec='${libname}${shared_ext}'
  16273. dynamic_linker="$host_os ld.so"
  16274. shlibpath_var=LIBRARY_PATH
  16275. ;;
  16276. bsdi[45]*)
  16277. version_type=linux
  16278. need_version=no
  16279. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16280. soname_spec='${libname}${release}${shared_ext}$major'
  16281. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  16282. shlibpath_var=LD_LIBRARY_PATH
  16283. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  16284. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  16285. # the default ld.so.conf also contains /usr/contrib/lib and
  16286. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  16287. # libtool to hard-code these into programs
  16288. ;;
  16289. cygwin* | mingw* | pw32*)
  16290. version_type=windows
  16291. shrext_cmds=".dll"
  16292. need_version=no
  16293. need_lib_prefix=no
  16294. case $GCC,$host_os in
  16295. yes,cygwin* | yes,mingw* | yes,pw32*)
  16296. library_names_spec='$libname.dll.a'
  16297. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  16298. postinstall_cmds='base_file=`basename \${file}`~
  16299. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  16300. dldir=$destdir/`dirname \$dlpath`~
  16301. test -d \$dldir || mkdir -p \$dldir~
  16302. $install_prog $dir/$dlname \$dldir/$dlname'
  16303. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  16304. dlpath=$dir/\$dldll~
  16305. $rm \$dlpath'
  16306. shlibpath_overrides_runpath=yes
  16307. case $host_os in
  16308. cygwin*)
  16309. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  16310. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16311. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  16312. ;;
  16313. mingw*)
  16314. # MinGW DLLs use traditional 'lib' prefix
  16315. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16316. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16317. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  16318. # It is most probably a Windows format PATH printed by
  16319. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  16320. # path with ; separators, and with drive letters. We can handle the
  16321. # drive letters (cygwin fileutils understands them), so leave them,
  16322. # especially as we might pass files found there to a mingw objdump,
  16323. # which wouldn't understand a cygwinified path. Ahh.
  16324. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16325. else
  16326. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16327. fi
  16328. ;;
  16329. pw32*)
  16330. # pw32 DLLs use 'pw' prefix rather than 'lib'
  16331. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16332. ;;
  16333. esac
  16334. ;;
  16335. *)
  16336. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  16337. ;;
  16338. esac
  16339. dynamic_linker='Win32 ld.exe'
  16340. # FIXME: first we should search . and the directory the executable is in
  16341. shlibpath_var=PATH
  16342. ;;
  16343. darwin* | rhapsody*)
  16344. dynamic_linker="$host_os dyld"
  16345. version_type=darwin
  16346. need_lib_prefix=no
  16347. need_version=no
  16348. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  16349. soname_spec='${libname}${release}${major}$shared_ext'
  16350. shlibpath_overrides_runpath=yes
  16351. shlibpath_var=DYLD_LIBRARY_PATH
  16352. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  16353. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  16354. if test "$GCC" = yes; then
  16355. 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"`
  16356. else
  16357. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  16358. fi
  16359. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  16360. ;;
  16361. dgux*)
  16362. version_type=linux
  16363. need_lib_prefix=no
  16364. need_version=no
  16365. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  16366. soname_spec='${libname}${release}${shared_ext}$major'
  16367. shlibpath_var=LD_LIBRARY_PATH
  16368. ;;
  16369. freebsd1*)
  16370. dynamic_linker=no
  16371. ;;
  16372. kfreebsd*-gnu)
  16373. version_type=linux
  16374. need_lib_prefix=no
  16375. need_version=no
  16376. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16377. soname_spec='${libname}${release}${shared_ext}$major'
  16378. shlibpath_var=LD_LIBRARY_PATH
  16379. shlibpath_overrides_runpath=no
  16380. hardcode_into_libs=yes
  16381. dynamic_linker='GNU ld.so'
  16382. ;;
  16383. freebsd* | dragonfly*)
  16384. # DragonFly does not have aout. When/if they implement a new
  16385. # versioning mechanism, adjust this.
  16386. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  16387. version_type=freebsd-$objformat
  16388. case $version_type in
  16389. freebsd-elf*)
  16390. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16391. need_version=no
  16392. need_lib_prefix=no
  16393. ;;
  16394. freebsd-*)
  16395. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  16396. need_version=yes
  16397. ;;
  16398. esac
  16399. shlibpath_var=LD_LIBRARY_PATH
  16400. case $host_os in
  16401. freebsd2*)
  16402. shlibpath_overrides_runpath=yes
  16403. ;;
  16404. freebsd3.[01]* | freebsdelf3.[01]*)
  16405. shlibpath_overrides_runpath=yes
  16406. hardcode_into_libs=yes
  16407. ;;
  16408. *) # from 3.2 on
  16409. shlibpath_overrides_runpath=no
  16410. hardcode_into_libs=yes
  16411. ;;
  16412. esac
  16413. ;;
  16414. gnu*)
  16415. version_type=linux
  16416. need_lib_prefix=no
  16417. need_version=no
  16418. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  16419. soname_spec='${libname}${release}${shared_ext}$major'
  16420. shlibpath_var=LD_LIBRARY_PATH
  16421. hardcode_into_libs=yes
  16422. ;;
  16423. hpux9* | hpux10* | hpux11*)
  16424. # Give a soname corresponding to the major version so that dld.sl refuses to
  16425. # link against other versions.
  16426. version_type=sunos
  16427. need_lib_prefix=no
  16428. need_version=no
  16429. case "$host_cpu" in
  16430. ia64*)
  16431. shrext_cmds='.so'
  16432. hardcode_into_libs=yes
  16433. dynamic_linker="$host_os dld.so"
  16434. shlibpath_var=LD_LIBRARY_PATH
  16435. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16436. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16437. soname_spec='${libname}${release}${shared_ext}$major'
  16438. if test "X$HPUX_IA64_MODE" = X32; then
  16439. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  16440. else
  16441. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  16442. fi
  16443. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16444. ;;
  16445. hppa*64*)
  16446. shrext_cmds='.sl'
  16447. hardcode_into_libs=yes
  16448. dynamic_linker="$host_os dld.sl"
  16449. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  16450. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16451. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16452. soname_spec='${libname}${release}${shared_ext}$major'
  16453. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  16454. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16455. ;;
  16456. *)
  16457. shrext_cmds='.sl'
  16458. dynamic_linker="$host_os dld.sl"
  16459. shlibpath_var=SHLIB_PATH
  16460. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  16461. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16462. soname_spec='${libname}${release}${shared_ext}$major'
  16463. ;;
  16464. esac
  16465. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  16466. postinstall_cmds='chmod 555 $lib'
  16467. ;;
  16468. irix5* | irix6* | nonstopux*)
  16469. case $host_os in
  16470. nonstopux*) version_type=nonstopux ;;
  16471. *)
  16472. if test "$lt_cv_prog_gnu_ld" = yes; then
  16473. version_type=linux
  16474. else
  16475. version_type=irix
  16476. fi ;;
  16477. esac
  16478. need_lib_prefix=no
  16479. need_version=no
  16480. soname_spec='${libname}${release}${shared_ext}$major'
  16481. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  16482. case $host_os in
  16483. irix5* | nonstopux*)
  16484. libsuff= shlibsuff=
  16485. ;;
  16486. *)
  16487. case $LD in # libtool.m4 will add one of these switches to LD
  16488. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  16489. libsuff= shlibsuff= libmagic=32-bit;;
  16490. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  16491. libsuff=32 shlibsuff=N32 libmagic=N32;;
  16492. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  16493. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  16494. *) libsuff= shlibsuff= libmagic=never-match;;
  16495. esac
  16496. ;;
  16497. esac
  16498. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  16499. shlibpath_overrides_runpath=no
  16500. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  16501. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  16502. hardcode_into_libs=yes
  16503. ;;
  16504. # No shared lib support for Linux oldld, aout, or coff.
  16505. linux*oldld* | linux*aout* | linux*coff*)
  16506. dynamic_linker=no
  16507. ;;
  16508. # This must be Linux ELF.
  16509. linux*)
  16510. version_type=linux
  16511. need_lib_prefix=no
  16512. need_version=no
  16513. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16514. soname_spec='${libname}${release}${shared_ext}$major'
  16515. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  16516. shlibpath_var=LD_LIBRARY_PATH
  16517. shlibpath_overrides_runpath=no
  16518. # This implies no fast_install, which is unacceptable.
  16519. # Some rework will be needed to allow for fast_install
  16520. # before this can be enabled.
  16521. hardcode_into_libs=yes
  16522. # Append ld.so.conf contents to the search path
  16523. if test -f /etc/ld.so.conf; then
  16524. 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' ' '`
  16525. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  16526. fi
  16527. # We used to test for /lib/ld.so.1 and disable shared libraries on
  16528. # powerpc, because MkLinux only supported shared libraries with the
  16529. # GNU dynamic linker. Since this was broken with cross compilers,
  16530. # most powerpc-linux boxes support dynamic linking these days and
  16531. # people can always --disable-shared, the test was removed, and we
  16532. # assume the GNU/Linux dynamic linker is in use.
  16533. dynamic_linker='GNU/Linux ld.so'
  16534. ;;
  16535. knetbsd*-gnu)
  16536. version_type=linux
  16537. need_lib_prefix=no
  16538. need_version=no
  16539. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16540. soname_spec='${libname}${release}${shared_ext}$major'
  16541. shlibpath_var=LD_LIBRARY_PATH
  16542. shlibpath_overrides_runpath=no
  16543. hardcode_into_libs=yes
  16544. dynamic_linker='GNU ld.so'
  16545. ;;
  16546. netbsd*)
  16547. version_type=sunos
  16548. need_lib_prefix=no
  16549. need_version=no
  16550. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16551. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16552. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16553. dynamic_linker='NetBSD (a.out) ld.so'
  16554. else
  16555. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16556. soname_spec='${libname}${release}${shared_ext}$major'
  16557. dynamic_linker='NetBSD ld.elf_so'
  16558. fi
  16559. shlibpath_var=LD_LIBRARY_PATH
  16560. shlibpath_overrides_runpath=yes
  16561. hardcode_into_libs=yes
  16562. ;;
  16563. newsos6)
  16564. version_type=linux
  16565. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16566. shlibpath_var=LD_LIBRARY_PATH
  16567. shlibpath_overrides_runpath=yes
  16568. ;;
  16569. nto-qnx*)
  16570. version_type=linux
  16571. need_lib_prefix=no
  16572. need_version=no
  16573. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16574. soname_spec='${libname}${release}${shared_ext}$major'
  16575. shlibpath_var=LD_LIBRARY_PATH
  16576. shlibpath_overrides_runpath=yes
  16577. ;;
  16578. openbsd*)
  16579. version_type=sunos
  16580. need_lib_prefix=no
  16581. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  16582. case $host_os in
  16583. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  16584. *) need_version=no ;;
  16585. esac
  16586. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16587. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16588. shlibpath_var=LD_LIBRARY_PATH
  16589. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16590. case $host_os in
  16591. openbsd2.[89] | openbsd2.[89].*)
  16592. shlibpath_overrides_runpath=no
  16593. ;;
  16594. *)
  16595. shlibpath_overrides_runpath=yes
  16596. ;;
  16597. esac
  16598. else
  16599. shlibpath_overrides_runpath=yes
  16600. fi
  16601. ;;
  16602. os2*)
  16603. libname_spec='$name'
  16604. shrext_cmds=".dll"
  16605. need_lib_prefix=no
  16606. library_names_spec='$libname${shared_ext} $libname.a'
  16607. dynamic_linker='OS/2 ld.exe'
  16608. shlibpath_var=LIBPATH
  16609. ;;
  16610. osf3* | osf4* | osf5*)
  16611. version_type=osf
  16612. need_lib_prefix=no
  16613. need_version=no
  16614. soname_spec='${libname}${release}${shared_ext}$major'
  16615. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16616. shlibpath_var=LD_LIBRARY_PATH
  16617. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  16618. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  16619. ;;
  16620. sco3.2v5*)
  16621. version_type=osf
  16622. soname_spec='${libname}${release}${shared_ext}$major'
  16623. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16624. shlibpath_var=LD_LIBRARY_PATH
  16625. ;;
  16626. solaris*)
  16627. version_type=linux
  16628. need_lib_prefix=no
  16629. need_version=no
  16630. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16631. soname_spec='${libname}${release}${shared_ext}$major'
  16632. shlibpath_var=LD_LIBRARY_PATH
  16633. shlibpath_overrides_runpath=yes
  16634. hardcode_into_libs=yes
  16635. # ldd complains unless libraries are executable
  16636. postinstall_cmds='chmod +x $lib'
  16637. ;;
  16638. sunos4*)
  16639. version_type=sunos
  16640. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16641. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  16642. shlibpath_var=LD_LIBRARY_PATH
  16643. shlibpath_overrides_runpath=yes
  16644. if test "$with_gnu_ld" = yes; then
  16645. need_lib_prefix=no
  16646. fi
  16647. need_version=yes
  16648. ;;
  16649. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  16650. version_type=linux
  16651. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16652. soname_spec='${libname}${release}${shared_ext}$major'
  16653. shlibpath_var=LD_LIBRARY_PATH
  16654. case $host_vendor in
  16655. sni)
  16656. shlibpath_overrides_runpath=no
  16657. need_lib_prefix=no
  16658. export_dynamic_flag_spec='${wl}-Blargedynsym'
  16659. runpath_var=LD_RUN_PATH
  16660. ;;
  16661. siemens)
  16662. need_lib_prefix=no
  16663. ;;
  16664. motorola)
  16665. need_lib_prefix=no
  16666. need_version=no
  16667. shlibpath_overrides_runpath=no
  16668. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  16669. ;;
  16670. esac
  16671. ;;
  16672. sysv4*MP*)
  16673. if test -d /usr/nec ;then
  16674. version_type=linux
  16675. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  16676. soname_spec='$libname${shared_ext}.$major'
  16677. shlibpath_var=LD_LIBRARY_PATH
  16678. fi
  16679. ;;
  16680. uts4*)
  16681. version_type=linux
  16682. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16683. soname_spec='${libname}${release}${shared_ext}$major'
  16684. shlibpath_var=LD_LIBRARY_PATH
  16685. ;;
  16686. *)
  16687. dynamic_linker=no
  16688. ;;
  16689. esac
  16690. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  16691. echo "${ECHO_T}$dynamic_linker" >&6; }
  16692. test "$dynamic_linker" = no && can_build_shared=no
  16693. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  16694. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  16695. hardcode_action_GCJ=
  16696. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  16697. test -n "$runpath_var_GCJ" || \
  16698. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  16699. # We can hardcode non-existant directories.
  16700. if test "$hardcode_direct_GCJ" != no &&
  16701. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16702. # have to relink, otherwise we might link with an installed library
  16703. # when we should be linking with a yet-to-be-installed one
  16704. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  16705. test "$hardcode_minus_L_GCJ" != no; then
  16706. # Linking always hardcodes the temporary library directory.
  16707. hardcode_action_GCJ=relink
  16708. else
  16709. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16710. hardcode_action_GCJ=immediate
  16711. fi
  16712. else
  16713. # We cannot hardcode anything, or else we can only hardcode existing
  16714. # directories.
  16715. hardcode_action_GCJ=unsupported
  16716. fi
  16717. { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  16718. echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  16719. if test "$hardcode_action_GCJ" = relink; then
  16720. # Fast installation is not supported
  16721. enable_fast_install=no
  16722. elif test "$shlibpath_overrides_runpath" = yes ||
  16723. test "$enable_shared" = no; then
  16724. # Fast installation is not necessary
  16725. enable_fast_install=needless
  16726. fi
  16727. striplib=
  16728. old_striplib=
  16729. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  16730. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  16731. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  16732. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  16733. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  16734. { echo "$as_me:$LINENO: result: yes" >&5
  16735. echo "${ECHO_T}yes" >&6; }
  16736. else
  16737. # FIXME - insert some real tests, host_os isn't really good enough
  16738. case $host_os in
  16739. darwin*)
  16740. if test -n "$STRIP" ; then
  16741. striplib="$STRIP -x"
  16742. { echo "$as_me:$LINENO: result: yes" >&5
  16743. echo "${ECHO_T}yes" >&6; }
  16744. else
  16745. { echo "$as_me:$LINENO: result: no" >&5
  16746. echo "${ECHO_T}no" >&6; }
  16747. fi
  16748. ;;
  16749. *)
  16750. { echo "$as_me:$LINENO: result: no" >&5
  16751. echo "${ECHO_T}no" >&6; }
  16752. ;;
  16753. esac
  16754. fi
  16755. if test "x$enable_dlopen" != xyes; then
  16756. enable_dlopen=unknown
  16757. enable_dlopen_self=unknown
  16758. enable_dlopen_self_static=unknown
  16759. else
  16760. lt_cv_dlopen=no
  16761. lt_cv_dlopen_libs=
  16762. case $host_os in
  16763. beos*)
  16764. lt_cv_dlopen="load_add_on"
  16765. lt_cv_dlopen_libs=
  16766. lt_cv_dlopen_self=yes
  16767. ;;
  16768. mingw* | pw32*)
  16769. lt_cv_dlopen="LoadLibrary"
  16770. lt_cv_dlopen_libs=
  16771. ;;
  16772. cygwin*)
  16773. lt_cv_dlopen="dlopen"
  16774. lt_cv_dlopen_libs=
  16775. ;;
  16776. darwin*)
  16777. # if libdl is installed we need to link against it
  16778. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  16779. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  16780. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  16781. echo $ECHO_N "(cached) $ECHO_C" >&6
  16782. else
  16783. ac_check_lib_save_LIBS=$LIBS
  16784. LIBS="-ldl $LIBS"
  16785. cat >conftest.$ac_ext <<_ACEOF
  16786. /* confdefs.h. */
  16787. _ACEOF
  16788. cat confdefs.h >>conftest.$ac_ext
  16789. cat >>conftest.$ac_ext <<_ACEOF
  16790. /* end confdefs.h. */
  16791. /* Override any GCC internal prototype to avoid an error.
  16792. Use char because int might match the return type of a GCC
  16793. builtin and then its argument prototype would still apply. */
  16794. #ifdef __cplusplus
  16795. extern "C"
  16796. #endif
  16797. char dlopen ();
  16798. int
  16799. main ()
  16800. {
  16801. return dlopen ();
  16802. ;
  16803. return 0;
  16804. }
  16805. _ACEOF
  16806. rm -f conftest.$ac_objext conftest$ac_exeext
  16807. if { (ac_try="$ac_link"
  16808. case "(($ac_try" in
  16809. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16810. *) ac_try_echo=$ac_try;;
  16811. esac
  16812. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16813. (eval "$ac_link") 2>conftest.er1
  16814. ac_status=$?
  16815. grep -v '^ *+' conftest.er1 >conftest.err
  16816. rm -f conftest.er1
  16817. cat conftest.err >&5
  16818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16819. (exit $ac_status); } && {
  16820. test -z "$ac_c_werror_flag" ||
  16821. test ! -s conftest.err
  16822. } && test -s conftest$ac_exeext &&
  16823. $as_test_x conftest$ac_exeext; then
  16824. ac_cv_lib_dl_dlopen=yes
  16825. else
  16826. echo "$as_me: failed program was:" >&5
  16827. sed 's/^/| /' conftest.$ac_ext >&5
  16828. ac_cv_lib_dl_dlopen=no
  16829. fi
  16830. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16831. conftest$ac_exeext conftest.$ac_ext
  16832. LIBS=$ac_check_lib_save_LIBS
  16833. fi
  16834. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  16835. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  16836. if test $ac_cv_lib_dl_dlopen = yes; then
  16837. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  16838. else
  16839. lt_cv_dlopen="dyld"
  16840. lt_cv_dlopen_libs=
  16841. lt_cv_dlopen_self=yes
  16842. fi
  16843. ;;
  16844. *)
  16845. { echo "$as_me:$LINENO: checking for shl_load" >&5
  16846. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  16847. if test "${ac_cv_func_shl_load+set}" = set; then
  16848. echo $ECHO_N "(cached) $ECHO_C" >&6
  16849. else
  16850. cat >conftest.$ac_ext <<_ACEOF
  16851. /* confdefs.h. */
  16852. _ACEOF
  16853. cat confdefs.h >>conftest.$ac_ext
  16854. cat >>conftest.$ac_ext <<_ACEOF
  16855. /* end confdefs.h. */
  16856. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  16857. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16858. #define shl_load innocuous_shl_load
  16859. /* System header to define __stub macros and hopefully few prototypes,
  16860. which can conflict with char shl_load (); below.
  16861. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16862. <limits.h> exists even on freestanding compilers. */
  16863. #ifdef __STDC__
  16864. # include <limits.h>
  16865. #else
  16866. # include <assert.h>
  16867. #endif
  16868. #undef shl_load
  16869. /* Override any GCC internal prototype to avoid an error.
  16870. Use char because int might match the return type of a GCC
  16871. builtin and then its argument prototype would still apply. */
  16872. #ifdef __cplusplus
  16873. extern "C"
  16874. #endif
  16875. char shl_load ();
  16876. /* The GNU C library defines this for functions which it implements
  16877. to always fail with ENOSYS. Some functions are actually named
  16878. something starting with __ and the normal name is an alias. */
  16879. #if defined __stub_shl_load || defined __stub___shl_load
  16880. choke me
  16881. #endif
  16882. int
  16883. main ()
  16884. {
  16885. return shl_load ();
  16886. ;
  16887. return 0;
  16888. }
  16889. _ACEOF
  16890. rm -f conftest.$ac_objext conftest$ac_exeext
  16891. if { (ac_try="$ac_link"
  16892. case "(($ac_try" in
  16893. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16894. *) ac_try_echo=$ac_try;;
  16895. esac
  16896. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16897. (eval "$ac_link") 2>conftest.er1
  16898. ac_status=$?
  16899. grep -v '^ *+' conftest.er1 >conftest.err
  16900. rm -f conftest.er1
  16901. cat conftest.err >&5
  16902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16903. (exit $ac_status); } && {
  16904. test -z "$ac_c_werror_flag" ||
  16905. test ! -s conftest.err
  16906. } && test -s conftest$ac_exeext &&
  16907. $as_test_x conftest$ac_exeext; then
  16908. ac_cv_func_shl_load=yes
  16909. else
  16910. echo "$as_me: failed program was:" >&5
  16911. sed 's/^/| /' conftest.$ac_ext >&5
  16912. ac_cv_func_shl_load=no
  16913. fi
  16914. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16915. conftest$ac_exeext conftest.$ac_ext
  16916. fi
  16917. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  16918. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  16919. if test $ac_cv_func_shl_load = yes; then
  16920. lt_cv_dlopen="shl_load"
  16921. else
  16922. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  16923. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  16924. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  16925. echo $ECHO_N "(cached) $ECHO_C" >&6
  16926. else
  16927. ac_check_lib_save_LIBS=$LIBS
  16928. LIBS="-ldld $LIBS"
  16929. cat >conftest.$ac_ext <<_ACEOF
  16930. /* confdefs.h. */
  16931. _ACEOF
  16932. cat confdefs.h >>conftest.$ac_ext
  16933. cat >>conftest.$ac_ext <<_ACEOF
  16934. /* end confdefs.h. */
  16935. /* Override any GCC internal prototype to avoid an error.
  16936. Use char because int might match the return type of a GCC
  16937. builtin and then its argument prototype would still apply. */
  16938. #ifdef __cplusplus
  16939. extern "C"
  16940. #endif
  16941. char shl_load ();
  16942. int
  16943. main ()
  16944. {
  16945. return shl_load ();
  16946. ;
  16947. return 0;
  16948. }
  16949. _ACEOF
  16950. rm -f conftest.$ac_objext conftest$ac_exeext
  16951. if { (ac_try="$ac_link"
  16952. case "(($ac_try" in
  16953. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16954. *) ac_try_echo=$ac_try;;
  16955. esac
  16956. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16957. (eval "$ac_link") 2>conftest.er1
  16958. ac_status=$?
  16959. grep -v '^ *+' conftest.er1 >conftest.err
  16960. rm -f conftest.er1
  16961. cat conftest.err >&5
  16962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16963. (exit $ac_status); } && {
  16964. test -z "$ac_c_werror_flag" ||
  16965. test ! -s conftest.err
  16966. } && test -s conftest$ac_exeext &&
  16967. $as_test_x conftest$ac_exeext; then
  16968. ac_cv_lib_dld_shl_load=yes
  16969. else
  16970. echo "$as_me: failed program was:" >&5
  16971. sed 's/^/| /' conftest.$ac_ext >&5
  16972. ac_cv_lib_dld_shl_load=no
  16973. fi
  16974. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16975. conftest$ac_exeext conftest.$ac_ext
  16976. LIBS=$ac_check_lib_save_LIBS
  16977. fi
  16978. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  16979. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  16980. if test $ac_cv_lib_dld_shl_load = yes; then
  16981. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  16982. else
  16983. { echo "$as_me:$LINENO: checking for dlopen" >&5
  16984. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  16985. if test "${ac_cv_func_dlopen+set}" = set; then
  16986. echo $ECHO_N "(cached) $ECHO_C" >&6
  16987. else
  16988. cat >conftest.$ac_ext <<_ACEOF
  16989. /* confdefs.h. */
  16990. _ACEOF
  16991. cat confdefs.h >>conftest.$ac_ext
  16992. cat >>conftest.$ac_ext <<_ACEOF
  16993. /* end confdefs.h. */
  16994. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  16995. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16996. #define dlopen innocuous_dlopen
  16997. /* System header to define __stub macros and hopefully few prototypes,
  16998. which can conflict with char dlopen (); below.
  16999. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17000. <limits.h> exists even on freestanding compilers. */
  17001. #ifdef __STDC__
  17002. # include <limits.h>
  17003. #else
  17004. # include <assert.h>
  17005. #endif
  17006. #undef dlopen
  17007. /* Override any GCC internal prototype to avoid an error.
  17008. Use char because int might match the return type of a GCC
  17009. builtin and then its argument prototype would still apply. */
  17010. #ifdef __cplusplus
  17011. extern "C"
  17012. #endif
  17013. char dlopen ();
  17014. /* The GNU C library defines this for functions which it implements
  17015. to always fail with ENOSYS. Some functions are actually named
  17016. something starting with __ and the normal name is an alias. */
  17017. #if defined __stub_dlopen || defined __stub___dlopen
  17018. choke me
  17019. #endif
  17020. int
  17021. main ()
  17022. {
  17023. return dlopen ();
  17024. ;
  17025. return 0;
  17026. }
  17027. _ACEOF
  17028. rm -f conftest.$ac_objext conftest$ac_exeext
  17029. if { (ac_try="$ac_link"
  17030. case "(($ac_try" in
  17031. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17032. *) ac_try_echo=$ac_try;;
  17033. esac
  17034. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17035. (eval "$ac_link") 2>conftest.er1
  17036. ac_status=$?
  17037. grep -v '^ *+' conftest.er1 >conftest.err
  17038. rm -f conftest.er1
  17039. cat conftest.err >&5
  17040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17041. (exit $ac_status); } && {
  17042. test -z "$ac_c_werror_flag" ||
  17043. test ! -s conftest.err
  17044. } && test -s conftest$ac_exeext &&
  17045. $as_test_x conftest$ac_exeext; then
  17046. ac_cv_func_dlopen=yes
  17047. else
  17048. echo "$as_me: failed program was:" >&5
  17049. sed 's/^/| /' conftest.$ac_ext >&5
  17050. ac_cv_func_dlopen=no
  17051. fi
  17052. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17053. conftest$ac_exeext conftest.$ac_ext
  17054. fi
  17055. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  17056. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  17057. if test $ac_cv_func_dlopen = yes; then
  17058. lt_cv_dlopen="dlopen"
  17059. else
  17060. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  17061. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  17062. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  17063. echo $ECHO_N "(cached) $ECHO_C" >&6
  17064. else
  17065. ac_check_lib_save_LIBS=$LIBS
  17066. LIBS="-ldl $LIBS"
  17067. cat >conftest.$ac_ext <<_ACEOF
  17068. /* confdefs.h. */
  17069. _ACEOF
  17070. cat confdefs.h >>conftest.$ac_ext
  17071. cat >>conftest.$ac_ext <<_ACEOF
  17072. /* end confdefs.h. */
  17073. /* Override any GCC internal prototype to avoid an error.
  17074. Use char because int might match the return type of a GCC
  17075. builtin and then its argument prototype would still apply. */
  17076. #ifdef __cplusplus
  17077. extern "C"
  17078. #endif
  17079. char dlopen ();
  17080. int
  17081. main ()
  17082. {
  17083. return dlopen ();
  17084. ;
  17085. return 0;
  17086. }
  17087. _ACEOF
  17088. rm -f conftest.$ac_objext conftest$ac_exeext
  17089. if { (ac_try="$ac_link"
  17090. case "(($ac_try" in
  17091. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17092. *) ac_try_echo=$ac_try;;
  17093. esac
  17094. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17095. (eval "$ac_link") 2>conftest.er1
  17096. ac_status=$?
  17097. grep -v '^ *+' conftest.er1 >conftest.err
  17098. rm -f conftest.er1
  17099. cat conftest.err >&5
  17100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17101. (exit $ac_status); } && {
  17102. test -z "$ac_c_werror_flag" ||
  17103. test ! -s conftest.err
  17104. } && test -s conftest$ac_exeext &&
  17105. $as_test_x conftest$ac_exeext; then
  17106. ac_cv_lib_dl_dlopen=yes
  17107. else
  17108. echo "$as_me: failed program was:" >&5
  17109. sed 's/^/| /' conftest.$ac_ext >&5
  17110. ac_cv_lib_dl_dlopen=no
  17111. fi
  17112. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17113. conftest$ac_exeext conftest.$ac_ext
  17114. LIBS=$ac_check_lib_save_LIBS
  17115. fi
  17116. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  17117. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  17118. if test $ac_cv_lib_dl_dlopen = yes; then
  17119. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  17120. else
  17121. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  17122. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  17123. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  17124. echo $ECHO_N "(cached) $ECHO_C" >&6
  17125. else
  17126. ac_check_lib_save_LIBS=$LIBS
  17127. LIBS="-lsvld $LIBS"
  17128. cat >conftest.$ac_ext <<_ACEOF
  17129. /* confdefs.h. */
  17130. _ACEOF
  17131. cat confdefs.h >>conftest.$ac_ext
  17132. cat >>conftest.$ac_ext <<_ACEOF
  17133. /* end confdefs.h. */
  17134. /* Override any GCC internal prototype to avoid an error.
  17135. Use char because int might match the return type of a GCC
  17136. builtin and then its argument prototype would still apply. */
  17137. #ifdef __cplusplus
  17138. extern "C"
  17139. #endif
  17140. char dlopen ();
  17141. int
  17142. main ()
  17143. {
  17144. return dlopen ();
  17145. ;
  17146. return 0;
  17147. }
  17148. _ACEOF
  17149. rm -f conftest.$ac_objext conftest$ac_exeext
  17150. if { (ac_try="$ac_link"
  17151. case "(($ac_try" in
  17152. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17153. *) ac_try_echo=$ac_try;;
  17154. esac
  17155. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17156. (eval "$ac_link") 2>conftest.er1
  17157. ac_status=$?
  17158. grep -v '^ *+' conftest.er1 >conftest.err
  17159. rm -f conftest.er1
  17160. cat conftest.err >&5
  17161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17162. (exit $ac_status); } && {
  17163. test -z "$ac_c_werror_flag" ||
  17164. test ! -s conftest.err
  17165. } && test -s conftest$ac_exeext &&
  17166. $as_test_x conftest$ac_exeext; then
  17167. ac_cv_lib_svld_dlopen=yes
  17168. else
  17169. echo "$as_me: failed program was:" >&5
  17170. sed 's/^/| /' conftest.$ac_ext >&5
  17171. ac_cv_lib_svld_dlopen=no
  17172. fi
  17173. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17174. conftest$ac_exeext conftest.$ac_ext
  17175. LIBS=$ac_check_lib_save_LIBS
  17176. fi
  17177. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  17178. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  17179. if test $ac_cv_lib_svld_dlopen = yes; then
  17180. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  17181. else
  17182. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  17183. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  17184. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  17185. echo $ECHO_N "(cached) $ECHO_C" >&6
  17186. else
  17187. ac_check_lib_save_LIBS=$LIBS
  17188. LIBS="-ldld $LIBS"
  17189. cat >conftest.$ac_ext <<_ACEOF
  17190. /* confdefs.h. */
  17191. _ACEOF
  17192. cat confdefs.h >>conftest.$ac_ext
  17193. cat >>conftest.$ac_ext <<_ACEOF
  17194. /* end confdefs.h. */
  17195. /* Override any GCC internal prototype to avoid an error.
  17196. Use char because int might match the return type of a GCC
  17197. builtin and then its argument prototype would still apply. */
  17198. #ifdef __cplusplus
  17199. extern "C"
  17200. #endif
  17201. char dld_link ();
  17202. int
  17203. main ()
  17204. {
  17205. return dld_link ();
  17206. ;
  17207. return 0;
  17208. }
  17209. _ACEOF
  17210. rm -f conftest.$ac_objext conftest$ac_exeext
  17211. if { (ac_try="$ac_link"
  17212. case "(($ac_try" in
  17213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17214. *) ac_try_echo=$ac_try;;
  17215. esac
  17216. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17217. (eval "$ac_link") 2>conftest.er1
  17218. ac_status=$?
  17219. grep -v '^ *+' conftest.er1 >conftest.err
  17220. rm -f conftest.er1
  17221. cat conftest.err >&5
  17222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17223. (exit $ac_status); } && {
  17224. test -z "$ac_c_werror_flag" ||
  17225. test ! -s conftest.err
  17226. } && test -s conftest$ac_exeext &&
  17227. $as_test_x conftest$ac_exeext; then
  17228. ac_cv_lib_dld_dld_link=yes
  17229. else
  17230. echo "$as_me: failed program was:" >&5
  17231. sed 's/^/| /' conftest.$ac_ext >&5
  17232. ac_cv_lib_dld_dld_link=no
  17233. fi
  17234. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17235. conftest$ac_exeext conftest.$ac_ext
  17236. LIBS=$ac_check_lib_save_LIBS
  17237. fi
  17238. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  17239. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  17240. if test $ac_cv_lib_dld_dld_link = yes; then
  17241. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  17242. fi
  17243. fi
  17244. fi
  17245. fi
  17246. fi
  17247. fi
  17248. ;;
  17249. esac
  17250. if test "x$lt_cv_dlopen" != xno; then
  17251. enable_dlopen=yes
  17252. else
  17253. enable_dlopen=no
  17254. fi
  17255. case $lt_cv_dlopen in
  17256. dlopen)
  17257. save_CPPFLAGS="$CPPFLAGS"
  17258. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  17259. save_LDFLAGS="$LDFLAGS"
  17260. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  17261. save_LIBS="$LIBS"
  17262. LIBS="$lt_cv_dlopen_libs $LIBS"
  17263. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  17264. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  17265. if test "${lt_cv_dlopen_self+set}" = set; then
  17266. echo $ECHO_N "(cached) $ECHO_C" >&6
  17267. else
  17268. if test "$cross_compiling" = yes; then :
  17269. lt_cv_dlopen_self=cross
  17270. else
  17271. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  17272. lt_status=$lt_dlunknown
  17273. cat > conftest.$ac_ext <<EOF
  17274. #line 19303 "configure"
  17275. #include "confdefs.h"
  17276. #if HAVE_DLFCN_H
  17277. #include <dlfcn.h>
  17278. #endif
  17279. #include <stdio.h>
  17280. #ifdef RTLD_GLOBAL
  17281. # define LT_DLGLOBAL RTLD_GLOBAL
  17282. #else
  17283. # ifdef DL_GLOBAL
  17284. # define LT_DLGLOBAL DL_GLOBAL
  17285. # else
  17286. # define LT_DLGLOBAL 0
  17287. # endif
  17288. #endif
  17289. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  17290. find out it does not work in some platform. */
  17291. #ifndef LT_DLLAZY_OR_NOW
  17292. # ifdef RTLD_LAZY
  17293. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  17294. # else
  17295. # ifdef DL_LAZY
  17296. # define LT_DLLAZY_OR_NOW DL_LAZY
  17297. # else
  17298. # ifdef RTLD_NOW
  17299. # define LT_DLLAZY_OR_NOW RTLD_NOW
  17300. # else
  17301. # ifdef DL_NOW
  17302. # define LT_DLLAZY_OR_NOW DL_NOW
  17303. # else
  17304. # define LT_DLLAZY_OR_NOW 0
  17305. # endif
  17306. # endif
  17307. # endif
  17308. # endif
  17309. #endif
  17310. #ifdef __cplusplus
  17311. extern "C" void exit (int);
  17312. #endif
  17313. void fnord() { int i=42;}
  17314. int main ()
  17315. {
  17316. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  17317. int status = $lt_dlunknown;
  17318. if (self)
  17319. {
  17320. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  17321. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  17322. /* dlclose (self); */
  17323. }
  17324. exit (status);
  17325. }
  17326. EOF
  17327. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17328. (eval $ac_link) 2>&5
  17329. ac_status=$?
  17330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17331. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  17332. (./conftest; exit; ) 2>/dev/null
  17333. lt_status=$?
  17334. case x$lt_status in
  17335. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  17336. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  17337. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  17338. esac
  17339. else :
  17340. # compilation failed
  17341. lt_cv_dlopen_self=no
  17342. fi
  17343. fi
  17344. rm -fr conftest*
  17345. fi
  17346. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  17347. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  17348. if test "x$lt_cv_dlopen_self" = xyes; then
  17349. LDFLAGS="$LDFLAGS $link_static_flag"
  17350. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  17351. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  17352. if test "${lt_cv_dlopen_self_static+set}" = set; then
  17353. echo $ECHO_N "(cached) $ECHO_C" >&6
  17354. else
  17355. if test "$cross_compiling" = yes; then :
  17356. lt_cv_dlopen_self_static=cross
  17357. else
  17358. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  17359. lt_status=$lt_dlunknown
  17360. cat > conftest.$ac_ext <<EOF
  17361. #line 19401 "configure"
  17362. #include "confdefs.h"
  17363. #if HAVE_DLFCN_H
  17364. #include <dlfcn.h>
  17365. #endif
  17366. #include <stdio.h>
  17367. #ifdef RTLD_GLOBAL
  17368. # define LT_DLGLOBAL RTLD_GLOBAL
  17369. #else
  17370. # ifdef DL_GLOBAL
  17371. # define LT_DLGLOBAL DL_GLOBAL
  17372. # else
  17373. # define LT_DLGLOBAL 0
  17374. # endif
  17375. #endif
  17376. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  17377. find out it does not work in some platform. */
  17378. #ifndef LT_DLLAZY_OR_NOW
  17379. # ifdef RTLD_LAZY
  17380. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  17381. # else
  17382. # ifdef DL_LAZY
  17383. # define LT_DLLAZY_OR_NOW DL_LAZY
  17384. # else
  17385. # ifdef RTLD_NOW
  17386. # define LT_DLLAZY_OR_NOW RTLD_NOW
  17387. # else
  17388. # ifdef DL_NOW
  17389. # define LT_DLLAZY_OR_NOW DL_NOW
  17390. # else
  17391. # define LT_DLLAZY_OR_NOW 0
  17392. # endif
  17393. # endif
  17394. # endif
  17395. # endif
  17396. #endif
  17397. #ifdef __cplusplus
  17398. extern "C" void exit (int);
  17399. #endif
  17400. void fnord() { int i=42;}
  17401. int main ()
  17402. {
  17403. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  17404. int status = $lt_dlunknown;
  17405. if (self)
  17406. {
  17407. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  17408. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  17409. /* dlclose (self); */
  17410. }
  17411. exit (status);
  17412. }
  17413. EOF
  17414. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17415. (eval $ac_link) 2>&5
  17416. ac_status=$?
  17417. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17418. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  17419. (./conftest; exit; ) 2>/dev/null
  17420. lt_status=$?
  17421. case x$lt_status in
  17422. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  17423. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  17424. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  17425. esac
  17426. else :
  17427. # compilation failed
  17428. lt_cv_dlopen_self_static=no
  17429. fi
  17430. fi
  17431. rm -fr conftest*
  17432. fi
  17433. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  17434. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  17435. fi
  17436. CPPFLAGS="$save_CPPFLAGS"
  17437. LDFLAGS="$save_LDFLAGS"
  17438. LIBS="$save_LIBS"
  17439. ;;
  17440. esac
  17441. case $lt_cv_dlopen_self in
  17442. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  17443. *) enable_dlopen_self=unknown ;;
  17444. esac
  17445. case $lt_cv_dlopen_self_static in
  17446. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  17447. *) enable_dlopen_self_static=unknown ;;
  17448. esac
  17449. fi
  17450. # The else clause should only fire when bootstrapping the
  17451. # libtool distribution, otherwise you forgot to ship ltmain.sh
  17452. # with your package, and you will get complaints that there are
  17453. # no rules to generate ltmain.sh.
  17454. if test -f "$ltmain"; then
  17455. # See if we are running on zsh, and set the options which allow our commands through
  17456. # without removal of \ escapes.
  17457. if test -n "${ZSH_VERSION+set}" ; then
  17458. setopt NO_GLOB_SUBST
  17459. fi
  17460. # Now quote all the things that may contain metacharacters while being
  17461. # careful not to overquote the AC_SUBSTed values. We take copies of the
  17462. # variables and quote the copies for generation of the libtool script.
  17463. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  17464. SED SHELL STRIP \
  17465. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  17466. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  17467. deplibs_check_method reload_flag reload_cmds need_locks \
  17468. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  17469. lt_cv_sys_global_symbol_to_c_name_address \
  17470. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  17471. old_postinstall_cmds old_postuninstall_cmds \
  17472. compiler_GCJ \
  17473. CC_GCJ \
  17474. LD_GCJ \
  17475. lt_prog_compiler_wl_GCJ \
  17476. lt_prog_compiler_pic_GCJ \
  17477. lt_prog_compiler_static_GCJ \
  17478. lt_prog_compiler_no_builtin_flag_GCJ \
  17479. export_dynamic_flag_spec_GCJ \
  17480. thread_safe_flag_spec_GCJ \
  17481. whole_archive_flag_spec_GCJ \
  17482. enable_shared_with_static_runtimes_GCJ \
  17483. old_archive_cmds_GCJ \
  17484. old_archive_from_new_cmds_GCJ \
  17485. predep_objects_GCJ \
  17486. postdep_objects_GCJ \
  17487. predeps_GCJ \
  17488. postdeps_GCJ \
  17489. compiler_lib_search_path_GCJ \
  17490. archive_cmds_GCJ \
  17491. archive_expsym_cmds_GCJ \
  17492. postinstall_cmds_GCJ \
  17493. postuninstall_cmds_GCJ \
  17494. old_archive_from_expsyms_cmds_GCJ \
  17495. allow_undefined_flag_GCJ \
  17496. no_undefined_flag_GCJ \
  17497. export_symbols_cmds_GCJ \
  17498. hardcode_libdir_flag_spec_GCJ \
  17499. hardcode_libdir_flag_spec_ld_GCJ \
  17500. hardcode_libdir_separator_GCJ \
  17501. hardcode_automatic_GCJ \
  17502. module_cmds_GCJ \
  17503. module_expsym_cmds_GCJ \
  17504. lt_cv_prog_compiler_c_o_GCJ \
  17505. exclude_expsyms_GCJ \
  17506. include_expsyms_GCJ; do
  17507. case $var in
  17508. old_archive_cmds_GCJ | \
  17509. old_archive_from_new_cmds_GCJ | \
  17510. archive_cmds_GCJ | \
  17511. archive_expsym_cmds_GCJ | \
  17512. module_cmds_GCJ | \
  17513. module_expsym_cmds_GCJ | \
  17514. old_archive_from_expsyms_cmds_GCJ | \
  17515. export_symbols_cmds_GCJ | \
  17516. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  17517. postinstall_cmds | postuninstall_cmds | \
  17518. old_postinstall_cmds | old_postuninstall_cmds | \
  17519. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  17520. # Double-quote double-evaled strings.
  17521. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  17522. ;;
  17523. *)
  17524. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  17525. ;;
  17526. esac
  17527. done
  17528. case $lt_echo in
  17529. *'\$0 --fallback-echo"')
  17530. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  17531. ;;
  17532. esac
  17533. cfgfile="$ofile"
  17534. cat <<__EOF__ >> "$cfgfile"
  17535. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  17536. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17537. # Shell to use when invoking shell scripts.
  17538. SHELL=$lt_SHELL
  17539. # Whether or not to build shared libraries.
  17540. build_libtool_libs=$enable_shared
  17541. # Whether or not to build static libraries.
  17542. build_old_libs=$enable_static
  17543. # Whether or not to add -lc for building shared libraries.
  17544. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  17545. # Whether or not to disallow shared libs when runtime libs are static
  17546. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  17547. # Whether or not to optimize for fast installation.
  17548. fast_install=$enable_fast_install
  17549. # The host system.
  17550. host_alias=$host_alias
  17551. host=$host
  17552. host_os=$host_os
  17553. # The build system.
  17554. build_alias=$build_alias
  17555. build=$build
  17556. build_os=$build_os
  17557. # An echo program that does not interpret backslashes.
  17558. echo=$lt_echo
  17559. # The archiver.
  17560. AR=$lt_AR
  17561. AR_FLAGS=$lt_AR_FLAGS
  17562. # A C compiler.
  17563. LTCC=$lt_LTCC
  17564. # A language-specific compiler.
  17565. CC=$lt_compiler_GCJ
  17566. # Is the compiler the GNU C compiler?
  17567. with_gcc=$GCC_GCJ
  17568. # An ERE matcher.
  17569. EGREP=$lt_EGREP
  17570. # The linker used to build libraries.
  17571. LD=$lt_LD_GCJ
  17572. # Whether we need hard or soft links.
  17573. LN_S=$lt_LN_S
  17574. # A BSD-compatible nm program.
  17575. NM=$lt_NM
  17576. # A symbol stripping program
  17577. STRIP=$lt_STRIP
  17578. # Used to examine libraries when file_magic_cmd begins "file"
  17579. MAGIC_CMD=$MAGIC_CMD
  17580. # Used on cygwin: DLL creation program.
  17581. DLLTOOL="$DLLTOOL"
  17582. # Used on cygwin: object dumper.
  17583. OBJDUMP="$OBJDUMP"
  17584. # Used on cygwin: assembler.
  17585. AS="$AS"
  17586. # The name of the directory that contains temporary libtool files.
  17587. objdir=$objdir
  17588. # How to create reloadable object files.
  17589. reload_flag=$lt_reload_flag
  17590. reload_cmds=$lt_reload_cmds
  17591. # How to pass a linker flag through the compiler.
  17592. wl=$lt_lt_prog_compiler_wl_GCJ
  17593. # Object file suffix (normally "o").
  17594. objext="$ac_objext"
  17595. # Old archive suffix (normally "a").
  17596. libext="$libext"
  17597. # Shared library suffix (normally ".so").
  17598. shrext_cmds='$shrext_cmds'
  17599. # Executable file suffix (normally "").
  17600. exeext="$exeext"
  17601. # Additional compiler flags for building library objects.
  17602. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  17603. pic_mode=$pic_mode
  17604. # What is the maximum length of a command?
  17605. max_cmd_len=$lt_cv_sys_max_cmd_len
  17606. # Does compiler simultaneously support -c and -o options?
  17607. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  17608. # Must we lock files when doing compilation?
  17609. need_locks=$lt_need_locks
  17610. # Do we need the lib prefix for modules?
  17611. need_lib_prefix=$need_lib_prefix
  17612. # Do we need a version for libraries?
  17613. need_version=$need_version
  17614. # Whether dlopen is supported.
  17615. dlopen_support=$enable_dlopen
  17616. # Whether dlopen of programs is supported.
  17617. dlopen_self=$enable_dlopen_self
  17618. # Whether dlopen of statically linked programs is supported.
  17619. dlopen_self_static=$enable_dlopen_self_static
  17620. # Compiler flag to prevent dynamic linking.
  17621. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  17622. # Compiler flag to turn off builtin functions.
  17623. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  17624. # Compiler flag to allow reflexive dlopens.
  17625. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  17626. # Compiler flag to generate shared objects directly from archives.
  17627. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  17628. # Compiler flag to generate thread-safe objects.
  17629. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  17630. # Library versioning type.
  17631. version_type=$version_type
  17632. # Format of library name prefix.
  17633. libname_spec=$lt_libname_spec
  17634. # List of archive names. First name is the real one, the rest are links.
  17635. # The last name is the one that the linker finds with -lNAME.
  17636. library_names_spec=$lt_library_names_spec
  17637. # The coded name of the library, if different from the real name.
  17638. soname_spec=$lt_soname_spec
  17639. # Commands used to build and install an old-style archive.
  17640. RANLIB=$lt_RANLIB
  17641. old_archive_cmds=$lt_old_archive_cmds_GCJ
  17642. old_postinstall_cmds=$lt_old_postinstall_cmds
  17643. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17644. # Create an old-style archive from a shared archive.
  17645. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  17646. # Create a temporary old-style archive to link instead of a shared archive.
  17647. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  17648. # Commands used to build and install a shared archive.
  17649. archive_cmds=$lt_archive_cmds_GCJ
  17650. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  17651. postinstall_cmds=$lt_postinstall_cmds
  17652. postuninstall_cmds=$lt_postuninstall_cmds
  17653. # Commands used to build a loadable module (assumed same as above if empty)
  17654. module_cmds=$lt_module_cmds_GCJ
  17655. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  17656. # Commands to strip libraries.
  17657. old_striplib=$lt_old_striplib
  17658. striplib=$lt_striplib
  17659. # Dependencies to place before the objects being linked to create a
  17660. # shared library.
  17661. predep_objects=$lt_predep_objects_GCJ
  17662. # Dependencies to place after the objects being linked to create a
  17663. # shared library.
  17664. postdep_objects=$lt_postdep_objects_GCJ
  17665. # Dependencies to place before the objects being linked to create a
  17666. # shared library.
  17667. predeps=$lt_predeps_GCJ
  17668. # Dependencies to place after the objects being linked to create a
  17669. # shared library.
  17670. postdeps=$lt_postdeps_GCJ
  17671. # The library search path used internally by the compiler when linking
  17672. # a shared library.
  17673. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  17674. # Method to check whether dependent libraries are shared objects.
  17675. deplibs_check_method=$lt_deplibs_check_method
  17676. # Command to use when deplibs_check_method == file_magic.
  17677. file_magic_cmd=$lt_file_magic_cmd
  17678. # Flag that allows shared libraries with undefined symbols to be built.
  17679. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  17680. # Flag that forces no undefined symbols.
  17681. no_undefined_flag=$lt_no_undefined_flag_GCJ
  17682. # Commands used to finish a libtool library installation in a directory.
  17683. finish_cmds=$lt_finish_cmds
  17684. # Same as above, but a single script fragment to be evaled but not shown.
  17685. finish_eval=$lt_finish_eval
  17686. # Take the output of nm and produce a listing of raw symbols and C names.
  17687. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17688. # Transform the output of nm in a proper C declaration
  17689. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17690. # Transform the output of nm in a C name address pair
  17691. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17692. # This is the shared library runtime path variable.
  17693. runpath_var=$runpath_var
  17694. # This is the shared library path variable.
  17695. shlibpath_var=$shlibpath_var
  17696. # Is shlibpath searched before the hard-coded library search path?
  17697. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17698. # How to hardcode a shared library path into an executable.
  17699. hardcode_action=$hardcode_action_GCJ
  17700. # Whether we should hardcode library paths into libraries.
  17701. hardcode_into_libs=$hardcode_into_libs
  17702. # Flag to hardcode \$libdir into a binary during linking.
  17703. # This must work even if \$libdir does not exist.
  17704. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  17705. # If ld is used when linking, flag to hardcode \$libdir into
  17706. # a binary during linking. This must work even if \$libdir does
  17707. # not exist.
  17708. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  17709. # Whether we need a single -rpath flag with a separated argument.
  17710. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  17711. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17712. # resulting binary.
  17713. hardcode_direct=$hardcode_direct_GCJ
  17714. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17715. # resulting binary.
  17716. hardcode_minus_L=$hardcode_minus_L_GCJ
  17717. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17718. # the resulting binary.
  17719. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  17720. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17721. # and all subsequent libraries and executables linked against it.
  17722. hardcode_automatic=$hardcode_automatic_GCJ
  17723. # Variables whose values should be saved in libtool wrapper scripts and
  17724. # restored at relink time.
  17725. variables_saved_for_relink="$variables_saved_for_relink"
  17726. # Whether libtool must link a program against all its dependency libraries.
  17727. link_all_deplibs=$link_all_deplibs_GCJ
  17728. # Compile-time system search path for libraries
  17729. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17730. # Run-time system search path for libraries
  17731. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17732. # Fix the shell variable \$srcfile for the compiler.
  17733. fix_srcfile_path="$fix_srcfile_path_GCJ"
  17734. # Set to yes if exported symbols are required.
  17735. always_export_symbols=$always_export_symbols_GCJ
  17736. # The commands to list exported symbols.
  17737. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  17738. # The commands to extract the exported symbol list from a shared archive.
  17739. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17740. # Symbols that should not be listed in the preloaded symbols.
  17741. exclude_expsyms=$lt_exclude_expsyms_GCJ
  17742. # Symbols that must always be exported.
  17743. include_expsyms=$lt_include_expsyms_GCJ
  17744. # ### END LIBTOOL TAG CONFIG: $tagname
  17745. __EOF__
  17746. else
  17747. # If there is no Makefile yet, we rely on a make rule to execute
  17748. # `config.status --recheck' to rerun these tests and create the
  17749. # libtool script then.
  17750. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17751. if test -f "$ltmain_in"; then
  17752. test -f Makefile && make "$ltmain"
  17753. fi
  17754. fi
  17755. ac_ext=c
  17756. ac_cpp='$CPP $CPPFLAGS'
  17757. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17758. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17759. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17760. CC="$lt_save_CC"
  17761. else
  17762. tagname=""
  17763. fi
  17764. ;;
  17765. RC)
  17766. # Source file extension for RC test sources.
  17767. ac_ext=rc
  17768. # Object file extension for compiled RC test sources.
  17769. objext=o
  17770. objext_RC=$objext
  17771. # Code to be used in simple compile tests
  17772. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  17773. # Code to be used in simple link tests
  17774. lt_simple_link_test_code="$lt_simple_compile_test_code"
  17775. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  17776. # If no C compiler was specified, use CC.
  17777. LTCC=${LTCC-"$CC"}
  17778. # Allow CC to be a program name with arguments.
  17779. compiler=$CC
  17780. # save warnings/boilerplate of simple test code
  17781. ac_outfile=conftest.$ac_objext
  17782. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  17783. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  17784. _lt_compiler_boilerplate=`cat conftest.err`
  17785. $rm conftest*
  17786. ac_outfile=conftest.$ac_objext
  17787. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  17788. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  17789. _lt_linker_boilerplate=`cat conftest.err`
  17790. $rm conftest*
  17791. # Allow CC to be a program name with arguments.
  17792. lt_save_CC="$CC"
  17793. CC=${RC-"windres"}
  17794. compiler=$CC
  17795. compiler_RC=$CC
  17796. for cc_temp in $compiler""; do
  17797. case $cc_temp in
  17798. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  17799. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  17800. \-*) ;;
  17801. *) break;;
  17802. esac
  17803. done
  17804. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  17805. lt_cv_prog_compiler_c_o_RC=yes
  17806. # The else clause should only fire when bootstrapping the
  17807. # libtool distribution, otherwise you forgot to ship ltmain.sh
  17808. # with your package, and you will get complaints that there are
  17809. # no rules to generate ltmain.sh.
  17810. if test -f "$ltmain"; then
  17811. # See if we are running on zsh, and set the options which allow our commands through
  17812. # without removal of \ escapes.
  17813. if test -n "${ZSH_VERSION+set}" ; then
  17814. setopt NO_GLOB_SUBST
  17815. fi
  17816. # Now quote all the things that may contain metacharacters while being
  17817. # careful not to overquote the AC_SUBSTed values. We take copies of the
  17818. # variables and quote the copies for generation of the libtool script.
  17819. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  17820. SED SHELL STRIP \
  17821. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  17822. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  17823. deplibs_check_method reload_flag reload_cmds need_locks \
  17824. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  17825. lt_cv_sys_global_symbol_to_c_name_address \
  17826. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  17827. old_postinstall_cmds old_postuninstall_cmds \
  17828. compiler_RC \
  17829. CC_RC \
  17830. LD_RC \
  17831. lt_prog_compiler_wl_RC \
  17832. lt_prog_compiler_pic_RC \
  17833. lt_prog_compiler_static_RC \
  17834. lt_prog_compiler_no_builtin_flag_RC \
  17835. export_dynamic_flag_spec_RC \
  17836. thread_safe_flag_spec_RC \
  17837. whole_archive_flag_spec_RC \
  17838. enable_shared_with_static_runtimes_RC \
  17839. old_archive_cmds_RC \
  17840. old_archive_from_new_cmds_RC \
  17841. predep_objects_RC \
  17842. postdep_objects_RC \
  17843. predeps_RC \
  17844. postdeps_RC \
  17845. compiler_lib_search_path_RC \
  17846. archive_cmds_RC \
  17847. archive_expsym_cmds_RC \
  17848. postinstall_cmds_RC \
  17849. postuninstall_cmds_RC \
  17850. old_archive_from_expsyms_cmds_RC \
  17851. allow_undefined_flag_RC \
  17852. no_undefined_flag_RC \
  17853. export_symbols_cmds_RC \
  17854. hardcode_libdir_flag_spec_RC \
  17855. hardcode_libdir_flag_spec_ld_RC \
  17856. hardcode_libdir_separator_RC \
  17857. hardcode_automatic_RC \
  17858. module_cmds_RC \
  17859. module_expsym_cmds_RC \
  17860. lt_cv_prog_compiler_c_o_RC \
  17861. exclude_expsyms_RC \
  17862. include_expsyms_RC; do
  17863. case $var in
  17864. old_archive_cmds_RC | \
  17865. old_archive_from_new_cmds_RC | \
  17866. archive_cmds_RC | \
  17867. archive_expsym_cmds_RC | \
  17868. module_cmds_RC | \
  17869. module_expsym_cmds_RC | \
  17870. old_archive_from_expsyms_cmds_RC | \
  17871. export_symbols_cmds_RC | \
  17872. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  17873. postinstall_cmds | postuninstall_cmds | \
  17874. old_postinstall_cmds | old_postuninstall_cmds | \
  17875. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  17876. # Double-quote double-evaled strings.
  17877. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  17878. ;;
  17879. *)
  17880. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  17881. ;;
  17882. esac
  17883. done
  17884. case $lt_echo in
  17885. *'\$0 --fallback-echo"')
  17886. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  17887. ;;
  17888. esac
  17889. cfgfile="$ofile"
  17890. cat <<__EOF__ >> "$cfgfile"
  17891. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  17892. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17893. # Shell to use when invoking shell scripts.
  17894. SHELL=$lt_SHELL
  17895. # Whether or not to build shared libraries.
  17896. build_libtool_libs=$enable_shared
  17897. # Whether or not to build static libraries.
  17898. build_old_libs=$enable_static
  17899. # Whether or not to add -lc for building shared libraries.
  17900. build_libtool_need_lc=$archive_cmds_need_lc_RC
  17901. # Whether or not to disallow shared libs when runtime libs are static
  17902. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  17903. # Whether or not to optimize for fast installation.
  17904. fast_install=$enable_fast_install
  17905. # The host system.
  17906. host_alias=$host_alias
  17907. host=$host
  17908. host_os=$host_os
  17909. # The build system.
  17910. build_alias=$build_alias
  17911. build=$build
  17912. build_os=$build_os
  17913. # An echo program that does not interpret backslashes.
  17914. echo=$lt_echo
  17915. # The archiver.
  17916. AR=$lt_AR
  17917. AR_FLAGS=$lt_AR_FLAGS
  17918. # A C compiler.
  17919. LTCC=$lt_LTCC
  17920. # A language-specific compiler.
  17921. CC=$lt_compiler_RC
  17922. # Is the compiler the GNU C compiler?
  17923. with_gcc=$GCC_RC
  17924. # An ERE matcher.
  17925. EGREP=$lt_EGREP
  17926. # The linker used to build libraries.
  17927. LD=$lt_LD_RC
  17928. # Whether we need hard or soft links.
  17929. LN_S=$lt_LN_S
  17930. # A BSD-compatible nm program.
  17931. NM=$lt_NM
  17932. # A symbol stripping program
  17933. STRIP=$lt_STRIP
  17934. # Used to examine libraries when file_magic_cmd begins "file"
  17935. MAGIC_CMD=$MAGIC_CMD
  17936. # Used on cygwin: DLL creation program.
  17937. DLLTOOL="$DLLTOOL"
  17938. # Used on cygwin: object dumper.
  17939. OBJDUMP="$OBJDUMP"
  17940. # Used on cygwin: assembler.
  17941. AS="$AS"
  17942. # The name of the directory that contains temporary libtool files.
  17943. objdir=$objdir
  17944. # How to create reloadable object files.
  17945. reload_flag=$lt_reload_flag
  17946. reload_cmds=$lt_reload_cmds
  17947. # How to pass a linker flag through the compiler.
  17948. wl=$lt_lt_prog_compiler_wl_RC
  17949. # Object file suffix (normally "o").
  17950. objext="$ac_objext"
  17951. # Old archive suffix (normally "a").
  17952. libext="$libext"
  17953. # Shared library suffix (normally ".so").
  17954. shrext_cmds='$shrext_cmds'
  17955. # Executable file suffix (normally "").
  17956. exeext="$exeext"
  17957. # Additional compiler flags for building library objects.
  17958. pic_flag=$lt_lt_prog_compiler_pic_RC
  17959. pic_mode=$pic_mode
  17960. # What is the maximum length of a command?
  17961. max_cmd_len=$lt_cv_sys_max_cmd_len
  17962. # Does compiler simultaneously support -c and -o options?
  17963. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  17964. # Must we lock files when doing compilation?
  17965. need_locks=$lt_need_locks
  17966. # Do we need the lib prefix for modules?
  17967. need_lib_prefix=$need_lib_prefix
  17968. # Do we need a version for libraries?
  17969. need_version=$need_version
  17970. # Whether dlopen is supported.
  17971. dlopen_support=$enable_dlopen
  17972. # Whether dlopen of programs is supported.
  17973. dlopen_self=$enable_dlopen_self
  17974. # Whether dlopen of statically linked programs is supported.
  17975. dlopen_self_static=$enable_dlopen_self_static
  17976. # Compiler flag to prevent dynamic linking.
  17977. link_static_flag=$lt_lt_prog_compiler_static_RC
  17978. # Compiler flag to turn off builtin functions.
  17979. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  17980. # Compiler flag to allow reflexive dlopens.
  17981. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  17982. # Compiler flag to generate shared objects directly from archives.
  17983. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  17984. # Compiler flag to generate thread-safe objects.
  17985. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  17986. # Library versioning type.
  17987. version_type=$version_type
  17988. # Format of library name prefix.
  17989. libname_spec=$lt_libname_spec
  17990. # List of archive names. First name is the real one, the rest are links.
  17991. # The last name is the one that the linker finds with -lNAME.
  17992. library_names_spec=$lt_library_names_spec
  17993. # The coded name of the library, if different from the real name.
  17994. soname_spec=$lt_soname_spec
  17995. # Commands used to build and install an old-style archive.
  17996. RANLIB=$lt_RANLIB
  17997. old_archive_cmds=$lt_old_archive_cmds_RC
  17998. old_postinstall_cmds=$lt_old_postinstall_cmds
  17999. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  18000. # Create an old-style archive from a shared archive.
  18001. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  18002. # Create a temporary old-style archive to link instead of a shared archive.
  18003. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  18004. # Commands used to build and install a shared archive.
  18005. archive_cmds=$lt_archive_cmds_RC
  18006. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  18007. postinstall_cmds=$lt_postinstall_cmds
  18008. postuninstall_cmds=$lt_postuninstall_cmds
  18009. # Commands used to build a loadable module (assumed same as above if empty)
  18010. module_cmds=$lt_module_cmds_RC
  18011. module_expsym_cmds=$lt_module_expsym_cmds_RC
  18012. # Commands to strip libraries.
  18013. old_striplib=$lt_old_striplib
  18014. striplib=$lt_striplib
  18015. # Dependencies to place before the objects being linked to create a
  18016. # shared library.
  18017. predep_objects=$lt_predep_objects_RC
  18018. # Dependencies to place after the objects being linked to create a
  18019. # shared library.
  18020. postdep_objects=$lt_postdep_objects_RC
  18021. # Dependencies to place before the objects being linked to create a
  18022. # shared library.
  18023. predeps=$lt_predeps_RC
  18024. # Dependencies to place after the objects being linked to create a
  18025. # shared library.
  18026. postdeps=$lt_postdeps_RC
  18027. # The library search path used internally by the compiler when linking
  18028. # a shared library.
  18029. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  18030. # Method to check whether dependent libraries are shared objects.
  18031. deplibs_check_method=$lt_deplibs_check_method
  18032. # Command to use when deplibs_check_method == file_magic.
  18033. file_magic_cmd=$lt_file_magic_cmd
  18034. # Flag that allows shared libraries with undefined symbols to be built.
  18035. allow_undefined_flag=$lt_allow_undefined_flag_RC
  18036. # Flag that forces no undefined symbols.
  18037. no_undefined_flag=$lt_no_undefined_flag_RC
  18038. # Commands used to finish a libtool library installation in a directory.
  18039. finish_cmds=$lt_finish_cmds
  18040. # Same as above, but a single script fragment to be evaled but not shown.
  18041. finish_eval=$lt_finish_eval
  18042. # Take the output of nm and produce a listing of raw symbols and C names.
  18043. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  18044. # Transform the output of nm in a proper C declaration
  18045. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  18046. # Transform the output of nm in a C name address pair
  18047. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  18048. # This is the shared library runtime path variable.
  18049. runpath_var=$runpath_var
  18050. # This is the shared library path variable.
  18051. shlibpath_var=$shlibpath_var
  18052. # Is shlibpath searched before the hard-coded library search path?
  18053. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  18054. # How to hardcode a shared library path into an executable.
  18055. hardcode_action=$hardcode_action_RC
  18056. # Whether we should hardcode library paths into libraries.
  18057. hardcode_into_libs=$hardcode_into_libs
  18058. # Flag to hardcode \$libdir into a binary during linking.
  18059. # This must work even if \$libdir does not exist.
  18060. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  18061. # If ld is used when linking, flag to hardcode \$libdir into
  18062. # a binary during linking. This must work even if \$libdir does
  18063. # not exist.
  18064. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  18065. # Whether we need a single -rpath flag with a separated argument.
  18066. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  18067. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  18068. # resulting binary.
  18069. hardcode_direct=$hardcode_direct_RC
  18070. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  18071. # resulting binary.
  18072. hardcode_minus_L=$hardcode_minus_L_RC
  18073. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  18074. # the resulting binary.
  18075. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  18076. # Set to yes if building a shared library automatically hardcodes DIR into the library
  18077. # and all subsequent libraries and executables linked against it.
  18078. hardcode_automatic=$hardcode_automatic_RC
  18079. # Variables whose values should be saved in libtool wrapper scripts and
  18080. # restored at relink time.
  18081. variables_saved_for_relink="$variables_saved_for_relink"
  18082. # Whether libtool must link a program against all its dependency libraries.
  18083. link_all_deplibs=$link_all_deplibs_RC
  18084. # Compile-time system search path for libraries
  18085. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  18086. # Run-time system search path for libraries
  18087. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  18088. # Fix the shell variable \$srcfile for the compiler.
  18089. fix_srcfile_path="$fix_srcfile_path_RC"
  18090. # Set to yes if exported symbols are required.
  18091. always_export_symbols=$always_export_symbols_RC
  18092. # The commands to list exported symbols.
  18093. export_symbols_cmds=$lt_export_symbols_cmds_RC
  18094. # The commands to extract the exported symbol list from a shared archive.
  18095. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  18096. # Symbols that should not be listed in the preloaded symbols.
  18097. exclude_expsyms=$lt_exclude_expsyms_RC
  18098. # Symbols that must always be exported.
  18099. include_expsyms=$lt_include_expsyms_RC
  18100. # ### END LIBTOOL TAG CONFIG: $tagname
  18101. __EOF__
  18102. else
  18103. # If there is no Makefile yet, we rely on a make rule to execute
  18104. # `config.status --recheck' to rerun these tests and create the
  18105. # libtool script then.
  18106. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  18107. if test -f "$ltmain_in"; then
  18108. test -f Makefile && make "$ltmain"
  18109. fi
  18110. fi
  18111. ac_ext=c
  18112. ac_cpp='$CPP $CPPFLAGS'
  18113. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18114. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18115. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18116. CC="$lt_save_CC"
  18117. ;;
  18118. *)
  18119. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  18120. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  18121. { (exit 1); exit 1; }; }
  18122. ;;
  18123. esac
  18124. # Append the new tag name to the list of available tags.
  18125. if test -n "$tagname" ; then
  18126. available_tags="$available_tags $tagname"
  18127. fi
  18128. fi
  18129. done
  18130. IFS="$lt_save_ifs"
  18131. # Now substitute the updated list of available tags.
  18132. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  18133. mv "${ofile}T" "$ofile"
  18134. chmod +x "$ofile"
  18135. else
  18136. rm -f "${ofile}T"
  18137. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  18138. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  18139. { (exit 1); exit 1; }; }
  18140. fi
  18141. fi
  18142. # This can be used to rebuild libtool when needed
  18143. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  18144. # Always use our own libtool.
  18145. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  18146. # Prevent multiple expansion
  18147. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  18148. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  18149. if test "${ac_cv_header_stdc+set}" = set; then
  18150. echo $ECHO_N "(cached) $ECHO_C" >&6
  18151. else
  18152. cat >conftest.$ac_ext <<_ACEOF
  18153. /* confdefs.h. */
  18154. _ACEOF
  18155. cat confdefs.h >>conftest.$ac_ext
  18156. cat >>conftest.$ac_ext <<_ACEOF
  18157. /* end confdefs.h. */
  18158. #include <stdlib.h>
  18159. #include <stdarg.h>
  18160. #include <string.h>
  18161. #include <float.h>
  18162. int
  18163. main ()
  18164. {
  18165. ;
  18166. return 0;
  18167. }
  18168. _ACEOF
  18169. rm -f conftest.$ac_objext
  18170. if { (ac_try="$ac_compile"
  18171. case "(($ac_try" in
  18172. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18173. *) ac_try_echo=$ac_try;;
  18174. esac
  18175. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18176. (eval "$ac_compile") 2>conftest.er1
  18177. ac_status=$?
  18178. grep -v '^ *+' conftest.er1 >conftest.err
  18179. rm -f conftest.er1
  18180. cat conftest.err >&5
  18181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18182. (exit $ac_status); } && {
  18183. test -z "$ac_c_werror_flag" ||
  18184. test ! -s conftest.err
  18185. } && test -s conftest.$ac_objext; then
  18186. ac_cv_header_stdc=yes
  18187. else
  18188. echo "$as_me: failed program was:" >&5
  18189. sed 's/^/| /' conftest.$ac_ext >&5
  18190. ac_cv_header_stdc=no
  18191. fi
  18192. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18193. if test $ac_cv_header_stdc = yes; then
  18194. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  18195. cat >conftest.$ac_ext <<_ACEOF
  18196. /* confdefs.h. */
  18197. _ACEOF
  18198. cat confdefs.h >>conftest.$ac_ext
  18199. cat >>conftest.$ac_ext <<_ACEOF
  18200. /* end confdefs.h. */
  18201. #include <string.h>
  18202. _ACEOF
  18203. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18204. $EGREP "memchr" >/dev/null 2>&1; then
  18205. :
  18206. else
  18207. ac_cv_header_stdc=no
  18208. fi
  18209. rm -f conftest*
  18210. fi
  18211. if test $ac_cv_header_stdc = yes; then
  18212. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  18213. cat >conftest.$ac_ext <<_ACEOF
  18214. /* confdefs.h. */
  18215. _ACEOF
  18216. cat confdefs.h >>conftest.$ac_ext
  18217. cat >>conftest.$ac_ext <<_ACEOF
  18218. /* end confdefs.h. */
  18219. #include <stdlib.h>
  18220. _ACEOF
  18221. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18222. $EGREP "free" >/dev/null 2>&1; then
  18223. :
  18224. else
  18225. ac_cv_header_stdc=no
  18226. fi
  18227. rm -f conftest*
  18228. fi
  18229. if test $ac_cv_header_stdc = yes; then
  18230. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  18231. if test "$cross_compiling" = yes; then
  18232. :
  18233. else
  18234. cat >conftest.$ac_ext <<_ACEOF
  18235. /* confdefs.h. */
  18236. _ACEOF
  18237. cat confdefs.h >>conftest.$ac_ext
  18238. cat >>conftest.$ac_ext <<_ACEOF
  18239. /* end confdefs.h. */
  18240. #include <ctype.h>
  18241. #include <stdlib.h>
  18242. #if ((' ' & 0x0FF) == 0x020)
  18243. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  18244. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  18245. #else
  18246. # define ISLOWER(c) \
  18247. (('a' <= (c) && (c) <= 'i') \
  18248. || ('j' <= (c) && (c) <= 'r') \
  18249. || ('s' <= (c) && (c) <= 'z'))
  18250. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  18251. #endif
  18252. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  18253. int
  18254. main ()
  18255. {
  18256. int i;
  18257. for (i = 0; i < 256; i++)
  18258. if (XOR (islower (i), ISLOWER (i))
  18259. || toupper (i) != TOUPPER (i))
  18260. return 2;
  18261. return 0;
  18262. }
  18263. _ACEOF
  18264. rm -f conftest$ac_exeext
  18265. if { (ac_try="$ac_link"
  18266. case "(($ac_try" in
  18267. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18268. *) ac_try_echo=$ac_try;;
  18269. esac
  18270. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18271. (eval "$ac_link") 2>&5
  18272. ac_status=$?
  18273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18274. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18275. { (case "(($ac_try" in
  18276. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18277. *) ac_try_echo=$ac_try;;
  18278. esac
  18279. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18280. (eval "$ac_try") 2>&5
  18281. ac_status=$?
  18282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18283. (exit $ac_status); }; }; then
  18284. :
  18285. else
  18286. echo "$as_me: program exited with status $ac_status" >&5
  18287. echo "$as_me: failed program was:" >&5
  18288. sed 's/^/| /' conftest.$ac_ext >&5
  18289. ( exit $ac_status )
  18290. ac_cv_header_stdc=no
  18291. fi
  18292. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18293. fi
  18294. fi
  18295. fi
  18296. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  18297. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  18298. if test $ac_cv_header_stdc = yes; then
  18299. cat >>confdefs.h <<\_ACEOF
  18300. #define STDC_HEADERS 1
  18301. _ACEOF
  18302. fi
  18303. { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
  18304. echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
  18305. if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
  18306. echo $ECHO_N "(cached) $ECHO_C" >&6
  18307. else
  18308. cat >conftest.$ac_ext <<_ACEOF
  18309. /* confdefs.h. */
  18310. _ACEOF
  18311. cat confdefs.h >>conftest.$ac_ext
  18312. cat >>conftest.$ac_ext <<_ACEOF
  18313. /* end confdefs.h. */
  18314. #include <sys/types.h>
  18315. int
  18316. main ()
  18317. {
  18318. return makedev(0, 0);
  18319. ;
  18320. return 0;
  18321. }
  18322. _ACEOF
  18323. rm -f conftest.$ac_objext conftest$ac_exeext
  18324. if { (ac_try="$ac_link"
  18325. case "(($ac_try" in
  18326. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18327. *) ac_try_echo=$ac_try;;
  18328. esac
  18329. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18330. (eval "$ac_link") 2>conftest.er1
  18331. ac_status=$?
  18332. grep -v '^ *+' conftest.er1 >conftest.err
  18333. rm -f conftest.er1
  18334. cat conftest.err >&5
  18335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18336. (exit $ac_status); } && {
  18337. test -z "$ac_c_werror_flag" ||
  18338. test ! -s conftest.err
  18339. } && test -s conftest$ac_exeext &&
  18340. $as_test_x conftest$ac_exeext; then
  18341. ac_cv_header_sys_types_h_makedev=yes
  18342. else
  18343. echo "$as_me: failed program was:" >&5
  18344. sed 's/^/| /' conftest.$ac_ext >&5
  18345. ac_cv_header_sys_types_h_makedev=no
  18346. fi
  18347. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18348. conftest$ac_exeext conftest.$ac_ext
  18349. fi
  18350. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
  18351. echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
  18352. if test $ac_cv_header_sys_types_h_makedev = no; then
  18353. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  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. fi
  18359. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  18360. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
  18361. else
  18362. # Is the header compilable?
  18363. { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
  18364. echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
  18365. cat >conftest.$ac_ext <<_ACEOF
  18366. /* confdefs.h. */
  18367. _ACEOF
  18368. cat confdefs.h >>conftest.$ac_ext
  18369. cat >>conftest.$ac_ext <<_ACEOF
  18370. /* end confdefs.h. */
  18371. $ac_includes_default
  18372. #include <sys/mkdev.h>
  18373. _ACEOF
  18374. rm -f conftest.$ac_objext
  18375. if { (ac_try="$ac_compile"
  18376. case "(($ac_try" in
  18377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18378. *) ac_try_echo=$ac_try;;
  18379. esac
  18380. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18381. (eval "$ac_compile") 2>conftest.er1
  18382. ac_status=$?
  18383. grep -v '^ *+' conftest.er1 >conftest.err
  18384. rm -f conftest.er1
  18385. cat conftest.err >&5
  18386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18387. (exit $ac_status); } && {
  18388. test -z "$ac_c_werror_flag" ||
  18389. test ! -s conftest.err
  18390. } && test -s conftest.$ac_objext; then
  18391. ac_header_compiler=yes
  18392. else
  18393. echo "$as_me: failed program was:" >&5
  18394. sed 's/^/| /' conftest.$ac_ext >&5
  18395. ac_header_compiler=no
  18396. fi
  18397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18398. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18399. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18400. # Is the header present?
  18401. { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
  18402. echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
  18403. cat >conftest.$ac_ext <<_ACEOF
  18404. /* confdefs.h. */
  18405. _ACEOF
  18406. cat confdefs.h >>conftest.$ac_ext
  18407. cat >>conftest.$ac_ext <<_ACEOF
  18408. /* end confdefs.h. */
  18409. #include <sys/mkdev.h>
  18410. _ACEOF
  18411. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18412. case "(($ac_try" in
  18413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18414. *) ac_try_echo=$ac_try;;
  18415. esac
  18416. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18417. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18418. ac_status=$?
  18419. grep -v '^ *+' conftest.er1 >conftest.err
  18420. rm -f conftest.er1
  18421. cat conftest.err >&5
  18422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18423. (exit $ac_status); } >/dev/null && {
  18424. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18425. test ! -s conftest.err
  18426. }; then
  18427. ac_header_preproc=yes
  18428. else
  18429. echo "$as_me: failed program was:" >&5
  18430. sed 's/^/| /' conftest.$ac_ext >&5
  18431. ac_header_preproc=no
  18432. fi
  18433. rm -f conftest.err conftest.$ac_ext
  18434. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18435. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18436. # So? What about this header?
  18437. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18438. yes:no: )
  18439. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
  18440. echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18441. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
  18442. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
  18443. ac_header_preproc=yes
  18444. ;;
  18445. no:yes:* )
  18446. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
  18447. echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
  18448. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
  18449. echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
  18450. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
  18451. echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
  18452. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
  18453. echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
  18454. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
  18455. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
  18456. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
  18457. echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
  18458. ( cat <<\_ASBOX
  18459. ## ---------------------------------- ##
  18460. ## Report this to christos@astron.com ##
  18461. ## ---------------------------------- ##
  18462. _ASBOX
  18463. ) | sed "s/^/$as_me: WARNING: /" >&2
  18464. ;;
  18465. esac
  18466. { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  18467. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
  18468. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  18469. echo $ECHO_N "(cached) $ECHO_C" >&6
  18470. else
  18471. ac_cv_header_sys_mkdev_h=$ac_header_preproc
  18472. fi
  18473. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  18474. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
  18475. fi
  18476. if test $ac_cv_header_sys_mkdev_h = yes; then
  18477. cat >>confdefs.h <<\_ACEOF
  18478. #define MAJOR_IN_MKDEV 1
  18479. _ACEOF
  18480. fi
  18481. if test $ac_cv_header_sys_mkdev_h = no; then
  18482. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  18483. { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  18484. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
  18485. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  18486. echo $ECHO_N "(cached) $ECHO_C" >&6
  18487. fi
  18488. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  18489. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
  18490. else
  18491. # Is the header compilable?
  18492. { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
  18493. echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
  18494. cat >conftest.$ac_ext <<_ACEOF
  18495. /* confdefs.h. */
  18496. _ACEOF
  18497. cat confdefs.h >>conftest.$ac_ext
  18498. cat >>conftest.$ac_ext <<_ACEOF
  18499. /* end confdefs.h. */
  18500. $ac_includes_default
  18501. #include <sys/sysmacros.h>
  18502. _ACEOF
  18503. rm -f conftest.$ac_objext
  18504. if { (ac_try="$ac_compile"
  18505. case "(($ac_try" in
  18506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18507. *) ac_try_echo=$ac_try;;
  18508. esac
  18509. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18510. (eval "$ac_compile") 2>conftest.er1
  18511. ac_status=$?
  18512. grep -v '^ *+' conftest.er1 >conftest.err
  18513. rm -f conftest.er1
  18514. cat conftest.err >&5
  18515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18516. (exit $ac_status); } && {
  18517. test -z "$ac_c_werror_flag" ||
  18518. test ! -s conftest.err
  18519. } && test -s conftest.$ac_objext; then
  18520. ac_header_compiler=yes
  18521. else
  18522. echo "$as_me: failed program was:" >&5
  18523. sed 's/^/| /' conftest.$ac_ext >&5
  18524. ac_header_compiler=no
  18525. fi
  18526. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18527. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18528. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18529. # Is the header present?
  18530. { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
  18531. echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
  18532. cat >conftest.$ac_ext <<_ACEOF
  18533. /* confdefs.h. */
  18534. _ACEOF
  18535. cat confdefs.h >>conftest.$ac_ext
  18536. cat >>conftest.$ac_ext <<_ACEOF
  18537. /* end confdefs.h. */
  18538. #include <sys/sysmacros.h>
  18539. _ACEOF
  18540. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18541. case "(($ac_try" in
  18542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18543. *) ac_try_echo=$ac_try;;
  18544. esac
  18545. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18546. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18547. ac_status=$?
  18548. grep -v '^ *+' conftest.er1 >conftest.err
  18549. rm -f conftest.er1
  18550. cat conftest.err >&5
  18551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18552. (exit $ac_status); } >/dev/null && {
  18553. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18554. test ! -s conftest.err
  18555. }; then
  18556. ac_header_preproc=yes
  18557. else
  18558. echo "$as_me: failed program was:" >&5
  18559. sed 's/^/| /' conftest.$ac_ext >&5
  18560. ac_header_preproc=no
  18561. fi
  18562. rm -f conftest.err conftest.$ac_ext
  18563. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18564. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18565. # So? What about this header?
  18566. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18567. yes:no: )
  18568. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
  18569. echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18570. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
  18571. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
  18572. ac_header_preproc=yes
  18573. ;;
  18574. no:yes:* )
  18575. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
  18576. echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
  18577. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
  18578. echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
  18579. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
  18580. echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
  18581. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
  18582. echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
  18583. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
  18584. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
  18585. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
  18586. echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
  18587. ( cat <<\_ASBOX
  18588. ## ---------------------------------- ##
  18589. ## Report this to christos@astron.com ##
  18590. ## ---------------------------------- ##
  18591. _ASBOX
  18592. ) | sed "s/^/$as_me: WARNING: /" >&2
  18593. ;;
  18594. esac
  18595. { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  18596. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
  18597. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  18598. echo $ECHO_N "(cached) $ECHO_C" >&6
  18599. else
  18600. ac_cv_header_sys_sysmacros_h=$ac_header_preproc
  18601. fi
  18602. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  18603. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
  18604. fi
  18605. if test $ac_cv_header_sys_sysmacros_h = yes; then
  18606. cat >>confdefs.h <<\_ACEOF
  18607. #define MAJOR_IN_SYSMACROS 1
  18608. _ACEOF
  18609. fi
  18610. fi
  18611. fi
  18612. { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  18613. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
  18614. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  18615. echo $ECHO_N "(cached) $ECHO_C" >&6
  18616. else
  18617. cat >conftest.$ac_ext <<_ACEOF
  18618. /* confdefs.h. */
  18619. _ACEOF
  18620. cat confdefs.h >>conftest.$ac_ext
  18621. cat >>conftest.$ac_ext <<_ACEOF
  18622. /* end confdefs.h. */
  18623. #include <sys/types.h>
  18624. #include <sys/wait.h>
  18625. #ifndef WEXITSTATUS
  18626. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  18627. #endif
  18628. #ifndef WIFEXITED
  18629. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  18630. #endif
  18631. int
  18632. main ()
  18633. {
  18634. int s;
  18635. wait (&s);
  18636. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  18637. ;
  18638. return 0;
  18639. }
  18640. _ACEOF
  18641. rm -f conftest.$ac_objext
  18642. if { (ac_try="$ac_compile"
  18643. case "(($ac_try" in
  18644. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18645. *) ac_try_echo=$ac_try;;
  18646. esac
  18647. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18648. (eval "$ac_compile") 2>conftest.er1
  18649. ac_status=$?
  18650. grep -v '^ *+' conftest.er1 >conftest.err
  18651. rm -f conftest.er1
  18652. cat conftest.err >&5
  18653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18654. (exit $ac_status); } && {
  18655. test -z "$ac_c_werror_flag" ||
  18656. test ! -s conftest.err
  18657. } && test -s conftest.$ac_objext; then
  18658. ac_cv_header_sys_wait_h=yes
  18659. else
  18660. echo "$as_me: failed program was:" >&5
  18661. sed 's/^/| /' conftest.$ac_ext >&5
  18662. ac_cv_header_sys_wait_h=no
  18663. fi
  18664. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18665. fi
  18666. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  18667. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
  18668. if test $ac_cv_header_sys_wait_h = yes; then
  18669. cat >>confdefs.h <<\_ACEOF
  18670. #define HAVE_SYS_WAIT_H 1
  18671. _ACEOF
  18672. fi
  18673. for ac_header in stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h
  18674. do
  18675. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18676. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18677. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18678. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18679. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18680. echo $ECHO_N "(cached) $ECHO_C" >&6
  18681. fi
  18682. ac_res=`eval echo '${'$as_ac_Header'}'`
  18683. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18684. echo "${ECHO_T}$ac_res" >&6; }
  18685. else
  18686. # Is the header compilable?
  18687. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18688. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  18689. cat >conftest.$ac_ext <<_ACEOF
  18690. /* confdefs.h. */
  18691. _ACEOF
  18692. cat confdefs.h >>conftest.$ac_ext
  18693. cat >>conftest.$ac_ext <<_ACEOF
  18694. /* end confdefs.h. */
  18695. $ac_includes_default
  18696. #include <$ac_header>
  18697. _ACEOF
  18698. rm -f conftest.$ac_objext
  18699. if { (ac_try="$ac_compile"
  18700. case "(($ac_try" in
  18701. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18702. *) ac_try_echo=$ac_try;;
  18703. esac
  18704. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18705. (eval "$ac_compile") 2>conftest.er1
  18706. ac_status=$?
  18707. grep -v '^ *+' conftest.er1 >conftest.err
  18708. rm -f conftest.er1
  18709. cat conftest.err >&5
  18710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18711. (exit $ac_status); } && {
  18712. test -z "$ac_c_werror_flag" ||
  18713. test ! -s conftest.err
  18714. } && test -s conftest.$ac_objext; then
  18715. ac_header_compiler=yes
  18716. else
  18717. echo "$as_me: failed program was:" >&5
  18718. sed 's/^/| /' conftest.$ac_ext >&5
  18719. ac_header_compiler=no
  18720. fi
  18721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18722. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18723. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18724. # Is the header present?
  18725. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18726. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  18727. cat >conftest.$ac_ext <<_ACEOF
  18728. /* confdefs.h. */
  18729. _ACEOF
  18730. cat confdefs.h >>conftest.$ac_ext
  18731. cat >>conftest.$ac_ext <<_ACEOF
  18732. /* end confdefs.h. */
  18733. #include <$ac_header>
  18734. _ACEOF
  18735. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18736. case "(($ac_try" in
  18737. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18738. *) ac_try_echo=$ac_try;;
  18739. esac
  18740. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18741. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18742. ac_status=$?
  18743. grep -v '^ *+' conftest.er1 >conftest.err
  18744. rm -f conftest.er1
  18745. cat conftest.err >&5
  18746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18747. (exit $ac_status); } >/dev/null && {
  18748. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18749. test ! -s conftest.err
  18750. }; then
  18751. ac_header_preproc=yes
  18752. else
  18753. echo "$as_me: failed program was:" >&5
  18754. sed 's/^/| /' conftest.$ac_ext >&5
  18755. ac_header_preproc=no
  18756. fi
  18757. rm -f conftest.err conftest.$ac_ext
  18758. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18759. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18760. # So? What about this header?
  18761. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18762. yes:no: )
  18763. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18764. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18765. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18766. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18767. ac_header_preproc=yes
  18768. ;;
  18769. no:yes:* )
  18770. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18771. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18772. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18773. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18774. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18775. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18776. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18777. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18778. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18779. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18780. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18781. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18782. ( cat <<\_ASBOX
  18783. ## ---------------------------------- ##
  18784. ## Report this to christos@astron.com ##
  18785. ## ---------------------------------- ##
  18786. _ASBOX
  18787. ) | sed "s/^/$as_me: WARNING: /" >&2
  18788. ;;
  18789. esac
  18790. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18791. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18792. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18793. echo $ECHO_N "(cached) $ECHO_C" >&6
  18794. else
  18795. eval "$as_ac_Header=\$ac_header_preproc"
  18796. fi
  18797. ac_res=`eval echo '${'$as_ac_Header'}'`
  18798. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18799. echo "${ECHO_T}$ac_res" >&6; }
  18800. fi
  18801. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18802. cat >>confdefs.h <<_ACEOF
  18803. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18804. _ACEOF
  18805. fi
  18806. done
  18807. for ac_header in utime.h wchar.h wctype.h limits.h
  18808. do
  18809. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18810. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18811. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18812. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18813. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18814. echo $ECHO_N "(cached) $ECHO_C" >&6
  18815. fi
  18816. ac_res=`eval echo '${'$as_ac_Header'}'`
  18817. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18818. echo "${ECHO_T}$ac_res" >&6; }
  18819. else
  18820. # Is the header compilable?
  18821. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18822. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  18823. cat >conftest.$ac_ext <<_ACEOF
  18824. /* confdefs.h. */
  18825. _ACEOF
  18826. cat confdefs.h >>conftest.$ac_ext
  18827. cat >>conftest.$ac_ext <<_ACEOF
  18828. /* end confdefs.h. */
  18829. $ac_includes_default
  18830. #include <$ac_header>
  18831. _ACEOF
  18832. rm -f conftest.$ac_objext
  18833. if { (ac_try="$ac_compile"
  18834. case "(($ac_try" in
  18835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18836. *) ac_try_echo=$ac_try;;
  18837. esac
  18838. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18839. (eval "$ac_compile") 2>conftest.er1
  18840. ac_status=$?
  18841. grep -v '^ *+' conftest.er1 >conftest.err
  18842. rm -f conftest.er1
  18843. cat conftest.err >&5
  18844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18845. (exit $ac_status); } && {
  18846. test -z "$ac_c_werror_flag" ||
  18847. test ! -s conftest.err
  18848. } && test -s conftest.$ac_objext; then
  18849. ac_header_compiler=yes
  18850. else
  18851. echo "$as_me: failed program was:" >&5
  18852. sed 's/^/| /' conftest.$ac_ext >&5
  18853. ac_header_compiler=no
  18854. fi
  18855. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18856. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18857. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18858. # Is the header present?
  18859. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18860. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  18861. cat >conftest.$ac_ext <<_ACEOF
  18862. /* confdefs.h. */
  18863. _ACEOF
  18864. cat confdefs.h >>conftest.$ac_ext
  18865. cat >>conftest.$ac_ext <<_ACEOF
  18866. /* end confdefs.h. */
  18867. #include <$ac_header>
  18868. _ACEOF
  18869. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18870. case "(($ac_try" in
  18871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18872. *) ac_try_echo=$ac_try;;
  18873. esac
  18874. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18875. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18876. ac_status=$?
  18877. grep -v '^ *+' conftest.er1 >conftest.err
  18878. rm -f conftest.er1
  18879. cat conftest.err >&5
  18880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18881. (exit $ac_status); } >/dev/null && {
  18882. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18883. test ! -s conftest.err
  18884. }; then
  18885. ac_header_preproc=yes
  18886. else
  18887. echo "$as_me: failed program was:" >&5
  18888. sed 's/^/| /' conftest.$ac_ext >&5
  18889. ac_header_preproc=no
  18890. fi
  18891. rm -f conftest.err conftest.$ac_ext
  18892. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18893. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18894. # So? What about this header?
  18895. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18896. yes:no: )
  18897. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18898. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18899. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18900. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18901. ac_header_preproc=yes
  18902. ;;
  18903. no:yes:* )
  18904. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18905. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18906. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18907. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18908. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18909. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18910. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18911. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18912. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18913. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18914. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18915. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18916. ( cat <<\_ASBOX
  18917. ## ---------------------------------- ##
  18918. ## Report this to christos@astron.com ##
  18919. ## ---------------------------------- ##
  18920. _ASBOX
  18921. ) | sed "s/^/$as_me: WARNING: /" >&2
  18922. ;;
  18923. esac
  18924. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18925. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18926. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18927. echo $ECHO_N "(cached) $ECHO_C" >&6
  18928. else
  18929. eval "$as_ac_Header=\$ac_header_preproc"
  18930. fi
  18931. ac_res=`eval echo '${'$as_ac_Header'}'`
  18932. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18933. echo "${ECHO_T}$ac_res" >&6; }
  18934. fi
  18935. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18936. cat >>confdefs.h <<_ACEOF
  18937. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18938. _ACEOF
  18939. fi
  18940. done
  18941. for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h
  18942. do
  18943. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18944. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18945. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18946. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18947. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18948. echo $ECHO_N "(cached) $ECHO_C" >&6
  18949. fi
  18950. ac_res=`eval echo '${'$as_ac_Header'}'`
  18951. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18952. echo "${ECHO_T}$ac_res" >&6; }
  18953. else
  18954. # Is the header compilable?
  18955. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18956. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  18957. cat >conftest.$ac_ext <<_ACEOF
  18958. /* confdefs.h. */
  18959. _ACEOF
  18960. cat confdefs.h >>conftest.$ac_ext
  18961. cat >>conftest.$ac_ext <<_ACEOF
  18962. /* end confdefs.h. */
  18963. $ac_includes_default
  18964. #include <$ac_header>
  18965. _ACEOF
  18966. rm -f conftest.$ac_objext
  18967. if { (ac_try="$ac_compile"
  18968. case "(($ac_try" in
  18969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18970. *) ac_try_echo=$ac_try;;
  18971. esac
  18972. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18973. (eval "$ac_compile") 2>conftest.er1
  18974. ac_status=$?
  18975. grep -v '^ *+' conftest.er1 >conftest.err
  18976. rm -f conftest.er1
  18977. cat conftest.err >&5
  18978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18979. (exit $ac_status); } && {
  18980. test -z "$ac_c_werror_flag" ||
  18981. test ! -s conftest.err
  18982. } && test -s conftest.$ac_objext; then
  18983. ac_header_compiler=yes
  18984. else
  18985. echo "$as_me: failed program was:" >&5
  18986. sed 's/^/| /' conftest.$ac_ext >&5
  18987. ac_header_compiler=no
  18988. fi
  18989. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18990. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18991. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18992. # Is the header present?
  18993. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18994. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  18995. cat >conftest.$ac_ext <<_ACEOF
  18996. /* confdefs.h. */
  18997. _ACEOF
  18998. cat confdefs.h >>conftest.$ac_ext
  18999. cat >>conftest.$ac_ext <<_ACEOF
  19000. /* end confdefs.h. */
  19001. #include <$ac_header>
  19002. _ACEOF
  19003. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19004. case "(($ac_try" in
  19005. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19006. *) ac_try_echo=$ac_try;;
  19007. esac
  19008. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19009. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19010. ac_status=$?
  19011. grep -v '^ *+' conftest.er1 >conftest.err
  19012. rm -f conftest.er1
  19013. cat conftest.err >&5
  19014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19015. (exit $ac_status); } >/dev/null && {
  19016. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19017. test ! -s conftest.err
  19018. }; then
  19019. ac_header_preproc=yes
  19020. else
  19021. echo "$as_me: failed program was:" >&5
  19022. sed 's/^/| /' conftest.$ac_ext >&5
  19023. ac_header_preproc=no
  19024. fi
  19025. rm -f conftest.err conftest.$ac_ext
  19026. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19027. echo "${ECHO_T}$ac_header_preproc" >&6; }
  19028. # So? What about this header?
  19029. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19030. yes:no: )
  19031. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19032. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19033. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19034. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19035. ac_header_preproc=yes
  19036. ;;
  19037. no:yes:* )
  19038. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19039. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19040. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19041. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19042. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19043. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19044. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19045. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19046. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19047. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19048. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19049. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19050. ( cat <<\_ASBOX
  19051. ## ---------------------------------- ##
  19052. ## Report this to christos@astron.com ##
  19053. ## ---------------------------------- ##
  19054. _ASBOX
  19055. ) | sed "s/^/$as_me: WARNING: /" >&2
  19056. ;;
  19057. esac
  19058. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  19059. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  19060. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19061. echo $ECHO_N "(cached) $ECHO_C" >&6
  19062. else
  19063. eval "$as_ac_Header=\$ac_header_preproc"
  19064. fi
  19065. ac_res=`eval echo '${'$as_ac_Header'}'`
  19066. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19067. echo "${ECHO_T}$ac_res" >&6; }
  19068. fi
  19069. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19070. cat >>confdefs.h <<_ACEOF
  19071. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19072. _ACEOF
  19073. fi
  19074. done
  19075. for ac_header in zlib.h
  19076. do
  19077. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19078. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19079. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  19080. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  19081. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19082. echo $ECHO_N "(cached) $ECHO_C" >&6
  19083. fi
  19084. ac_res=`eval echo '${'$as_ac_Header'}'`
  19085. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19086. echo "${ECHO_T}$ac_res" >&6; }
  19087. else
  19088. # Is the header compilable?
  19089. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19090. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  19091. cat >conftest.$ac_ext <<_ACEOF
  19092. /* confdefs.h. */
  19093. _ACEOF
  19094. cat confdefs.h >>conftest.$ac_ext
  19095. cat >>conftest.$ac_ext <<_ACEOF
  19096. /* end confdefs.h. */
  19097. $ac_includes_default
  19098. #include <$ac_header>
  19099. _ACEOF
  19100. rm -f conftest.$ac_objext
  19101. if { (ac_try="$ac_compile"
  19102. case "(($ac_try" in
  19103. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19104. *) ac_try_echo=$ac_try;;
  19105. esac
  19106. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19107. (eval "$ac_compile") 2>conftest.er1
  19108. ac_status=$?
  19109. grep -v '^ *+' conftest.er1 >conftest.err
  19110. rm -f conftest.er1
  19111. cat conftest.err >&5
  19112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19113. (exit $ac_status); } && {
  19114. test -z "$ac_c_werror_flag" ||
  19115. test ! -s conftest.err
  19116. } && test -s conftest.$ac_objext; then
  19117. ac_header_compiler=yes
  19118. else
  19119. echo "$as_me: failed program was:" >&5
  19120. sed 's/^/| /' conftest.$ac_ext >&5
  19121. ac_header_compiler=no
  19122. fi
  19123. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19124. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19125. echo "${ECHO_T}$ac_header_compiler" >&6; }
  19126. # Is the header present?
  19127. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19128. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  19129. cat >conftest.$ac_ext <<_ACEOF
  19130. /* confdefs.h. */
  19131. _ACEOF
  19132. cat confdefs.h >>conftest.$ac_ext
  19133. cat >>conftest.$ac_ext <<_ACEOF
  19134. /* end confdefs.h. */
  19135. #include <$ac_header>
  19136. _ACEOF
  19137. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19138. case "(($ac_try" in
  19139. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19140. *) ac_try_echo=$ac_try;;
  19141. esac
  19142. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19143. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19144. ac_status=$?
  19145. grep -v '^ *+' conftest.er1 >conftest.err
  19146. rm -f conftest.er1
  19147. cat conftest.err >&5
  19148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19149. (exit $ac_status); } >/dev/null && {
  19150. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19151. test ! -s conftest.err
  19152. }; then
  19153. ac_header_preproc=yes
  19154. else
  19155. echo "$as_me: failed program was:" >&5
  19156. sed 's/^/| /' conftest.$ac_ext >&5
  19157. ac_header_preproc=no
  19158. fi
  19159. rm -f conftest.err conftest.$ac_ext
  19160. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19161. echo "${ECHO_T}$ac_header_preproc" >&6; }
  19162. # So? What about this header?
  19163. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19164. yes:no: )
  19165. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19166. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19167. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19168. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19169. ac_header_preproc=yes
  19170. ;;
  19171. no:yes:* )
  19172. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19173. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19174. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19175. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19176. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19177. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19178. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19179. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19180. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19181. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19182. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19183. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19184. ( cat <<\_ASBOX
  19185. ## ---------------------------------- ##
  19186. ## Report this to christos@astron.com ##
  19187. ## ---------------------------------- ##
  19188. _ASBOX
  19189. ) | sed "s/^/$as_me: WARNING: /" >&2
  19190. ;;
  19191. esac
  19192. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  19193. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  19194. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19195. echo $ECHO_N "(cached) $ECHO_C" >&6
  19196. else
  19197. eval "$as_ac_Header=\$ac_header_preproc"
  19198. fi
  19199. ac_res=`eval echo '${'$as_ac_Header'}'`
  19200. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19201. echo "${ECHO_T}$ac_res" >&6; }
  19202. fi
  19203. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19204. cat >>confdefs.h <<_ACEOF
  19205. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19206. _ACEOF
  19207. fi
  19208. done
  19209. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  19210. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  19211. if test "${ac_cv_c_const+set}" = set; then
  19212. echo $ECHO_N "(cached) $ECHO_C" >&6
  19213. else
  19214. cat >conftest.$ac_ext <<_ACEOF
  19215. /* confdefs.h. */
  19216. _ACEOF
  19217. cat confdefs.h >>conftest.$ac_ext
  19218. cat >>conftest.$ac_ext <<_ACEOF
  19219. /* end confdefs.h. */
  19220. int
  19221. main ()
  19222. {
  19223. /* FIXME: Include the comments suggested by Paul. */
  19224. #ifndef __cplusplus
  19225. /* Ultrix mips cc rejects this. */
  19226. typedef int charset[2];
  19227. const charset cs;
  19228. /* SunOS 4.1.1 cc rejects this. */
  19229. char const *const *pcpcc;
  19230. char **ppc;
  19231. /* NEC SVR4.0.2 mips cc rejects this. */
  19232. struct point {int x, y;};
  19233. static struct point const zero = {0,0};
  19234. /* AIX XL C 1.02.0.0 rejects this.
  19235. It does not let you subtract one const X* pointer from another in
  19236. an arm of an if-expression whose if-part is not a constant
  19237. expression */
  19238. const char *g = "string";
  19239. pcpcc = &g + (g ? g-g : 0);
  19240. /* HPUX 7.0 cc rejects these. */
  19241. ++pcpcc;
  19242. ppc = (char**) pcpcc;
  19243. pcpcc = (char const *const *) ppc;
  19244. { /* SCO 3.2v4 cc rejects this. */
  19245. char *t;
  19246. char const *s = 0 ? (char *) 0 : (char const *) 0;
  19247. *t++ = 0;
  19248. if (s) return 0;
  19249. }
  19250. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  19251. int x[] = {25, 17};
  19252. const int *foo = &x[0];
  19253. ++foo;
  19254. }
  19255. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  19256. typedef const int *iptr;
  19257. iptr p = 0;
  19258. ++p;
  19259. }
  19260. { /* AIX XL C 1.02.0.0 rejects this saying
  19261. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  19262. struct s { int j; const int *ap[3]; };
  19263. struct s *b; b->j = 5;
  19264. }
  19265. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  19266. const int foo = 10;
  19267. if (!foo) return 0;
  19268. }
  19269. return !cs[0] && !zero.x;
  19270. #endif
  19271. ;
  19272. return 0;
  19273. }
  19274. _ACEOF
  19275. rm -f conftest.$ac_objext
  19276. if { (ac_try="$ac_compile"
  19277. case "(($ac_try" in
  19278. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19279. *) ac_try_echo=$ac_try;;
  19280. esac
  19281. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19282. (eval "$ac_compile") 2>conftest.er1
  19283. ac_status=$?
  19284. grep -v '^ *+' conftest.er1 >conftest.err
  19285. rm -f conftest.er1
  19286. cat conftest.err >&5
  19287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19288. (exit $ac_status); } && {
  19289. test -z "$ac_c_werror_flag" ||
  19290. test ! -s conftest.err
  19291. } && test -s conftest.$ac_objext; then
  19292. ac_cv_c_const=yes
  19293. else
  19294. echo "$as_me: failed program was:" >&5
  19295. sed 's/^/| /' conftest.$ac_ext >&5
  19296. ac_cv_c_const=no
  19297. fi
  19298. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19299. fi
  19300. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  19301. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  19302. if test $ac_cv_c_const = no; then
  19303. cat >>confdefs.h <<\_ACEOF
  19304. #define const
  19305. _ACEOF
  19306. fi
  19307. { echo "$as_me:$LINENO: checking for off_t" >&5
  19308. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  19309. if test "${ac_cv_type_off_t+set}" = set; then
  19310. echo $ECHO_N "(cached) $ECHO_C" >&6
  19311. else
  19312. cat >conftest.$ac_ext <<_ACEOF
  19313. /* confdefs.h. */
  19314. _ACEOF
  19315. cat confdefs.h >>conftest.$ac_ext
  19316. cat >>conftest.$ac_ext <<_ACEOF
  19317. /* end confdefs.h. */
  19318. $ac_includes_default
  19319. typedef off_t ac__type_new_;
  19320. int
  19321. main ()
  19322. {
  19323. if ((ac__type_new_ *) 0)
  19324. return 0;
  19325. if (sizeof (ac__type_new_))
  19326. return 0;
  19327. ;
  19328. return 0;
  19329. }
  19330. _ACEOF
  19331. rm -f conftest.$ac_objext
  19332. if { (ac_try="$ac_compile"
  19333. case "(($ac_try" in
  19334. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19335. *) ac_try_echo=$ac_try;;
  19336. esac
  19337. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19338. (eval "$ac_compile") 2>conftest.er1
  19339. ac_status=$?
  19340. grep -v '^ *+' conftest.er1 >conftest.err
  19341. rm -f conftest.er1
  19342. cat conftest.err >&5
  19343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19344. (exit $ac_status); } && {
  19345. test -z "$ac_c_werror_flag" ||
  19346. test ! -s conftest.err
  19347. } && test -s conftest.$ac_objext; then
  19348. ac_cv_type_off_t=yes
  19349. else
  19350. echo "$as_me: failed program was:" >&5
  19351. sed 's/^/| /' conftest.$ac_ext >&5
  19352. ac_cv_type_off_t=no
  19353. fi
  19354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19355. fi
  19356. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  19357. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  19358. if test $ac_cv_type_off_t = yes; then
  19359. :
  19360. else
  19361. cat >>confdefs.h <<_ACEOF
  19362. #define off_t long int
  19363. _ACEOF
  19364. fi
  19365. { echo "$as_me:$LINENO: checking for size_t" >&5
  19366. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  19367. if test "${ac_cv_type_size_t+set}" = set; then
  19368. echo $ECHO_N "(cached) $ECHO_C" >&6
  19369. else
  19370. cat >conftest.$ac_ext <<_ACEOF
  19371. /* confdefs.h. */
  19372. _ACEOF
  19373. cat confdefs.h >>conftest.$ac_ext
  19374. cat >>conftest.$ac_ext <<_ACEOF
  19375. /* end confdefs.h. */
  19376. $ac_includes_default
  19377. typedef size_t ac__type_new_;
  19378. int
  19379. main ()
  19380. {
  19381. if ((ac__type_new_ *) 0)
  19382. return 0;
  19383. if (sizeof (ac__type_new_))
  19384. return 0;
  19385. ;
  19386. return 0;
  19387. }
  19388. _ACEOF
  19389. rm -f conftest.$ac_objext
  19390. if { (ac_try="$ac_compile"
  19391. case "(($ac_try" in
  19392. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19393. *) ac_try_echo=$ac_try;;
  19394. esac
  19395. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19396. (eval "$ac_compile") 2>conftest.er1
  19397. ac_status=$?
  19398. grep -v '^ *+' conftest.er1 >conftest.err
  19399. rm -f conftest.er1
  19400. cat conftest.err >&5
  19401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19402. (exit $ac_status); } && {
  19403. test -z "$ac_c_werror_flag" ||
  19404. test ! -s conftest.err
  19405. } && test -s conftest.$ac_objext; then
  19406. ac_cv_type_size_t=yes
  19407. else
  19408. echo "$as_me: failed program was:" >&5
  19409. sed 's/^/| /' conftest.$ac_ext >&5
  19410. ac_cv_type_size_t=no
  19411. fi
  19412. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19413. fi
  19414. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  19415. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  19416. if test $ac_cv_type_size_t = yes; then
  19417. :
  19418. else
  19419. cat >>confdefs.h <<_ACEOF
  19420. #define size_t unsigned int
  19421. _ACEOF
  19422. fi
  19423. { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
  19424. echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
  19425. if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
  19426. echo $ECHO_N "(cached) $ECHO_C" >&6
  19427. else
  19428. cat >conftest.$ac_ext <<_ACEOF
  19429. /* confdefs.h. */
  19430. _ACEOF
  19431. cat confdefs.h >>conftest.$ac_ext
  19432. cat >>conftest.$ac_ext <<_ACEOF
  19433. /* end confdefs.h. */
  19434. $ac_includes_default
  19435. int
  19436. main ()
  19437. {
  19438. static struct stat ac_aggr;
  19439. if (ac_aggr.st_rdev)
  19440. return 0;
  19441. ;
  19442. return 0;
  19443. }
  19444. _ACEOF
  19445. rm -f conftest.$ac_objext
  19446. if { (ac_try="$ac_compile"
  19447. case "(($ac_try" in
  19448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19449. *) ac_try_echo=$ac_try;;
  19450. esac
  19451. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19452. (eval "$ac_compile") 2>conftest.er1
  19453. ac_status=$?
  19454. grep -v '^ *+' conftest.er1 >conftest.err
  19455. rm -f conftest.er1
  19456. cat conftest.err >&5
  19457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19458. (exit $ac_status); } && {
  19459. test -z "$ac_c_werror_flag" ||
  19460. test ! -s conftest.err
  19461. } && test -s conftest.$ac_objext; then
  19462. ac_cv_member_struct_stat_st_rdev=yes
  19463. else
  19464. echo "$as_me: failed program was:" >&5
  19465. sed 's/^/| /' conftest.$ac_ext >&5
  19466. cat >conftest.$ac_ext <<_ACEOF
  19467. /* confdefs.h. */
  19468. _ACEOF
  19469. cat confdefs.h >>conftest.$ac_ext
  19470. cat >>conftest.$ac_ext <<_ACEOF
  19471. /* end confdefs.h. */
  19472. $ac_includes_default
  19473. int
  19474. main ()
  19475. {
  19476. static struct stat ac_aggr;
  19477. if (sizeof ac_aggr.st_rdev)
  19478. return 0;
  19479. ;
  19480. return 0;
  19481. }
  19482. _ACEOF
  19483. rm -f conftest.$ac_objext
  19484. if { (ac_try="$ac_compile"
  19485. case "(($ac_try" in
  19486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19487. *) ac_try_echo=$ac_try;;
  19488. esac
  19489. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19490. (eval "$ac_compile") 2>conftest.er1
  19491. ac_status=$?
  19492. grep -v '^ *+' conftest.er1 >conftest.err
  19493. rm -f conftest.er1
  19494. cat conftest.err >&5
  19495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19496. (exit $ac_status); } && {
  19497. test -z "$ac_c_werror_flag" ||
  19498. test ! -s conftest.err
  19499. } && test -s conftest.$ac_objext; then
  19500. ac_cv_member_struct_stat_st_rdev=yes
  19501. else
  19502. echo "$as_me: failed program was:" >&5
  19503. sed 's/^/| /' conftest.$ac_ext >&5
  19504. ac_cv_member_struct_stat_st_rdev=no
  19505. fi
  19506. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19507. fi
  19508. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19509. fi
  19510. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
  19511. echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
  19512. if test $ac_cv_member_struct_stat_st_rdev = yes; then
  19513. cat >>confdefs.h <<_ACEOF
  19514. #define HAVE_STRUCT_STAT_ST_RDEV 1
  19515. _ACEOF
  19516. fi
  19517. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  19518. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  19519. if test "${ac_cv_struct_tm+set}" = set; then
  19520. echo $ECHO_N "(cached) $ECHO_C" >&6
  19521. else
  19522. cat >conftest.$ac_ext <<_ACEOF
  19523. /* confdefs.h. */
  19524. _ACEOF
  19525. cat confdefs.h >>conftest.$ac_ext
  19526. cat >>conftest.$ac_ext <<_ACEOF
  19527. /* end confdefs.h. */
  19528. #include <sys/types.h>
  19529. #include <time.h>
  19530. int
  19531. main ()
  19532. {
  19533. struct tm tm;
  19534. int *p = &tm.tm_sec;
  19535. return !p;
  19536. ;
  19537. return 0;
  19538. }
  19539. _ACEOF
  19540. rm -f conftest.$ac_objext
  19541. if { (ac_try="$ac_compile"
  19542. case "(($ac_try" in
  19543. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19544. *) ac_try_echo=$ac_try;;
  19545. esac
  19546. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19547. (eval "$ac_compile") 2>conftest.er1
  19548. ac_status=$?
  19549. grep -v '^ *+' conftest.er1 >conftest.err
  19550. rm -f conftest.er1
  19551. cat conftest.err >&5
  19552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19553. (exit $ac_status); } && {
  19554. test -z "$ac_c_werror_flag" ||
  19555. test ! -s conftest.err
  19556. } && test -s conftest.$ac_objext; then
  19557. ac_cv_struct_tm=time.h
  19558. else
  19559. echo "$as_me: failed program was:" >&5
  19560. sed 's/^/| /' conftest.$ac_ext >&5
  19561. ac_cv_struct_tm=sys/time.h
  19562. fi
  19563. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19564. fi
  19565. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  19566. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  19567. if test $ac_cv_struct_tm = sys/time.h; then
  19568. cat >>confdefs.h <<\_ACEOF
  19569. #define TM_IN_SYS_TIME 1
  19570. _ACEOF
  19571. fi
  19572. { echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
  19573. echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6; }
  19574. if test "${ac_cv_struct_tm_zone+set}" = set; then
  19575. echo $ECHO_N "(cached) $ECHO_C" >&6
  19576. else
  19577. cat >conftest.$ac_ext <<_ACEOF
  19578. /* confdefs.h. */
  19579. _ACEOF
  19580. cat confdefs.h >>conftest.$ac_ext
  19581. cat >>conftest.$ac_ext <<_ACEOF
  19582. /* end confdefs.h. */
  19583. #include <sys/types.h>
  19584. #include <$ac_cv_struct_tm>
  19585. int
  19586. main ()
  19587. {
  19588. struct tm tm; tm.tm_zone;
  19589. ;
  19590. return 0;
  19591. }
  19592. _ACEOF
  19593. rm -f conftest.$ac_objext
  19594. if { (ac_try="$ac_compile"
  19595. case "(($ac_try" in
  19596. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19597. *) ac_try_echo=$ac_try;;
  19598. esac
  19599. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19600. (eval "$ac_compile") 2>conftest.er1
  19601. ac_status=$?
  19602. grep -v '^ *+' conftest.er1 >conftest.err
  19603. rm -f conftest.er1
  19604. cat conftest.err >&5
  19605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19606. (exit $ac_status); } && {
  19607. test -z "$ac_c_werror_flag" ||
  19608. test ! -s conftest.err
  19609. } && test -s conftest.$ac_objext; then
  19610. ac_cv_struct_tm_zone=yes
  19611. else
  19612. echo "$as_me: failed program was:" >&5
  19613. sed 's/^/| /' conftest.$ac_ext >&5
  19614. ac_cv_struct_tm_zone=no
  19615. fi
  19616. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19617. fi
  19618. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm_zone" >&5
  19619. echo "${ECHO_T}$ac_cv_struct_tm_zone" >&6; }
  19620. if test "$ac_cv_struct_tm_zone" = yes; then
  19621. cat >>confdefs.h <<\_ACEOF
  19622. #define HAVE_TM_ZONE 1
  19623. _ACEOF
  19624. fi
  19625. { echo "$as_me:$LINENO: checking for tzname" >&5
  19626. echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
  19627. if test "${ac_cv_var_tzname+set}" = set; then
  19628. echo $ECHO_N "(cached) $ECHO_C" >&6
  19629. else
  19630. cat >conftest.$ac_ext <<_ACEOF
  19631. /* confdefs.h. */
  19632. _ACEOF
  19633. cat confdefs.h >>conftest.$ac_ext
  19634. cat >>conftest.$ac_ext <<_ACEOF
  19635. /* end confdefs.h. */
  19636. #include <time.h>
  19637. #ifndef tzname /* For SGI. */
  19638. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  19639. #endif
  19640. int
  19641. main ()
  19642. {
  19643. atoi(*tzname);
  19644. ;
  19645. return 0;
  19646. }
  19647. _ACEOF
  19648. rm -f conftest.$ac_objext conftest$ac_exeext
  19649. if { (ac_try="$ac_link"
  19650. case "(($ac_try" in
  19651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19652. *) ac_try_echo=$ac_try;;
  19653. esac
  19654. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19655. (eval "$ac_link") 2>conftest.er1
  19656. ac_status=$?
  19657. grep -v '^ *+' conftest.er1 >conftest.err
  19658. rm -f conftest.er1
  19659. cat conftest.err >&5
  19660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19661. (exit $ac_status); } && {
  19662. test -z "$ac_c_werror_flag" ||
  19663. test ! -s conftest.err
  19664. } && test -s conftest$ac_exeext &&
  19665. $as_test_x conftest$ac_exeext; then
  19666. ac_cv_var_tzname=yes
  19667. else
  19668. echo "$as_me: failed program was:" >&5
  19669. sed 's/^/| /' conftest.$ac_ext >&5
  19670. ac_cv_var_tzname=no
  19671. fi
  19672. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19673. conftest$ac_exeext conftest.$ac_ext
  19674. fi
  19675. { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  19676. echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
  19677. if test $ac_cv_var_tzname = yes; then
  19678. cat >>confdefs.h <<\_ACEOF
  19679. #define HAVE_TZNAME 1
  19680. _ACEOF
  19681. fi
  19682. { echo "$as_me:$LINENO: checking for tm_isdst in struct tm" >&5
  19683. echo $ECHO_N "checking for tm_isdst in struct tm... $ECHO_C" >&6; }
  19684. if test "${ac_cv_struct_tm_isdst+set}" = set; then
  19685. echo $ECHO_N "(cached) $ECHO_C" >&6
  19686. else
  19687. cat >conftest.$ac_ext <<_ACEOF
  19688. /* confdefs.h. */
  19689. _ACEOF
  19690. cat confdefs.h >>conftest.$ac_ext
  19691. cat >>conftest.$ac_ext <<_ACEOF
  19692. /* end confdefs.h. */
  19693. #include <sys/types.h>
  19694. #include <$ac_cv_struct_tm>
  19695. int
  19696. main ()
  19697. {
  19698. struct tm tm; tm.tm_isdst;
  19699. ;
  19700. return 0;
  19701. }
  19702. _ACEOF
  19703. rm -f conftest.$ac_objext
  19704. if { (ac_try="$ac_compile"
  19705. case "(($ac_try" in
  19706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19707. *) ac_try_echo=$ac_try;;
  19708. esac
  19709. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19710. (eval "$ac_compile") 2>conftest.er1
  19711. ac_status=$?
  19712. grep -v '^ *+' conftest.er1 >conftest.err
  19713. rm -f conftest.er1
  19714. cat conftest.err >&5
  19715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19716. (exit $ac_status); } && {
  19717. test -z "$ac_c_werror_flag" ||
  19718. test ! -s conftest.err
  19719. } && test -s conftest.$ac_objext; then
  19720. ac_cv_struct_tm_isdst=yes
  19721. else
  19722. echo "$as_me: failed program was:" >&5
  19723. sed 's/^/| /' conftest.$ac_ext >&5
  19724. ac_cv_struct_tm_isdst=no
  19725. fi
  19726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19727. fi
  19728. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm_isdst" >&5
  19729. echo "${ECHO_T}$ac_cv_struct_tm_isdst" >&6; }
  19730. if test "$ac_cv_struct_tm_isdst" = yes; then
  19731. cat >>confdefs.h <<\_ACEOF
  19732. #define HAVE_TM_ISDST 1
  19733. _ACEOF
  19734. fi
  19735. { echo "$as_me:$LINENO: checking for daylight" >&5
  19736. echo $ECHO_N "checking for daylight... $ECHO_C" >&6; }
  19737. if test "${ac_cv_var_daylight+set}" = set; then
  19738. echo $ECHO_N "(cached) $ECHO_C" >&6
  19739. else
  19740. cat >conftest.$ac_ext <<_ACEOF
  19741. /* confdefs.h. */
  19742. _ACEOF
  19743. cat confdefs.h >>conftest.$ac_ext
  19744. cat >>conftest.$ac_ext <<_ACEOF
  19745. /* end confdefs.h. */
  19746. #include <time.h>
  19747. #ifndef daylight /* In case IRIX #defines this, too */
  19748. extern int daylight;
  19749. #endif
  19750. int
  19751. main ()
  19752. {
  19753. atoi(daylight);
  19754. ;
  19755. return 0;
  19756. }
  19757. _ACEOF
  19758. rm -f conftest.$ac_objext conftest$ac_exeext
  19759. if { (ac_try="$ac_link"
  19760. case "(($ac_try" in
  19761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19762. *) ac_try_echo=$ac_try;;
  19763. esac
  19764. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19765. (eval "$ac_link") 2>conftest.er1
  19766. ac_status=$?
  19767. grep -v '^ *+' conftest.er1 >conftest.err
  19768. rm -f conftest.er1
  19769. cat conftest.err >&5
  19770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19771. (exit $ac_status); } && {
  19772. test -z "$ac_c_werror_flag" ||
  19773. test ! -s conftest.err
  19774. } && test -s conftest$ac_exeext &&
  19775. $as_test_x conftest$ac_exeext; then
  19776. ac_cv_var_daylight=yes
  19777. else
  19778. echo "$as_me: failed program was:" >&5
  19779. sed 's/^/| /' conftest.$ac_ext >&5
  19780. ac_cv_var_daylight=no
  19781. fi
  19782. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19783. conftest$ac_exeext conftest.$ac_ext
  19784. fi
  19785. { echo "$as_me:$LINENO: result: $ac_cv_var_daylight" >&5
  19786. echo "${ECHO_T}$ac_cv_var_daylight" >&6; }
  19787. if test $ac_cv_var_daylight = yes; then
  19788. cat >>confdefs.h <<\_ACEOF
  19789. #define HAVE_DAYLIGHT 1
  19790. _ACEOF
  19791. fi
  19792. # Check whether --enable-largefile was given.
  19793. if test "${enable_largefile+set}" = set; then
  19794. enableval=$enable_largefile;
  19795. fi
  19796. if test "$enable_largefile" != no; then
  19797. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  19798. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  19799. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  19800. echo $ECHO_N "(cached) $ECHO_C" >&6
  19801. else
  19802. ac_cv_sys_largefile_CC=no
  19803. if test "$GCC" != yes; then
  19804. ac_save_CC=$CC
  19805. while :; do
  19806. # IRIX 6.2 and later do not support large files by default,
  19807. # so use the C compiler's -n32 option if that helps.
  19808. cat >conftest.$ac_ext <<_ACEOF
  19809. /* confdefs.h. */
  19810. _ACEOF
  19811. cat confdefs.h >>conftest.$ac_ext
  19812. cat >>conftest.$ac_ext <<_ACEOF
  19813. /* end confdefs.h. */
  19814. #include <sys/types.h>
  19815. /* Check that off_t can represent 2**63 - 1 correctly.
  19816. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  19817. since some C++ compilers masquerading as C compilers
  19818. incorrectly reject 9223372036854775807. */
  19819. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19820. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19821. && LARGE_OFF_T % 2147483647 == 1)
  19822. ? 1 : -1];
  19823. int
  19824. main ()
  19825. {
  19826. ;
  19827. return 0;
  19828. }
  19829. _ACEOF
  19830. rm -f conftest.$ac_objext
  19831. if { (ac_try="$ac_compile"
  19832. case "(($ac_try" in
  19833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19834. *) ac_try_echo=$ac_try;;
  19835. esac
  19836. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19837. (eval "$ac_compile") 2>conftest.er1
  19838. ac_status=$?
  19839. grep -v '^ *+' conftest.er1 >conftest.err
  19840. rm -f conftest.er1
  19841. cat conftest.err >&5
  19842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19843. (exit $ac_status); } && {
  19844. test -z "$ac_c_werror_flag" ||
  19845. test ! -s conftest.err
  19846. } && test -s conftest.$ac_objext; then
  19847. break
  19848. else
  19849. echo "$as_me: failed program was:" >&5
  19850. sed 's/^/| /' conftest.$ac_ext >&5
  19851. fi
  19852. rm -f core conftest.err conftest.$ac_objext
  19853. CC="$CC -n32"
  19854. rm -f conftest.$ac_objext
  19855. if { (ac_try="$ac_compile"
  19856. case "(($ac_try" in
  19857. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19858. *) ac_try_echo=$ac_try;;
  19859. esac
  19860. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19861. (eval "$ac_compile") 2>conftest.er1
  19862. ac_status=$?
  19863. grep -v '^ *+' conftest.er1 >conftest.err
  19864. rm -f conftest.er1
  19865. cat conftest.err >&5
  19866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19867. (exit $ac_status); } && {
  19868. test -z "$ac_c_werror_flag" ||
  19869. test ! -s conftest.err
  19870. } && test -s conftest.$ac_objext; then
  19871. ac_cv_sys_largefile_CC=' -n32'; break
  19872. else
  19873. echo "$as_me: failed program was:" >&5
  19874. sed 's/^/| /' conftest.$ac_ext >&5
  19875. fi
  19876. rm -f core conftest.err conftest.$ac_objext
  19877. break
  19878. done
  19879. CC=$ac_save_CC
  19880. rm -f conftest.$ac_ext
  19881. fi
  19882. fi
  19883. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  19884. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  19885. if test "$ac_cv_sys_largefile_CC" != no; then
  19886. CC=$CC$ac_cv_sys_largefile_CC
  19887. fi
  19888. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  19889. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  19890. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  19891. echo $ECHO_N "(cached) $ECHO_C" >&6
  19892. else
  19893. while :; do
  19894. cat >conftest.$ac_ext <<_ACEOF
  19895. /* confdefs.h. */
  19896. _ACEOF
  19897. cat confdefs.h >>conftest.$ac_ext
  19898. cat >>conftest.$ac_ext <<_ACEOF
  19899. /* end confdefs.h. */
  19900. #include <sys/types.h>
  19901. /* Check that off_t can represent 2**63 - 1 correctly.
  19902. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  19903. since some C++ compilers masquerading as C compilers
  19904. incorrectly reject 9223372036854775807. */
  19905. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19906. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19907. && LARGE_OFF_T % 2147483647 == 1)
  19908. ? 1 : -1];
  19909. int
  19910. main ()
  19911. {
  19912. ;
  19913. return 0;
  19914. }
  19915. _ACEOF
  19916. rm -f conftest.$ac_objext
  19917. if { (ac_try="$ac_compile"
  19918. case "(($ac_try" in
  19919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19920. *) ac_try_echo=$ac_try;;
  19921. esac
  19922. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19923. (eval "$ac_compile") 2>conftest.er1
  19924. ac_status=$?
  19925. grep -v '^ *+' conftest.er1 >conftest.err
  19926. rm -f conftest.er1
  19927. cat conftest.err >&5
  19928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19929. (exit $ac_status); } && {
  19930. test -z "$ac_c_werror_flag" ||
  19931. test ! -s conftest.err
  19932. } && test -s conftest.$ac_objext; then
  19933. ac_cv_sys_file_offset_bits=no; break
  19934. else
  19935. echo "$as_me: failed program was:" >&5
  19936. sed 's/^/| /' conftest.$ac_ext >&5
  19937. fi
  19938. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19939. cat >conftest.$ac_ext <<_ACEOF
  19940. /* confdefs.h. */
  19941. _ACEOF
  19942. cat confdefs.h >>conftest.$ac_ext
  19943. cat >>conftest.$ac_ext <<_ACEOF
  19944. /* end confdefs.h. */
  19945. #define _FILE_OFFSET_BITS 64
  19946. #include <sys/types.h>
  19947. /* Check that off_t can represent 2**63 - 1 correctly.
  19948. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  19949. since some C++ compilers masquerading as C compilers
  19950. incorrectly reject 9223372036854775807. */
  19951. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19952. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19953. && LARGE_OFF_T % 2147483647 == 1)
  19954. ? 1 : -1];
  19955. int
  19956. main ()
  19957. {
  19958. ;
  19959. return 0;
  19960. }
  19961. _ACEOF
  19962. rm -f conftest.$ac_objext
  19963. if { (ac_try="$ac_compile"
  19964. case "(($ac_try" in
  19965. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19966. *) ac_try_echo=$ac_try;;
  19967. esac
  19968. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19969. (eval "$ac_compile") 2>conftest.er1
  19970. ac_status=$?
  19971. grep -v '^ *+' conftest.er1 >conftest.err
  19972. rm -f conftest.er1
  19973. cat conftest.err >&5
  19974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19975. (exit $ac_status); } && {
  19976. test -z "$ac_c_werror_flag" ||
  19977. test ! -s conftest.err
  19978. } && test -s conftest.$ac_objext; then
  19979. ac_cv_sys_file_offset_bits=64; break
  19980. else
  19981. echo "$as_me: failed program was:" >&5
  19982. sed 's/^/| /' conftest.$ac_ext >&5
  19983. fi
  19984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19985. ac_cv_sys_file_offset_bits=unknown
  19986. break
  19987. done
  19988. fi
  19989. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  19990. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  19991. case $ac_cv_sys_file_offset_bits in #(
  19992. no | unknown) ;;
  19993. *)
  19994. cat >>confdefs.h <<_ACEOF
  19995. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  19996. _ACEOF
  19997. ;;
  19998. esac
  19999. rm -f conftest*
  20000. if test $ac_cv_sys_file_offset_bits = unknown; then
  20001. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  20002. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  20003. if test "${ac_cv_sys_large_files+set}" = set; then
  20004. echo $ECHO_N "(cached) $ECHO_C" >&6
  20005. else
  20006. while :; do
  20007. cat >conftest.$ac_ext <<_ACEOF
  20008. /* confdefs.h. */
  20009. _ACEOF
  20010. cat confdefs.h >>conftest.$ac_ext
  20011. cat >>conftest.$ac_ext <<_ACEOF
  20012. /* end confdefs.h. */
  20013. #include <sys/types.h>
  20014. /* Check that off_t can represent 2**63 - 1 correctly.
  20015. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20016. since some C++ compilers masquerading as C compilers
  20017. incorrectly reject 9223372036854775807. */
  20018. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20019. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20020. && LARGE_OFF_T % 2147483647 == 1)
  20021. ? 1 : -1];
  20022. int
  20023. main ()
  20024. {
  20025. ;
  20026. return 0;
  20027. }
  20028. _ACEOF
  20029. rm -f conftest.$ac_objext
  20030. if { (ac_try="$ac_compile"
  20031. case "(($ac_try" in
  20032. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20033. *) ac_try_echo=$ac_try;;
  20034. esac
  20035. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20036. (eval "$ac_compile") 2>conftest.er1
  20037. ac_status=$?
  20038. grep -v '^ *+' conftest.er1 >conftest.err
  20039. rm -f conftest.er1
  20040. cat conftest.err >&5
  20041. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20042. (exit $ac_status); } && {
  20043. test -z "$ac_c_werror_flag" ||
  20044. test ! -s conftest.err
  20045. } && test -s conftest.$ac_objext; then
  20046. ac_cv_sys_large_files=no; break
  20047. else
  20048. echo "$as_me: failed program was:" >&5
  20049. sed 's/^/| /' conftest.$ac_ext >&5
  20050. fi
  20051. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20052. cat >conftest.$ac_ext <<_ACEOF
  20053. /* confdefs.h. */
  20054. _ACEOF
  20055. cat confdefs.h >>conftest.$ac_ext
  20056. cat >>conftest.$ac_ext <<_ACEOF
  20057. /* end confdefs.h. */
  20058. #define _LARGE_FILES 1
  20059. #include <sys/types.h>
  20060. /* Check that off_t can represent 2**63 - 1 correctly.
  20061. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20062. since some C++ compilers masquerading as C compilers
  20063. incorrectly reject 9223372036854775807. */
  20064. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20065. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20066. && LARGE_OFF_T % 2147483647 == 1)
  20067. ? 1 : -1];
  20068. int
  20069. main ()
  20070. {
  20071. ;
  20072. return 0;
  20073. }
  20074. _ACEOF
  20075. rm -f conftest.$ac_objext
  20076. if { (ac_try="$ac_compile"
  20077. case "(($ac_try" in
  20078. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20079. *) ac_try_echo=$ac_try;;
  20080. esac
  20081. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20082. (eval "$ac_compile") 2>conftest.er1
  20083. ac_status=$?
  20084. grep -v '^ *+' conftest.er1 >conftest.err
  20085. rm -f conftest.er1
  20086. cat conftest.err >&5
  20087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20088. (exit $ac_status); } && {
  20089. test -z "$ac_c_werror_flag" ||
  20090. test ! -s conftest.err
  20091. } && test -s conftest.$ac_objext; then
  20092. ac_cv_sys_large_files=1; break
  20093. else
  20094. echo "$as_me: failed program was:" >&5
  20095. sed 's/^/| /' conftest.$ac_ext >&5
  20096. fi
  20097. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20098. ac_cv_sys_large_files=unknown
  20099. break
  20100. done
  20101. fi
  20102. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  20103. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  20104. case $ac_cv_sys_large_files in #(
  20105. no | unknown) ;;
  20106. *)
  20107. cat >>confdefs.h <<_ACEOF
  20108. #define _LARGE_FILES $ac_cv_sys_large_files
  20109. _ACEOF
  20110. ;;
  20111. esac
  20112. rm -f conftest*
  20113. fi
  20114. fi
  20115. { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  20116. echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
  20117. if test "${ac_cv_sys_largefile_source+set}" = set; then
  20118. echo $ECHO_N "(cached) $ECHO_C" >&6
  20119. else
  20120. while :; do
  20121. cat >conftest.$ac_ext <<_ACEOF
  20122. /* confdefs.h. */
  20123. _ACEOF
  20124. cat confdefs.h >>conftest.$ac_ext
  20125. cat >>conftest.$ac_ext <<_ACEOF
  20126. /* end confdefs.h. */
  20127. #include <stdio.h>
  20128. int
  20129. main ()
  20130. {
  20131. return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
  20132. ;
  20133. return 0;
  20134. }
  20135. _ACEOF
  20136. rm -f conftest.$ac_objext conftest$ac_exeext
  20137. if { (ac_try="$ac_link"
  20138. case "(($ac_try" in
  20139. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20140. *) ac_try_echo=$ac_try;;
  20141. esac
  20142. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20143. (eval "$ac_link") 2>conftest.er1
  20144. ac_status=$?
  20145. grep -v '^ *+' conftest.er1 >conftest.err
  20146. rm -f conftest.er1
  20147. cat conftest.err >&5
  20148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20149. (exit $ac_status); } && {
  20150. test -z "$ac_c_werror_flag" ||
  20151. test ! -s conftest.err
  20152. } && test -s conftest$ac_exeext &&
  20153. $as_test_x conftest$ac_exeext; then
  20154. ac_cv_sys_largefile_source=no; break
  20155. else
  20156. echo "$as_me: failed program was:" >&5
  20157. sed 's/^/| /' conftest.$ac_ext >&5
  20158. fi
  20159. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20160. conftest$ac_exeext conftest.$ac_ext
  20161. cat >conftest.$ac_ext <<_ACEOF
  20162. /* confdefs.h. */
  20163. _ACEOF
  20164. cat confdefs.h >>conftest.$ac_ext
  20165. cat >>conftest.$ac_ext <<_ACEOF
  20166. /* end confdefs.h. */
  20167. #define _LARGEFILE_SOURCE 1
  20168. #include <stdio.h>
  20169. int
  20170. main ()
  20171. {
  20172. return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
  20173. ;
  20174. return 0;
  20175. }
  20176. _ACEOF
  20177. rm -f conftest.$ac_objext conftest$ac_exeext
  20178. if { (ac_try="$ac_link"
  20179. case "(($ac_try" in
  20180. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20181. *) ac_try_echo=$ac_try;;
  20182. esac
  20183. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20184. (eval "$ac_link") 2>conftest.er1
  20185. ac_status=$?
  20186. grep -v '^ *+' conftest.er1 >conftest.err
  20187. rm -f conftest.er1
  20188. cat conftest.err >&5
  20189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20190. (exit $ac_status); } && {
  20191. test -z "$ac_c_werror_flag" ||
  20192. test ! -s conftest.err
  20193. } && test -s conftest$ac_exeext &&
  20194. $as_test_x conftest$ac_exeext; then
  20195. ac_cv_sys_largefile_source=1; break
  20196. else
  20197. echo "$as_me: failed program was:" >&5
  20198. sed 's/^/| /' conftest.$ac_ext >&5
  20199. fi
  20200. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20201. conftest$ac_exeext conftest.$ac_ext
  20202. ac_cv_sys_largefile_source=unknown
  20203. break
  20204. done
  20205. fi
  20206. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
  20207. echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
  20208. case $ac_cv_sys_largefile_source in #(
  20209. no | unknown) ;;
  20210. *)
  20211. cat >>confdefs.h <<_ACEOF
  20212. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  20213. _ACEOF
  20214. ;;
  20215. esac
  20216. rm -f conftest*
  20217. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  20218. # in glibc 2.1.3, but that breaks too many other things.
  20219. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  20220. if test $ac_cv_sys_largefile_source != unknown; then
  20221. cat >>confdefs.h <<\_ACEOF
  20222. #define HAVE_FSEEKO 1
  20223. _ACEOF
  20224. fi
  20225. { echo "$as_me:$LINENO: checking for mbstate_t" >&5
  20226. echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
  20227. if test "${ac_cv_type_mbstate_t+set}" = set; then
  20228. echo $ECHO_N "(cached) $ECHO_C" >&6
  20229. else
  20230. cat >conftest.$ac_ext <<_ACEOF
  20231. /* confdefs.h. */
  20232. _ACEOF
  20233. cat confdefs.h >>conftest.$ac_ext
  20234. cat >>conftest.$ac_ext <<_ACEOF
  20235. /* end confdefs.h. */
  20236. $ac_includes_default
  20237. # include <wchar.h>
  20238. int
  20239. main ()
  20240. {
  20241. mbstate_t x; return sizeof x;
  20242. ;
  20243. return 0;
  20244. }
  20245. _ACEOF
  20246. rm -f conftest.$ac_objext
  20247. if { (ac_try="$ac_compile"
  20248. case "(($ac_try" in
  20249. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20250. *) ac_try_echo=$ac_try;;
  20251. esac
  20252. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20253. (eval "$ac_compile") 2>conftest.er1
  20254. ac_status=$?
  20255. grep -v '^ *+' conftest.er1 >conftest.err
  20256. rm -f conftest.er1
  20257. cat conftest.err >&5
  20258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20259. (exit $ac_status); } && {
  20260. test -z "$ac_c_werror_flag" ||
  20261. test ! -s conftest.err
  20262. } && test -s conftest.$ac_objext; then
  20263. ac_cv_type_mbstate_t=yes
  20264. else
  20265. echo "$as_me: failed program was:" >&5
  20266. sed 's/^/| /' conftest.$ac_ext >&5
  20267. ac_cv_type_mbstate_t=no
  20268. fi
  20269. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20270. fi
  20271. { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
  20272. echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
  20273. if test $ac_cv_type_mbstate_t = yes; then
  20274. cat >>confdefs.h <<\_ACEOF
  20275. #define HAVE_MBSTATE_T 1
  20276. _ACEOF
  20277. else
  20278. cat >>confdefs.h <<\_ACEOF
  20279. #define mbstate_t int
  20280. _ACEOF
  20281. fi
  20282. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  20283. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  20284. if test "${ac_cv_type_uint8_t+set}" = set; then
  20285. echo $ECHO_N "(cached) $ECHO_C" >&6
  20286. else
  20287. cat >conftest.$ac_ext <<_ACEOF
  20288. /* confdefs.h. */
  20289. _ACEOF
  20290. cat confdefs.h >>conftest.$ac_ext
  20291. cat >>conftest.$ac_ext <<_ACEOF
  20292. /* end confdefs.h. */
  20293. $ac_includes_default
  20294. typedef uint8_t ac__type_new_;
  20295. int
  20296. main ()
  20297. {
  20298. if ((ac__type_new_ *) 0)
  20299. return 0;
  20300. if (sizeof (ac__type_new_))
  20301. return 0;
  20302. ;
  20303. return 0;
  20304. }
  20305. _ACEOF
  20306. rm -f conftest.$ac_objext
  20307. if { (ac_try="$ac_compile"
  20308. case "(($ac_try" in
  20309. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20310. *) ac_try_echo=$ac_try;;
  20311. esac
  20312. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20313. (eval "$ac_compile") 2>conftest.er1
  20314. ac_status=$?
  20315. grep -v '^ *+' conftest.er1 >conftest.err
  20316. rm -f conftest.er1
  20317. cat conftest.err >&5
  20318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20319. (exit $ac_status); } && {
  20320. test -z "$ac_c_werror_flag" ||
  20321. test ! -s conftest.err
  20322. } && test -s conftest.$ac_objext; then
  20323. ac_cv_type_uint8_t=yes
  20324. else
  20325. echo "$as_me: failed program was:" >&5
  20326. sed 's/^/| /' conftest.$ac_ext >&5
  20327. ac_cv_type_uint8_t=no
  20328. fi
  20329. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20330. fi
  20331. { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  20332. echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
  20333. if test $ac_cv_type_uint8_t = yes; then
  20334. cat >>confdefs.h <<_ACEOF
  20335. #define HAVE_UINT8_T 1
  20336. _ACEOF
  20337. fi
  20338. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  20339. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  20340. if test "${ac_cv_type_uint16_t+set}" = set; then
  20341. echo $ECHO_N "(cached) $ECHO_C" >&6
  20342. else
  20343. cat >conftest.$ac_ext <<_ACEOF
  20344. /* confdefs.h. */
  20345. _ACEOF
  20346. cat confdefs.h >>conftest.$ac_ext
  20347. cat >>conftest.$ac_ext <<_ACEOF
  20348. /* end confdefs.h. */
  20349. $ac_includes_default
  20350. typedef uint16_t ac__type_new_;
  20351. int
  20352. main ()
  20353. {
  20354. if ((ac__type_new_ *) 0)
  20355. return 0;
  20356. if (sizeof (ac__type_new_))
  20357. return 0;
  20358. ;
  20359. return 0;
  20360. }
  20361. _ACEOF
  20362. rm -f conftest.$ac_objext
  20363. if { (ac_try="$ac_compile"
  20364. case "(($ac_try" in
  20365. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20366. *) ac_try_echo=$ac_try;;
  20367. esac
  20368. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20369. (eval "$ac_compile") 2>conftest.er1
  20370. ac_status=$?
  20371. grep -v '^ *+' conftest.er1 >conftest.err
  20372. rm -f conftest.er1
  20373. cat conftest.err >&5
  20374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20375. (exit $ac_status); } && {
  20376. test -z "$ac_c_werror_flag" ||
  20377. test ! -s conftest.err
  20378. } && test -s conftest.$ac_objext; then
  20379. ac_cv_type_uint16_t=yes
  20380. else
  20381. echo "$as_me: failed program was:" >&5
  20382. sed 's/^/| /' conftest.$ac_ext >&5
  20383. ac_cv_type_uint16_t=no
  20384. fi
  20385. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20386. fi
  20387. { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  20388. echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
  20389. if test $ac_cv_type_uint16_t = yes; then
  20390. cat >>confdefs.h <<_ACEOF
  20391. #define HAVE_UINT16_T 1
  20392. _ACEOF
  20393. fi
  20394. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  20395. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  20396. if test "${ac_cv_type_uint32_t+set}" = set; then
  20397. echo $ECHO_N "(cached) $ECHO_C" >&6
  20398. else
  20399. cat >conftest.$ac_ext <<_ACEOF
  20400. /* confdefs.h. */
  20401. _ACEOF
  20402. cat confdefs.h >>conftest.$ac_ext
  20403. cat >>conftest.$ac_ext <<_ACEOF
  20404. /* end confdefs.h. */
  20405. $ac_includes_default
  20406. typedef uint32_t ac__type_new_;
  20407. int
  20408. main ()
  20409. {
  20410. if ((ac__type_new_ *) 0)
  20411. return 0;
  20412. if (sizeof (ac__type_new_))
  20413. return 0;
  20414. ;
  20415. return 0;
  20416. }
  20417. _ACEOF
  20418. rm -f conftest.$ac_objext
  20419. if { (ac_try="$ac_compile"
  20420. case "(($ac_try" in
  20421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20422. *) ac_try_echo=$ac_try;;
  20423. esac
  20424. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20425. (eval "$ac_compile") 2>conftest.er1
  20426. ac_status=$?
  20427. grep -v '^ *+' conftest.er1 >conftest.err
  20428. rm -f conftest.er1
  20429. cat conftest.err >&5
  20430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20431. (exit $ac_status); } && {
  20432. test -z "$ac_c_werror_flag" ||
  20433. test ! -s conftest.err
  20434. } && test -s conftest.$ac_objext; then
  20435. ac_cv_type_uint32_t=yes
  20436. else
  20437. echo "$as_me: failed program was:" >&5
  20438. sed 's/^/| /' conftest.$ac_ext >&5
  20439. ac_cv_type_uint32_t=no
  20440. fi
  20441. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20442. fi
  20443. { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  20444. echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
  20445. if test $ac_cv_type_uint32_t = yes; then
  20446. cat >>confdefs.h <<_ACEOF
  20447. #define HAVE_UINT32_T 1
  20448. _ACEOF
  20449. fi
  20450. { echo "$as_me:$LINENO: checking for int32_t" >&5
  20451. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  20452. if test "${ac_cv_type_int32_t+set}" = set; then
  20453. echo $ECHO_N "(cached) $ECHO_C" >&6
  20454. else
  20455. cat >conftest.$ac_ext <<_ACEOF
  20456. /* confdefs.h. */
  20457. _ACEOF
  20458. cat confdefs.h >>conftest.$ac_ext
  20459. cat >>conftest.$ac_ext <<_ACEOF
  20460. /* end confdefs.h. */
  20461. $ac_includes_default
  20462. typedef int32_t ac__type_new_;
  20463. int
  20464. main ()
  20465. {
  20466. if ((ac__type_new_ *) 0)
  20467. return 0;
  20468. if (sizeof (ac__type_new_))
  20469. return 0;
  20470. ;
  20471. return 0;
  20472. }
  20473. _ACEOF
  20474. rm -f conftest.$ac_objext
  20475. if { (ac_try="$ac_compile"
  20476. case "(($ac_try" in
  20477. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20478. *) ac_try_echo=$ac_try;;
  20479. esac
  20480. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20481. (eval "$ac_compile") 2>conftest.er1
  20482. ac_status=$?
  20483. grep -v '^ *+' conftest.er1 >conftest.err
  20484. rm -f conftest.er1
  20485. cat conftest.err >&5
  20486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20487. (exit $ac_status); } && {
  20488. test -z "$ac_c_werror_flag" ||
  20489. test ! -s conftest.err
  20490. } && test -s conftest.$ac_objext; then
  20491. ac_cv_type_int32_t=yes
  20492. else
  20493. echo "$as_me: failed program was:" >&5
  20494. sed 's/^/| /' conftest.$ac_ext >&5
  20495. ac_cv_type_int32_t=no
  20496. fi
  20497. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20498. fi
  20499. { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  20500. echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
  20501. if test $ac_cv_type_int32_t = yes; then
  20502. cat >>confdefs.h <<_ACEOF
  20503. #define HAVE_INT32_T 1
  20504. _ACEOF
  20505. fi
  20506. { echo "$as_me:$LINENO: checking for uint64_t" >&5
  20507. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
  20508. if test "${ac_cv_type_uint64_t+set}" = set; then
  20509. echo $ECHO_N "(cached) $ECHO_C" >&6
  20510. else
  20511. cat >conftest.$ac_ext <<_ACEOF
  20512. /* confdefs.h. */
  20513. _ACEOF
  20514. cat confdefs.h >>conftest.$ac_ext
  20515. cat >>conftest.$ac_ext <<_ACEOF
  20516. /* end confdefs.h. */
  20517. $ac_includes_default
  20518. typedef uint64_t ac__type_new_;
  20519. int
  20520. main ()
  20521. {
  20522. if ((ac__type_new_ *) 0)
  20523. return 0;
  20524. if (sizeof (ac__type_new_))
  20525. return 0;
  20526. ;
  20527. return 0;
  20528. }
  20529. _ACEOF
  20530. rm -f conftest.$ac_objext
  20531. if { (ac_try="$ac_compile"
  20532. case "(($ac_try" in
  20533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20534. *) ac_try_echo=$ac_try;;
  20535. esac
  20536. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20537. (eval "$ac_compile") 2>conftest.er1
  20538. ac_status=$?
  20539. grep -v '^ *+' conftest.er1 >conftest.err
  20540. rm -f conftest.er1
  20541. cat conftest.err >&5
  20542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20543. (exit $ac_status); } && {
  20544. test -z "$ac_c_werror_flag" ||
  20545. test ! -s conftest.err
  20546. } && test -s conftest.$ac_objext; then
  20547. ac_cv_type_uint64_t=yes
  20548. else
  20549. echo "$as_me: failed program was:" >&5
  20550. sed 's/^/| /' conftest.$ac_ext >&5
  20551. ac_cv_type_uint64_t=no
  20552. fi
  20553. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20554. fi
  20555. { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
  20556. echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
  20557. if test $ac_cv_type_uint64_t = yes; then
  20558. cat >>confdefs.h <<_ACEOF
  20559. #define HAVE_UINT64_T 1
  20560. _ACEOF
  20561. fi
  20562. { echo "$as_me:$LINENO: checking for int64_t" >&5
  20563. echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
  20564. if test "${ac_cv_type_int64_t+set}" = set; then
  20565. echo $ECHO_N "(cached) $ECHO_C" >&6
  20566. else
  20567. cat >conftest.$ac_ext <<_ACEOF
  20568. /* confdefs.h. */
  20569. _ACEOF
  20570. cat confdefs.h >>conftest.$ac_ext
  20571. cat >>conftest.$ac_ext <<_ACEOF
  20572. /* end confdefs.h. */
  20573. $ac_includes_default
  20574. typedef int64_t ac__type_new_;
  20575. int
  20576. main ()
  20577. {
  20578. if ((ac__type_new_ *) 0)
  20579. return 0;
  20580. if (sizeof (ac__type_new_))
  20581. return 0;
  20582. ;
  20583. return 0;
  20584. }
  20585. _ACEOF
  20586. rm -f conftest.$ac_objext
  20587. if { (ac_try="$ac_compile"
  20588. case "(($ac_try" in
  20589. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20590. *) ac_try_echo=$ac_try;;
  20591. esac
  20592. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20593. (eval "$ac_compile") 2>conftest.er1
  20594. ac_status=$?
  20595. grep -v '^ *+' conftest.er1 >conftest.err
  20596. rm -f conftest.er1
  20597. cat conftest.err >&5
  20598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20599. (exit $ac_status); } && {
  20600. test -z "$ac_c_werror_flag" ||
  20601. test ! -s conftest.err
  20602. } && test -s conftest.$ac_objext; then
  20603. ac_cv_type_int64_t=yes
  20604. else
  20605. echo "$as_me: failed program was:" >&5
  20606. sed 's/^/| /' conftest.$ac_ext >&5
  20607. ac_cv_type_int64_t=no
  20608. fi
  20609. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20610. fi
  20611. { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
  20612. echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
  20613. if test $ac_cv_type_int64_t = yes; then
  20614. cat >>confdefs.h <<_ACEOF
  20615. #define HAVE_INT64_T 1
  20616. _ACEOF
  20617. fi
  20618. { echo "$as_me:$LINENO: checking for long long" >&5
  20619. echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
  20620. if test "${ac_cv_type_long_long+set}" = set; then
  20621. echo $ECHO_N "(cached) $ECHO_C" >&6
  20622. else
  20623. cat >conftest.$ac_ext <<_ACEOF
  20624. /* confdefs.h. */
  20625. _ACEOF
  20626. cat confdefs.h >>conftest.$ac_ext
  20627. cat >>conftest.$ac_ext <<_ACEOF
  20628. /* end confdefs.h. */
  20629. $ac_includes_default
  20630. typedef long long ac__type_new_;
  20631. int
  20632. main ()
  20633. {
  20634. if ((ac__type_new_ *) 0)
  20635. return 0;
  20636. if (sizeof (ac__type_new_))
  20637. return 0;
  20638. ;
  20639. return 0;
  20640. }
  20641. _ACEOF
  20642. rm -f conftest.$ac_objext
  20643. if { (ac_try="$ac_compile"
  20644. case "(($ac_try" in
  20645. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20646. *) ac_try_echo=$ac_try;;
  20647. esac
  20648. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20649. (eval "$ac_compile") 2>conftest.er1
  20650. ac_status=$?
  20651. grep -v '^ *+' conftest.er1 >conftest.err
  20652. rm -f conftest.er1
  20653. cat conftest.err >&5
  20654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20655. (exit $ac_status); } && {
  20656. test -z "$ac_c_werror_flag" ||
  20657. test ! -s conftest.err
  20658. } && test -s conftest.$ac_objext; then
  20659. ac_cv_type_long_long=yes
  20660. else
  20661. echo "$as_me: failed program was:" >&5
  20662. sed 's/^/| /' conftest.$ac_ext >&5
  20663. ac_cv_type_long_long=no
  20664. fi
  20665. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20666. fi
  20667. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  20668. echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
  20669. # The cast to long int works around a bug in the HP C Compiler
  20670. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  20671. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  20672. # This bug is HP SR number 8606223364.
  20673. { echo "$as_me:$LINENO: checking size of long long" >&5
  20674. echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
  20675. if test "${ac_cv_sizeof_long_long+set}" = set; then
  20676. echo $ECHO_N "(cached) $ECHO_C" >&6
  20677. else
  20678. if test "$cross_compiling" = yes; then
  20679. # Depending upon the size, compute the lo and hi bounds.
  20680. cat >conftest.$ac_ext <<_ACEOF
  20681. /* confdefs.h. */
  20682. _ACEOF
  20683. cat confdefs.h >>conftest.$ac_ext
  20684. cat >>conftest.$ac_ext <<_ACEOF
  20685. /* end confdefs.h. */
  20686. $ac_includes_default
  20687. typedef long long ac__type_sizeof_;
  20688. int
  20689. main ()
  20690. {
  20691. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  20692. test_array [0] = 0
  20693. ;
  20694. return 0;
  20695. }
  20696. _ACEOF
  20697. rm -f conftest.$ac_objext
  20698. if { (ac_try="$ac_compile"
  20699. case "(($ac_try" in
  20700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20701. *) ac_try_echo=$ac_try;;
  20702. esac
  20703. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20704. (eval "$ac_compile") 2>conftest.er1
  20705. ac_status=$?
  20706. grep -v '^ *+' conftest.er1 >conftest.err
  20707. rm -f conftest.er1
  20708. cat conftest.err >&5
  20709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20710. (exit $ac_status); } && {
  20711. test -z "$ac_c_werror_flag" ||
  20712. test ! -s conftest.err
  20713. } && test -s conftest.$ac_objext; then
  20714. ac_lo=0 ac_mid=0
  20715. while :; do
  20716. cat >conftest.$ac_ext <<_ACEOF
  20717. /* confdefs.h. */
  20718. _ACEOF
  20719. cat confdefs.h >>conftest.$ac_ext
  20720. cat >>conftest.$ac_ext <<_ACEOF
  20721. /* end confdefs.h. */
  20722. $ac_includes_default
  20723. typedef long long ac__type_sizeof_;
  20724. int
  20725. main ()
  20726. {
  20727. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  20728. test_array [0] = 0
  20729. ;
  20730. return 0;
  20731. }
  20732. _ACEOF
  20733. rm -f conftest.$ac_objext
  20734. if { (ac_try="$ac_compile"
  20735. case "(($ac_try" in
  20736. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20737. *) ac_try_echo=$ac_try;;
  20738. esac
  20739. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20740. (eval "$ac_compile") 2>conftest.er1
  20741. ac_status=$?
  20742. grep -v '^ *+' conftest.er1 >conftest.err
  20743. rm -f conftest.er1
  20744. cat conftest.err >&5
  20745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20746. (exit $ac_status); } && {
  20747. test -z "$ac_c_werror_flag" ||
  20748. test ! -s conftest.err
  20749. } && test -s conftest.$ac_objext; then
  20750. ac_hi=$ac_mid; break
  20751. else
  20752. echo "$as_me: failed program was:" >&5
  20753. sed 's/^/| /' conftest.$ac_ext >&5
  20754. ac_lo=`expr $ac_mid + 1`
  20755. if test $ac_lo -le $ac_mid; then
  20756. ac_lo= ac_hi=
  20757. break
  20758. fi
  20759. ac_mid=`expr 2 '*' $ac_mid + 1`
  20760. fi
  20761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20762. done
  20763. else
  20764. echo "$as_me: failed program was:" >&5
  20765. sed 's/^/| /' conftest.$ac_ext >&5
  20766. cat >conftest.$ac_ext <<_ACEOF
  20767. /* confdefs.h. */
  20768. _ACEOF
  20769. cat confdefs.h >>conftest.$ac_ext
  20770. cat >>conftest.$ac_ext <<_ACEOF
  20771. /* end confdefs.h. */
  20772. $ac_includes_default
  20773. typedef long long ac__type_sizeof_;
  20774. int
  20775. main ()
  20776. {
  20777. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  20778. test_array [0] = 0
  20779. ;
  20780. return 0;
  20781. }
  20782. _ACEOF
  20783. rm -f conftest.$ac_objext
  20784. if { (ac_try="$ac_compile"
  20785. case "(($ac_try" in
  20786. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20787. *) ac_try_echo=$ac_try;;
  20788. esac
  20789. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20790. (eval "$ac_compile") 2>conftest.er1
  20791. ac_status=$?
  20792. grep -v '^ *+' conftest.er1 >conftest.err
  20793. rm -f conftest.er1
  20794. cat conftest.err >&5
  20795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20796. (exit $ac_status); } && {
  20797. test -z "$ac_c_werror_flag" ||
  20798. test ! -s conftest.err
  20799. } && test -s conftest.$ac_objext; then
  20800. ac_hi=-1 ac_mid=-1
  20801. while :; do
  20802. cat >conftest.$ac_ext <<_ACEOF
  20803. /* confdefs.h. */
  20804. _ACEOF
  20805. cat confdefs.h >>conftest.$ac_ext
  20806. cat >>conftest.$ac_ext <<_ACEOF
  20807. /* end confdefs.h. */
  20808. $ac_includes_default
  20809. typedef long long ac__type_sizeof_;
  20810. int
  20811. main ()
  20812. {
  20813. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  20814. test_array [0] = 0
  20815. ;
  20816. return 0;
  20817. }
  20818. _ACEOF
  20819. rm -f conftest.$ac_objext
  20820. if { (ac_try="$ac_compile"
  20821. case "(($ac_try" in
  20822. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20823. *) ac_try_echo=$ac_try;;
  20824. esac
  20825. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20826. (eval "$ac_compile") 2>conftest.er1
  20827. ac_status=$?
  20828. grep -v '^ *+' conftest.er1 >conftest.err
  20829. rm -f conftest.er1
  20830. cat conftest.err >&5
  20831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20832. (exit $ac_status); } && {
  20833. test -z "$ac_c_werror_flag" ||
  20834. test ! -s conftest.err
  20835. } && test -s conftest.$ac_objext; then
  20836. ac_lo=$ac_mid; break
  20837. else
  20838. echo "$as_me: failed program was:" >&5
  20839. sed 's/^/| /' conftest.$ac_ext >&5
  20840. ac_hi=`expr '(' $ac_mid ')' - 1`
  20841. if test $ac_mid -le $ac_hi; then
  20842. ac_lo= ac_hi=
  20843. break
  20844. fi
  20845. ac_mid=`expr 2 '*' $ac_mid`
  20846. fi
  20847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20848. done
  20849. else
  20850. echo "$as_me: failed program was:" >&5
  20851. sed 's/^/| /' conftest.$ac_ext >&5
  20852. ac_lo= ac_hi=
  20853. fi
  20854. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20855. fi
  20856. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20857. # Binary search between lo and hi bounds.
  20858. while test "x$ac_lo" != "x$ac_hi"; do
  20859. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  20860. cat >conftest.$ac_ext <<_ACEOF
  20861. /* confdefs.h. */
  20862. _ACEOF
  20863. cat confdefs.h >>conftest.$ac_ext
  20864. cat >>conftest.$ac_ext <<_ACEOF
  20865. /* end confdefs.h. */
  20866. $ac_includes_default
  20867. typedef long long ac__type_sizeof_;
  20868. int
  20869. main ()
  20870. {
  20871. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  20872. test_array [0] = 0
  20873. ;
  20874. return 0;
  20875. }
  20876. _ACEOF
  20877. rm -f conftest.$ac_objext
  20878. if { (ac_try="$ac_compile"
  20879. case "(($ac_try" in
  20880. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20881. *) ac_try_echo=$ac_try;;
  20882. esac
  20883. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20884. (eval "$ac_compile") 2>conftest.er1
  20885. ac_status=$?
  20886. grep -v '^ *+' conftest.er1 >conftest.err
  20887. rm -f conftest.er1
  20888. cat conftest.err >&5
  20889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20890. (exit $ac_status); } && {
  20891. test -z "$ac_c_werror_flag" ||
  20892. test ! -s conftest.err
  20893. } && test -s conftest.$ac_objext; then
  20894. ac_hi=$ac_mid
  20895. else
  20896. echo "$as_me: failed program was:" >&5
  20897. sed 's/^/| /' conftest.$ac_ext >&5
  20898. ac_lo=`expr '(' $ac_mid ')' + 1`
  20899. fi
  20900. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20901. done
  20902. case $ac_lo in
  20903. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  20904. '') if test "$ac_cv_type_long_long" = yes; then
  20905. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  20906. See \`config.log' for more details." >&5
  20907. echo "$as_me: error: cannot compute sizeof (long long)
  20908. See \`config.log' for more details." >&2;}
  20909. { (exit 77); exit 77; }; }
  20910. else
  20911. ac_cv_sizeof_long_long=0
  20912. fi ;;
  20913. esac
  20914. else
  20915. cat >conftest.$ac_ext <<_ACEOF
  20916. /* confdefs.h. */
  20917. _ACEOF
  20918. cat confdefs.h >>conftest.$ac_ext
  20919. cat >>conftest.$ac_ext <<_ACEOF
  20920. /* end confdefs.h. */
  20921. $ac_includes_default
  20922. typedef long long ac__type_sizeof_;
  20923. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  20924. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  20925. #include <stdio.h>
  20926. #include <stdlib.h>
  20927. int
  20928. main ()
  20929. {
  20930. FILE *f = fopen ("conftest.val", "w");
  20931. if (! f)
  20932. return 1;
  20933. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  20934. {
  20935. long int i = longval ();
  20936. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  20937. return 1;
  20938. fprintf (f, "%ld\n", i);
  20939. }
  20940. else
  20941. {
  20942. unsigned long int i = ulongval ();
  20943. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  20944. return 1;
  20945. fprintf (f, "%lu\n", i);
  20946. }
  20947. return ferror (f) || fclose (f) != 0;
  20948. ;
  20949. return 0;
  20950. }
  20951. _ACEOF
  20952. rm -f conftest$ac_exeext
  20953. if { (ac_try="$ac_link"
  20954. case "(($ac_try" in
  20955. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20956. *) ac_try_echo=$ac_try;;
  20957. esac
  20958. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20959. (eval "$ac_link") 2>&5
  20960. ac_status=$?
  20961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20962. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20963. { (case "(($ac_try" in
  20964. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20965. *) ac_try_echo=$ac_try;;
  20966. esac
  20967. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20968. (eval "$ac_try") 2>&5
  20969. ac_status=$?
  20970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20971. (exit $ac_status); }; }; then
  20972. ac_cv_sizeof_long_long=`cat conftest.val`
  20973. else
  20974. echo "$as_me: program exited with status $ac_status" >&5
  20975. echo "$as_me: failed program was:" >&5
  20976. sed 's/^/| /' conftest.$ac_ext >&5
  20977. ( exit $ac_status )
  20978. if test "$ac_cv_type_long_long" = yes; then
  20979. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  20980. See \`config.log' for more details." >&5
  20981. echo "$as_me: error: cannot compute sizeof (long long)
  20982. See \`config.log' for more details." >&2;}
  20983. { (exit 77); exit 77; }; }
  20984. else
  20985. ac_cv_sizeof_long_long=0
  20986. fi
  20987. fi
  20988. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20989. fi
  20990. rm -f conftest.val
  20991. fi
  20992. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  20993. echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
  20994. cat >>confdefs.h <<_ACEOF
  20995. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  20996. _ACEOF
  20997. for ac_func in mmap strerror strndup strtoul mbrtowc mkstemp utimes utime wcwidth strtof
  20998. do
  20999. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21000. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  21001. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  21002. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  21003. echo $ECHO_N "(cached) $ECHO_C" >&6
  21004. else
  21005. cat >conftest.$ac_ext <<_ACEOF
  21006. /* confdefs.h. */
  21007. _ACEOF
  21008. cat confdefs.h >>conftest.$ac_ext
  21009. cat >>conftest.$ac_ext <<_ACEOF
  21010. /* end confdefs.h. */
  21011. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21012. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21013. #define $ac_func innocuous_$ac_func
  21014. /* System header to define __stub macros and hopefully few prototypes,
  21015. which can conflict with char $ac_func (); below.
  21016. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21017. <limits.h> exists even on freestanding compilers. */
  21018. #ifdef __STDC__
  21019. # include <limits.h>
  21020. #else
  21021. # include <assert.h>
  21022. #endif
  21023. #undef $ac_func
  21024. /* Override any GCC internal prototype to avoid an error.
  21025. Use char because int might match the return type of a GCC
  21026. builtin and then its argument prototype would still apply. */
  21027. #ifdef __cplusplus
  21028. extern "C"
  21029. #endif
  21030. char $ac_func ();
  21031. /* The GNU C library defines this for functions which it implements
  21032. to always fail with ENOSYS. Some functions are actually named
  21033. something starting with __ and the normal name is an alias. */
  21034. #if defined __stub_$ac_func || defined __stub___$ac_func
  21035. choke me
  21036. #endif
  21037. int
  21038. main ()
  21039. {
  21040. return $ac_func ();
  21041. ;
  21042. return 0;
  21043. }
  21044. _ACEOF
  21045. rm -f conftest.$ac_objext conftest$ac_exeext
  21046. if { (ac_try="$ac_link"
  21047. case "(($ac_try" in
  21048. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21049. *) ac_try_echo=$ac_try;;
  21050. esac
  21051. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21052. (eval "$ac_link") 2>conftest.er1
  21053. ac_status=$?
  21054. grep -v '^ *+' conftest.er1 >conftest.err
  21055. rm -f conftest.er1
  21056. cat conftest.err >&5
  21057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21058. (exit $ac_status); } && {
  21059. test -z "$ac_c_werror_flag" ||
  21060. test ! -s conftest.err
  21061. } && test -s conftest$ac_exeext &&
  21062. $as_test_x conftest$ac_exeext; then
  21063. eval "$as_ac_var=yes"
  21064. else
  21065. echo "$as_me: failed program was:" >&5
  21066. sed 's/^/| /' conftest.$ac_ext >&5
  21067. eval "$as_ac_var=no"
  21068. fi
  21069. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21070. conftest$ac_exeext conftest.$ac_ext
  21071. fi
  21072. ac_res=`eval echo '${'$as_ac_var'}'`
  21073. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21074. echo "${ECHO_T}$ac_res" >&6; }
  21075. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21076. cat >>confdefs.h <<_ACEOF
  21077. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21078. _ACEOF
  21079. fi
  21080. done
  21081. for ac_func in getopt_long asprintf vasprintf
  21082. do
  21083. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21084. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  21085. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  21086. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  21087. echo $ECHO_N "(cached) $ECHO_C" >&6
  21088. else
  21089. cat >conftest.$ac_ext <<_ACEOF
  21090. /* confdefs.h. */
  21091. _ACEOF
  21092. cat confdefs.h >>conftest.$ac_ext
  21093. cat >>conftest.$ac_ext <<_ACEOF
  21094. /* end confdefs.h. */
  21095. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21096. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21097. #define $ac_func innocuous_$ac_func
  21098. /* System header to define __stub macros and hopefully few prototypes,
  21099. which can conflict with char $ac_func (); below.
  21100. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21101. <limits.h> exists even on freestanding compilers. */
  21102. #ifdef __STDC__
  21103. # include <limits.h>
  21104. #else
  21105. # include <assert.h>
  21106. #endif
  21107. #undef $ac_func
  21108. /* Override any GCC internal prototype to avoid an error.
  21109. Use char because int might match the return type of a GCC
  21110. builtin and then its argument prototype would still apply. */
  21111. #ifdef __cplusplus
  21112. extern "C"
  21113. #endif
  21114. char $ac_func ();
  21115. /* The GNU C library defines this for functions which it implements
  21116. to always fail with ENOSYS. Some functions are actually named
  21117. something starting with __ and the normal name is an alias. */
  21118. #if defined __stub_$ac_func || defined __stub___$ac_func
  21119. choke me
  21120. #endif
  21121. int
  21122. main ()
  21123. {
  21124. return $ac_func ();
  21125. ;
  21126. return 0;
  21127. }
  21128. _ACEOF
  21129. rm -f conftest.$ac_objext conftest$ac_exeext
  21130. if { (ac_try="$ac_link"
  21131. case "(($ac_try" in
  21132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21133. *) ac_try_echo=$ac_try;;
  21134. esac
  21135. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21136. (eval "$ac_link") 2>conftest.er1
  21137. ac_status=$?
  21138. grep -v '^ *+' conftest.er1 >conftest.err
  21139. rm -f conftest.er1
  21140. cat conftest.err >&5
  21141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21142. (exit $ac_status); } && {
  21143. test -z "$ac_c_werror_flag" ||
  21144. test ! -s conftest.err
  21145. } && test -s conftest$ac_exeext &&
  21146. $as_test_x conftest$ac_exeext; then
  21147. eval "$as_ac_var=yes"
  21148. else
  21149. echo "$as_me: failed program was:" >&5
  21150. sed 's/^/| /' conftest.$ac_ext >&5
  21151. eval "$as_ac_var=no"
  21152. fi
  21153. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21154. conftest$ac_exeext conftest.$ac_ext
  21155. fi
  21156. ac_res=`eval echo '${'$as_ac_var'}'`
  21157. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21158. echo "${ECHO_T}$ac_res" >&6; }
  21159. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21160. cat >>confdefs.h <<_ACEOF
  21161. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21162. _ACEOF
  21163. else
  21164. case " $LIBOBJS " in
  21165. *" $ac_func.$ac_objext "* ) ;;
  21166. *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
  21167. ;;
  21168. esac
  21169. fi
  21170. done
  21171. { echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
  21172. echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
  21173. if test "${ac_cv_lib_z_gzopen+set}" = set; then
  21174. echo $ECHO_N "(cached) $ECHO_C" >&6
  21175. else
  21176. ac_check_lib_save_LIBS=$LIBS
  21177. LIBS="-lz $LIBS"
  21178. cat >conftest.$ac_ext <<_ACEOF
  21179. /* confdefs.h. */
  21180. _ACEOF
  21181. cat confdefs.h >>conftest.$ac_ext
  21182. cat >>conftest.$ac_ext <<_ACEOF
  21183. /* end confdefs.h. */
  21184. /* Override any GCC internal prototype to avoid an error.
  21185. Use char because int might match the return type of a GCC
  21186. builtin and then its argument prototype would still apply. */
  21187. #ifdef __cplusplus
  21188. extern "C"
  21189. #endif
  21190. char gzopen ();
  21191. int
  21192. main ()
  21193. {
  21194. return gzopen ();
  21195. ;
  21196. return 0;
  21197. }
  21198. _ACEOF
  21199. rm -f conftest.$ac_objext conftest$ac_exeext
  21200. if { (ac_try="$ac_link"
  21201. case "(($ac_try" in
  21202. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21203. *) ac_try_echo=$ac_try;;
  21204. esac
  21205. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21206. (eval "$ac_link") 2>conftest.er1
  21207. ac_status=$?
  21208. grep -v '^ *+' conftest.er1 >conftest.err
  21209. rm -f conftest.er1
  21210. cat conftest.err >&5
  21211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21212. (exit $ac_status); } && {
  21213. test -z "$ac_c_werror_flag" ||
  21214. test ! -s conftest.err
  21215. } && test -s conftest$ac_exeext &&
  21216. $as_test_x conftest$ac_exeext; then
  21217. ac_cv_lib_z_gzopen=yes
  21218. else
  21219. echo "$as_me: failed program was:" >&5
  21220. sed 's/^/| /' conftest.$ac_ext >&5
  21221. ac_cv_lib_z_gzopen=no
  21222. fi
  21223. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21224. conftest$ac_exeext conftest.$ac_ext
  21225. LIBS=$ac_check_lib_save_LIBS
  21226. fi
  21227. { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
  21228. echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
  21229. if test $ac_cv_lib_z_gzopen = yes; then
  21230. cat >>confdefs.h <<_ACEOF
  21231. #define HAVE_LIBZ 1
  21232. _ACEOF
  21233. LIBS="-lz $LIBS"
  21234. fi
  21235. if test "$cross_compiling" = yes; then
  21236. IS_CROSS_COMPILE_TRUE=
  21237. IS_CROSS_COMPILE_FALSE='#'
  21238. else
  21239. IS_CROSS_COMPILE_TRUE='#'
  21240. IS_CROSS_COMPILE_FALSE=
  21241. fi
  21242. ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile"
  21243. cat >confcache <<\_ACEOF
  21244. # This file is a shell script that caches the results of configure
  21245. # tests run on this system so they can be shared between configure
  21246. # scripts and configure runs, see configure's option --config-cache.
  21247. # It is not useful on other systems. If it contains results you don't
  21248. # want to keep, you may remove or edit it.
  21249. #
  21250. # config.status only pays attention to the cache file if you give it
  21251. # the --recheck option to rerun configure.
  21252. #
  21253. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21254. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21255. # following values.
  21256. _ACEOF
  21257. # The following way of writing the cache mishandles newlines in values,
  21258. # but we know of no workaround that is simple, portable, and efficient.
  21259. # So, we kill variables containing newlines.
  21260. # Ultrix sh set writes to stderr and can't be redirected directly,
  21261. # and sets the high bit in the cache file unless we assign to the vars.
  21262. (
  21263. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21264. eval ac_val=\$$ac_var
  21265. case $ac_val in #(
  21266. *${as_nl}*)
  21267. case $ac_var in #(
  21268. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  21269. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  21270. esac
  21271. case $ac_var in #(
  21272. _ | IFS | as_nl) ;; #(
  21273. *) $as_unset $ac_var ;;
  21274. esac ;;
  21275. esac
  21276. done
  21277. (set) 2>&1 |
  21278. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21279. *${as_nl}ac_space=\ *)
  21280. # `set' does not quote correctly, so add quotes (double-quote
  21281. # substitution turns \\\\ into \\, and sed turns \\ into \).
  21282. sed -n \
  21283. "s/'/'\\\\''/g;
  21284. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21285. ;; #(
  21286. *)
  21287. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21288. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21289. ;;
  21290. esac |
  21291. sort
  21292. ) |
  21293. sed '
  21294. /^ac_cv_env_/b end
  21295. t clear
  21296. :clear
  21297. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21298. t end
  21299. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21300. :end' >>confcache
  21301. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21302. if test -w "$cache_file"; then
  21303. test "x$cache_file" != "x/dev/null" &&
  21304. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  21305. echo "$as_me: updating cache $cache_file" >&6;}
  21306. cat confcache >$cache_file
  21307. else
  21308. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  21309. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21310. fi
  21311. fi
  21312. rm -f confcache
  21313. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21314. # Let make expand exec_prefix.
  21315. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21316. DEFS=-DHAVE_CONFIG_H
  21317. ac_libobjs=
  21318. ac_ltlibobjs=
  21319. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21320. # 1. Remove the extension, and $U if already installed.
  21321. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21322. ac_i=`echo "$ac_i" | sed "$ac_script"`
  21323. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21324. # will be set to the directory where LIBOBJS objects are built.
  21325. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21326. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  21327. done
  21328. LIBOBJS=$ac_libobjs
  21329. LTLIBOBJS=$ac_ltlibobjs
  21330. if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
  21331. { { echo "$as_me:$LINENO: error: conditional \"FSECT5\" was never defined.
  21332. Usually this means the macro was only invoked conditionally." >&5
  21333. echo "$as_me: error: conditional \"FSECT5\" was never defined.
  21334. Usually this means the macro was only invoked conditionally." >&2;}
  21335. { (exit 1); exit 1; }; }
  21336. fi
  21337. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  21338. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  21339. Usually this means the macro was only invoked conditionally." >&5
  21340. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  21341. Usually this means the macro was only invoked conditionally." >&2;}
  21342. { (exit 1); exit 1; }; }
  21343. fi
  21344. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  21345. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  21346. Usually this means the macro was only invoked conditionally." >&5
  21347. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  21348. Usually this means the macro was only invoked conditionally." >&2;}
  21349. { (exit 1); exit 1; }; }
  21350. fi
  21351. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  21352. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  21353. Usually this means the macro was only invoked conditionally." >&5
  21354. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  21355. Usually this means the macro was only invoked conditionally." >&2;}
  21356. { (exit 1); exit 1; }; }
  21357. fi
  21358. if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
  21359. { { echo "$as_me:$LINENO: error: conditional \"IS_CROSS_COMPILE\" was never defined.
  21360. Usually this means the macro was only invoked conditionally." >&5
  21361. echo "$as_me: error: conditional \"IS_CROSS_COMPILE\" was never defined.
  21362. Usually this means the macro was only invoked conditionally." >&2;}
  21363. { (exit 1); exit 1; }; }
  21364. fi
  21365. : ${CONFIG_STATUS=./config.status}
  21366. ac_clean_files_save=$ac_clean_files
  21367. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21368. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  21369. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21370. cat >$CONFIG_STATUS <<_ACEOF
  21371. #! $SHELL
  21372. # Generated by $as_me.
  21373. # Run this file to recreate the current configuration.
  21374. # Compiler output produced by configure, useful for debugging
  21375. # configure, is in config.log if it exists.
  21376. debug=false
  21377. ac_cs_recheck=false
  21378. ac_cs_silent=false
  21379. SHELL=\${CONFIG_SHELL-$SHELL}
  21380. _ACEOF
  21381. cat >>$CONFIG_STATUS <<\_ACEOF
  21382. ## --------------------- ##
  21383. ## M4sh Initialization. ##
  21384. ## --------------------- ##
  21385. # Be more Bourne compatible
  21386. DUALCASE=1; export DUALCASE # for MKS sh
  21387. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  21388. emulate sh
  21389. NULLCMD=:
  21390. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  21391. # is contrary to our usage. Disable this feature.
  21392. alias -g '${1+"$@"}'='"$@"'
  21393. setopt NO_GLOB_SUBST
  21394. else
  21395. case `(set -o) 2>/dev/null` in
  21396. *posix*) set -o posix ;;
  21397. esac
  21398. fi
  21399. # PATH needs CR
  21400. # Avoid depending upon Character Ranges.
  21401. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21402. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21403. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21404. as_cr_digits='0123456789'
  21405. as_cr_alnum=$as_cr_Letters$as_cr_digits
  21406. # The user is always right.
  21407. if test "${PATH_SEPARATOR+set}" != set; then
  21408. echo "#! /bin/sh" >conf$$.sh
  21409. echo "exit 0" >>conf$$.sh
  21410. chmod +x conf$$.sh
  21411. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  21412. PATH_SEPARATOR=';'
  21413. else
  21414. PATH_SEPARATOR=:
  21415. fi
  21416. rm -f conf$$.sh
  21417. fi
  21418. # Support unset when possible.
  21419. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  21420. as_unset=unset
  21421. else
  21422. as_unset=false
  21423. fi
  21424. # IFS
  21425. # We need space, tab and new line, in precisely that order. Quoting is
  21426. # there to prevent editors from complaining about space-tab.
  21427. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21428. # splitting by setting IFS to empty value.)
  21429. as_nl='
  21430. '
  21431. IFS=" "" $as_nl"
  21432. # Find who we are. Look in the path if we contain no directory separator.
  21433. case $0 in
  21434. *[\\/]* ) as_myself=$0 ;;
  21435. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21436. for as_dir in $PATH
  21437. do
  21438. IFS=$as_save_IFS
  21439. test -z "$as_dir" && as_dir=.
  21440. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21441. done
  21442. IFS=$as_save_IFS
  21443. ;;
  21444. esac
  21445. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21446. # in which case we are not to be found in the path.
  21447. if test "x$as_myself" = x; then
  21448. as_myself=$0
  21449. fi
  21450. if test ! -f "$as_myself"; then
  21451. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21452. { (exit 1); exit 1; }
  21453. fi
  21454. # Work around bugs in pre-3.0 UWIN ksh.
  21455. for as_var in ENV MAIL MAILPATH
  21456. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  21457. done
  21458. PS1='$ '
  21459. PS2='> '
  21460. PS4='+ '
  21461. # NLS nuisances.
  21462. for as_var in \
  21463. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  21464. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  21465. LC_TELEPHONE LC_TIME
  21466. do
  21467. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  21468. eval $as_var=C; export $as_var
  21469. else
  21470. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  21471. fi
  21472. done
  21473. # Required to use basename.
  21474. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21475. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21476. as_expr=expr
  21477. else
  21478. as_expr=false
  21479. fi
  21480. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21481. as_basename=basename
  21482. else
  21483. as_basename=false
  21484. fi
  21485. # Name of the executable.
  21486. as_me=`$as_basename -- "$0" ||
  21487. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21488. X"$0" : 'X\(//\)$' \| \
  21489. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21490. echo X/"$0" |
  21491. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21492. s//\1/
  21493. q
  21494. }
  21495. /^X\/\(\/\/\)$/{
  21496. s//\1/
  21497. q
  21498. }
  21499. /^X\/\(\/\).*/{
  21500. s//\1/
  21501. q
  21502. }
  21503. s/.*/./; q'`
  21504. # CDPATH.
  21505. $as_unset CDPATH
  21506. as_lineno_1=$LINENO
  21507. as_lineno_2=$LINENO
  21508. test "x$as_lineno_1" != "x$as_lineno_2" &&
  21509. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  21510. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  21511. # uniformly replaced by the line number. The first 'sed' inserts a
  21512. # line-number line after each line using $LINENO; the second 'sed'
  21513. # does the real work. The second script uses 'N' to pair each
  21514. # line-number line with the line containing $LINENO, and appends
  21515. # trailing '-' during substitution so that $LINENO is not a special
  21516. # case at line end.
  21517. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  21518. # scripts with optimization help from Paolo Bonzini. Blame Lee
  21519. # E. McMahon (1931-1989) for sed's syntax. :-)
  21520. sed -n '
  21521. p
  21522. /[$]LINENO/=
  21523. ' <$as_myself |
  21524. sed '
  21525. s/[$]LINENO.*/&-/
  21526. t lineno
  21527. b
  21528. :lineno
  21529. N
  21530. :loop
  21531. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  21532. t loop
  21533. s/-\n.*//
  21534. ' >$as_me.lineno &&
  21535. chmod +x "$as_me.lineno" ||
  21536. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  21537. { (exit 1); exit 1; }; }
  21538. # Don't try to exec as it changes $[0], causing all sort of problems
  21539. # (the dirname of $[0] is not the place where we might find the
  21540. # original and so on. Autoconf is especially sensitive to this).
  21541. . "./$as_me.lineno"
  21542. # Exit status is that of the last command.
  21543. exit
  21544. }
  21545. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21546. as_dirname=dirname
  21547. else
  21548. as_dirname=false
  21549. fi
  21550. ECHO_C= ECHO_N= ECHO_T=
  21551. case `echo -n x` in
  21552. -n*)
  21553. case `echo 'x\c'` in
  21554. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21555. *) ECHO_C='\c';;
  21556. esac;;
  21557. *)
  21558. ECHO_N='-n';;
  21559. esac
  21560. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21561. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21562. as_expr=expr
  21563. else
  21564. as_expr=false
  21565. fi
  21566. rm -f conf$$ conf$$.exe conf$$.file
  21567. if test -d conf$$.dir; then
  21568. rm -f conf$$.dir/conf$$.file
  21569. else
  21570. rm -f conf$$.dir
  21571. mkdir conf$$.dir
  21572. fi
  21573. echo >conf$$.file
  21574. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21575. as_ln_s='ln -s'
  21576. # ... but there are two gotchas:
  21577. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21578. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21579. # In both cases, we have to default to `cp -p'.
  21580. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21581. as_ln_s='cp -p'
  21582. elif ln conf$$.file conf$$ 2>/dev/null; then
  21583. as_ln_s=ln
  21584. else
  21585. as_ln_s='cp -p'
  21586. fi
  21587. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21588. rmdir conf$$.dir 2>/dev/null
  21589. if mkdir -p . 2>/dev/null; then
  21590. as_mkdir_p=:
  21591. else
  21592. test -d ./-p && rmdir ./-p
  21593. as_mkdir_p=false
  21594. fi
  21595. if test -x / >/dev/null 2>&1; then
  21596. as_test_x='test -x'
  21597. else
  21598. if ls -dL / >/dev/null 2>&1; then
  21599. as_ls_L_option=L
  21600. else
  21601. as_ls_L_option=
  21602. fi
  21603. as_test_x='
  21604. eval sh -c '\''
  21605. if test -d "$1"; then
  21606. test -d "$1/.";
  21607. else
  21608. case $1 in
  21609. -*)set "./$1";;
  21610. esac;
  21611. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  21612. ???[sx]*):;;*)false;;esac;fi
  21613. '\'' sh
  21614. '
  21615. fi
  21616. as_executable_p=$as_test_x
  21617. # Sed expression to map a string onto a valid CPP name.
  21618. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21619. # Sed expression to map a string onto a valid variable name.
  21620. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21621. exec 6>&1
  21622. # Save the log message, to keep $[0] and so on meaningful, and to
  21623. # report actual input values of CONFIG_FILES etc. instead of their
  21624. # values after options handling.
  21625. ac_log="
  21626. This file was extended by file $as_me 4.25, which was
  21627. generated by GNU Autoconf 2.61. Invocation command line was
  21628. CONFIG_FILES = $CONFIG_FILES
  21629. CONFIG_HEADERS = $CONFIG_HEADERS
  21630. CONFIG_LINKS = $CONFIG_LINKS
  21631. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21632. $ $0 $@
  21633. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21634. "
  21635. _ACEOF
  21636. cat >>$CONFIG_STATUS <<_ACEOF
  21637. # Files that config.status was made for.
  21638. config_files="$ac_config_files"
  21639. config_headers="$ac_config_headers"
  21640. config_commands="$ac_config_commands"
  21641. _ACEOF
  21642. cat >>$CONFIG_STATUS <<\_ACEOF
  21643. ac_cs_usage="\
  21644. \`$as_me' instantiates files from templates according to the
  21645. current configuration.
  21646. Usage: $0 [OPTIONS] [FILE]...
  21647. -h, --help print this help, then exit
  21648. -V, --version print version number and configuration settings, then exit
  21649. -q, --quiet do not print progress messages
  21650. -d, --debug don't remove temporary files
  21651. --recheck update $as_me by reconfiguring in the same conditions
  21652. --file=FILE[:TEMPLATE]
  21653. instantiate the configuration file FILE
  21654. --header=FILE[:TEMPLATE]
  21655. instantiate the configuration header FILE
  21656. Configuration files:
  21657. $config_files
  21658. Configuration headers:
  21659. $config_headers
  21660. Configuration commands:
  21661. $config_commands
  21662. Report bugs to <bug-autoconf@gnu.org>."
  21663. _ACEOF
  21664. cat >>$CONFIG_STATUS <<_ACEOF
  21665. ac_cs_version="\\
  21666. file config.status 4.25
  21667. configured by $0, generated by GNU Autoconf 2.61,
  21668. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  21669. Copyright (C) 2006 Free Software Foundation, Inc.
  21670. This config.status script is free software; the Free Software Foundation
  21671. gives unlimited permission to copy, distribute and modify it."
  21672. ac_pwd='$ac_pwd'
  21673. srcdir='$srcdir'
  21674. INSTALL='$INSTALL'
  21675. MKDIR_P='$MKDIR_P'
  21676. _ACEOF
  21677. cat >>$CONFIG_STATUS <<\_ACEOF
  21678. # If no file are specified by the user, then we need to provide default
  21679. # value. By we need to know if files were specified by the user.
  21680. ac_need_defaults=:
  21681. while test $# != 0
  21682. do
  21683. case $1 in
  21684. --*=*)
  21685. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21686. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21687. ac_shift=:
  21688. ;;
  21689. *)
  21690. ac_option=$1
  21691. ac_optarg=$2
  21692. ac_shift=shift
  21693. ;;
  21694. esac
  21695. case $ac_option in
  21696. # Handling of the options.
  21697. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21698. ac_cs_recheck=: ;;
  21699. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21700. echo "$ac_cs_version"; exit ;;
  21701. --debug | --debu | --deb | --de | --d | -d )
  21702. debug=: ;;
  21703. --file | --fil | --fi | --f )
  21704. $ac_shift
  21705. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  21706. ac_need_defaults=false;;
  21707. --header | --heade | --head | --hea )
  21708. $ac_shift
  21709. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  21710. ac_need_defaults=false;;
  21711. --he | --h)
  21712. # Conflict between --help and --header
  21713. { echo "$as_me: error: ambiguous option: $1
  21714. Try \`$0 --help' for more information." >&2
  21715. { (exit 1); exit 1; }; };;
  21716. --help | --hel | -h )
  21717. echo "$ac_cs_usage"; exit ;;
  21718. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21719. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21720. ac_cs_silent=: ;;
  21721. # This is an error.
  21722. -*) { echo "$as_me: error: unrecognized option: $1
  21723. Try \`$0 --help' for more information." >&2
  21724. { (exit 1); exit 1; }; } ;;
  21725. *) ac_config_targets="$ac_config_targets $1"
  21726. ac_need_defaults=false ;;
  21727. esac
  21728. shift
  21729. done
  21730. ac_configure_extra_args=
  21731. if $ac_cs_silent; then
  21732. exec 6>/dev/null
  21733. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21734. fi
  21735. _ACEOF
  21736. cat >>$CONFIG_STATUS <<_ACEOF
  21737. if \$ac_cs_recheck; then
  21738. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  21739. CONFIG_SHELL=$SHELL
  21740. export CONFIG_SHELL
  21741. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21742. fi
  21743. _ACEOF
  21744. cat >>$CONFIG_STATUS <<\_ACEOF
  21745. exec 5>>config.log
  21746. {
  21747. echo
  21748. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21749. ## Running $as_me. ##
  21750. _ASBOX
  21751. echo "$ac_log"
  21752. } >&5
  21753. _ACEOF
  21754. cat >>$CONFIG_STATUS <<_ACEOF
  21755. #
  21756. # INIT-COMMANDS
  21757. #
  21758. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  21759. _ACEOF
  21760. cat >>$CONFIG_STATUS <<\_ACEOF
  21761. # Handling of arguments.
  21762. for ac_config_target in $ac_config_targets
  21763. do
  21764. case $ac_config_target in
  21765. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  21766. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  21767. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  21768. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  21769. "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
  21770. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  21771. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  21772. "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
  21773. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  21774. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  21775. { (exit 1); exit 1; }; };;
  21776. esac
  21777. done
  21778. # If the user did not use the arguments to specify the items to instantiate,
  21779. # then the envvar interface is used. Set only those that are not.
  21780. # We use the long form for the default assignment because of an extremely
  21781. # bizarre bug on SunOS 4.1.3.
  21782. if $ac_need_defaults; then
  21783. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  21784. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  21785. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  21786. fi
  21787. # Have a temporary directory for convenience. Make it in the build tree
  21788. # simply because there is no reason against having it here, and in addition,
  21789. # creating and moving files from /tmp can sometimes cause problems.
  21790. # Hook for its removal unless debugging.
  21791. # Note that there is a small window in which the directory will not be cleaned:
  21792. # after its creation but before its name has been assigned to `$tmp'.
  21793. $debug ||
  21794. {
  21795. tmp=
  21796. trap 'exit_status=$?
  21797. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  21798. ' 0
  21799. trap '{ (exit 1); exit 1; }' 1 2 13 15
  21800. }
  21801. # Create a (secure) tmp directory for tmp files.
  21802. {
  21803. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  21804. test -n "$tmp" && test -d "$tmp"
  21805. } ||
  21806. {
  21807. tmp=./conf$$-$RANDOM
  21808. (umask 077 && mkdir "$tmp")
  21809. } ||
  21810. {
  21811. echo "$me: cannot create a temporary directory in ." >&2
  21812. { (exit 1); exit 1; }
  21813. }
  21814. #
  21815. # Set up the sed scripts for CONFIG_FILES section.
  21816. #
  21817. # No need to generate the scripts if there are no CONFIG_FILES.
  21818. # This happens for instance when ./config.status config.h
  21819. if test -n "$CONFIG_FILES"; then
  21820. _ACEOF
  21821. ac_delim='%!_!# '
  21822. for ac_last_try in false false false false false :; do
  21823. cat >conf$$subs.sed <<_ACEOF
  21824. SHELL!$SHELL$ac_delim
  21825. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  21826. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  21827. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  21828. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  21829. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  21830. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  21831. exec_prefix!$exec_prefix$ac_delim
  21832. prefix!$prefix$ac_delim
  21833. program_transform_name!$program_transform_name$ac_delim
  21834. bindir!$bindir$ac_delim
  21835. sbindir!$sbindir$ac_delim
  21836. libexecdir!$libexecdir$ac_delim
  21837. datarootdir!$datarootdir$ac_delim
  21838. datadir!$datadir$ac_delim
  21839. sysconfdir!$sysconfdir$ac_delim
  21840. sharedstatedir!$sharedstatedir$ac_delim
  21841. localstatedir!$localstatedir$ac_delim
  21842. includedir!$includedir$ac_delim
  21843. oldincludedir!$oldincludedir$ac_delim
  21844. docdir!$docdir$ac_delim
  21845. infodir!$infodir$ac_delim
  21846. htmldir!$htmldir$ac_delim
  21847. dvidir!$dvidir$ac_delim
  21848. pdfdir!$pdfdir$ac_delim
  21849. psdir!$psdir$ac_delim
  21850. libdir!$libdir$ac_delim
  21851. localedir!$localedir$ac_delim
  21852. mandir!$mandir$ac_delim
  21853. DEFS!$DEFS$ac_delim
  21854. ECHO_C!$ECHO_C$ac_delim
  21855. ECHO_N!$ECHO_N$ac_delim
  21856. ECHO_T!$ECHO_T$ac_delim
  21857. LIBS!$LIBS$ac_delim
  21858. build_alias!$build_alias$ac_delim
  21859. host_alias!$host_alias$ac_delim
  21860. target_alias!$target_alias$ac_delim
  21861. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  21862. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  21863. INSTALL_DATA!$INSTALL_DATA$ac_delim
  21864. am__isrc!$am__isrc$ac_delim
  21865. CYGPATH_W!$CYGPATH_W$ac_delim
  21866. PACKAGE!$PACKAGE$ac_delim
  21867. VERSION!$VERSION$ac_delim
  21868. ACLOCAL!$ACLOCAL$ac_delim
  21869. AUTOCONF!$AUTOCONF$ac_delim
  21870. AUTOMAKE!$AUTOMAKE$ac_delim
  21871. AUTOHEADER!$AUTOHEADER$ac_delim
  21872. MAKEINFO!$MAKEINFO$ac_delim
  21873. install_sh!$install_sh$ac_delim
  21874. STRIP!$STRIP$ac_delim
  21875. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  21876. mkdir_p!$mkdir_p$ac_delim
  21877. AWK!$AWK$ac_delim
  21878. SET_MAKE!$SET_MAKE$ac_delim
  21879. am__leading_dot!$am__leading_dot$ac_delim
  21880. AMTAR!$AMTAR$ac_delim
  21881. am__tar!$am__tar$ac_delim
  21882. am__untar!$am__untar$ac_delim
  21883. fsect!$fsect$ac_delim
  21884. FSECT5_TRUE!$FSECT5_TRUE$ac_delim
  21885. FSECT5_FALSE!$FSECT5_FALSE$ac_delim
  21886. CC!$CC$ac_delim
  21887. CFLAGS!$CFLAGS$ac_delim
  21888. LDFLAGS!$LDFLAGS$ac_delim
  21889. CPPFLAGS!$CPPFLAGS$ac_delim
  21890. ac_ct_CC!$ac_ct_CC$ac_delim
  21891. EXEEXT!$EXEEXT$ac_delim
  21892. OBJEXT!$OBJEXT$ac_delim
  21893. DEPDIR!$DEPDIR$ac_delim
  21894. am__include!$am__include$ac_delim
  21895. am__quote!$am__quote$ac_delim
  21896. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  21897. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  21898. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  21899. CCDEPMODE!$CCDEPMODE$ac_delim
  21900. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  21901. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  21902. LN_S!$LN_S$ac_delim
  21903. build!$build$ac_delim
  21904. build_cpu!$build_cpu$ac_delim
  21905. build_vendor!$build_vendor$ac_delim
  21906. build_os!$build_os$ac_delim
  21907. host!$host$ac_delim
  21908. host_cpu!$host_cpu$ac_delim
  21909. host_vendor!$host_vendor$ac_delim
  21910. host_os!$host_os$ac_delim
  21911. GREP!$GREP$ac_delim
  21912. EGREP!$EGREP$ac_delim
  21913. ECHO!$ECHO$ac_delim
  21914. AR!$AR$ac_delim
  21915. RANLIB!$RANLIB$ac_delim
  21916. CPP!$CPP$ac_delim
  21917. CXX!$CXX$ac_delim
  21918. CXXFLAGS!$CXXFLAGS$ac_delim
  21919. ac_ct_CXX!$ac_ct_CXX$ac_delim
  21920. CXXDEPMODE!$CXXDEPMODE$ac_delim
  21921. _ACEOF
  21922. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  21923. break
  21924. elif $ac_last_try; then
  21925. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21926. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21927. { (exit 1); exit 1; }; }
  21928. else
  21929. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21930. fi
  21931. done
  21932. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  21933. if test -n "$ac_eof"; then
  21934. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  21935. ac_eof=`expr $ac_eof + 1`
  21936. fi
  21937. cat >>$CONFIG_STATUS <<_ACEOF
  21938. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  21939. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21940. _ACEOF
  21941. sed '
  21942. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  21943. s/^/s,@/; s/!/@,|#_!!_#|/
  21944. :n
  21945. t n
  21946. s/'"$ac_delim"'$/,g/; t
  21947. s/$/\\/; p
  21948. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  21949. ' >>$CONFIG_STATUS <conf$$subs.sed
  21950. rm -f conf$$subs.sed
  21951. cat >>$CONFIG_STATUS <<_ACEOF
  21952. CEOF$ac_eof
  21953. _ACEOF
  21954. ac_delim='%!_!# '
  21955. for ac_last_try in false false false false false :; do
  21956. cat >conf$$subs.sed <<_ACEOF
  21957. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  21958. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  21959. CXXCPP!$CXXCPP$ac_delim
  21960. F77!$F77$ac_delim
  21961. FFLAGS!$FFLAGS$ac_delim
  21962. ac_ct_F77!$ac_ct_F77$ac_delim
  21963. LIBTOOL!$LIBTOOL$ac_delim
  21964. LIBOBJS!$LIBOBJS$ac_delim
  21965. IS_CROSS_COMPILE_TRUE!$IS_CROSS_COMPILE_TRUE$ac_delim
  21966. IS_CROSS_COMPILE_FALSE!$IS_CROSS_COMPILE_FALSE$ac_delim
  21967. LTLIBOBJS!$LTLIBOBJS$ac_delim
  21968. _ACEOF
  21969. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
  21970. break
  21971. elif $ac_last_try; then
  21972. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21973. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21974. { (exit 1); exit 1; }; }
  21975. else
  21976. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21977. fi
  21978. done
  21979. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  21980. if test -n "$ac_eof"; then
  21981. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  21982. ac_eof=`expr $ac_eof + 1`
  21983. fi
  21984. cat >>$CONFIG_STATUS <<_ACEOF
  21985. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  21986. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  21987. _ACEOF
  21988. sed '
  21989. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  21990. s/^/s,@/; s/!/@,|#_!!_#|/
  21991. :n
  21992. t n
  21993. s/'"$ac_delim"'$/,g/; t
  21994. s/$/\\/; p
  21995. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  21996. ' >>$CONFIG_STATUS <conf$$subs.sed
  21997. rm -f conf$$subs.sed
  21998. cat >>$CONFIG_STATUS <<_ACEOF
  21999. :end
  22000. s/|#_!!_#|//g
  22001. CEOF$ac_eof
  22002. _ACEOF
  22003. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  22004. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  22005. # trailing colons and then remove the whole line if VPATH becomes empty
  22006. # (actually we leave an empty line to preserve line numbers).
  22007. if test "x$srcdir" = x.; then
  22008. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  22009. s/:*\$(srcdir):*/:/
  22010. s/:*\${srcdir}:*/:/
  22011. s/:*@srcdir@:*/:/
  22012. s/^\([^=]*=[ ]*\):*/\1/
  22013. s/:*$//
  22014. s/^[^=]*=[ ]*$//
  22015. }'
  22016. fi
  22017. cat >>$CONFIG_STATUS <<\_ACEOF
  22018. fi # test -n "$CONFIG_FILES"
  22019. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  22020. do
  22021. case $ac_tag in
  22022. :[FHLC]) ac_mode=$ac_tag; continue;;
  22023. esac
  22024. case $ac_mode$ac_tag in
  22025. :[FHL]*:*);;
  22026. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  22027. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  22028. { (exit 1); exit 1; }; };;
  22029. :[FH]-) ac_tag=-:-;;
  22030. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  22031. esac
  22032. ac_save_IFS=$IFS
  22033. IFS=:
  22034. set x $ac_tag
  22035. IFS=$ac_save_IFS
  22036. shift
  22037. ac_file=$1
  22038. shift
  22039. case $ac_mode in
  22040. :L) ac_source=$1;;
  22041. :[FH])
  22042. ac_file_inputs=
  22043. for ac_f
  22044. do
  22045. case $ac_f in
  22046. -) ac_f="$tmp/stdin";;
  22047. *) # Look for the file first in the build tree, then in the source tree
  22048. # (if the path is not absolute). The absolute path cannot be DOS-style,
  22049. # because $ac_f cannot contain `:'.
  22050. test -f "$ac_f" ||
  22051. case $ac_f in
  22052. [\\/$]*) false;;
  22053. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  22054. esac ||
  22055. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  22056. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  22057. { (exit 1); exit 1; }; };;
  22058. esac
  22059. ac_file_inputs="$ac_file_inputs $ac_f"
  22060. done
  22061. # Let's still pretend it is `configure' which instantiates (i.e., don't
  22062. # use $as_me), people would be surprised to read:
  22063. # /* config.h. Generated by config.status. */
  22064. configure_input="Generated from "`IFS=:
  22065. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  22066. if test x"$ac_file" != x-; then
  22067. configure_input="$ac_file. $configure_input"
  22068. { echo "$as_me:$LINENO: creating $ac_file" >&5
  22069. echo "$as_me: creating $ac_file" >&6;}
  22070. fi
  22071. case $ac_tag in
  22072. *:-:* | *:-) cat >"$tmp/stdin";;
  22073. esac
  22074. ;;
  22075. esac
  22076. ac_dir=`$as_dirname -- "$ac_file" ||
  22077. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22078. X"$ac_file" : 'X\(//\)[^/]' \| \
  22079. X"$ac_file" : 'X\(//\)$' \| \
  22080. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  22081. echo X"$ac_file" |
  22082. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22083. s//\1/
  22084. q
  22085. }
  22086. /^X\(\/\/\)[^/].*/{
  22087. s//\1/
  22088. q
  22089. }
  22090. /^X\(\/\/\)$/{
  22091. s//\1/
  22092. q
  22093. }
  22094. /^X\(\/\).*/{
  22095. s//\1/
  22096. q
  22097. }
  22098. s/.*/./; q'`
  22099. { as_dir="$ac_dir"
  22100. case $as_dir in #(
  22101. -*) as_dir=./$as_dir;;
  22102. esac
  22103. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  22104. as_dirs=
  22105. while :; do
  22106. case $as_dir in #(
  22107. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  22108. *) as_qdir=$as_dir;;
  22109. esac
  22110. as_dirs="'$as_qdir' $as_dirs"
  22111. as_dir=`$as_dirname -- "$as_dir" ||
  22112. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22113. X"$as_dir" : 'X\(//\)[^/]' \| \
  22114. X"$as_dir" : 'X\(//\)$' \| \
  22115. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22116. echo X"$as_dir" |
  22117. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22118. s//\1/
  22119. q
  22120. }
  22121. /^X\(\/\/\)[^/].*/{
  22122. s//\1/
  22123. q
  22124. }
  22125. /^X\(\/\/\)$/{
  22126. s//\1/
  22127. q
  22128. }
  22129. /^X\(\/\).*/{
  22130. s//\1/
  22131. q
  22132. }
  22133. s/.*/./; q'`
  22134. test -d "$as_dir" && break
  22135. done
  22136. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22137. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  22138. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  22139. { (exit 1); exit 1; }; }; }
  22140. ac_builddir=.
  22141. case "$ac_dir" in
  22142. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22143. *)
  22144. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  22145. # A ".." for each directory in $ac_dir_suffix.
  22146. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  22147. case $ac_top_builddir_sub in
  22148. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22149. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  22150. esac ;;
  22151. esac
  22152. ac_abs_top_builddir=$ac_pwd
  22153. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  22154. # for backward compatibility:
  22155. ac_top_builddir=$ac_top_build_prefix
  22156. case $srcdir in
  22157. .) # We are building in place.
  22158. ac_srcdir=.
  22159. ac_top_srcdir=$ac_top_builddir_sub
  22160. ac_abs_top_srcdir=$ac_pwd ;;
  22161. [\\/]* | ?:[\\/]* ) # Absolute name.
  22162. ac_srcdir=$srcdir$ac_dir_suffix;
  22163. ac_top_srcdir=$srcdir
  22164. ac_abs_top_srcdir=$srcdir ;;
  22165. *) # Relative name.
  22166. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  22167. ac_top_srcdir=$ac_top_build_prefix$srcdir
  22168. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  22169. esac
  22170. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  22171. case $ac_mode in
  22172. :F)
  22173. #
  22174. # CONFIG_FILE
  22175. #
  22176. case $INSTALL in
  22177. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  22178. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  22179. esac
  22180. ac_MKDIR_P=$MKDIR_P
  22181. case $MKDIR_P in
  22182. [\\/$]* | ?:[\\/]* ) ;;
  22183. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  22184. esac
  22185. _ACEOF
  22186. cat >>$CONFIG_STATUS <<\_ACEOF
  22187. # If the template does not know about datarootdir, expand it.
  22188. # FIXME: This hack should be removed a few years after 2.60.
  22189. ac_datarootdir_hack=; ac_datarootdir_seen=
  22190. case `sed -n '/datarootdir/ {
  22191. p
  22192. q
  22193. }
  22194. /@datadir@/p
  22195. /@docdir@/p
  22196. /@infodir@/p
  22197. /@localedir@/p
  22198. /@mandir@/p
  22199. ' $ac_file_inputs` in
  22200. *datarootdir*) ac_datarootdir_seen=yes;;
  22201. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  22202. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  22203. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  22204. _ACEOF
  22205. cat >>$CONFIG_STATUS <<_ACEOF
  22206. ac_datarootdir_hack='
  22207. s&@datadir@&$datadir&g
  22208. s&@docdir@&$docdir&g
  22209. s&@infodir@&$infodir&g
  22210. s&@localedir@&$localedir&g
  22211. s&@mandir@&$mandir&g
  22212. s&\\\${datarootdir}&$datarootdir&g' ;;
  22213. esac
  22214. _ACEOF
  22215. # Neutralize VPATH when `$srcdir' = `.'.
  22216. # Shell code in configure.ac might set extrasub.
  22217. # FIXME: do we really want to maintain this feature?
  22218. cat >>$CONFIG_STATUS <<_ACEOF
  22219. sed "$ac_vpsub
  22220. $extrasub
  22221. _ACEOF
  22222. cat >>$CONFIG_STATUS <<\_ACEOF
  22223. :t
  22224. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22225. s&@configure_input@&$configure_input&;t t
  22226. s&@top_builddir@&$ac_top_builddir_sub&;t t
  22227. s&@srcdir@&$ac_srcdir&;t t
  22228. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  22229. s&@top_srcdir@&$ac_top_srcdir&;t t
  22230. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  22231. s&@builddir@&$ac_builddir&;t t
  22232. s&@abs_builddir@&$ac_abs_builddir&;t t
  22233. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  22234. s&@INSTALL@&$ac_INSTALL&;t t
  22235. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  22236. $ac_datarootdir_hack
  22237. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  22238. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  22239. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  22240. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  22241. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22242. which seems to be undefined. Please make sure it is defined." >&5
  22243. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22244. which seems to be undefined. Please make sure it is defined." >&2;}
  22245. rm -f "$tmp/stdin"
  22246. case $ac_file in
  22247. -) cat "$tmp/out"; rm -f "$tmp/out";;
  22248. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  22249. esac
  22250. ;;
  22251. :H)
  22252. #
  22253. # CONFIG_HEADER
  22254. #
  22255. _ACEOF
  22256. # Transform confdefs.h into a sed script `conftest.defines', that
  22257. # substitutes the proper values into config.h.in to produce config.h.
  22258. rm -f conftest.defines conftest.tail
  22259. # First, append a space to every undef/define line, to ease matching.
  22260. echo 's/$/ /' >conftest.defines
  22261. # Then, protect against being on the right side of a sed subst, or in
  22262. # an unquoted here document, in config.status. If some macros were
  22263. # called several times there might be several #defines for the same
  22264. # symbol, which is useless. But do not sort them, since the last
  22265. # AC_DEFINE must be honored.
  22266. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22267. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  22268. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  22269. # PARAMS is the parameter list in the macro definition--in most cases, it's
  22270. # just an empty string.
  22271. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  22272. ac_dB='\\)[ (].*,\\1define\\2'
  22273. ac_dC=' '
  22274. ac_dD=' ,'
  22275. uniq confdefs.h |
  22276. sed -n '
  22277. t rset
  22278. :rset
  22279. s/^[ ]*#[ ]*define[ ][ ]*//
  22280. t ok
  22281. d
  22282. :ok
  22283. s/[\\&,]/\\&/g
  22284. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  22285. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  22286. ' >>conftest.defines
  22287. # Remove the space that was appended to ease matching.
  22288. # Then replace #undef with comments. This is necessary, for
  22289. # example, in the case of _POSIX_SOURCE, which is predefined and required
  22290. # on some systems where configure will not decide to define it.
  22291. # (The regexp can be short, since the line contains either #define or #undef.)
  22292. echo 's/ $//
  22293. s,^[ #]*u.*,/* & */,' >>conftest.defines
  22294. # Break up conftest.defines:
  22295. ac_max_sed_lines=50
  22296. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  22297. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  22298. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  22299. # et cetera.
  22300. ac_in='$ac_file_inputs'
  22301. ac_out='"$tmp/out1"'
  22302. ac_nxt='"$tmp/out2"'
  22303. while :
  22304. do
  22305. # Write a here document:
  22306. cat >>$CONFIG_STATUS <<_ACEOF
  22307. # First, check the format of the line:
  22308. cat >"\$tmp/defines.sed" <<\\CEOF
  22309. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  22310. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  22311. b
  22312. :def
  22313. _ACEOF
  22314. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  22315. echo 'CEOF
  22316. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  22317. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  22318. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  22319. grep . conftest.tail >/dev/null || break
  22320. rm -f conftest.defines
  22321. mv conftest.tail conftest.defines
  22322. done
  22323. rm -f conftest.defines conftest.tail
  22324. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  22325. cat >>$CONFIG_STATUS <<\_ACEOF
  22326. if test x"$ac_file" != x-; then
  22327. echo "/* $configure_input */" >"$tmp/config.h"
  22328. cat "$ac_result" >>"$tmp/config.h"
  22329. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  22330. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  22331. echo "$as_me: $ac_file is unchanged" >&6;}
  22332. else
  22333. rm -f $ac_file
  22334. mv "$tmp/config.h" $ac_file
  22335. fi
  22336. else
  22337. echo "/* $configure_input */"
  22338. cat "$ac_result"
  22339. fi
  22340. rm -f "$tmp/out12"
  22341. # Compute $ac_file's index in $config_headers.
  22342. _am_stamp_count=1
  22343. for _am_header in $config_headers :; do
  22344. case $_am_header in
  22345. $ac_file | $ac_file:* )
  22346. break ;;
  22347. * )
  22348. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  22349. esac
  22350. done
  22351. echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  22352. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22353. X$ac_file : 'X\(//\)[^/]' \| \
  22354. X$ac_file : 'X\(//\)$' \| \
  22355. X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  22356. echo X$ac_file |
  22357. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22358. s//\1/
  22359. q
  22360. }
  22361. /^X\(\/\/\)[^/].*/{
  22362. s//\1/
  22363. q
  22364. }
  22365. /^X\(\/\/\)$/{
  22366. s//\1/
  22367. q
  22368. }
  22369. /^X\(\/\).*/{
  22370. s//\1/
  22371. q
  22372. }
  22373. s/.*/./; q'`/stamp-h$_am_stamp_count
  22374. ;;
  22375. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  22376. echo "$as_me: executing $ac_file commands" >&6;}
  22377. ;;
  22378. esac
  22379. case $ac_file$ac_mode in
  22380. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  22381. # Strip MF so we end up with the name of the file.
  22382. mf=`echo "$mf" | sed -e 's/:.*$//'`
  22383. # Check whether this is an Automake generated Makefile or not.
  22384. # We used to match only the files named `Makefile.in', but
  22385. # some people rename them; so instead we look at the file content.
  22386. # Grep'ing the first line is not enough: some people post-process
  22387. # each Makefile.in and add a new line on top of each file to say so.
  22388. # Grep'ing the whole file is not good either: AIX grep has a line
  22389. # limit of 2048, but all sed's we know have understand at least 4000.
  22390. if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
  22391. dirpart=`$as_dirname -- "$mf" ||
  22392. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22393. X"$mf" : 'X\(//\)[^/]' \| \
  22394. X"$mf" : 'X\(//\)$' \| \
  22395. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  22396. echo X"$mf" |
  22397. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22398. s//\1/
  22399. q
  22400. }
  22401. /^X\(\/\/\)[^/].*/{
  22402. s//\1/
  22403. q
  22404. }
  22405. /^X\(\/\/\)$/{
  22406. s//\1/
  22407. q
  22408. }
  22409. /^X\(\/\).*/{
  22410. s//\1/
  22411. q
  22412. }
  22413. s/.*/./; q'`
  22414. else
  22415. continue
  22416. fi
  22417. # Extract the definition of DEPDIR, am__include, and am__quote
  22418. # from the Makefile without running `make'.
  22419. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  22420. test -z "$DEPDIR" && continue
  22421. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  22422. test -z "am__include" && continue
  22423. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  22424. # When using ansi2knr, U may be empty or an underscore; expand it
  22425. U=`sed -n 's/^U = //p' < "$mf"`
  22426. # Find all dependency output files, they are included files with
  22427. # $(DEPDIR) in their names. We invoke sed twice because it is the
  22428. # simplest approach to changing $(DEPDIR) to its actual value in the
  22429. # expansion.
  22430. for file in `sed -n "
  22431. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  22432. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  22433. # Make sure the directory exists.
  22434. test -f "$dirpart/$file" && continue
  22435. fdir=`$as_dirname -- "$file" ||
  22436. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22437. X"$file" : 'X\(//\)[^/]' \| \
  22438. X"$file" : 'X\(//\)$' \| \
  22439. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  22440. echo X"$file" |
  22441. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22442. s//\1/
  22443. q
  22444. }
  22445. /^X\(\/\/\)[^/].*/{
  22446. s//\1/
  22447. q
  22448. }
  22449. /^X\(\/\/\)$/{
  22450. s//\1/
  22451. q
  22452. }
  22453. /^X\(\/\).*/{
  22454. s//\1/
  22455. q
  22456. }
  22457. s/.*/./; q'`
  22458. { as_dir=$dirpart/$fdir
  22459. case $as_dir in #(
  22460. -*) as_dir=./$as_dir;;
  22461. esac
  22462. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  22463. as_dirs=
  22464. while :; do
  22465. case $as_dir in #(
  22466. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  22467. *) as_qdir=$as_dir;;
  22468. esac
  22469. as_dirs="'$as_qdir' $as_dirs"
  22470. as_dir=`$as_dirname -- "$as_dir" ||
  22471. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22472. X"$as_dir" : 'X\(//\)[^/]' \| \
  22473. X"$as_dir" : 'X\(//\)$' \| \
  22474. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22475. echo X"$as_dir" |
  22476. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22477. s//\1/
  22478. q
  22479. }
  22480. /^X\(\/\/\)[^/].*/{
  22481. s//\1/
  22482. q
  22483. }
  22484. /^X\(\/\/\)$/{
  22485. s//\1/
  22486. q
  22487. }
  22488. /^X\(\/\).*/{
  22489. s//\1/
  22490. q
  22491. }
  22492. s/.*/./; q'`
  22493. test -d "$as_dir" && break
  22494. done
  22495. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22496. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  22497. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  22498. { (exit 1); exit 1; }; }; }
  22499. # echo "creating $dirpart/$file"
  22500. echo '# dummy' > "$dirpart/$file"
  22501. done
  22502. done
  22503. ;;
  22504. esac
  22505. done # for ac_tag
  22506. { (exit 0); exit 0; }
  22507. _ACEOF
  22508. chmod +x $CONFIG_STATUS
  22509. ac_clean_files=$ac_clean_files_save
  22510. # configure is writing to config.log, and then calls config.status.
  22511. # config.status does its own redirection, appending to config.log.
  22512. # Unfortunately, on DOS this fails, as config.log is still kept open
  22513. # by configure, so config.status won't be able to write to it; its
  22514. # output is simply discarded. So we exec the FD to /dev/null,
  22515. # effectively closing config.log, so it can be properly (re)opened and
  22516. # appended to by config.status. When coming back to configure, we
  22517. # need to make the FD available again.
  22518. if test "$no_create" != yes; then
  22519. ac_cs_success=:
  22520. ac_config_status_args=
  22521. test "$silent" = yes &&
  22522. ac_config_status_args="$ac_config_status_args --quiet"
  22523. exec 5>/dev/null
  22524. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  22525. exec 5>>config.log
  22526. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  22527. # would make configure fail if this is the last instruction.
  22528. $ac_cs_success || { (exit 1); exit 1; }
  22529. fi