configure 784 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for file 5.00.
  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='5.00'
  632. PACKAGE_STRING='file 5.00'
  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. WARNINGS
  732. CC
  733. CFLAGS
  734. LDFLAGS
  735. CPPFLAGS
  736. ac_ct_CC
  737. EXEEXT
  738. OBJEXT
  739. DEPDIR
  740. am__include
  741. am__quote
  742. AMDEP_TRUE
  743. AMDEP_FALSE
  744. AMDEPBACKSLASH
  745. CCDEPMODE
  746. am__fastdepCC_TRUE
  747. am__fastdepCC_FALSE
  748. LN_S
  749. build
  750. build_cpu
  751. build_vendor
  752. build_os
  753. host
  754. host_cpu
  755. host_vendor
  756. host_os
  757. GREP
  758. EGREP
  759. ECHO
  760. AR
  761. RANLIB
  762. CPP
  763. CXX
  764. CXXFLAGS
  765. ac_ct_CXX
  766. CXXDEPMODE
  767. am__fastdepCXX_TRUE
  768. am__fastdepCXX_FALSE
  769. CXXCPP
  770. F77
  771. FFLAGS
  772. ac_ct_F77
  773. LIBTOOL
  774. LIBOBJS
  775. IS_CROSS_COMPILE_TRUE
  776. IS_CROSS_COMPILE_FALSE
  777. LTLIBOBJS'
  778. ac_subst_files=''
  779. ac_precious_vars='build_alias
  780. host_alias
  781. target_alias
  782. CC
  783. CFLAGS
  784. LDFLAGS
  785. LIBS
  786. CPPFLAGS
  787. CPP
  788. CXX
  789. CXXFLAGS
  790. CCC
  791. CXXCPP
  792. F77
  793. FFLAGS'
  794. # Initialize some variables set by options.
  795. ac_init_help=
  796. ac_init_version=false
  797. # The variables have the same names as the options, with
  798. # dashes changed to underlines.
  799. cache_file=/dev/null
  800. exec_prefix=NONE
  801. no_create=
  802. no_recursion=
  803. prefix=NONE
  804. program_prefix=NONE
  805. program_suffix=NONE
  806. program_transform_name=s,x,x,
  807. silent=
  808. site=
  809. srcdir=
  810. verbose=
  811. x_includes=NONE
  812. x_libraries=NONE
  813. # Installation directory options.
  814. # These are left unexpanded so users can "make install exec_prefix=/foo"
  815. # and all the variables that are supposed to be based on exec_prefix
  816. # by default will actually change.
  817. # Use braces instead of parens because sh, perl, etc. also accept them.
  818. # (The list follows the same order as the GNU Coding Standards.)
  819. bindir='${exec_prefix}/bin'
  820. sbindir='${exec_prefix}/sbin'
  821. libexecdir='${exec_prefix}/libexec'
  822. datarootdir='${prefix}/share'
  823. datadir='${datarootdir}'
  824. sysconfdir='${prefix}/etc'
  825. sharedstatedir='${prefix}/com'
  826. localstatedir='${prefix}/var'
  827. includedir='${prefix}/include'
  828. oldincludedir='/usr/include'
  829. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  830. infodir='${datarootdir}/info'
  831. htmldir='${docdir}'
  832. dvidir='${docdir}'
  833. pdfdir='${docdir}'
  834. psdir='${docdir}'
  835. libdir='${exec_prefix}/lib'
  836. localedir='${datarootdir}/locale'
  837. mandir='${datarootdir}/man'
  838. ac_prev=
  839. ac_dashdash=
  840. for ac_option
  841. do
  842. # If the previous option needs an argument, assign it.
  843. if test -n "$ac_prev"; then
  844. eval $ac_prev=\$ac_option
  845. ac_prev=
  846. continue
  847. fi
  848. case $ac_option in
  849. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  850. *) ac_optarg=yes ;;
  851. esac
  852. # Accept the important Cygnus configure options, so we can diagnose typos.
  853. case $ac_dashdash$ac_option in
  854. --)
  855. ac_dashdash=yes ;;
  856. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  857. ac_prev=bindir ;;
  858. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  859. bindir=$ac_optarg ;;
  860. -build | --build | --buil | --bui | --bu)
  861. ac_prev=build_alias ;;
  862. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  863. build_alias=$ac_optarg ;;
  864. -cache-file | --cache-file | --cache-fil | --cache-fi \
  865. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  866. ac_prev=cache_file ;;
  867. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  868. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  869. cache_file=$ac_optarg ;;
  870. --config-cache | -C)
  871. cache_file=config.cache ;;
  872. -datadir | --datadir | --datadi | --datad)
  873. ac_prev=datadir ;;
  874. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  875. datadir=$ac_optarg ;;
  876. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  877. | --dataroo | --dataro | --datar)
  878. ac_prev=datarootdir ;;
  879. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  880. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  881. datarootdir=$ac_optarg ;;
  882. -disable-* | --disable-*)
  883. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  884. # Reject names that are not valid shell variable names.
  885. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  886. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  887. { (exit 1); exit 1; }; }
  888. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  889. eval enable_$ac_feature=no ;;
  890. -docdir | --docdir | --docdi | --doc | --do)
  891. ac_prev=docdir ;;
  892. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  893. docdir=$ac_optarg ;;
  894. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  895. ac_prev=dvidir ;;
  896. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  897. dvidir=$ac_optarg ;;
  898. -enable-* | --enable-*)
  899. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  900. # Reject names that are not valid shell variable names.
  901. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  902. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  903. { (exit 1); exit 1; }; }
  904. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  905. eval enable_$ac_feature=\$ac_optarg ;;
  906. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  907. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  908. | --exec | --exe | --ex)
  909. ac_prev=exec_prefix ;;
  910. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  911. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  912. | --exec=* | --exe=* | --ex=*)
  913. exec_prefix=$ac_optarg ;;
  914. -gas | --gas | --ga | --g)
  915. # Obsolete; use --with-gas.
  916. with_gas=yes ;;
  917. -help | --help | --hel | --he | -h)
  918. ac_init_help=long ;;
  919. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  920. ac_init_help=recursive ;;
  921. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  922. ac_init_help=short ;;
  923. -host | --host | --hos | --ho)
  924. ac_prev=host_alias ;;
  925. -host=* | --host=* | --hos=* | --ho=*)
  926. host_alias=$ac_optarg ;;
  927. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  928. ac_prev=htmldir ;;
  929. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  930. | --ht=*)
  931. htmldir=$ac_optarg ;;
  932. -includedir | --includedir | --includedi | --included | --include \
  933. | --includ | --inclu | --incl | --inc)
  934. ac_prev=includedir ;;
  935. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  936. | --includ=* | --inclu=* | --incl=* | --inc=*)
  937. includedir=$ac_optarg ;;
  938. -infodir | --infodir | --infodi | --infod | --info | --inf)
  939. ac_prev=infodir ;;
  940. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  941. infodir=$ac_optarg ;;
  942. -libdir | --libdir | --libdi | --libd)
  943. ac_prev=libdir ;;
  944. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  945. libdir=$ac_optarg ;;
  946. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  947. | --libexe | --libex | --libe)
  948. ac_prev=libexecdir ;;
  949. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  950. | --libexe=* | --libex=* | --libe=*)
  951. libexecdir=$ac_optarg ;;
  952. -localedir | --localedir | --localedi | --localed | --locale)
  953. ac_prev=localedir ;;
  954. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  955. localedir=$ac_optarg ;;
  956. -localstatedir | --localstatedir | --localstatedi | --localstated \
  957. | --localstate | --localstat | --localsta | --localst | --locals)
  958. ac_prev=localstatedir ;;
  959. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  960. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  961. localstatedir=$ac_optarg ;;
  962. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  963. ac_prev=mandir ;;
  964. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  965. mandir=$ac_optarg ;;
  966. -nfp | --nfp | --nf)
  967. # Obsolete; use --without-fp.
  968. with_fp=no ;;
  969. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  970. | --no-cr | --no-c | -n)
  971. no_create=yes ;;
  972. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  973. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  974. no_recursion=yes ;;
  975. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  976. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  977. | --oldin | --oldi | --old | --ol | --o)
  978. ac_prev=oldincludedir ;;
  979. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  980. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  981. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  982. oldincludedir=$ac_optarg ;;
  983. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  984. ac_prev=prefix ;;
  985. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  986. prefix=$ac_optarg ;;
  987. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  988. | --program-pre | --program-pr | --program-p)
  989. ac_prev=program_prefix ;;
  990. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  991. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  992. program_prefix=$ac_optarg ;;
  993. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  994. | --program-suf | --program-su | --program-s)
  995. ac_prev=program_suffix ;;
  996. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  997. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  998. program_suffix=$ac_optarg ;;
  999. -program-transform-name | --program-transform-name \
  1000. | --program-transform-nam | --program-transform-na \
  1001. | --program-transform-n | --program-transform- \
  1002. | --program-transform | --program-transfor \
  1003. | --program-transfo | --program-transf \
  1004. | --program-trans | --program-tran \
  1005. | --progr-tra | --program-tr | --program-t)
  1006. ac_prev=program_transform_name ;;
  1007. -program-transform-name=* | --program-transform-name=* \
  1008. | --program-transform-nam=* | --program-transform-na=* \
  1009. | --program-transform-n=* | --program-transform-=* \
  1010. | --program-transform=* | --program-transfor=* \
  1011. | --program-transfo=* | --program-transf=* \
  1012. | --program-trans=* | --program-tran=* \
  1013. | --progr-tra=* | --program-tr=* | --program-t=*)
  1014. program_transform_name=$ac_optarg ;;
  1015. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1016. ac_prev=pdfdir ;;
  1017. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1018. pdfdir=$ac_optarg ;;
  1019. -psdir | --psdir | --psdi | --psd | --ps)
  1020. ac_prev=psdir ;;
  1021. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1022. psdir=$ac_optarg ;;
  1023. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1024. | -silent | --silent | --silen | --sile | --sil)
  1025. silent=yes ;;
  1026. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1027. ac_prev=sbindir ;;
  1028. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1029. | --sbi=* | --sb=*)
  1030. sbindir=$ac_optarg ;;
  1031. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1032. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1033. | --sharedst | --shareds | --shared | --share | --shar \
  1034. | --sha | --sh)
  1035. ac_prev=sharedstatedir ;;
  1036. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1037. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1038. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1039. | --sha=* | --sh=*)
  1040. sharedstatedir=$ac_optarg ;;
  1041. -site | --site | --sit)
  1042. ac_prev=site ;;
  1043. -site=* | --site=* | --sit=*)
  1044. site=$ac_optarg ;;
  1045. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1046. ac_prev=srcdir ;;
  1047. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1048. srcdir=$ac_optarg ;;
  1049. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1050. | --syscon | --sysco | --sysc | --sys | --sy)
  1051. ac_prev=sysconfdir ;;
  1052. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1053. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1054. sysconfdir=$ac_optarg ;;
  1055. -target | --target | --targe | --targ | --tar | --ta | --t)
  1056. ac_prev=target_alias ;;
  1057. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1058. target_alias=$ac_optarg ;;
  1059. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1060. verbose=yes ;;
  1061. -version | --version | --versio | --versi | --vers | -V)
  1062. ac_init_version=: ;;
  1063. -with-* | --with-*)
  1064. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1065. # Reject names that are not valid shell variable names.
  1066. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1067. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1068. { (exit 1); exit 1; }; }
  1069. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1070. eval with_$ac_package=\$ac_optarg ;;
  1071. -without-* | --without-*)
  1072. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1073. # Reject names that are not valid shell variable names.
  1074. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1075. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1076. { (exit 1); exit 1; }; }
  1077. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1078. eval with_$ac_package=no ;;
  1079. --x)
  1080. # Obsolete; use --with-x.
  1081. with_x=yes ;;
  1082. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1083. | --x-incl | --x-inc | --x-in | --x-i)
  1084. ac_prev=x_includes ;;
  1085. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1086. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1087. x_includes=$ac_optarg ;;
  1088. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1089. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1090. ac_prev=x_libraries ;;
  1091. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1092. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1093. x_libraries=$ac_optarg ;;
  1094. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1095. Try \`$0 --help' for more information." >&2
  1096. { (exit 1); exit 1; }; }
  1097. ;;
  1098. *=*)
  1099. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1100. # Reject names that are not valid shell variable names.
  1101. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1102. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1103. { (exit 1); exit 1; }; }
  1104. eval $ac_envvar=\$ac_optarg
  1105. export $ac_envvar ;;
  1106. *)
  1107. # FIXME: should be removed in autoconf 3.0.
  1108. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1109. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1110. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1111. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1112. ;;
  1113. esac
  1114. done
  1115. if test -n "$ac_prev"; then
  1116. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1117. { echo "$as_me: error: missing argument to $ac_option" >&2
  1118. { (exit 1); exit 1; }; }
  1119. fi
  1120. # Be sure to have absolute directory names.
  1121. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1122. datadir sysconfdir sharedstatedir localstatedir includedir \
  1123. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1124. libdir localedir mandir
  1125. do
  1126. eval ac_val=\$$ac_var
  1127. case $ac_val in
  1128. [\\/$]* | ?:[\\/]* ) continue;;
  1129. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1130. esac
  1131. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1132. { (exit 1); exit 1; }; }
  1133. done
  1134. # There might be people who depend on the old broken behavior: `$host'
  1135. # used to hold the argument of --host etc.
  1136. # FIXME: To remove some day.
  1137. build=$build_alias
  1138. host=$host_alias
  1139. target=$target_alias
  1140. # FIXME: To remove some day.
  1141. if test "x$host_alias" != x; then
  1142. if test "x$build_alias" = x; then
  1143. cross_compiling=maybe
  1144. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1145. If a cross compiler is detected then cross compile mode will be used." >&2
  1146. elif test "x$build_alias" != "x$host_alias"; then
  1147. cross_compiling=yes
  1148. fi
  1149. fi
  1150. ac_tool_prefix=
  1151. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1152. test "$silent" = yes && exec 6>/dev/null
  1153. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1154. ac_ls_di=`ls -di .` &&
  1155. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1156. { echo "$as_me: error: Working directory cannot be determined" >&2
  1157. { (exit 1); exit 1; }; }
  1158. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1159. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1160. { (exit 1); exit 1; }; }
  1161. # Find the source files, if location was not specified.
  1162. if test -z "$srcdir"; then
  1163. ac_srcdir_defaulted=yes
  1164. # Try the directory containing this script, then the parent directory.
  1165. ac_confdir=`$as_dirname -- "$0" ||
  1166. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1167. X"$0" : 'X\(//\)[^/]' \| \
  1168. X"$0" : 'X\(//\)$' \| \
  1169. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1170. echo X"$0" |
  1171. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1172. s//\1/
  1173. q
  1174. }
  1175. /^X\(\/\/\)[^/].*/{
  1176. s//\1/
  1177. q
  1178. }
  1179. /^X\(\/\/\)$/{
  1180. s//\1/
  1181. q
  1182. }
  1183. /^X\(\/\).*/{
  1184. s//\1/
  1185. q
  1186. }
  1187. s/.*/./; q'`
  1188. srcdir=$ac_confdir
  1189. if test ! -r "$srcdir/$ac_unique_file"; then
  1190. srcdir=..
  1191. fi
  1192. else
  1193. ac_srcdir_defaulted=no
  1194. fi
  1195. if test ! -r "$srcdir/$ac_unique_file"; then
  1196. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1197. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1198. { (exit 1); exit 1; }; }
  1199. fi
  1200. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1201. ac_abs_confdir=`(
  1202. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1203. { (exit 1); exit 1; }; }
  1204. pwd)`
  1205. # When building in place, set srcdir=.
  1206. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1207. srcdir=.
  1208. fi
  1209. # Remove unnecessary trailing slashes from srcdir.
  1210. # Double slashes in file names in object file debugging info
  1211. # mess up M-x gdb in Emacs.
  1212. case $srcdir in
  1213. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1214. esac
  1215. for ac_var in $ac_precious_vars; do
  1216. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1217. eval ac_env_${ac_var}_value=\$${ac_var}
  1218. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1219. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1220. done
  1221. #
  1222. # Report the --help message.
  1223. #
  1224. if test "$ac_init_help" = "long"; then
  1225. # Omit some internal or obsolete options to make the list less imposing.
  1226. # This message is too long to be a string in the A/UX 3.1 sh.
  1227. cat <<_ACEOF
  1228. \`configure' configures file 5.00 to adapt to many kinds of systems.
  1229. Usage: $0 [OPTION]... [VAR=VALUE]...
  1230. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1231. VAR=VALUE. See below for descriptions of some of the useful variables.
  1232. Defaults for the options are specified in brackets.
  1233. Configuration:
  1234. -h, --help display this help and exit
  1235. --help=short display options specific to this package
  1236. --help=recursive display the short help of all the included packages
  1237. -V, --version display version information and exit
  1238. -q, --quiet, --silent do not print \`checking...' messages
  1239. --cache-file=FILE cache test results in FILE [disabled]
  1240. -C, --config-cache alias for \`--cache-file=config.cache'
  1241. -n, --no-create do not create output files
  1242. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1243. Installation directories:
  1244. --prefix=PREFIX install architecture-independent files in PREFIX
  1245. [$ac_default_prefix]
  1246. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1247. [PREFIX]
  1248. By default, \`make install' will install all the files in
  1249. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1250. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1251. for instance \`--prefix=\$HOME'.
  1252. For better control, use the options below.
  1253. Fine tuning of the installation directories:
  1254. --bindir=DIR user executables [EPREFIX/bin]
  1255. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1256. --libexecdir=DIR program executables [EPREFIX/libexec]
  1257. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1258. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1259. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1260. --libdir=DIR object code libraries [EPREFIX/lib]
  1261. --includedir=DIR C header files [PREFIX/include]
  1262. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1263. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1264. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1265. --infodir=DIR info documentation [DATAROOTDIR/info]
  1266. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1267. --mandir=DIR man documentation [DATAROOTDIR/man]
  1268. --docdir=DIR documentation root [DATAROOTDIR/doc/file]
  1269. --htmldir=DIR html documentation [DOCDIR]
  1270. --dvidir=DIR dvi documentation [DOCDIR]
  1271. --pdfdir=DIR pdf documentation [DOCDIR]
  1272. --psdir=DIR ps documentation [DOCDIR]
  1273. _ACEOF
  1274. cat <<\_ACEOF
  1275. Program names:
  1276. --program-prefix=PREFIX prepend PREFIX to installed program names
  1277. --program-suffix=SUFFIX append SUFFIX to installed program names
  1278. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1279. System types:
  1280. --build=BUILD configure for building on BUILD [guessed]
  1281. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1282. _ACEOF
  1283. fi
  1284. if test -n "$ac_init_help"; then
  1285. case $ac_init_help in
  1286. short | recursive ) echo "Configuration of file 5.00:";;
  1287. esac
  1288. cat <<\_ACEOF
  1289. Optional Features:
  1290. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1291. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1292. --disable-elf disable builtin ELF support
  1293. --disable-elf-core disable ELF core file support
  1294. --enable-fsect-man5 enable file formats in man section 5
  1295. --disable-dependency-tracking speeds up one-time build
  1296. --enable-dependency-tracking do not reject slow dependency extractors
  1297. --enable-shared[=PKGS] build shared libraries [default=yes]
  1298. --enable-static[=PKGS] build static libraries [default=yes]
  1299. --enable-fast-install[=PKGS]
  1300. optimize for fast installation [default=yes]
  1301. --disable-libtool-lock avoid locking (might break parallel builds)
  1302. --disable-largefile omit support for large files
  1303. --disable-warnings disable compiler warnings
  1304. Optional Packages:
  1305. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1306. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1307. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1308. --with-pic try to use only PIC/non-PIC objects [default=use
  1309. both]
  1310. --with-tags[=TAGS] include additional configurations [automatic]
  1311. Some influential environment variables:
  1312. CC C compiler command
  1313. CFLAGS C compiler flags
  1314. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1315. nonstandard directory <lib dir>
  1316. LIBS libraries to pass to the linker, e.g. -l<library>
  1317. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1318. you have headers in a nonstandard directory <include dir>
  1319. CPP C preprocessor
  1320. CXX C++ compiler command
  1321. CXXFLAGS C++ compiler flags
  1322. CXXCPP C++ preprocessor
  1323. F77 Fortran 77 compiler command
  1324. FFLAGS Fortran 77 compiler flags
  1325. Use these variables to override the choices made by `configure' or to help
  1326. it to find libraries and programs with nonstandard names/locations.
  1327. Report bugs to <christos@astron.com>.
  1328. _ACEOF
  1329. ac_status=$?
  1330. fi
  1331. if test "$ac_init_help" = "recursive"; then
  1332. # If there are subdirs, report their specific --help.
  1333. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1334. test -d "$ac_dir" || continue
  1335. ac_builddir=.
  1336. case "$ac_dir" in
  1337. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1338. *)
  1339. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1340. # A ".." for each directory in $ac_dir_suffix.
  1341. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1342. case $ac_top_builddir_sub in
  1343. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1344. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1345. esac ;;
  1346. esac
  1347. ac_abs_top_builddir=$ac_pwd
  1348. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1349. # for backward compatibility:
  1350. ac_top_builddir=$ac_top_build_prefix
  1351. case $srcdir in
  1352. .) # We are building in place.
  1353. ac_srcdir=.
  1354. ac_top_srcdir=$ac_top_builddir_sub
  1355. ac_abs_top_srcdir=$ac_pwd ;;
  1356. [\\/]* | ?:[\\/]* ) # Absolute name.
  1357. ac_srcdir=$srcdir$ac_dir_suffix;
  1358. ac_top_srcdir=$srcdir
  1359. ac_abs_top_srcdir=$srcdir ;;
  1360. *) # Relative name.
  1361. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1362. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1363. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1364. esac
  1365. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1366. cd "$ac_dir" || { ac_status=$?; continue; }
  1367. # Check for guested configure.
  1368. if test -f "$ac_srcdir/configure.gnu"; then
  1369. echo &&
  1370. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1371. elif test -f "$ac_srcdir/configure"; then
  1372. echo &&
  1373. $SHELL "$ac_srcdir/configure" --help=recursive
  1374. else
  1375. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1376. fi || ac_status=$?
  1377. cd "$ac_pwd" || { ac_status=$?; break; }
  1378. done
  1379. fi
  1380. test -n "$ac_init_help" && exit $ac_status
  1381. if $ac_init_version; then
  1382. cat <<\_ACEOF
  1383. file configure 5.00
  1384. generated by GNU Autoconf 2.61
  1385. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1386. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1387. This configure script is free software; the Free Software Foundation
  1388. gives unlimited permission to copy, distribute and modify it.
  1389. _ACEOF
  1390. exit
  1391. fi
  1392. cat >config.log <<_ACEOF
  1393. This file contains any messages produced by compilers while
  1394. running configure, to aid debugging if configure makes a mistake.
  1395. It was created by file $as_me 5.00, which was
  1396. generated by GNU Autoconf 2.61. Invocation command line was
  1397. $ $0 $@
  1398. _ACEOF
  1399. exec 5>>config.log
  1400. {
  1401. cat <<_ASUNAME
  1402. ## --------- ##
  1403. ## Platform. ##
  1404. ## --------- ##
  1405. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1406. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1407. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1408. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1409. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1410. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1411. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1412. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1413. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1414. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1415. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1416. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1417. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1418. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1419. _ASUNAME
  1420. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1421. for as_dir in $PATH
  1422. do
  1423. IFS=$as_save_IFS
  1424. test -z "$as_dir" && as_dir=.
  1425. echo "PATH: $as_dir"
  1426. done
  1427. IFS=$as_save_IFS
  1428. } >&5
  1429. cat >&5 <<_ACEOF
  1430. ## ----------- ##
  1431. ## Core tests. ##
  1432. ## ----------- ##
  1433. _ACEOF
  1434. # Keep a trace of the command line.
  1435. # Strip out --no-create and --no-recursion so they do not pile up.
  1436. # Strip out --silent because we don't want to record it for future runs.
  1437. # Also quote any args containing shell meta-characters.
  1438. # Make two passes to allow for proper duplicate-argument suppression.
  1439. ac_configure_args=
  1440. ac_configure_args0=
  1441. ac_configure_args1=
  1442. ac_must_keep_next=false
  1443. for ac_pass in 1 2
  1444. do
  1445. for ac_arg
  1446. do
  1447. case $ac_arg in
  1448. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1449. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1450. | -silent | --silent | --silen | --sile | --sil)
  1451. continue ;;
  1452. *\'*)
  1453. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1454. esac
  1455. case $ac_pass in
  1456. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1457. 2)
  1458. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1459. if test $ac_must_keep_next = true; then
  1460. ac_must_keep_next=false # Got value, back to normal.
  1461. else
  1462. case $ac_arg in
  1463. *=* | --config-cache | -C | -disable-* | --disable-* \
  1464. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1465. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1466. | -with-* | --with-* | -without-* | --without-* | --x)
  1467. case "$ac_configure_args0 " in
  1468. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1469. esac
  1470. ;;
  1471. -* ) ac_must_keep_next=true ;;
  1472. esac
  1473. fi
  1474. ac_configure_args="$ac_configure_args '$ac_arg'"
  1475. ;;
  1476. esac
  1477. done
  1478. done
  1479. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1480. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1481. # When interrupted or exit'd, cleanup temporary files, and complete
  1482. # config.log. We remove comments because anyway the quotes in there
  1483. # would cause problems or look ugly.
  1484. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1485. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1486. trap 'exit_status=$?
  1487. # Save into config.log some information that might help in debugging.
  1488. {
  1489. echo
  1490. cat <<\_ASBOX
  1491. ## ---------------- ##
  1492. ## Cache variables. ##
  1493. ## ---------------- ##
  1494. _ASBOX
  1495. echo
  1496. # The following way of writing the cache mishandles newlines in values,
  1497. (
  1498. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1499. eval ac_val=\$$ac_var
  1500. case $ac_val in #(
  1501. *${as_nl}*)
  1502. case $ac_var in #(
  1503. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1504. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1505. esac
  1506. case $ac_var in #(
  1507. _ | IFS | as_nl) ;; #(
  1508. *) $as_unset $ac_var ;;
  1509. esac ;;
  1510. esac
  1511. done
  1512. (set) 2>&1 |
  1513. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1514. *${as_nl}ac_space=\ *)
  1515. sed -n \
  1516. "s/'\''/'\''\\\\'\'''\''/g;
  1517. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1518. ;; #(
  1519. *)
  1520. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1521. ;;
  1522. esac |
  1523. sort
  1524. )
  1525. echo
  1526. cat <<\_ASBOX
  1527. ## ----------------- ##
  1528. ## Output variables. ##
  1529. ## ----------------- ##
  1530. _ASBOX
  1531. echo
  1532. for ac_var in $ac_subst_vars
  1533. do
  1534. eval ac_val=\$$ac_var
  1535. case $ac_val in
  1536. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1537. esac
  1538. echo "$ac_var='\''$ac_val'\''"
  1539. done | sort
  1540. echo
  1541. if test -n "$ac_subst_files"; then
  1542. cat <<\_ASBOX
  1543. ## ------------------- ##
  1544. ## File substitutions. ##
  1545. ## ------------------- ##
  1546. _ASBOX
  1547. echo
  1548. for ac_var in $ac_subst_files
  1549. do
  1550. eval ac_val=\$$ac_var
  1551. case $ac_val in
  1552. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1553. esac
  1554. echo "$ac_var='\''$ac_val'\''"
  1555. done | sort
  1556. echo
  1557. fi
  1558. if test -s confdefs.h; then
  1559. cat <<\_ASBOX
  1560. ## ----------- ##
  1561. ## confdefs.h. ##
  1562. ## ----------- ##
  1563. _ASBOX
  1564. echo
  1565. cat confdefs.h
  1566. echo
  1567. fi
  1568. test "$ac_signal" != 0 &&
  1569. echo "$as_me: caught signal $ac_signal"
  1570. echo "$as_me: exit $exit_status"
  1571. } >&5
  1572. rm -f core *.core core.conftest.* &&
  1573. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1574. exit $exit_status
  1575. ' 0
  1576. for ac_signal in 1 2 13 15; do
  1577. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1578. done
  1579. ac_signal=0
  1580. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1581. rm -f -r conftest* confdefs.h
  1582. # Predefined preprocessor variables.
  1583. cat >>confdefs.h <<_ACEOF
  1584. #define PACKAGE_NAME "$PACKAGE_NAME"
  1585. _ACEOF
  1586. cat >>confdefs.h <<_ACEOF
  1587. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1588. _ACEOF
  1589. cat >>confdefs.h <<_ACEOF
  1590. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1591. _ACEOF
  1592. cat >>confdefs.h <<_ACEOF
  1593. #define PACKAGE_STRING "$PACKAGE_STRING"
  1594. _ACEOF
  1595. cat >>confdefs.h <<_ACEOF
  1596. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1597. _ACEOF
  1598. # Let the site file select an alternate cache file if it wants to.
  1599. # Prefer explicitly selected file to automatically selected ones.
  1600. if test -n "$CONFIG_SITE"; then
  1601. set x "$CONFIG_SITE"
  1602. elif test "x$prefix" != xNONE; then
  1603. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1604. else
  1605. set x "$ac_default_prefix/share/config.site" \
  1606. "$ac_default_prefix/etc/config.site"
  1607. fi
  1608. shift
  1609. for ac_site_file
  1610. do
  1611. if test -r "$ac_site_file"; then
  1612. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1613. echo "$as_me: loading site script $ac_site_file" >&6;}
  1614. sed 's/^/| /' "$ac_site_file" >&5
  1615. . "$ac_site_file"
  1616. fi
  1617. done
  1618. if test -r "$cache_file"; then
  1619. # Some versions of bash will fail to source /dev/null (special
  1620. # files actually), so we avoid doing that.
  1621. if test -f "$cache_file"; then
  1622. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1623. echo "$as_me: loading cache $cache_file" >&6;}
  1624. case $cache_file in
  1625. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1626. *) . "./$cache_file";;
  1627. esac
  1628. fi
  1629. else
  1630. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1631. echo "$as_me: creating cache $cache_file" >&6;}
  1632. >$cache_file
  1633. fi
  1634. # Check that the precious variables saved in the cache have kept the same
  1635. # value.
  1636. ac_cache_corrupted=false
  1637. for ac_var in $ac_precious_vars; do
  1638. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1639. eval ac_new_set=\$ac_env_${ac_var}_set
  1640. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1641. eval ac_new_val=\$ac_env_${ac_var}_value
  1642. case $ac_old_set,$ac_new_set in
  1643. set,)
  1644. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1645. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1646. ac_cache_corrupted=: ;;
  1647. ,set)
  1648. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1649. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1650. ac_cache_corrupted=: ;;
  1651. ,);;
  1652. *)
  1653. if test "x$ac_old_val" != "x$ac_new_val"; then
  1654. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1655. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1656. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1657. echo "$as_me: former value: $ac_old_val" >&2;}
  1658. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1659. echo "$as_me: current value: $ac_new_val" >&2;}
  1660. ac_cache_corrupted=:
  1661. fi;;
  1662. esac
  1663. # Pass precious variables to config.status.
  1664. if test "$ac_new_set" = set; then
  1665. case $ac_new_val in
  1666. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1667. *) ac_arg=$ac_var=$ac_new_val ;;
  1668. esac
  1669. case " $ac_configure_args " in
  1670. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1671. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1672. esac
  1673. fi
  1674. done
  1675. if $ac_cache_corrupted; then
  1676. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1677. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1678. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1679. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1680. { (exit 1); exit 1; }; }
  1681. fi
  1682. ac_ext=c
  1683. ac_cpp='$CPP $CPPFLAGS'
  1684. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1685. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1686. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1687. am__api_version='1.10'
  1688. ac_aux_dir=
  1689. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1690. if test -f "$ac_dir/install-sh"; then
  1691. ac_aux_dir=$ac_dir
  1692. ac_install_sh="$ac_aux_dir/install-sh -c"
  1693. break
  1694. elif test -f "$ac_dir/install.sh"; then
  1695. ac_aux_dir=$ac_dir
  1696. ac_install_sh="$ac_aux_dir/install.sh -c"
  1697. break
  1698. elif test -f "$ac_dir/shtool"; then
  1699. ac_aux_dir=$ac_dir
  1700. ac_install_sh="$ac_aux_dir/shtool install -c"
  1701. break
  1702. fi
  1703. done
  1704. if test -z "$ac_aux_dir"; then
  1705. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1706. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1707. { (exit 1); exit 1; }; }
  1708. fi
  1709. # These three variables are undocumented and unsupported,
  1710. # and are intended to be withdrawn in a future Autoconf release.
  1711. # They can cause serious problems if a builder's source tree is in a directory
  1712. # whose full name contains unusual characters.
  1713. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1714. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1715. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1716. # Find a good install program. We prefer a C program (faster),
  1717. # so one script is as good as another. But avoid the broken or
  1718. # incompatible versions:
  1719. # SysV /etc/install, /usr/sbin/install
  1720. # SunOS /usr/etc/install
  1721. # IRIX /sbin/install
  1722. # AIX /bin/install
  1723. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1724. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1725. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1726. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1727. # OS/2's system install, which has a completely different semantic
  1728. # ./install, which can be erroneously created by make from ./install.sh.
  1729. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1730. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1731. if test -z "$INSTALL"; then
  1732. if test "${ac_cv_path_install+set}" = set; then
  1733. echo $ECHO_N "(cached) $ECHO_C" >&6
  1734. else
  1735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1736. for as_dir in $PATH
  1737. do
  1738. IFS=$as_save_IFS
  1739. test -z "$as_dir" && as_dir=.
  1740. # Account for people who put trailing slashes in PATH elements.
  1741. case $as_dir/ in
  1742. ./ | .// | /cC/* | \
  1743. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1744. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1745. /usr/ucb/* ) ;;
  1746. *)
  1747. # OSF1 and SCO ODT 3.0 have their own names for install.
  1748. # Don't use installbsd from OSF since it installs stuff as root
  1749. # by default.
  1750. for ac_prog in ginstall scoinst install; do
  1751. for ac_exec_ext in '' $ac_executable_extensions; do
  1752. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1753. if test $ac_prog = install &&
  1754. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1755. # AIX install. It has an incompatible calling convention.
  1756. :
  1757. elif test $ac_prog = install &&
  1758. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1759. # program-specific install script used by HP pwplus--don't use.
  1760. :
  1761. else
  1762. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1763. break 3
  1764. fi
  1765. fi
  1766. done
  1767. done
  1768. ;;
  1769. esac
  1770. done
  1771. IFS=$as_save_IFS
  1772. fi
  1773. if test "${ac_cv_path_install+set}" = set; then
  1774. INSTALL=$ac_cv_path_install
  1775. else
  1776. # As a last resort, use the slow shell script. Don't cache a
  1777. # value for INSTALL within a source directory, because that will
  1778. # break other packages using the cache if that directory is
  1779. # removed, or if the value is a relative name.
  1780. INSTALL=$ac_install_sh
  1781. fi
  1782. fi
  1783. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1784. echo "${ECHO_T}$INSTALL" >&6; }
  1785. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1786. # It thinks the first close brace ends the variable substitution.
  1787. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1788. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1789. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1790. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1791. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1792. # Just in case
  1793. sleep 1
  1794. echo timestamp > conftest.file
  1795. # Do `set' in a subshell so we don't clobber the current shell's
  1796. # arguments. Must try -L first in case configure is actually a
  1797. # symlink; some systems play weird games with the mod time of symlinks
  1798. # (eg FreeBSD returns the mod time of the symlink's containing
  1799. # directory).
  1800. if (
  1801. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1802. if test "$*" = "X"; then
  1803. # -L didn't work.
  1804. set X `ls -t $srcdir/configure conftest.file`
  1805. fi
  1806. rm -f conftest.file
  1807. if test "$*" != "X $srcdir/configure conftest.file" \
  1808. && test "$*" != "X conftest.file $srcdir/configure"; then
  1809. # If neither matched, then we have a broken ls. This can happen
  1810. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1811. # broken ls alias from the environment. This has actually
  1812. # happened. Such a system could not be considered "sane".
  1813. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1814. alias in your environment" >&5
  1815. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1816. alias in your environment" >&2;}
  1817. { (exit 1); exit 1; }; }
  1818. fi
  1819. test "$2" = conftest.file
  1820. )
  1821. then
  1822. # Ok.
  1823. :
  1824. else
  1825. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1826. Check your system clock" >&5
  1827. echo "$as_me: error: newly created file is older than distributed files!
  1828. Check your system clock" >&2;}
  1829. { (exit 1); exit 1; }; }
  1830. fi
  1831. { echo "$as_me:$LINENO: result: yes" >&5
  1832. echo "${ECHO_T}yes" >&6; }
  1833. test "$program_prefix" != NONE &&
  1834. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1835. # Use a double $ so make ignores it.
  1836. test "$program_suffix" != NONE &&
  1837. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1838. # Double any \ or $. echo might interpret backslashes.
  1839. # By default was `s,x,x', remove it if useless.
  1840. cat <<\_ACEOF >conftest.sed
  1841. s/[\\$]/&&/g;s/;s,x,x,$//
  1842. _ACEOF
  1843. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1844. rm -f conftest.sed
  1845. # expand $ac_aux_dir to an absolute path
  1846. am_aux_dir=`cd $ac_aux_dir && pwd`
  1847. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1848. # Use eval to expand $SHELL
  1849. if eval "$MISSING --run true"; then
  1850. am_missing_run="$MISSING --run "
  1851. else
  1852. am_missing_run=
  1853. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1854. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1855. fi
  1856. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1857. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  1858. if test -z "$MKDIR_P"; then
  1859. if test "${ac_cv_path_mkdir+set}" = set; then
  1860. echo $ECHO_N "(cached) $ECHO_C" >&6
  1861. else
  1862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1863. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  1864. do
  1865. IFS=$as_save_IFS
  1866. test -z "$as_dir" && as_dir=.
  1867. for ac_prog in mkdir gmkdir; do
  1868. for ac_exec_ext in '' $ac_executable_extensions; do
  1869. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  1870. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  1871. 'mkdir (GNU coreutils) '* | \
  1872. 'mkdir (coreutils) '* | \
  1873. 'mkdir (fileutils) '4.1*)
  1874. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  1875. break 3;;
  1876. esac
  1877. done
  1878. done
  1879. done
  1880. IFS=$as_save_IFS
  1881. fi
  1882. if test "${ac_cv_path_mkdir+set}" = set; then
  1883. MKDIR_P="$ac_cv_path_mkdir -p"
  1884. else
  1885. # As a last resort, use the slow shell script. Don't cache a
  1886. # value for MKDIR_P within a source directory, because that will
  1887. # break other packages using the cache if that directory is
  1888. # removed, or if the value is a relative name.
  1889. test -d ./--version && rmdir ./--version
  1890. MKDIR_P="$ac_install_sh -d"
  1891. fi
  1892. fi
  1893. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  1894. echo "${ECHO_T}$MKDIR_P" >&6; }
  1895. mkdir_p="$MKDIR_P"
  1896. case $mkdir_p in
  1897. [\\/$]* | ?:[\\/]*) ;;
  1898. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  1899. esac
  1900. for ac_prog in gawk mawk nawk awk
  1901. do
  1902. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1903. set dummy $ac_prog; ac_word=$2
  1904. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1905. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1906. if test "${ac_cv_prog_AWK+set}" = set; then
  1907. echo $ECHO_N "(cached) $ECHO_C" >&6
  1908. else
  1909. if test -n "$AWK"; then
  1910. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1911. else
  1912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1913. for as_dir in $PATH
  1914. do
  1915. IFS=$as_save_IFS
  1916. test -z "$as_dir" && as_dir=.
  1917. for ac_exec_ext in '' $ac_executable_extensions; do
  1918. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1919. ac_cv_prog_AWK="$ac_prog"
  1920. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1921. break 2
  1922. fi
  1923. done
  1924. done
  1925. IFS=$as_save_IFS
  1926. fi
  1927. fi
  1928. AWK=$ac_cv_prog_AWK
  1929. if test -n "$AWK"; then
  1930. { echo "$as_me:$LINENO: result: $AWK" >&5
  1931. echo "${ECHO_T}$AWK" >&6; }
  1932. else
  1933. { echo "$as_me:$LINENO: result: no" >&5
  1934. echo "${ECHO_T}no" >&6; }
  1935. fi
  1936. test -n "$AWK" && break
  1937. done
  1938. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1939. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  1940. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  1941. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  1942. echo $ECHO_N "(cached) $ECHO_C" >&6
  1943. else
  1944. cat >conftest.make <<\_ACEOF
  1945. SHELL = /bin/sh
  1946. all:
  1947. @echo '@@@%%%=$(MAKE)=@@@%%%'
  1948. _ACEOF
  1949. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1950. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  1951. *@@@%%%=?*=@@@%%%*)
  1952. eval ac_cv_prog_make_${ac_make}_set=yes;;
  1953. *)
  1954. eval ac_cv_prog_make_${ac_make}_set=no;;
  1955. esac
  1956. rm -f conftest.make
  1957. fi
  1958. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  1959. { echo "$as_me:$LINENO: result: yes" >&5
  1960. echo "${ECHO_T}yes" >&6; }
  1961. SET_MAKE=
  1962. else
  1963. { echo "$as_me:$LINENO: result: no" >&5
  1964. echo "${ECHO_T}no" >&6; }
  1965. SET_MAKE="MAKE=${MAKE-make}"
  1966. fi
  1967. rm -rf .tst 2>/dev/null
  1968. mkdir .tst 2>/dev/null
  1969. if test -d .tst; then
  1970. am__leading_dot=.
  1971. else
  1972. am__leading_dot=_
  1973. fi
  1974. rmdir .tst 2>/dev/null
  1975. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  1976. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  1977. # is not polluted with repeated "-I."
  1978. am__isrc=' -I$(srcdir)'
  1979. # test to see if srcdir already configured
  1980. if test -f $srcdir/config.status; then
  1981. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1982. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1983. { (exit 1); exit 1; }; }
  1984. fi
  1985. fi
  1986. # test whether we have cygpath
  1987. if test -z "$CYGPATH_W"; then
  1988. if (cygpath --version) >/dev/null 2>/dev/null; then
  1989. CYGPATH_W='cygpath -w'
  1990. else
  1991. CYGPATH_W=echo
  1992. fi
  1993. fi
  1994. # Define the identity of the package.
  1995. PACKAGE='file'
  1996. VERSION='5.00'
  1997. cat >>confdefs.h <<_ACEOF
  1998. #define PACKAGE "$PACKAGE"
  1999. _ACEOF
  2000. cat >>confdefs.h <<_ACEOF
  2001. #define VERSION "$VERSION"
  2002. _ACEOF
  2003. # Some tools Automake needs.
  2004. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2005. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2006. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2007. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2008. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2009. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2010. # Installed binaries are usually stripped using `strip' when the user
  2011. # run `make install-strip'. However `strip' might not be the right
  2012. # tool to use in cross-compilation environments, therefore Automake
  2013. # will honor the `STRIP' environment variable to overrule this program.
  2014. if test "$cross_compiling" != no; then
  2015. if test -n "$ac_tool_prefix"; then
  2016. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2017. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2018. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2019. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2020. if test "${ac_cv_prog_STRIP+set}" = set; then
  2021. echo $ECHO_N "(cached) $ECHO_C" >&6
  2022. else
  2023. if test -n "$STRIP"; then
  2024. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2025. else
  2026. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2027. for as_dir in $PATH
  2028. do
  2029. IFS=$as_save_IFS
  2030. test -z "$as_dir" && as_dir=.
  2031. for ac_exec_ext in '' $ac_executable_extensions; do
  2032. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2033. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2034. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2035. break 2
  2036. fi
  2037. done
  2038. done
  2039. IFS=$as_save_IFS
  2040. fi
  2041. fi
  2042. STRIP=$ac_cv_prog_STRIP
  2043. if test -n "$STRIP"; then
  2044. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2045. echo "${ECHO_T}$STRIP" >&6; }
  2046. else
  2047. { echo "$as_me:$LINENO: result: no" >&5
  2048. echo "${ECHO_T}no" >&6; }
  2049. fi
  2050. fi
  2051. if test -z "$ac_cv_prog_STRIP"; then
  2052. ac_ct_STRIP=$STRIP
  2053. # Extract the first word of "strip", so it can be a program name with args.
  2054. set dummy strip; ac_word=$2
  2055. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2056. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2057. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2058. echo $ECHO_N "(cached) $ECHO_C" >&6
  2059. else
  2060. if test -n "$ac_ct_STRIP"; then
  2061. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2062. else
  2063. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2064. for as_dir in $PATH
  2065. do
  2066. IFS=$as_save_IFS
  2067. test -z "$as_dir" && as_dir=.
  2068. for ac_exec_ext in '' $ac_executable_extensions; do
  2069. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2070. ac_cv_prog_ac_ct_STRIP="strip"
  2071. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2072. break 2
  2073. fi
  2074. done
  2075. done
  2076. IFS=$as_save_IFS
  2077. fi
  2078. fi
  2079. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2080. if test -n "$ac_ct_STRIP"; then
  2081. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2082. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2083. else
  2084. { echo "$as_me:$LINENO: result: no" >&5
  2085. echo "${ECHO_T}no" >&6; }
  2086. fi
  2087. if test "x$ac_ct_STRIP" = x; then
  2088. STRIP=":"
  2089. else
  2090. case $cross_compiling:$ac_tool_warned in
  2091. yes:)
  2092. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2093. whose name does not start with the host triplet. If you think this
  2094. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2095. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2096. whose name does not start with the host triplet. If you think this
  2097. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2098. ac_tool_warned=yes ;;
  2099. esac
  2100. STRIP=$ac_ct_STRIP
  2101. fi
  2102. else
  2103. STRIP="$ac_cv_prog_STRIP"
  2104. fi
  2105. fi
  2106. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2107. # We need awk for the "check" target. The system "awk" is bad on
  2108. # some platforms.
  2109. # Always define AMTAR for backward compatibility.
  2110. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2111. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2112. ac_config_headers="$ac_config_headers config.h"
  2113. { echo "$as_me:$LINENO: checking for builtin ELF support" >&5
  2114. echo $ECHO_N "checking for builtin ELF support... $ECHO_C" >&6; }
  2115. # Check whether --enable-elf was given.
  2116. if test "${enable_elf+set}" = set; then
  2117. enableval=$enable_elf; if test "${enableval}" = yes; then
  2118. { echo "$as_me:$LINENO: result: yes" >&5
  2119. echo "${ECHO_T}yes" >&6; }
  2120. cat >>confdefs.h <<\_ACEOF
  2121. #define BUILTIN_ELF 1
  2122. _ACEOF
  2123. else
  2124. { echo "$as_me:$LINENO: result: no" >&5
  2125. echo "${ECHO_T}no" >&6; }
  2126. fi
  2127. else
  2128. # enable by default
  2129. { echo "$as_me:$LINENO: result: yes" >&5
  2130. echo "${ECHO_T}yes" >&6; }
  2131. cat >>confdefs.h <<\_ACEOF
  2132. #define BUILTIN_ELF 1
  2133. _ACEOF
  2134. fi
  2135. { echo "$as_me:$LINENO: checking for ELF core file support" >&5
  2136. echo $ECHO_N "checking for ELF core file support... $ECHO_C" >&6; }
  2137. # Check whether --enable-elf-core was given.
  2138. if test "${enable_elf_core+set}" = set; then
  2139. enableval=$enable_elf_core; if test "${enableval}" = yes; then
  2140. { echo "$as_me:$LINENO: result: yes" >&5
  2141. echo "${ECHO_T}yes" >&6; }
  2142. cat >>confdefs.h <<\_ACEOF
  2143. #define ELFCORE 1
  2144. _ACEOF
  2145. else
  2146. { echo "$as_me:$LINENO: result: no" >&5
  2147. echo "${ECHO_T}no" >&6; }
  2148. fi
  2149. else
  2150. # enable by default
  2151. { echo "$as_me:$LINENO: result: yes" >&5
  2152. echo "${ECHO_T}yes" >&6; }
  2153. cat >>confdefs.h <<\_ACEOF
  2154. #define ELFCORE 1
  2155. _ACEOF
  2156. fi
  2157. { echo "$as_me:$LINENO: checking for file formats in man section 5" >&5
  2158. echo $ECHO_N "checking for file formats in man section 5... $ECHO_C" >&6; }
  2159. # Check whether --enable-fsect-man5 was given.
  2160. if test "${enable_fsect_man5+set}" = set; then
  2161. enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
  2162. { echo "$as_me:$LINENO: result: yes" >&5
  2163. echo "${ECHO_T}yes" >&6; }
  2164. fsect=5
  2165. else
  2166. { echo "$as_me:$LINENO: result: no" >&5
  2167. echo "${ECHO_T}no" >&6; }
  2168. fsect=4
  2169. fi
  2170. else
  2171. # disable by default
  2172. { echo "$as_me:$LINENO: result: no" >&5
  2173. echo "${ECHO_T}no" >&6; }
  2174. fsect=4
  2175. fi
  2176. if test x$fsect = x5; then
  2177. FSECT5_TRUE=
  2178. FSECT5_FALSE='#'
  2179. else
  2180. FSECT5_TRUE='#'
  2181. FSECT5_FALSE=
  2182. fi
  2183. cat >>confdefs.h <<\_ACEOF
  2184. #define _GNU_SOURCE 1
  2185. _ACEOF
  2186. ac_ext=c
  2187. ac_cpp='$CPP $CPPFLAGS'
  2188. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2189. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2190. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2191. if test -n "$ac_tool_prefix"; then
  2192. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2193. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2194. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2195. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2196. if test "${ac_cv_prog_CC+set}" = set; then
  2197. echo $ECHO_N "(cached) $ECHO_C" >&6
  2198. else
  2199. if test -n "$CC"; then
  2200. ac_cv_prog_CC="$CC" # Let the user override the test.
  2201. else
  2202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2203. for as_dir in $PATH
  2204. do
  2205. IFS=$as_save_IFS
  2206. test -z "$as_dir" && as_dir=.
  2207. for ac_exec_ext in '' $ac_executable_extensions; do
  2208. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2209. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2210. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2211. break 2
  2212. fi
  2213. done
  2214. done
  2215. IFS=$as_save_IFS
  2216. fi
  2217. fi
  2218. CC=$ac_cv_prog_CC
  2219. if test -n "$CC"; then
  2220. { echo "$as_me:$LINENO: result: $CC" >&5
  2221. echo "${ECHO_T}$CC" >&6; }
  2222. else
  2223. { echo "$as_me:$LINENO: result: no" >&5
  2224. echo "${ECHO_T}no" >&6; }
  2225. fi
  2226. fi
  2227. if test -z "$ac_cv_prog_CC"; then
  2228. ac_ct_CC=$CC
  2229. # Extract the first word of "gcc", so it can be a program name with args.
  2230. set dummy gcc; ac_word=$2
  2231. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2232. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2233. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2234. echo $ECHO_N "(cached) $ECHO_C" >&6
  2235. else
  2236. if test -n "$ac_ct_CC"; then
  2237. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2238. else
  2239. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2240. for as_dir in $PATH
  2241. do
  2242. IFS=$as_save_IFS
  2243. test -z "$as_dir" && as_dir=.
  2244. for ac_exec_ext in '' $ac_executable_extensions; do
  2245. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2246. ac_cv_prog_ac_ct_CC="gcc"
  2247. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2248. break 2
  2249. fi
  2250. done
  2251. done
  2252. IFS=$as_save_IFS
  2253. fi
  2254. fi
  2255. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2256. if test -n "$ac_ct_CC"; then
  2257. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2258. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2259. else
  2260. { echo "$as_me:$LINENO: result: no" >&5
  2261. echo "${ECHO_T}no" >&6; }
  2262. fi
  2263. if test "x$ac_ct_CC" = x; then
  2264. CC=""
  2265. else
  2266. case $cross_compiling:$ac_tool_warned in
  2267. yes:)
  2268. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2269. whose name does not start with the host triplet. If you think this
  2270. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2271. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2272. whose name does not start with the host triplet. If you think this
  2273. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2274. ac_tool_warned=yes ;;
  2275. esac
  2276. CC=$ac_ct_CC
  2277. fi
  2278. else
  2279. CC="$ac_cv_prog_CC"
  2280. fi
  2281. if test -z "$CC"; then
  2282. if test -n "$ac_tool_prefix"; then
  2283. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2284. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2285. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2286. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2287. if test "${ac_cv_prog_CC+set}" = set; then
  2288. echo $ECHO_N "(cached) $ECHO_C" >&6
  2289. else
  2290. if test -n "$CC"; then
  2291. ac_cv_prog_CC="$CC" # Let the user override the test.
  2292. else
  2293. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2294. for as_dir in $PATH
  2295. do
  2296. IFS=$as_save_IFS
  2297. test -z "$as_dir" && as_dir=.
  2298. for ac_exec_ext in '' $ac_executable_extensions; do
  2299. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2300. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2301. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2302. break 2
  2303. fi
  2304. done
  2305. done
  2306. IFS=$as_save_IFS
  2307. fi
  2308. fi
  2309. CC=$ac_cv_prog_CC
  2310. if test -n "$CC"; then
  2311. { echo "$as_me:$LINENO: result: $CC" >&5
  2312. echo "${ECHO_T}$CC" >&6; }
  2313. else
  2314. { echo "$as_me:$LINENO: result: no" >&5
  2315. echo "${ECHO_T}no" >&6; }
  2316. fi
  2317. fi
  2318. fi
  2319. if test -z "$CC"; then
  2320. # Extract the first word of "cc", so it can be a program name with args.
  2321. set dummy cc; ac_word=$2
  2322. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2323. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2324. if test "${ac_cv_prog_CC+set}" = set; then
  2325. echo $ECHO_N "(cached) $ECHO_C" >&6
  2326. else
  2327. if test -n "$CC"; then
  2328. ac_cv_prog_CC="$CC" # Let the user override the test.
  2329. else
  2330. ac_prog_rejected=no
  2331. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2332. for as_dir in $PATH
  2333. do
  2334. IFS=$as_save_IFS
  2335. test -z "$as_dir" && as_dir=.
  2336. for ac_exec_ext in '' $ac_executable_extensions; do
  2337. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2338. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2339. ac_prog_rejected=yes
  2340. continue
  2341. fi
  2342. ac_cv_prog_CC="cc"
  2343. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2344. break 2
  2345. fi
  2346. done
  2347. done
  2348. IFS=$as_save_IFS
  2349. if test $ac_prog_rejected = yes; then
  2350. # We found a bogon in the path, so make sure we never use it.
  2351. set dummy $ac_cv_prog_CC
  2352. shift
  2353. if test $# != 0; then
  2354. # We chose a different compiler from the bogus one.
  2355. # However, it has the same basename, so the bogon will be chosen
  2356. # first if we set CC to just the basename; use the full file name.
  2357. shift
  2358. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2359. fi
  2360. fi
  2361. fi
  2362. fi
  2363. CC=$ac_cv_prog_CC
  2364. if test -n "$CC"; then
  2365. { echo "$as_me:$LINENO: result: $CC" >&5
  2366. echo "${ECHO_T}$CC" >&6; }
  2367. else
  2368. { echo "$as_me:$LINENO: result: no" >&5
  2369. echo "${ECHO_T}no" >&6; }
  2370. fi
  2371. fi
  2372. if test -z "$CC"; then
  2373. if test -n "$ac_tool_prefix"; then
  2374. for ac_prog in cl.exe
  2375. do
  2376. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2377. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2378. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2379. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2380. if test "${ac_cv_prog_CC+set}" = set; then
  2381. echo $ECHO_N "(cached) $ECHO_C" >&6
  2382. else
  2383. if test -n "$CC"; then
  2384. ac_cv_prog_CC="$CC" # Let the user override the test.
  2385. else
  2386. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2387. for as_dir in $PATH
  2388. do
  2389. IFS=$as_save_IFS
  2390. test -z "$as_dir" && as_dir=.
  2391. for ac_exec_ext in '' $ac_executable_extensions; do
  2392. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2393. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2394. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2395. break 2
  2396. fi
  2397. done
  2398. done
  2399. IFS=$as_save_IFS
  2400. fi
  2401. fi
  2402. CC=$ac_cv_prog_CC
  2403. if test -n "$CC"; then
  2404. { echo "$as_me:$LINENO: result: $CC" >&5
  2405. echo "${ECHO_T}$CC" >&6; }
  2406. else
  2407. { echo "$as_me:$LINENO: result: no" >&5
  2408. echo "${ECHO_T}no" >&6; }
  2409. fi
  2410. test -n "$CC" && break
  2411. done
  2412. fi
  2413. if test -z "$CC"; then
  2414. ac_ct_CC=$CC
  2415. for ac_prog in cl.exe
  2416. do
  2417. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2418. set dummy $ac_prog; ac_word=$2
  2419. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2420. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2421. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2422. echo $ECHO_N "(cached) $ECHO_C" >&6
  2423. else
  2424. if test -n "$ac_ct_CC"; then
  2425. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2426. else
  2427. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2428. for as_dir in $PATH
  2429. do
  2430. IFS=$as_save_IFS
  2431. test -z "$as_dir" && as_dir=.
  2432. for ac_exec_ext in '' $ac_executable_extensions; do
  2433. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2434. ac_cv_prog_ac_ct_CC="$ac_prog"
  2435. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2436. break 2
  2437. fi
  2438. done
  2439. done
  2440. IFS=$as_save_IFS
  2441. fi
  2442. fi
  2443. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2444. if test -n "$ac_ct_CC"; then
  2445. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2446. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2447. else
  2448. { echo "$as_me:$LINENO: result: no" >&5
  2449. echo "${ECHO_T}no" >&6; }
  2450. fi
  2451. test -n "$ac_ct_CC" && break
  2452. done
  2453. if test "x$ac_ct_CC" = x; then
  2454. CC=""
  2455. else
  2456. case $cross_compiling:$ac_tool_warned in
  2457. yes:)
  2458. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2459. whose name does not start with the host triplet. If you think this
  2460. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2461. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2462. whose name does not start with the host triplet. If you think this
  2463. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2464. ac_tool_warned=yes ;;
  2465. esac
  2466. CC=$ac_ct_CC
  2467. fi
  2468. fi
  2469. fi
  2470. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2471. See \`config.log' for more details." >&5
  2472. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2473. See \`config.log' for more details." >&2;}
  2474. { (exit 1); exit 1; }; }
  2475. # Provide some information about the compiler.
  2476. echo "$as_me:$LINENO: checking for C compiler version" >&5
  2477. ac_compiler=`set X $ac_compile; echo $2`
  2478. { (ac_try="$ac_compiler --version >&5"
  2479. case "(($ac_try" in
  2480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2481. *) ac_try_echo=$ac_try;;
  2482. esac
  2483. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2484. (eval "$ac_compiler --version >&5") 2>&5
  2485. ac_status=$?
  2486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2487. (exit $ac_status); }
  2488. { (ac_try="$ac_compiler -v >&5"
  2489. case "(($ac_try" in
  2490. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2491. *) ac_try_echo=$ac_try;;
  2492. esac
  2493. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2494. (eval "$ac_compiler -v >&5") 2>&5
  2495. ac_status=$?
  2496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2497. (exit $ac_status); }
  2498. { (ac_try="$ac_compiler -V >&5"
  2499. case "(($ac_try" in
  2500. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2501. *) ac_try_echo=$ac_try;;
  2502. esac
  2503. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2504. (eval "$ac_compiler -V >&5") 2>&5
  2505. ac_status=$?
  2506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2507. (exit $ac_status); }
  2508. cat >conftest.$ac_ext <<_ACEOF
  2509. /* confdefs.h. */
  2510. _ACEOF
  2511. cat confdefs.h >>conftest.$ac_ext
  2512. cat >>conftest.$ac_ext <<_ACEOF
  2513. /* end confdefs.h. */
  2514. int
  2515. main ()
  2516. {
  2517. ;
  2518. return 0;
  2519. }
  2520. _ACEOF
  2521. ac_clean_files_save=$ac_clean_files
  2522. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2523. # Try to create an executable without -o first, disregard a.out.
  2524. # It will help us diagnose broken compilers, and finding out an intuition
  2525. # of exeext.
  2526. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2527. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2528. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2529. #
  2530. # List of possible output files, starting from the most likely.
  2531. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2532. # only as a last resort. b.out is created by i960 compilers.
  2533. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2534. #
  2535. # The IRIX 6 linker writes into existing files which may not be
  2536. # executable, retaining their permissions. Remove them first so a
  2537. # subsequent execution test works.
  2538. ac_rmfiles=
  2539. for ac_file in $ac_files
  2540. do
  2541. case $ac_file in
  2542. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2543. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2544. esac
  2545. done
  2546. rm -f $ac_rmfiles
  2547. if { (ac_try="$ac_link_default"
  2548. case "(($ac_try" in
  2549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2550. *) ac_try_echo=$ac_try;;
  2551. esac
  2552. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2553. (eval "$ac_link_default") 2>&5
  2554. ac_status=$?
  2555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2556. (exit $ac_status); }; then
  2557. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2558. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2559. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2560. # so that the user can short-circuit this test for compilers unknown to
  2561. # Autoconf.
  2562. for ac_file in $ac_files ''
  2563. do
  2564. test -f "$ac_file" || continue
  2565. case $ac_file in
  2566. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2567. ;;
  2568. [ab].out )
  2569. # We found the default executable, but exeext='' is most
  2570. # certainly right.
  2571. break;;
  2572. *.* )
  2573. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2574. then :; else
  2575. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2576. fi
  2577. # We set ac_cv_exeext here because the later test for it is not
  2578. # safe: cross compilers may not add the suffix if given an `-o'
  2579. # argument, so we may need to know it at that point already.
  2580. # Even if this section looks crufty: it has the advantage of
  2581. # actually working.
  2582. break;;
  2583. * )
  2584. break;;
  2585. esac
  2586. done
  2587. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2588. else
  2589. ac_file=''
  2590. fi
  2591. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2592. echo "${ECHO_T}$ac_file" >&6; }
  2593. if test -z "$ac_file"; then
  2594. echo "$as_me: failed program was:" >&5
  2595. sed 's/^/| /' conftest.$ac_ext >&5
  2596. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2597. See \`config.log' for more details." >&5
  2598. echo "$as_me: error: C compiler cannot create executables
  2599. See \`config.log' for more details." >&2;}
  2600. { (exit 77); exit 77; }; }
  2601. fi
  2602. ac_exeext=$ac_cv_exeext
  2603. # Check that the compiler produces executables we can run. If not, either
  2604. # the compiler is broken, or we cross compile.
  2605. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2606. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2607. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2608. # If not cross compiling, check that we can run a simple program.
  2609. if test "$cross_compiling" != yes; then
  2610. if { ac_try='./$ac_file'
  2611. { (case "(($ac_try" in
  2612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2613. *) ac_try_echo=$ac_try;;
  2614. esac
  2615. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2616. (eval "$ac_try") 2>&5
  2617. ac_status=$?
  2618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2619. (exit $ac_status); }; }; then
  2620. cross_compiling=no
  2621. else
  2622. if test "$cross_compiling" = maybe; then
  2623. cross_compiling=yes
  2624. else
  2625. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2626. If you meant to cross compile, use \`--host'.
  2627. See \`config.log' for more details." >&5
  2628. echo "$as_me: error: cannot run C compiled programs.
  2629. If you meant to cross compile, use \`--host'.
  2630. See \`config.log' for more details." >&2;}
  2631. { (exit 1); exit 1; }; }
  2632. fi
  2633. fi
  2634. fi
  2635. { echo "$as_me:$LINENO: result: yes" >&5
  2636. echo "${ECHO_T}yes" >&6; }
  2637. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2638. ac_clean_files=$ac_clean_files_save
  2639. # Check that the compiler produces executables we can run. If not, either
  2640. # the compiler is broken, or we cross compile.
  2641. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2642. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2643. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2644. echo "${ECHO_T}$cross_compiling" >&6; }
  2645. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2646. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2647. if { (ac_try="$ac_link"
  2648. case "(($ac_try" in
  2649. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2650. *) ac_try_echo=$ac_try;;
  2651. esac
  2652. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2653. (eval "$ac_link") 2>&5
  2654. ac_status=$?
  2655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2656. (exit $ac_status); }; then
  2657. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2658. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2659. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2660. # `rm'.
  2661. for ac_file in conftest.exe conftest conftest.*; do
  2662. test -f "$ac_file" || continue
  2663. case $ac_file in
  2664. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2665. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2666. break;;
  2667. * ) break;;
  2668. esac
  2669. done
  2670. else
  2671. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2672. See \`config.log' for more details." >&5
  2673. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2674. See \`config.log' for more details." >&2;}
  2675. { (exit 1); exit 1; }; }
  2676. fi
  2677. rm -f conftest$ac_cv_exeext
  2678. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2679. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2680. rm -f conftest.$ac_ext
  2681. EXEEXT=$ac_cv_exeext
  2682. ac_exeext=$EXEEXT
  2683. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2684. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2685. if test "${ac_cv_objext+set}" = set; then
  2686. echo $ECHO_N "(cached) $ECHO_C" >&6
  2687. else
  2688. cat >conftest.$ac_ext <<_ACEOF
  2689. /* confdefs.h. */
  2690. _ACEOF
  2691. cat confdefs.h >>conftest.$ac_ext
  2692. cat >>conftest.$ac_ext <<_ACEOF
  2693. /* end confdefs.h. */
  2694. int
  2695. main ()
  2696. {
  2697. ;
  2698. return 0;
  2699. }
  2700. _ACEOF
  2701. rm -f conftest.o conftest.obj
  2702. if { (ac_try="$ac_compile"
  2703. case "(($ac_try" in
  2704. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2705. *) ac_try_echo=$ac_try;;
  2706. esac
  2707. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2708. (eval "$ac_compile") 2>&5
  2709. ac_status=$?
  2710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2711. (exit $ac_status); }; then
  2712. for ac_file in conftest.o conftest.obj conftest.*; do
  2713. test -f "$ac_file" || continue;
  2714. case $ac_file in
  2715. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2716. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2717. break;;
  2718. esac
  2719. done
  2720. else
  2721. echo "$as_me: failed program was:" >&5
  2722. sed 's/^/| /' conftest.$ac_ext >&5
  2723. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2724. See \`config.log' for more details." >&5
  2725. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2726. See \`config.log' for more details." >&2;}
  2727. { (exit 1); exit 1; }; }
  2728. fi
  2729. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2730. fi
  2731. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2732. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2733. OBJEXT=$ac_cv_objext
  2734. ac_objext=$OBJEXT
  2735. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2736. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2737. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2738. echo $ECHO_N "(cached) $ECHO_C" >&6
  2739. else
  2740. cat >conftest.$ac_ext <<_ACEOF
  2741. /* confdefs.h. */
  2742. _ACEOF
  2743. cat confdefs.h >>conftest.$ac_ext
  2744. cat >>conftest.$ac_ext <<_ACEOF
  2745. /* end confdefs.h. */
  2746. int
  2747. main ()
  2748. {
  2749. #ifndef __GNUC__
  2750. choke me
  2751. #endif
  2752. ;
  2753. return 0;
  2754. }
  2755. _ACEOF
  2756. rm -f conftest.$ac_objext
  2757. if { (ac_try="$ac_compile"
  2758. case "(($ac_try" in
  2759. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2760. *) ac_try_echo=$ac_try;;
  2761. esac
  2762. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2763. (eval "$ac_compile") 2>conftest.er1
  2764. ac_status=$?
  2765. grep -v '^ *+' conftest.er1 >conftest.err
  2766. rm -f conftest.er1
  2767. cat conftest.err >&5
  2768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2769. (exit $ac_status); } && {
  2770. test -z "$ac_c_werror_flag" ||
  2771. test ! -s conftest.err
  2772. } && test -s conftest.$ac_objext; then
  2773. ac_compiler_gnu=yes
  2774. else
  2775. echo "$as_me: failed program was:" >&5
  2776. sed 's/^/| /' conftest.$ac_ext >&5
  2777. ac_compiler_gnu=no
  2778. fi
  2779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2780. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2781. fi
  2782. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2783. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2784. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2785. ac_test_CFLAGS=${CFLAGS+set}
  2786. ac_save_CFLAGS=$CFLAGS
  2787. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2788. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2789. if test "${ac_cv_prog_cc_g+set}" = set; then
  2790. echo $ECHO_N "(cached) $ECHO_C" >&6
  2791. else
  2792. ac_save_c_werror_flag=$ac_c_werror_flag
  2793. ac_c_werror_flag=yes
  2794. ac_cv_prog_cc_g=no
  2795. CFLAGS="-g"
  2796. cat >conftest.$ac_ext <<_ACEOF
  2797. /* confdefs.h. */
  2798. _ACEOF
  2799. cat confdefs.h >>conftest.$ac_ext
  2800. cat >>conftest.$ac_ext <<_ACEOF
  2801. /* end confdefs.h. */
  2802. int
  2803. main ()
  2804. {
  2805. ;
  2806. return 0;
  2807. }
  2808. _ACEOF
  2809. rm -f conftest.$ac_objext
  2810. if { (ac_try="$ac_compile"
  2811. case "(($ac_try" in
  2812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2813. *) ac_try_echo=$ac_try;;
  2814. esac
  2815. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2816. (eval "$ac_compile") 2>conftest.er1
  2817. ac_status=$?
  2818. grep -v '^ *+' conftest.er1 >conftest.err
  2819. rm -f conftest.er1
  2820. cat conftest.err >&5
  2821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2822. (exit $ac_status); } && {
  2823. test -z "$ac_c_werror_flag" ||
  2824. test ! -s conftest.err
  2825. } && test -s conftest.$ac_objext; then
  2826. ac_cv_prog_cc_g=yes
  2827. else
  2828. echo "$as_me: failed program was:" >&5
  2829. sed 's/^/| /' conftest.$ac_ext >&5
  2830. CFLAGS=""
  2831. cat >conftest.$ac_ext <<_ACEOF
  2832. /* confdefs.h. */
  2833. _ACEOF
  2834. cat confdefs.h >>conftest.$ac_ext
  2835. cat >>conftest.$ac_ext <<_ACEOF
  2836. /* end confdefs.h. */
  2837. int
  2838. main ()
  2839. {
  2840. ;
  2841. return 0;
  2842. }
  2843. _ACEOF
  2844. rm -f conftest.$ac_objext
  2845. if { (ac_try="$ac_compile"
  2846. case "(($ac_try" in
  2847. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2848. *) ac_try_echo=$ac_try;;
  2849. esac
  2850. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2851. (eval "$ac_compile") 2>conftest.er1
  2852. ac_status=$?
  2853. grep -v '^ *+' conftest.er1 >conftest.err
  2854. rm -f conftest.er1
  2855. cat conftest.err >&5
  2856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2857. (exit $ac_status); } && {
  2858. test -z "$ac_c_werror_flag" ||
  2859. test ! -s conftest.err
  2860. } && test -s conftest.$ac_objext; then
  2861. :
  2862. else
  2863. echo "$as_me: failed program was:" >&5
  2864. sed 's/^/| /' conftest.$ac_ext >&5
  2865. ac_c_werror_flag=$ac_save_c_werror_flag
  2866. CFLAGS="-g"
  2867. cat >conftest.$ac_ext <<_ACEOF
  2868. /* confdefs.h. */
  2869. _ACEOF
  2870. cat confdefs.h >>conftest.$ac_ext
  2871. cat >>conftest.$ac_ext <<_ACEOF
  2872. /* end confdefs.h. */
  2873. int
  2874. main ()
  2875. {
  2876. ;
  2877. return 0;
  2878. }
  2879. _ACEOF
  2880. rm -f conftest.$ac_objext
  2881. if { (ac_try="$ac_compile"
  2882. case "(($ac_try" in
  2883. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2884. *) ac_try_echo=$ac_try;;
  2885. esac
  2886. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2887. (eval "$ac_compile") 2>conftest.er1
  2888. ac_status=$?
  2889. grep -v '^ *+' conftest.er1 >conftest.err
  2890. rm -f conftest.er1
  2891. cat conftest.err >&5
  2892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2893. (exit $ac_status); } && {
  2894. test -z "$ac_c_werror_flag" ||
  2895. test ! -s conftest.err
  2896. } && test -s conftest.$ac_objext; then
  2897. ac_cv_prog_cc_g=yes
  2898. else
  2899. echo "$as_me: failed program was:" >&5
  2900. sed 's/^/| /' conftest.$ac_ext >&5
  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. fi
  2906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2907. ac_c_werror_flag=$ac_save_c_werror_flag
  2908. fi
  2909. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2910. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2911. if test "$ac_test_CFLAGS" = set; then
  2912. CFLAGS=$ac_save_CFLAGS
  2913. elif test $ac_cv_prog_cc_g = yes; then
  2914. if test "$GCC" = yes; then
  2915. CFLAGS="-g -O2"
  2916. else
  2917. CFLAGS="-g"
  2918. fi
  2919. else
  2920. if test "$GCC" = yes; then
  2921. CFLAGS="-O2"
  2922. else
  2923. CFLAGS=
  2924. fi
  2925. fi
  2926. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2927. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  2928. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2929. echo $ECHO_N "(cached) $ECHO_C" >&6
  2930. else
  2931. ac_cv_prog_cc_c89=no
  2932. ac_save_CC=$CC
  2933. cat >conftest.$ac_ext <<_ACEOF
  2934. /* confdefs.h. */
  2935. _ACEOF
  2936. cat confdefs.h >>conftest.$ac_ext
  2937. cat >>conftest.$ac_ext <<_ACEOF
  2938. /* end confdefs.h. */
  2939. #include <stdarg.h>
  2940. #include <stdio.h>
  2941. #include <sys/types.h>
  2942. #include <sys/stat.h>
  2943. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2944. struct buf { int x; };
  2945. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2946. static char *e (p, i)
  2947. char **p;
  2948. int i;
  2949. {
  2950. return p[i];
  2951. }
  2952. static char *f (char * (*g) (char **, int), char **p, ...)
  2953. {
  2954. char *s;
  2955. va_list v;
  2956. va_start (v,p);
  2957. s = g (p, va_arg (v,int));
  2958. va_end (v);
  2959. return s;
  2960. }
  2961. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2962. function prototypes and stuff, but not '\xHH' hex character constants.
  2963. These don't provoke an error unfortunately, instead are silently treated
  2964. as 'x'. The following induces an error, until -std is added to get
  2965. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2966. array size at least. It's necessary to write '\x00'==0 to get something
  2967. that's true only with -std. */
  2968. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2969. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2970. inside strings and character constants. */
  2971. #define FOO(x) 'x'
  2972. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2973. int test (int i, double x);
  2974. struct s1 {int (*f) (int a);};
  2975. struct s2 {int (*f) (double a);};
  2976. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2977. int argc;
  2978. char **argv;
  2979. int
  2980. main ()
  2981. {
  2982. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2983. ;
  2984. return 0;
  2985. }
  2986. _ACEOF
  2987. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2988. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2989. do
  2990. CC="$ac_save_CC $ac_arg"
  2991. rm -f conftest.$ac_objext
  2992. if { (ac_try="$ac_compile"
  2993. case "(($ac_try" in
  2994. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2995. *) ac_try_echo=$ac_try;;
  2996. esac
  2997. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2998. (eval "$ac_compile") 2>conftest.er1
  2999. ac_status=$?
  3000. grep -v '^ *+' conftest.er1 >conftest.err
  3001. rm -f conftest.er1
  3002. cat conftest.err >&5
  3003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3004. (exit $ac_status); } && {
  3005. test -z "$ac_c_werror_flag" ||
  3006. test ! -s conftest.err
  3007. } && test -s conftest.$ac_objext; then
  3008. ac_cv_prog_cc_c89=$ac_arg
  3009. else
  3010. echo "$as_me: failed program was:" >&5
  3011. sed 's/^/| /' conftest.$ac_ext >&5
  3012. fi
  3013. rm -f core conftest.err conftest.$ac_objext
  3014. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3015. done
  3016. rm -f conftest.$ac_ext
  3017. CC=$ac_save_CC
  3018. fi
  3019. # AC_CACHE_VAL
  3020. case "x$ac_cv_prog_cc_c89" in
  3021. x)
  3022. { echo "$as_me:$LINENO: result: none needed" >&5
  3023. echo "${ECHO_T}none needed" >&6; } ;;
  3024. xno)
  3025. { echo "$as_me:$LINENO: result: unsupported" >&5
  3026. echo "${ECHO_T}unsupported" >&6; } ;;
  3027. *)
  3028. CC="$CC $ac_cv_prog_cc_c89"
  3029. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3030. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3031. esac
  3032. ac_ext=c
  3033. ac_cpp='$CPP $CPPFLAGS'
  3034. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3035. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3036. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3037. DEPDIR="${am__leading_dot}deps"
  3038. ac_config_commands="$ac_config_commands depfiles"
  3039. am_make=${MAKE-make}
  3040. cat > confinc << 'END'
  3041. am__doit:
  3042. @echo done
  3043. .PHONY: am__doit
  3044. END
  3045. # If we don't find an include directive, just comment out the code.
  3046. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3047. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  3048. am__include="#"
  3049. am__quote=
  3050. _am_result=none
  3051. # First try GNU make style include.
  3052. echo "include confinc" > confmf
  3053. # We grep out `Entering directory' and `Leaving directory'
  3054. # messages which can occur if `w' ends up in MAKEFLAGS.
  3055. # In particular we don't look at `^make:' because GNU make might
  3056. # be invoked under some other name (usually "gmake"), in which
  3057. # case it prints its new name instead of `make'.
  3058. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3059. am__include=include
  3060. am__quote=
  3061. _am_result=GNU
  3062. fi
  3063. # Now try BSD make style include.
  3064. if test "$am__include" = "#"; then
  3065. echo '.include "confinc"' > confmf
  3066. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3067. am__include=.include
  3068. am__quote="\""
  3069. _am_result=BSD
  3070. fi
  3071. fi
  3072. { echo "$as_me:$LINENO: result: $_am_result" >&5
  3073. echo "${ECHO_T}$_am_result" >&6; }
  3074. rm -f confinc confmf
  3075. # Check whether --enable-dependency-tracking was given.
  3076. if test "${enable_dependency_tracking+set}" = set; then
  3077. enableval=$enable_dependency_tracking;
  3078. fi
  3079. if test "x$enable_dependency_tracking" != xno; then
  3080. am_depcomp="$ac_aux_dir/depcomp"
  3081. AMDEPBACKSLASH='\'
  3082. fi
  3083. if test "x$enable_dependency_tracking" != xno; then
  3084. AMDEP_TRUE=
  3085. AMDEP_FALSE='#'
  3086. else
  3087. AMDEP_TRUE='#'
  3088. AMDEP_FALSE=
  3089. fi
  3090. depcc="$CC" am_compiler_list=
  3091. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3092. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3093. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3094. echo $ECHO_N "(cached) $ECHO_C" >&6
  3095. else
  3096. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3097. # We make a subdir and do the tests there. Otherwise we can end up
  3098. # making bogus files that we don't know about and never remove. For
  3099. # instance it was reported that on HP-UX the gcc test will end up
  3100. # making a dummy file named `D' -- because `-MD' means `put the output
  3101. # in D'.
  3102. mkdir conftest.dir
  3103. # Copy depcomp to subdir because otherwise we won't find it if we're
  3104. # using a relative directory.
  3105. cp "$am_depcomp" conftest.dir
  3106. cd conftest.dir
  3107. # We will build objects and dependencies in a subdirectory because
  3108. # it helps to detect inapplicable dependency modes. For instance
  3109. # both Tru64's cc and ICC support -MD to output dependencies as a
  3110. # side effect of compilation, but ICC will put the dependencies in
  3111. # the current directory while Tru64 will put them in the object
  3112. # directory.
  3113. mkdir sub
  3114. am_cv_CC_dependencies_compiler_type=none
  3115. if test "$am_compiler_list" = ""; then
  3116. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3117. fi
  3118. for depmode in $am_compiler_list; do
  3119. # Setup a source with many dependencies, because some compilers
  3120. # like to wrap large dependency lists on column 80 (with \), and
  3121. # we should not choose a depcomp mode which is confused by this.
  3122. #
  3123. # We need to recreate these files for each test, as the compiler may
  3124. # overwrite some of them when testing with obscure command lines.
  3125. # This happens at least with the AIX C compiler.
  3126. : > sub/conftest.c
  3127. for i in 1 2 3 4 5 6; do
  3128. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3129. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3130. # Solaris 8's {/usr,}/bin/sh.
  3131. touch sub/conftst$i.h
  3132. done
  3133. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3134. case $depmode in
  3135. nosideeffect)
  3136. # after this tag, mechanisms are not by side-effect, so they'll
  3137. # only be used when explicitly requested
  3138. if test "x$enable_dependency_tracking" = xyes; then
  3139. continue
  3140. else
  3141. break
  3142. fi
  3143. ;;
  3144. none) break ;;
  3145. esac
  3146. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3147. # mode. It turns out that the SunPro C++ compiler does not properly
  3148. # handle `-M -o', and we need to detect this.
  3149. if depmode=$depmode \
  3150. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3151. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3152. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3153. >/dev/null 2>conftest.err &&
  3154. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3155. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3156. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3157. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3158. # icc doesn't choke on unknown options, it will just issue warnings
  3159. # or remarks (even with -Werror). So we grep stderr for any message
  3160. # that says an option was ignored or not supported.
  3161. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3162. # icc: Command line warning: ignoring option '-M'; no argument required
  3163. # The diagnosis changed in icc 8.0:
  3164. # icc: Command line remark: option '-MP' not supported
  3165. if (grep 'ignoring option' conftest.err ||
  3166. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3167. am_cv_CC_dependencies_compiler_type=$depmode
  3168. break
  3169. fi
  3170. fi
  3171. done
  3172. cd ..
  3173. rm -rf conftest.dir
  3174. else
  3175. am_cv_CC_dependencies_compiler_type=none
  3176. fi
  3177. fi
  3178. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3179. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3180. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3181. if
  3182. test "x$enable_dependency_tracking" != xno \
  3183. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3184. am__fastdepCC_TRUE=
  3185. am__fastdepCC_FALSE='#'
  3186. else
  3187. am__fastdepCC_TRUE='#'
  3188. am__fastdepCC_FALSE=
  3189. fi
  3190. if test "x$CC" != xcc; then
  3191. { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  3192. echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
  3193. else
  3194. { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  3195. echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
  3196. fi
  3197. set dummy $CC; ac_cc=`echo $2 |
  3198. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3199. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  3200. echo $ECHO_N "(cached) $ECHO_C" >&6
  3201. else
  3202. cat >conftest.$ac_ext <<_ACEOF
  3203. /* confdefs.h. */
  3204. _ACEOF
  3205. cat confdefs.h >>conftest.$ac_ext
  3206. cat >>conftest.$ac_ext <<_ACEOF
  3207. /* end confdefs.h. */
  3208. int
  3209. main ()
  3210. {
  3211. ;
  3212. return 0;
  3213. }
  3214. _ACEOF
  3215. # Make sure it works both with $CC and with simple cc.
  3216. # We do the test twice because some compilers refuse to overwrite an
  3217. # existing .o file with -o, though they will create one.
  3218. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3219. rm -f conftest2.*
  3220. if { (case "(($ac_try" in
  3221. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3222. *) ac_try_echo=$ac_try;;
  3223. esac
  3224. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3225. (eval "$ac_try") 2>&5
  3226. ac_status=$?
  3227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3228. (exit $ac_status); } &&
  3229. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  3230. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3231. *) ac_try_echo=$ac_try;;
  3232. esac
  3233. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3234. (eval "$ac_try") 2>&5
  3235. ac_status=$?
  3236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3237. (exit $ac_status); };
  3238. then
  3239. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3240. if test "x$CC" != xcc; then
  3241. # Test first that cc exists at all.
  3242. if { ac_try='cc -c conftest.$ac_ext >&5'
  3243. { (case "(($ac_try" in
  3244. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3245. *) ac_try_echo=$ac_try;;
  3246. esac
  3247. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3248. (eval "$ac_try") 2>&5
  3249. ac_status=$?
  3250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3251. (exit $ac_status); }; }; then
  3252. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3253. rm -f conftest2.*
  3254. if { (case "(($ac_try" in
  3255. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3256. *) ac_try_echo=$ac_try;;
  3257. esac
  3258. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3259. (eval "$ac_try") 2>&5
  3260. ac_status=$?
  3261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3262. (exit $ac_status); } &&
  3263. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  3264. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3265. *) ac_try_echo=$ac_try;;
  3266. esac
  3267. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3268. (eval "$ac_try") 2>&5
  3269. ac_status=$?
  3270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3271. (exit $ac_status); };
  3272. then
  3273. # cc works too.
  3274. :
  3275. else
  3276. # cc exists but doesn't like -o.
  3277. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3278. fi
  3279. fi
  3280. fi
  3281. else
  3282. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3283. fi
  3284. rm -f core conftest*
  3285. fi
  3286. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  3287. { echo "$as_me:$LINENO: result: yes" >&5
  3288. echo "${ECHO_T}yes" >&6; }
  3289. else
  3290. { echo "$as_me:$LINENO: result: no" >&5
  3291. echo "${ECHO_T}no" >&6; }
  3292. cat >>confdefs.h <<\_ACEOF
  3293. #define NO_MINUS_C_MINUS_O 1
  3294. _ACEOF
  3295. fi
  3296. # FIXME: we rely on the cache variable name because
  3297. # there is no other way.
  3298. set dummy $CC
  3299. ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3300. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  3301. # Losing compiler, so override with the script.
  3302. # FIXME: It is wrong to rewrite CC.
  3303. # But if we don't then we get into trouble of one sort or another.
  3304. # A longer-term fix would be to have automake use am__CC in this case,
  3305. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3306. CC="$am_aux_dir/compile $CC"
  3307. fi
  3308. # Find a good install program. We prefer a C program (faster),
  3309. # so one script is as good as another. But avoid the broken or
  3310. # incompatible versions:
  3311. # SysV /etc/install, /usr/sbin/install
  3312. # SunOS /usr/etc/install
  3313. # IRIX /sbin/install
  3314. # AIX /bin/install
  3315. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3316. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3317. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3318. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3319. # OS/2's system install, which has a completely different semantic
  3320. # ./install, which can be erroneously created by make from ./install.sh.
  3321. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3322. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3323. if test -z "$INSTALL"; then
  3324. if test "${ac_cv_path_install+set}" = set; then
  3325. echo $ECHO_N "(cached) $ECHO_C" >&6
  3326. else
  3327. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3328. for as_dir in $PATH
  3329. do
  3330. IFS=$as_save_IFS
  3331. test -z "$as_dir" && as_dir=.
  3332. # Account for people who put trailing slashes in PATH elements.
  3333. case $as_dir/ in
  3334. ./ | .// | /cC/* | \
  3335. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3336. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3337. /usr/ucb/* ) ;;
  3338. *)
  3339. # OSF1 and SCO ODT 3.0 have their own names for install.
  3340. # Don't use installbsd from OSF since it installs stuff as root
  3341. # by default.
  3342. for ac_prog in ginstall scoinst install; do
  3343. for ac_exec_ext in '' $ac_executable_extensions; do
  3344. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3345. if test $ac_prog = install &&
  3346. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3347. # AIX install. It has an incompatible calling convention.
  3348. :
  3349. elif test $ac_prog = install &&
  3350. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3351. # program-specific install script used by HP pwplus--don't use.
  3352. :
  3353. else
  3354. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3355. break 3
  3356. fi
  3357. fi
  3358. done
  3359. done
  3360. ;;
  3361. esac
  3362. done
  3363. IFS=$as_save_IFS
  3364. fi
  3365. if test "${ac_cv_path_install+set}" = set; then
  3366. INSTALL=$ac_cv_path_install
  3367. else
  3368. # As a last resort, use the slow shell script. Don't cache a
  3369. # value for INSTALL within a source directory, because that will
  3370. # break other packages using the cache if that directory is
  3371. # removed, or if the value is a relative name.
  3372. INSTALL=$ac_install_sh
  3373. fi
  3374. fi
  3375. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3376. echo "${ECHO_T}$INSTALL" >&6; }
  3377. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3378. # It thinks the first close brace ends the variable substitution.
  3379. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3380. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3381. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3382. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3383. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  3384. LN_S=$as_ln_s
  3385. if test "$LN_S" = "ln -s"; then
  3386. { echo "$as_me:$LINENO: result: yes" >&5
  3387. echo "${ECHO_T}yes" >&6; }
  3388. else
  3389. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3390. echo "${ECHO_T}no, using $LN_S" >&6; }
  3391. fi
  3392. # Check whether --enable-shared was given.
  3393. if test "${enable_shared+set}" = set; then
  3394. enableval=$enable_shared; p=${PACKAGE-default}
  3395. case $enableval in
  3396. yes) enable_shared=yes ;;
  3397. no) enable_shared=no ;;
  3398. *)
  3399. enable_shared=no
  3400. # Look at the argument we got. We use all the common list separators.
  3401. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3402. for pkg in $enableval; do
  3403. IFS="$lt_save_ifs"
  3404. if test "X$pkg" = "X$p"; then
  3405. enable_shared=yes
  3406. fi
  3407. done
  3408. IFS="$lt_save_ifs"
  3409. ;;
  3410. esac
  3411. else
  3412. enable_shared=yes
  3413. fi
  3414. # Check whether --enable-static was given.
  3415. if test "${enable_static+set}" = set; then
  3416. enableval=$enable_static; p=${PACKAGE-default}
  3417. case $enableval in
  3418. yes) enable_static=yes ;;
  3419. no) enable_static=no ;;
  3420. *)
  3421. enable_static=no
  3422. # Look at the argument we got. We use all the common list separators.
  3423. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3424. for pkg in $enableval; do
  3425. IFS="$lt_save_ifs"
  3426. if test "X$pkg" = "X$p"; then
  3427. enable_static=yes
  3428. fi
  3429. done
  3430. IFS="$lt_save_ifs"
  3431. ;;
  3432. esac
  3433. else
  3434. enable_static=yes
  3435. fi
  3436. # Check whether --enable-fast-install was given.
  3437. if test "${enable_fast_install+set}" = set; then
  3438. enableval=$enable_fast_install; p=${PACKAGE-default}
  3439. case $enableval in
  3440. yes) enable_fast_install=yes ;;
  3441. no) enable_fast_install=no ;;
  3442. *)
  3443. enable_fast_install=no
  3444. # Look at the argument we got. We use all the common list separators.
  3445. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3446. for pkg in $enableval; do
  3447. IFS="$lt_save_ifs"
  3448. if test "X$pkg" = "X$p"; then
  3449. enable_fast_install=yes
  3450. fi
  3451. done
  3452. IFS="$lt_save_ifs"
  3453. ;;
  3454. esac
  3455. else
  3456. enable_fast_install=yes
  3457. fi
  3458. # Make sure we can run config.sub.
  3459. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3460. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  3461. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  3462. { (exit 1); exit 1; }; }
  3463. { echo "$as_me:$LINENO: checking build system type" >&5
  3464. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  3465. if test "${ac_cv_build+set}" = set; then
  3466. echo $ECHO_N "(cached) $ECHO_C" >&6
  3467. else
  3468. ac_build_alias=$build_alias
  3469. test "x$ac_build_alias" = x &&
  3470. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3471. test "x$ac_build_alias" = x &&
  3472. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  3473. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  3474. { (exit 1); exit 1; }; }
  3475. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3476. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  3477. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  3478. { (exit 1); exit 1; }; }
  3479. fi
  3480. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  3481. echo "${ECHO_T}$ac_cv_build" >&6; }
  3482. case $ac_cv_build in
  3483. *-*-*) ;;
  3484. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  3485. echo "$as_me: error: invalid value of canonical build" >&2;}
  3486. { (exit 1); exit 1; }; };;
  3487. esac
  3488. build=$ac_cv_build
  3489. ac_save_IFS=$IFS; IFS='-'
  3490. set x $ac_cv_build
  3491. shift
  3492. build_cpu=$1
  3493. build_vendor=$2
  3494. shift; shift
  3495. # Remember, the first character of IFS is used to create $*,
  3496. # except with old shells:
  3497. build_os=$*
  3498. IFS=$ac_save_IFS
  3499. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3500. { echo "$as_me:$LINENO: checking host system type" >&5
  3501. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  3502. if test "${ac_cv_host+set}" = set; then
  3503. echo $ECHO_N "(cached) $ECHO_C" >&6
  3504. else
  3505. if test "x$host_alias" = x; then
  3506. ac_cv_host=$ac_cv_build
  3507. else
  3508. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3509. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  3510. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  3511. { (exit 1); exit 1; }; }
  3512. fi
  3513. fi
  3514. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  3515. echo "${ECHO_T}$ac_cv_host" >&6; }
  3516. case $ac_cv_host in
  3517. *-*-*) ;;
  3518. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  3519. echo "$as_me: error: invalid value of canonical host" >&2;}
  3520. { (exit 1); exit 1; }; };;
  3521. esac
  3522. host=$ac_cv_host
  3523. ac_save_IFS=$IFS; IFS='-'
  3524. set x $ac_cv_host
  3525. shift
  3526. host_cpu=$1
  3527. host_vendor=$2
  3528. shift; shift
  3529. # Remember, the first character of IFS is used to create $*,
  3530. # except with old shells:
  3531. host_os=$*
  3532. IFS=$ac_save_IFS
  3533. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3534. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3535. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  3536. if test "${lt_cv_path_SED+set}" = set; then
  3537. echo $ECHO_N "(cached) $ECHO_C" >&6
  3538. else
  3539. # Loop through the user's path and test for sed and gsed.
  3540. # Then use that list of sed's as ones to test for truncation.
  3541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3542. for as_dir in $PATH
  3543. do
  3544. IFS=$as_save_IFS
  3545. test -z "$as_dir" && as_dir=.
  3546. for lt_ac_prog in sed gsed; do
  3547. for ac_exec_ext in '' $ac_executable_extensions; do
  3548. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  3549. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3550. fi
  3551. done
  3552. done
  3553. done
  3554. lt_ac_max=0
  3555. lt_ac_count=0
  3556. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3557. # along with /bin/sed that truncates output.
  3558. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3559. test ! -f $lt_ac_sed && continue
  3560. cat /dev/null > conftest.in
  3561. lt_ac_count=0
  3562. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3563. # Check for GNU sed and select it if it is found.
  3564. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3565. lt_cv_path_SED=$lt_ac_sed
  3566. break
  3567. fi
  3568. while true; do
  3569. cat conftest.in conftest.in >conftest.tmp
  3570. mv conftest.tmp conftest.in
  3571. cp conftest.in conftest.nl
  3572. echo >>conftest.nl
  3573. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3574. cmp -s conftest.out conftest.nl || break
  3575. # 10000 chars as input seems more than enough
  3576. test $lt_ac_count -gt 10 && break
  3577. lt_ac_count=`expr $lt_ac_count + 1`
  3578. if test $lt_ac_count -gt $lt_ac_max; then
  3579. lt_ac_max=$lt_ac_count
  3580. lt_cv_path_SED=$lt_ac_sed
  3581. fi
  3582. done
  3583. done
  3584. fi
  3585. SED=$lt_cv_path_SED
  3586. { echo "$as_me:$LINENO: result: $SED" >&5
  3587. echo "${ECHO_T}$SED" >&6; }
  3588. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3589. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  3590. if test "${ac_cv_path_GREP+set}" = set; then
  3591. echo $ECHO_N "(cached) $ECHO_C" >&6
  3592. else
  3593. # Extract the first word of "grep ggrep" to use in msg output
  3594. if test -z "$GREP"; then
  3595. set dummy grep ggrep; ac_prog_name=$2
  3596. if test "${ac_cv_path_GREP+set}" = set; then
  3597. echo $ECHO_N "(cached) $ECHO_C" >&6
  3598. else
  3599. ac_path_GREP_found=false
  3600. # Loop through the user's path and test for each of PROGNAME-LIST
  3601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3602. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3603. do
  3604. IFS=$as_save_IFS
  3605. test -z "$as_dir" && as_dir=.
  3606. for ac_prog in grep ggrep; do
  3607. for ac_exec_ext in '' $ac_executable_extensions; do
  3608. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3609. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3610. # Check for GNU ac_path_GREP and select it if it is found.
  3611. # Check for GNU $ac_path_GREP
  3612. case `"$ac_path_GREP" --version 2>&1` in
  3613. *GNU*)
  3614. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3615. *)
  3616. ac_count=0
  3617. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3618. while :
  3619. do
  3620. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3621. mv "conftest.tmp" "conftest.in"
  3622. cp "conftest.in" "conftest.nl"
  3623. echo 'GREP' >> "conftest.nl"
  3624. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3625. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3626. ac_count=`expr $ac_count + 1`
  3627. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3628. # Best one so far, save it but keep looking for a better one
  3629. ac_cv_path_GREP="$ac_path_GREP"
  3630. ac_path_GREP_max=$ac_count
  3631. fi
  3632. # 10*(2^10) chars as input seems more than enough
  3633. test $ac_count -gt 10 && break
  3634. done
  3635. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3636. esac
  3637. $ac_path_GREP_found && break 3
  3638. done
  3639. done
  3640. done
  3641. IFS=$as_save_IFS
  3642. fi
  3643. GREP="$ac_cv_path_GREP"
  3644. if test -z "$GREP"; then
  3645. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3646. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3647. { (exit 1); exit 1; }; }
  3648. fi
  3649. else
  3650. ac_cv_path_GREP=$GREP
  3651. fi
  3652. fi
  3653. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3654. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  3655. GREP="$ac_cv_path_GREP"
  3656. { echo "$as_me:$LINENO: checking for egrep" >&5
  3657. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  3658. if test "${ac_cv_path_EGREP+set}" = set; then
  3659. echo $ECHO_N "(cached) $ECHO_C" >&6
  3660. else
  3661. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3662. then ac_cv_path_EGREP="$GREP -E"
  3663. else
  3664. # Extract the first word of "egrep" to use in msg output
  3665. if test -z "$EGREP"; then
  3666. set dummy egrep; ac_prog_name=$2
  3667. if test "${ac_cv_path_EGREP+set}" = set; then
  3668. echo $ECHO_N "(cached) $ECHO_C" >&6
  3669. else
  3670. ac_path_EGREP_found=false
  3671. # Loop through the user's path and test for each of PROGNAME-LIST
  3672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3673. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3674. do
  3675. IFS=$as_save_IFS
  3676. test -z "$as_dir" && as_dir=.
  3677. for ac_prog in egrep; do
  3678. for ac_exec_ext in '' $ac_executable_extensions; do
  3679. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3680. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3681. # Check for GNU ac_path_EGREP and select it if it is found.
  3682. # Check for GNU $ac_path_EGREP
  3683. case `"$ac_path_EGREP" --version 2>&1` in
  3684. *GNU*)
  3685. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3686. *)
  3687. ac_count=0
  3688. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3689. while :
  3690. do
  3691. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3692. mv "conftest.tmp" "conftest.in"
  3693. cp "conftest.in" "conftest.nl"
  3694. echo 'EGREP' >> "conftest.nl"
  3695. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3696. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3697. ac_count=`expr $ac_count + 1`
  3698. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3699. # Best one so far, save it but keep looking for a better one
  3700. ac_cv_path_EGREP="$ac_path_EGREP"
  3701. ac_path_EGREP_max=$ac_count
  3702. fi
  3703. # 10*(2^10) chars as input seems more than enough
  3704. test $ac_count -gt 10 && break
  3705. done
  3706. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3707. esac
  3708. $ac_path_EGREP_found && break 3
  3709. done
  3710. done
  3711. done
  3712. IFS=$as_save_IFS
  3713. fi
  3714. EGREP="$ac_cv_path_EGREP"
  3715. if test -z "$EGREP"; then
  3716. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3717. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3718. { (exit 1); exit 1; }; }
  3719. fi
  3720. else
  3721. ac_cv_path_EGREP=$EGREP
  3722. fi
  3723. fi
  3724. fi
  3725. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3726. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  3727. EGREP="$ac_cv_path_EGREP"
  3728. # Check whether --with-gnu-ld was given.
  3729. if test "${with_gnu_ld+set}" = set; then
  3730. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3731. else
  3732. with_gnu_ld=no
  3733. fi
  3734. ac_prog=ld
  3735. if test "$GCC" = yes; then
  3736. # Check if gcc -print-prog-name=ld gives a path.
  3737. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3738. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  3739. case $host in
  3740. *-*-mingw*)
  3741. # gcc leaves a trailing carriage return which upsets mingw
  3742. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3743. *)
  3744. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3745. esac
  3746. case $ac_prog in
  3747. # Accept absolute paths.
  3748. [\\/]* | ?:[\\/]*)
  3749. re_direlt='/[^/][^/]*/\.\./'
  3750. # Canonicalize the pathname of ld
  3751. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3752. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3753. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3754. done
  3755. test -z "$LD" && LD="$ac_prog"
  3756. ;;
  3757. "")
  3758. # If it fails, then pretend we aren't using GCC.
  3759. ac_prog=ld
  3760. ;;
  3761. *)
  3762. # If it is relative, then search for the first ld in PATH.
  3763. with_gnu_ld=unknown
  3764. ;;
  3765. esac
  3766. elif test "$with_gnu_ld" = yes; then
  3767. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  3768. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  3769. else
  3770. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3771. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  3772. fi
  3773. if test "${lt_cv_path_LD+set}" = set; then
  3774. echo $ECHO_N "(cached) $ECHO_C" >&6
  3775. else
  3776. if test -z "$LD"; then
  3777. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3778. for ac_dir in $PATH; do
  3779. IFS="$lt_save_ifs"
  3780. test -z "$ac_dir" && ac_dir=.
  3781. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3782. lt_cv_path_LD="$ac_dir/$ac_prog"
  3783. # Check to see if the program is GNU ld. I'd rather use --version,
  3784. # but apparently some GNU ld's only accept -v.
  3785. # Break only if it was the GNU/non-GNU ld that we prefer.
  3786. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3787. *GNU* | *'with BFD'*)
  3788. test "$with_gnu_ld" != no && break
  3789. ;;
  3790. *)
  3791. test "$with_gnu_ld" != yes && break
  3792. ;;
  3793. esac
  3794. fi
  3795. done
  3796. IFS="$lt_save_ifs"
  3797. else
  3798. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3799. fi
  3800. fi
  3801. LD="$lt_cv_path_LD"
  3802. if test -n "$LD"; then
  3803. { echo "$as_me:$LINENO: result: $LD" >&5
  3804. echo "${ECHO_T}$LD" >&6; }
  3805. else
  3806. { echo "$as_me:$LINENO: result: no" >&5
  3807. echo "${ECHO_T}no" >&6; }
  3808. fi
  3809. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3810. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3811. { (exit 1); exit 1; }; }
  3812. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3813. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  3814. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3815. echo $ECHO_N "(cached) $ECHO_C" >&6
  3816. else
  3817. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  3818. case `$LD -v 2>&1 </dev/null` in
  3819. *GNU* | *'with BFD'*)
  3820. lt_cv_prog_gnu_ld=yes
  3821. ;;
  3822. *)
  3823. lt_cv_prog_gnu_ld=no
  3824. ;;
  3825. esac
  3826. fi
  3827. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3828. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  3829. with_gnu_ld=$lt_cv_prog_gnu_ld
  3830. { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3831. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  3832. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3833. echo $ECHO_N "(cached) $ECHO_C" >&6
  3834. else
  3835. lt_cv_ld_reload_flag='-r'
  3836. fi
  3837. { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3838. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  3839. reload_flag=$lt_cv_ld_reload_flag
  3840. case $reload_flag in
  3841. "" | " "*) ;;
  3842. *) reload_flag=" $reload_flag" ;;
  3843. esac
  3844. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3845. case $host_os in
  3846. darwin*)
  3847. if test "$GCC" = yes; then
  3848. reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
  3849. else
  3850. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3851. fi
  3852. ;;
  3853. esac
  3854. { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3855. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  3856. if test "${lt_cv_path_NM+set}" = set; then
  3857. echo $ECHO_N "(cached) $ECHO_C" >&6
  3858. else
  3859. if test -n "$NM"; then
  3860. # Let the user override the test.
  3861. lt_cv_path_NM="$NM"
  3862. else
  3863. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3864. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  3865. IFS="$lt_save_ifs"
  3866. test -z "$ac_dir" && ac_dir=.
  3867. tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  3868. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3869. # Check to see if the nm accepts a BSD-compat flag.
  3870. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3871. # nm: unknown option "B" ignored
  3872. # Tru64's nm complains that /dev/null is an invalid object file
  3873. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3874. */dev/null* | *'Invalid file or object type'*)
  3875. lt_cv_path_NM="$tmp_nm -B"
  3876. break
  3877. ;;
  3878. *)
  3879. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3880. */dev/null*)
  3881. lt_cv_path_NM="$tmp_nm -p"
  3882. break
  3883. ;;
  3884. *)
  3885. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3886. continue # so that we can try to find one that supports BSD flags
  3887. ;;
  3888. esac
  3889. esac
  3890. fi
  3891. done
  3892. IFS="$lt_save_ifs"
  3893. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3894. fi
  3895. fi
  3896. { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3897. echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  3898. NM="$lt_cv_path_NM"
  3899. { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  3900. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
  3901. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3902. echo $ECHO_N "(cached) $ECHO_C" >&6
  3903. else
  3904. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3905. lt_cv_file_magic_test_file=
  3906. lt_cv_deplibs_check_method='unknown'
  3907. # Need to set the preceding variable on all platforms that support
  3908. # interlibrary dependencies.
  3909. # 'none' -- dependencies not supported.
  3910. # `unknown' -- same as none, but documents that we really don't know.
  3911. # 'pass_all' -- all dependencies passed with no checks.
  3912. # 'test_compile' -- check by making test program.
  3913. # 'file_magic [[regex]]' -- check by looking for files in library path
  3914. # which responds to the $file_magic_cmd with a given extended regex.
  3915. # If you have `file' or equivalent on your system and you're not sure
  3916. # whether `pass_all' will *always* work, you probably want this one.
  3917. case $host_os in
  3918. aix4* | aix5*)
  3919. lt_cv_deplibs_check_method=pass_all
  3920. ;;
  3921. beos*)
  3922. lt_cv_deplibs_check_method=pass_all
  3923. ;;
  3924. bsdi[45]*)
  3925. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3926. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3927. lt_cv_file_magic_test_file=/shlib/libc.so
  3928. ;;
  3929. cygwin*)
  3930. # func_win32_libid is a shell function defined in ltmain.sh
  3931. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3932. lt_cv_file_magic_cmd='func_win32_libid'
  3933. ;;
  3934. mingw* | pw32*)
  3935. # Base MSYS/MinGW do not provide the 'file' command needed by
  3936. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  3937. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3938. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3939. ;;
  3940. darwin* | rhapsody*)
  3941. lt_cv_deplibs_check_method=pass_all
  3942. ;;
  3943. freebsd* | kfreebsd*-gnu | dragonfly*)
  3944. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3945. case $host_cpu in
  3946. i*86 )
  3947. # Not sure whether the presence of OpenBSD here was a mistake.
  3948. # Let's accept both of them until this is cleared up.
  3949. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  3950. lt_cv_file_magic_cmd=/usr/bin/file
  3951. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3952. ;;
  3953. esac
  3954. else
  3955. lt_cv_deplibs_check_method=pass_all
  3956. fi
  3957. ;;
  3958. gnu*)
  3959. lt_cv_deplibs_check_method=pass_all
  3960. ;;
  3961. hpux10.20* | hpux11*)
  3962. lt_cv_file_magic_cmd=/usr/bin/file
  3963. case "$host_cpu" in
  3964. ia64*)
  3965. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3966. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3967. ;;
  3968. hppa*64*)
  3969. 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]'
  3970. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3971. ;;
  3972. *)
  3973. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3974. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3975. ;;
  3976. esac
  3977. ;;
  3978. irix5* | irix6* | nonstopux*)
  3979. case $LD in
  3980. *-32|*"-32 ") libmagic=32-bit;;
  3981. *-n32|*"-n32 ") libmagic=N32;;
  3982. *-64|*"-64 ") libmagic=64-bit;;
  3983. *) libmagic=never-match;;
  3984. esac
  3985. lt_cv_deplibs_check_method=pass_all
  3986. ;;
  3987. # This must be Linux ELF.
  3988. linux*)
  3989. lt_cv_deplibs_check_method=pass_all
  3990. ;;
  3991. netbsd*)
  3992. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3993. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3994. else
  3995. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3996. fi
  3997. ;;
  3998. newos6*)
  3999. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4000. lt_cv_file_magic_cmd=/usr/bin/file
  4001. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4002. ;;
  4003. nto-qnx*)
  4004. lt_cv_deplibs_check_method=unknown
  4005. ;;
  4006. openbsd*)
  4007. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4008. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4009. else
  4010. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4011. fi
  4012. ;;
  4013. osf3* | osf4* | osf5*)
  4014. lt_cv_deplibs_check_method=pass_all
  4015. ;;
  4016. sco3.2v5*)
  4017. lt_cv_deplibs_check_method=pass_all
  4018. ;;
  4019. solaris*)
  4020. lt_cv_deplibs_check_method=pass_all
  4021. ;;
  4022. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  4023. case $host_vendor in
  4024. motorola)
  4025. 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]'
  4026. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4027. ;;
  4028. ncr)
  4029. lt_cv_deplibs_check_method=pass_all
  4030. ;;
  4031. sequent)
  4032. lt_cv_file_magic_cmd='/bin/file'
  4033. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4034. ;;
  4035. sni)
  4036. lt_cv_file_magic_cmd='/bin/file'
  4037. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4038. lt_cv_file_magic_test_file=/lib/libc.so
  4039. ;;
  4040. siemens)
  4041. lt_cv_deplibs_check_method=pass_all
  4042. ;;
  4043. esac
  4044. ;;
  4045. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
  4046. lt_cv_deplibs_check_method=pass_all
  4047. ;;
  4048. esac
  4049. fi
  4050. { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4051. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  4052. file_magic_cmd=$lt_cv_file_magic_cmd
  4053. deplibs_check_method=$lt_cv_deplibs_check_method
  4054. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4055. # If no C compiler was specified, use CC.
  4056. LTCC=${LTCC-"$CC"}
  4057. # Allow CC to be a program name with arguments.
  4058. compiler=$CC
  4059. # Check whether --enable-libtool-lock was given.
  4060. if test "${enable_libtool_lock+set}" = set; then
  4061. enableval=$enable_libtool_lock;
  4062. fi
  4063. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4064. # Some flags need to be propagated to the compiler or linker for good
  4065. # libtool support.
  4066. case $host in
  4067. ia64-*-hpux*)
  4068. # Find out which ABI we are using.
  4069. echo 'int i;' > conftest.$ac_ext
  4070. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4071. (eval $ac_compile) 2>&5
  4072. ac_status=$?
  4073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4074. (exit $ac_status); }; then
  4075. case `/usr/bin/file conftest.$ac_objext` in
  4076. *ELF-32*)
  4077. HPUX_IA64_MODE="32"
  4078. ;;
  4079. *ELF-64*)
  4080. HPUX_IA64_MODE="64"
  4081. ;;
  4082. esac
  4083. fi
  4084. rm -rf conftest*
  4085. ;;
  4086. *-*-irix6*)
  4087. # Find out which ABI we are using.
  4088. echo '#line 4606 "configure"' > conftest.$ac_ext
  4089. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4090. (eval $ac_compile) 2>&5
  4091. ac_status=$?
  4092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4093. (exit $ac_status); }; then
  4094. if test "$lt_cv_prog_gnu_ld" = yes; then
  4095. case `/usr/bin/file conftest.$ac_objext` in
  4096. *32-bit*)
  4097. LD="${LD-ld} -melf32bsmip"
  4098. ;;
  4099. *N32*)
  4100. LD="${LD-ld} -melf32bmipn32"
  4101. ;;
  4102. *64-bit*)
  4103. LD="${LD-ld} -melf64bmip"
  4104. ;;
  4105. esac
  4106. else
  4107. case `/usr/bin/file conftest.$ac_objext` in
  4108. *32-bit*)
  4109. LD="${LD-ld} -32"
  4110. ;;
  4111. *N32*)
  4112. LD="${LD-ld} -n32"
  4113. ;;
  4114. *64-bit*)
  4115. LD="${LD-ld} -64"
  4116. ;;
  4117. esac
  4118. fi
  4119. fi
  4120. rm -rf conftest*
  4121. ;;
  4122. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  4123. # Find out which ABI we are using.
  4124. echo 'int i;' > conftest.$ac_ext
  4125. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4126. (eval $ac_compile) 2>&5
  4127. ac_status=$?
  4128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4129. (exit $ac_status); }; then
  4130. case "`/usr/bin/file conftest.o`" in
  4131. *32-bit*)
  4132. case $host in
  4133. x86_64-*linux*)
  4134. LD="${LD-ld} -m elf_i386"
  4135. ;;
  4136. ppc64-*linux*|powerpc64-*linux*)
  4137. LD="${LD-ld} -m elf32ppclinux"
  4138. ;;
  4139. s390x-*linux*)
  4140. LD="${LD-ld} -m elf_s390"
  4141. ;;
  4142. sparc64-*linux*)
  4143. LD="${LD-ld} -m elf32_sparc"
  4144. ;;
  4145. esac
  4146. ;;
  4147. *64-bit*)
  4148. case $host in
  4149. x86_64-*linux*)
  4150. LD="${LD-ld} -m elf_x86_64"
  4151. ;;
  4152. ppc*-*linux*|powerpc*-*linux*)
  4153. LD="${LD-ld} -m elf64ppc"
  4154. ;;
  4155. s390*-*linux*)
  4156. LD="${LD-ld} -m elf64_s390"
  4157. ;;
  4158. sparc*-*linux*)
  4159. LD="${LD-ld} -m elf64_sparc"
  4160. ;;
  4161. esac
  4162. ;;
  4163. esac
  4164. fi
  4165. rm -rf conftest*
  4166. ;;
  4167. *-*-sco3.2v5*)
  4168. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4169. SAVE_CFLAGS="$CFLAGS"
  4170. CFLAGS="$CFLAGS -belf"
  4171. { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4172. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  4173. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4174. echo $ECHO_N "(cached) $ECHO_C" >&6
  4175. else
  4176. ac_ext=c
  4177. ac_cpp='$CPP $CPPFLAGS'
  4178. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4179. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4180. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4181. cat >conftest.$ac_ext <<_ACEOF
  4182. /* confdefs.h. */
  4183. _ACEOF
  4184. cat confdefs.h >>conftest.$ac_ext
  4185. cat >>conftest.$ac_ext <<_ACEOF
  4186. /* end confdefs.h. */
  4187. int
  4188. main ()
  4189. {
  4190. ;
  4191. return 0;
  4192. }
  4193. _ACEOF
  4194. rm -f conftest.$ac_objext conftest$ac_exeext
  4195. if { (ac_try="$ac_link"
  4196. case "(($ac_try" in
  4197. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4198. *) ac_try_echo=$ac_try;;
  4199. esac
  4200. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4201. (eval "$ac_link") 2>conftest.er1
  4202. ac_status=$?
  4203. grep -v '^ *+' conftest.er1 >conftest.err
  4204. rm -f conftest.er1
  4205. cat conftest.err >&5
  4206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4207. (exit $ac_status); } && {
  4208. test -z "$ac_c_werror_flag" ||
  4209. test ! -s conftest.err
  4210. } && test -s conftest$ac_exeext &&
  4211. $as_test_x conftest$ac_exeext; then
  4212. lt_cv_cc_needs_belf=yes
  4213. else
  4214. echo "$as_me: failed program was:" >&5
  4215. sed 's/^/| /' conftest.$ac_ext >&5
  4216. lt_cv_cc_needs_belf=no
  4217. fi
  4218. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4219. conftest$ac_exeext conftest.$ac_ext
  4220. ac_ext=c
  4221. ac_cpp='$CPP $CPPFLAGS'
  4222. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4223. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4224. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4225. fi
  4226. { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4227. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  4228. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4229. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4230. CFLAGS="$SAVE_CFLAGS"
  4231. fi
  4232. ;;
  4233. esac
  4234. need_locks="$enable_libtool_lock"
  4235. ac_ext=c
  4236. ac_cpp='$CPP $CPPFLAGS'
  4237. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4238. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4239. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4240. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4241. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  4242. # On Suns, sometimes $CPP names a directory.
  4243. if test -n "$CPP" && test -d "$CPP"; then
  4244. CPP=
  4245. fi
  4246. if test -z "$CPP"; then
  4247. if test "${ac_cv_prog_CPP+set}" = set; then
  4248. echo $ECHO_N "(cached) $ECHO_C" >&6
  4249. else
  4250. # Double quotes because CPP needs to be expanded
  4251. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4252. do
  4253. ac_preproc_ok=false
  4254. for ac_c_preproc_warn_flag in '' yes
  4255. do
  4256. # Use a header file that comes with gcc, so configuring glibc
  4257. # with a fresh cross-compiler works.
  4258. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4259. # <limits.h> exists even on freestanding compilers.
  4260. # On the NeXT, cc -E runs the code through the compiler's parser,
  4261. # not just through cpp. "Syntax error" is here to catch this case.
  4262. cat >conftest.$ac_ext <<_ACEOF
  4263. /* confdefs.h. */
  4264. _ACEOF
  4265. cat confdefs.h >>conftest.$ac_ext
  4266. cat >>conftest.$ac_ext <<_ACEOF
  4267. /* end confdefs.h. */
  4268. #ifdef __STDC__
  4269. # include <limits.h>
  4270. #else
  4271. # include <assert.h>
  4272. #endif
  4273. Syntax error
  4274. _ACEOF
  4275. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4276. case "(($ac_try" in
  4277. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4278. *) ac_try_echo=$ac_try;;
  4279. esac
  4280. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4281. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4282. ac_status=$?
  4283. grep -v '^ *+' conftest.er1 >conftest.err
  4284. rm -f conftest.er1
  4285. cat conftest.err >&5
  4286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4287. (exit $ac_status); } >/dev/null && {
  4288. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4289. test ! -s conftest.err
  4290. }; then
  4291. :
  4292. else
  4293. echo "$as_me: failed program was:" >&5
  4294. sed 's/^/| /' conftest.$ac_ext >&5
  4295. # Broken: fails on valid input.
  4296. continue
  4297. fi
  4298. rm -f conftest.err conftest.$ac_ext
  4299. # OK, works on sane cases. Now check whether nonexistent headers
  4300. # can be detected and how.
  4301. cat >conftest.$ac_ext <<_ACEOF
  4302. /* confdefs.h. */
  4303. _ACEOF
  4304. cat confdefs.h >>conftest.$ac_ext
  4305. cat >>conftest.$ac_ext <<_ACEOF
  4306. /* end confdefs.h. */
  4307. #include <ac_nonexistent.h>
  4308. _ACEOF
  4309. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4310. case "(($ac_try" in
  4311. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4312. *) ac_try_echo=$ac_try;;
  4313. esac
  4314. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4315. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4316. ac_status=$?
  4317. grep -v '^ *+' conftest.er1 >conftest.err
  4318. rm -f conftest.er1
  4319. cat conftest.err >&5
  4320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4321. (exit $ac_status); } >/dev/null && {
  4322. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4323. test ! -s conftest.err
  4324. }; then
  4325. # Broken: success on invalid input.
  4326. continue
  4327. else
  4328. echo "$as_me: failed program was:" >&5
  4329. sed 's/^/| /' conftest.$ac_ext >&5
  4330. # Passes both tests.
  4331. ac_preproc_ok=:
  4332. break
  4333. fi
  4334. rm -f conftest.err conftest.$ac_ext
  4335. done
  4336. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4337. rm -f conftest.err conftest.$ac_ext
  4338. if $ac_preproc_ok; then
  4339. break
  4340. fi
  4341. done
  4342. ac_cv_prog_CPP=$CPP
  4343. fi
  4344. CPP=$ac_cv_prog_CPP
  4345. else
  4346. ac_cv_prog_CPP=$CPP
  4347. fi
  4348. { echo "$as_me:$LINENO: result: $CPP" >&5
  4349. echo "${ECHO_T}$CPP" >&6; }
  4350. ac_preproc_ok=false
  4351. for ac_c_preproc_warn_flag in '' yes
  4352. do
  4353. # Use a header file that comes with gcc, so configuring glibc
  4354. # with a fresh cross-compiler works.
  4355. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4356. # <limits.h> exists even on freestanding compilers.
  4357. # On the NeXT, cc -E runs the code through the compiler's parser,
  4358. # not just through cpp. "Syntax error" is here to catch this case.
  4359. cat >conftest.$ac_ext <<_ACEOF
  4360. /* confdefs.h. */
  4361. _ACEOF
  4362. cat confdefs.h >>conftest.$ac_ext
  4363. cat >>conftest.$ac_ext <<_ACEOF
  4364. /* end confdefs.h. */
  4365. #ifdef __STDC__
  4366. # include <limits.h>
  4367. #else
  4368. # include <assert.h>
  4369. #endif
  4370. Syntax error
  4371. _ACEOF
  4372. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4373. case "(($ac_try" in
  4374. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4375. *) ac_try_echo=$ac_try;;
  4376. esac
  4377. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4378. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4379. ac_status=$?
  4380. grep -v '^ *+' conftest.er1 >conftest.err
  4381. rm -f conftest.er1
  4382. cat conftest.err >&5
  4383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4384. (exit $ac_status); } >/dev/null && {
  4385. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4386. test ! -s conftest.err
  4387. }; then
  4388. :
  4389. else
  4390. echo "$as_me: failed program was:" >&5
  4391. sed 's/^/| /' conftest.$ac_ext >&5
  4392. # Broken: fails on valid input.
  4393. continue
  4394. fi
  4395. rm -f conftest.err conftest.$ac_ext
  4396. # OK, works on sane cases. Now check whether nonexistent headers
  4397. # can be detected and how.
  4398. cat >conftest.$ac_ext <<_ACEOF
  4399. /* confdefs.h. */
  4400. _ACEOF
  4401. cat confdefs.h >>conftest.$ac_ext
  4402. cat >>conftest.$ac_ext <<_ACEOF
  4403. /* end confdefs.h. */
  4404. #include <ac_nonexistent.h>
  4405. _ACEOF
  4406. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4407. case "(($ac_try" in
  4408. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4409. *) ac_try_echo=$ac_try;;
  4410. esac
  4411. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4412. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4413. ac_status=$?
  4414. grep -v '^ *+' conftest.er1 >conftest.err
  4415. rm -f conftest.er1
  4416. cat conftest.err >&5
  4417. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4418. (exit $ac_status); } >/dev/null && {
  4419. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4420. test ! -s conftest.err
  4421. }; then
  4422. # Broken: success on invalid input.
  4423. continue
  4424. else
  4425. echo "$as_me: failed program was:" >&5
  4426. sed 's/^/| /' conftest.$ac_ext >&5
  4427. # Passes both tests.
  4428. ac_preproc_ok=:
  4429. break
  4430. fi
  4431. rm -f conftest.err conftest.$ac_ext
  4432. done
  4433. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4434. rm -f conftest.err conftest.$ac_ext
  4435. if $ac_preproc_ok; then
  4436. :
  4437. else
  4438. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4439. See \`config.log' for more details." >&5
  4440. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4441. See \`config.log' for more details." >&2;}
  4442. { (exit 1); exit 1; }; }
  4443. fi
  4444. ac_ext=c
  4445. ac_cpp='$CPP $CPPFLAGS'
  4446. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4447. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4448. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4449. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4450. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4451. if test "${ac_cv_header_stdc+set}" = set; then
  4452. echo $ECHO_N "(cached) $ECHO_C" >&6
  4453. else
  4454. cat >conftest.$ac_ext <<_ACEOF
  4455. /* confdefs.h. */
  4456. _ACEOF
  4457. cat confdefs.h >>conftest.$ac_ext
  4458. cat >>conftest.$ac_ext <<_ACEOF
  4459. /* end confdefs.h. */
  4460. #include <stdlib.h>
  4461. #include <stdarg.h>
  4462. #include <string.h>
  4463. #include <float.h>
  4464. int
  4465. main ()
  4466. {
  4467. ;
  4468. return 0;
  4469. }
  4470. _ACEOF
  4471. rm -f conftest.$ac_objext
  4472. if { (ac_try="$ac_compile"
  4473. case "(($ac_try" in
  4474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4475. *) ac_try_echo=$ac_try;;
  4476. esac
  4477. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4478. (eval "$ac_compile") 2>conftest.er1
  4479. ac_status=$?
  4480. grep -v '^ *+' conftest.er1 >conftest.err
  4481. rm -f conftest.er1
  4482. cat conftest.err >&5
  4483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4484. (exit $ac_status); } && {
  4485. test -z "$ac_c_werror_flag" ||
  4486. test ! -s conftest.err
  4487. } && test -s conftest.$ac_objext; then
  4488. ac_cv_header_stdc=yes
  4489. else
  4490. echo "$as_me: failed program was:" >&5
  4491. sed 's/^/| /' conftest.$ac_ext >&5
  4492. ac_cv_header_stdc=no
  4493. fi
  4494. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4495. if test $ac_cv_header_stdc = yes; then
  4496. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4497. cat >conftest.$ac_ext <<_ACEOF
  4498. /* confdefs.h. */
  4499. _ACEOF
  4500. cat confdefs.h >>conftest.$ac_ext
  4501. cat >>conftest.$ac_ext <<_ACEOF
  4502. /* end confdefs.h. */
  4503. #include <string.h>
  4504. _ACEOF
  4505. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4506. $EGREP "memchr" >/dev/null 2>&1; then
  4507. :
  4508. else
  4509. ac_cv_header_stdc=no
  4510. fi
  4511. rm -f conftest*
  4512. fi
  4513. if test $ac_cv_header_stdc = yes; then
  4514. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4515. cat >conftest.$ac_ext <<_ACEOF
  4516. /* confdefs.h. */
  4517. _ACEOF
  4518. cat confdefs.h >>conftest.$ac_ext
  4519. cat >>conftest.$ac_ext <<_ACEOF
  4520. /* end confdefs.h. */
  4521. #include <stdlib.h>
  4522. _ACEOF
  4523. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4524. $EGREP "free" >/dev/null 2>&1; then
  4525. :
  4526. else
  4527. ac_cv_header_stdc=no
  4528. fi
  4529. rm -f conftest*
  4530. fi
  4531. if test $ac_cv_header_stdc = yes; then
  4532. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4533. if test "$cross_compiling" = yes; then
  4534. :
  4535. else
  4536. cat >conftest.$ac_ext <<_ACEOF
  4537. /* confdefs.h. */
  4538. _ACEOF
  4539. cat confdefs.h >>conftest.$ac_ext
  4540. cat >>conftest.$ac_ext <<_ACEOF
  4541. /* end confdefs.h. */
  4542. #include <ctype.h>
  4543. #include <stdlib.h>
  4544. #if ((' ' & 0x0FF) == 0x020)
  4545. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4546. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4547. #else
  4548. # define ISLOWER(c) \
  4549. (('a' <= (c) && (c) <= 'i') \
  4550. || ('j' <= (c) && (c) <= 'r') \
  4551. || ('s' <= (c) && (c) <= 'z'))
  4552. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4553. #endif
  4554. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4555. int
  4556. main ()
  4557. {
  4558. int i;
  4559. for (i = 0; i < 256; i++)
  4560. if (XOR (islower (i), ISLOWER (i))
  4561. || toupper (i) != TOUPPER (i))
  4562. return 2;
  4563. return 0;
  4564. }
  4565. _ACEOF
  4566. rm -f conftest$ac_exeext
  4567. if { (ac_try="$ac_link"
  4568. case "(($ac_try" in
  4569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4570. *) ac_try_echo=$ac_try;;
  4571. esac
  4572. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4573. (eval "$ac_link") 2>&5
  4574. ac_status=$?
  4575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4576. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4577. { (case "(($ac_try" in
  4578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4579. *) ac_try_echo=$ac_try;;
  4580. esac
  4581. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4582. (eval "$ac_try") 2>&5
  4583. ac_status=$?
  4584. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4585. (exit $ac_status); }; }; then
  4586. :
  4587. else
  4588. echo "$as_me: program exited with status $ac_status" >&5
  4589. echo "$as_me: failed program was:" >&5
  4590. sed 's/^/| /' conftest.$ac_ext >&5
  4591. ( exit $ac_status )
  4592. ac_cv_header_stdc=no
  4593. fi
  4594. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4595. fi
  4596. fi
  4597. fi
  4598. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4599. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4600. if test $ac_cv_header_stdc = yes; then
  4601. cat >>confdefs.h <<\_ACEOF
  4602. #define STDC_HEADERS 1
  4603. _ACEOF
  4604. fi
  4605. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4606. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4607. inttypes.h stdint.h unistd.h
  4608. do
  4609. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4610. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4611. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4612. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4613. echo $ECHO_N "(cached) $ECHO_C" >&6
  4614. else
  4615. cat >conftest.$ac_ext <<_ACEOF
  4616. /* confdefs.h. */
  4617. _ACEOF
  4618. cat confdefs.h >>conftest.$ac_ext
  4619. cat >>conftest.$ac_ext <<_ACEOF
  4620. /* end confdefs.h. */
  4621. $ac_includes_default
  4622. #include <$ac_header>
  4623. _ACEOF
  4624. rm -f conftest.$ac_objext
  4625. if { (ac_try="$ac_compile"
  4626. case "(($ac_try" in
  4627. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4628. *) ac_try_echo=$ac_try;;
  4629. esac
  4630. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4631. (eval "$ac_compile") 2>conftest.er1
  4632. ac_status=$?
  4633. grep -v '^ *+' conftest.er1 >conftest.err
  4634. rm -f conftest.er1
  4635. cat conftest.err >&5
  4636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4637. (exit $ac_status); } && {
  4638. test -z "$ac_c_werror_flag" ||
  4639. test ! -s conftest.err
  4640. } && test -s conftest.$ac_objext; then
  4641. eval "$as_ac_Header=yes"
  4642. else
  4643. echo "$as_me: failed program was:" >&5
  4644. sed 's/^/| /' conftest.$ac_ext >&5
  4645. eval "$as_ac_Header=no"
  4646. fi
  4647. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4648. fi
  4649. ac_res=`eval echo '${'$as_ac_Header'}'`
  4650. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4651. echo "${ECHO_T}$ac_res" >&6; }
  4652. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4653. cat >>confdefs.h <<_ACEOF
  4654. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4655. _ACEOF
  4656. fi
  4657. done
  4658. for ac_header in dlfcn.h
  4659. do
  4660. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4661. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4662. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4663. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4664. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4665. echo $ECHO_N "(cached) $ECHO_C" >&6
  4666. fi
  4667. ac_res=`eval echo '${'$as_ac_Header'}'`
  4668. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4669. echo "${ECHO_T}$ac_res" >&6; }
  4670. else
  4671. # Is the header compilable?
  4672. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4673. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4674. cat >conftest.$ac_ext <<_ACEOF
  4675. /* confdefs.h. */
  4676. _ACEOF
  4677. cat confdefs.h >>conftest.$ac_ext
  4678. cat >>conftest.$ac_ext <<_ACEOF
  4679. /* end confdefs.h. */
  4680. $ac_includes_default
  4681. #include <$ac_header>
  4682. _ACEOF
  4683. rm -f conftest.$ac_objext
  4684. if { (ac_try="$ac_compile"
  4685. case "(($ac_try" in
  4686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4687. *) ac_try_echo=$ac_try;;
  4688. esac
  4689. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4690. (eval "$ac_compile") 2>conftest.er1
  4691. ac_status=$?
  4692. grep -v '^ *+' conftest.er1 >conftest.err
  4693. rm -f conftest.er1
  4694. cat conftest.err >&5
  4695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4696. (exit $ac_status); } && {
  4697. test -z "$ac_c_werror_flag" ||
  4698. test ! -s conftest.err
  4699. } && test -s conftest.$ac_objext; then
  4700. ac_header_compiler=yes
  4701. else
  4702. echo "$as_me: failed program was:" >&5
  4703. sed 's/^/| /' conftest.$ac_ext >&5
  4704. ac_header_compiler=no
  4705. fi
  4706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4707. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4708. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4709. # Is the header present?
  4710. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4711. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4712. cat >conftest.$ac_ext <<_ACEOF
  4713. /* confdefs.h. */
  4714. _ACEOF
  4715. cat confdefs.h >>conftest.$ac_ext
  4716. cat >>conftest.$ac_ext <<_ACEOF
  4717. /* end confdefs.h. */
  4718. #include <$ac_header>
  4719. _ACEOF
  4720. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4721. case "(($ac_try" in
  4722. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4723. *) ac_try_echo=$ac_try;;
  4724. esac
  4725. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4726. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4727. ac_status=$?
  4728. grep -v '^ *+' conftest.er1 >conftest.err
  4729. rm -f conftest.er1
  4730. cat conftest.err >&5
  4731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4732. (exit $ac_status); } >/dev/null && {
  4733. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4734. test ! -s conftest.err
  4735. }; then
  4736. ac_header_preproc=yes
  4737. else
  4738. echo "$as_me: failed program was:" >&5
  4739. sed 's/^/| /' conftest.$ac_ext >&5
  4740. ac_header_preproc=no
  4741. fi
  4742. rm -f conftest.err conftest.$ac_ext
  4743. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4744. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4745. # So? What about this header?
  4746. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4747. yes:no: )
  4748. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4749. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4750. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4751. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4752. ac_header_preproc=yes
  4753. ;;
  4754. no:yes:* )
  4755. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4756. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4757. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4758. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4759. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4760. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4761. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4762. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4763. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4764. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4765. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4766. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4767. ( cat <<\_ASBOX
  4768. ## ---------------------------------- ##
  4769. ## Report this to christos@astron.com ##
  4770. ## ---------------------------------- ##
  4771. _ASBOX
  4772. ) | sed "s/^/$as_me: WARNING: /" >&2
  4773. ;;
  4774. esac
  4775. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4776. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4777. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4778. echo $ECHO_N "(cached) $ECHO_C" >&6
  4779. else
  4780. eval "$as_ac_Header=\$ac_header_preproc"
  4781. fi
  4782. ac_res=`eval echo '${'$as_ac_Header'}'`
  4783. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4784. echo "${ECHO_T}$ac_res" >&6; }
  4785. fi
  4786. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4787. cat >>confdefs.h <<_ACEOF
  4788. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4789. _ACEOF
  4790. fi
  4791. done
  4792. ac_ext=cpp
  4793. ac_cpp='$CXXCPP $CPPFLAGS'
  4794. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4795. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4796. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4797. if test -z "$CXX"; then
  4798. if test -n "$CCC"; then
  4799. CXX=$CCC
  4800. else
  4801. if test -n "$ac_tool_prefix"; then
  4802. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4803. do
  4804. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4805. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4806. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4807. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4808. if test "${ac_cv_prog_CXX+set}" = set; then
  4809. echo $ECHO_N "(cached) $ECHO_C" >&6
  4810. else
  4811. if test -n "$CXX"; then
  4812. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4813. else
  4814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4815. for as_dir in $PATH
  4816. do
  4817. IFS=$as_save_IFS
  4818. test -z "$as_dir" && as_dir=.
  4819. for ac_exec_ext in '' $ac_executable_extensions; do
  4820. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4821. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4822. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4823. break 2
  4824. fi
  4825. done
  4826. done
  4827. IFS=$as_save_IFS
  4828. fi
  4829. fi
  4830. CXX=$ac_cv_prog_CXX
  4831. if test -n "$CXX"; then
  4832. { echo "$as_me:$LINENO: result: $CXX" >&5
  4833. echo "${ECHO_T}$CXX" >&6; }
  4834. else
  4835. { echo "$as_me:$LINENO: result: no" >&5
  4836. echo "${ECHO_T}no" >&6; }
  4837. fi
  4838. test -n "$CXX" && break
  4839. done
  4840. fi
  4841. if test -z "$CXX"; then
  4842. ac_ct_CXX=$CXX
  4843. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4844. do
  4845. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4846. set dummy $ac_prog; ac_word=$2
  4847. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4848. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4849. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  4850. echo $ECHO_N "(cached) $ECHO_C" >&6
  4851. else
  4852. if test -n "$ac_ct_CXX"; then
  4853. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4854. else
  4855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4856. for as_dir in $PATH
  4857. do
  4858. IFS=$as_save_IFS
  4859. test -z "$as_dir" && as_dir=.
  4860. for ac_exec_ext in '' $ac_executable_extensions; do
  4861. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4862. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4863. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4864. break 2
  4865. fi
  4866. done
  4867. done
  4868. IFS=$as_save_IFS
  4869. fi
  4870. fi
  4871. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4872. if test -n "$ac_ct_CXX"; then
  4873. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  4874. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  4875. else
  4876. { echo "$as_me:$LINENO: result: no" >&5
  4877. echo "${ECHO_T}no" >&6; }
  4878. fi
  4879. test -n "$ac_ct_CXX" && break
  4880. done
  4881. if test "x$ac_ct_CXX" = x; then
  4882. CXX="g++"
  4883. else
  4884. case $cross_compiling:$ac_tool_warned in
  4885. yes:)
  4886. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4887. whose name does not start with the host triplet. If you think this
  4888. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4889. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4890. whose name does not start with the host triplet. If you think this
  4891. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4892. ac_tool_warned=yes ;;
  4893. esac
  4894. CXX=$ac_ct_CXX
  4895. fi
  4896. fi
  4897. fi
  4898. fi
  4899. # Provide some information about the compiler.
  4900. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  4901. ac_compiler=`set X $ac_compile; echo $2`
  4902. { (ac_try="$ac_compiler --version >&5"
  4903. case "(($ac_try" in
  4904. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4905. *) ac_try_echo=$ac_try;;
  4906. esac
  4907. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4908. (eval "$ac_compiler --version >&5") 2>&5
  4909. ac_status=$?
  4910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4911. (exit $ac_status); }
  4912. { (ac_try="$ac_compiler -v >&5"
  4913. case "(($ac_try" in
  4914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4915. *) ac_try_echo=$ac_try;;
  4916. esac
  4917. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4918. (eval "$ac_compiler -v >&5") 2>&5
  4919. ac_status=$?
  4920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4921. (exit $ac_status); }
  4922. { (ac_try="$ac_compiler -V >&5"
  4923. case "(($ac_try" in
  4924. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4925. *) ac_try_echo=$ac_try;;
  4926. esac
  4927. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4928. (eval "$ac_compiler -V >&5") 2>&5
  4929. ac_status=$?
  4930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4931. (exit $ac_status); }
  4932. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  4933. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  4934. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  4935. echo $ECHO_N "(cached) $ECHO_C" >&6
  4936. else
  4937. cat >conftest.$ac_ext <<_ACEOF
  4938. /* confdefs.h. */
  4939. _ACEOF
  4940. cat confdefs.h >>conftest.$ac_ext
  4941. cat >>conftest.$ac_ext <<_ACEOF
  4942. /* end confdefs.h. */
  4943. int
  4944. main ()
  4945. {
  4946. #ifndef __GNUC__
  4947. choke me
  4948. #endif
  4949. ;
  4950. return 0;
  4951. }
  4952. _ACEOF
  4953. rm -f conftest.$ac_objext
  4954. if { (ac_try="$ac_compile"
  4955. case "(($ac_try" in
  4956. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4957. *) ac_try_echo=$ac_try;;
  4958. esac
  4959. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4960. (eval "$ac_compile") 2>conftest.er1
  4961. ac_status=$?
  4962. grep -v '^ *+' conftest.er1 >conftest.err
  4963. rm -f conftest.er1
  4964. cat conftest.err >&5
  4965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4966. (exit $ac_status); } && {
  4967. test -z "$ac_cxx_werror_flag" ||
  4968. test ! -s conftest.err
  4969. } && test -s conftest.$ac_objext; then
  4970. ac_compiler_gnu=yes
  4971. else
  4972. echo "$as_me: failed program was:" >&5
  4973. sed 's/^/| /' conftest.$ac_ext >&5
  4974. ac_compiler_gnu=no
  4975. fi
  4976. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4977. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4978. fi
  4979. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  4980. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  4981. GXX=`test $ac_compiler_gnu = yes && echo yes`
  4982. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4983. ac_save_CXXFLAGS=$CXXFLAGS
  4984. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  4985. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  4986. if test "${ac_cv_prog_cxx_g+set}" = set; then
  4987. echo $ECHO_N "(cached) $ECHO_C" >&6
  4988. else
  4989. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4990. ac_cxx_werror_flag=yes
  4991. ac_cv_prog_cxx_g=no
  4992. CXXFLAGS="-g"
  4993. cat >conftest.$ac_ext <<_ACEOF
  4994. /* confdefs.h. */
  4995. _ACEOF
  4996. cat confdefs.h >>conftest.$ac_ext
  4997. cat >>conftest.$ac_ext <<_ACEOF
  4998. /* end confdefs.h. */
  4999. int
  5000. main ()
  5001. {
  5002. ;
  5003. return 0;
  5004. }
  5005. _ACEOF
  5006. rm -f conftest.$ac_objext
  5007. if { (ac_try="$ac_compile"
  5008. case "(($ac_try" in
  5009. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5010. *) ac_try_echo=$ac_try;;
  5011. esac
  5012. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5013. (eval "$ac_compile") 2>conftest.er1
  5014. ac_status=$?
  5015. grep -v '^ *+' conftest.er1 >conftest.err
  5016. rm -f conftest.er1
  5017. cat conftest.err >&5
  5018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5019. (exit $ac_status); } && {
  5020. test -z "$ac_cxx_werror_flag" ||
  5021. test ! -s conftest.err
  5022. } && test -s conftest.$ac_objext; then
  5023. ac_cv_prog_cxx_g=yes
  5024. else
  5025. echo "$as_me: failed program was:" >&5
  5026. sed 's/^/| /' conftest.$ac_ext >&5
  5027. CXXFLAGS=""
  5028. cat >conftest.$ac_ext <<_ACEOF
  5029. /* confdefs.h. */
  5030. _ACEOF
  5031. cat confdefs.h >>conftest.$ac_ext
  5032. cat >>conftest.$ac_ext <<_ACEOF
  5033. /* end confdefs.h. */
  5034. int
  5035. main ()
  5036. {
  5037. ;
  5038. return 0;
  5039. }
  5040. _ACEOF
  5041. rm -f conftest.$ac_objext
  5042. if { (ac_try="$ac_compile"
  5043. case "(($ac_try" in
  5044. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5045. *) ac_try_echo=$ac_try;;
  5046. esac
  5047. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5048. (eval "$ac_compile") 2>conftest.er1
  5049. ac_status=$?
  5050. grep -v '^ *+' conftest.er1 >conftest.err
  5051. rm -f conftest.er1
  5052. cat conftest.err >&5
  5053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5054. (exit $ac_status); } && {
  5055. test -z "$ac_cxx_werror_flag" ||
  5056. test ! -s conftest.err
  5057. } && test -s conftest.$ac_objext; then
  5058. :
  5059. else
  5060. echo "$as_me: failed program was:" >&5
  5061. sed 's/^/| /' conftest.$ac_ext >&5
  5062. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5063. CXXFLAGS="-g"
  5064. cat >conftest.$ac_ext <<_ACEOF
  5065. /* confdefs.h. */
  5066. _ACEOF
  5067. cat confdefs.h >>conftest.$ac_ext
  5068. cat >>conftest.$ac_ext <<_ACEOF
  5069. /* end confdefs.h. */
  5070. int
  5071. main ()
  5072. {
  5073. ;
  5074. return 0;
  5075. }
  5076. _ACEOF
  5077. rm -f conftest.$ac_objext
  5078. if { (ac_try="$ac_compile"
  5079. case "(($ac_try" in
  5080. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5081. *) ac_try_echo=$ac_try;;
  5082. esac
  5083. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5084. (eval "$ac_compile") 2>conftest.er1
  5085. ac_status=$?
  5086. grep -v '^ *+' conftest.er1 >conftest.err
  5087. rm -f conftest.er1
  5088. cat conftest.err >&5
  5089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5090. (exit $ac_status); } && {
  5091. test -z "$ac_cxx_werror_flag" ||
  5092. test ! -s conftest.err
  5093. } && test -s conftest.$ac_objext; then
  5094. ac_cv_prog_cxx_g=yes
  5095. else
  5096. echo "$as_me: failed program was:" >&5
  5097. sed 's/^/| /' conftest.$ac_ext >&5
  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. fi
  5103. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5104. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5105. fi
  5106. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  5107. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  5108. if test "$ac_test_CXXFLAGS" = set; then
  5109. CXXFLAGS=$ac_save_CXXFLAGS
  5110. elif test $ac_cv_prog_cxx_g = yes; then
  5111. if test "$GXX" = yes; then
  5112. CXXFLAGS="-g -O2"
  5113. else
  5114. CXXFLAGS="-g"
  5115. fi
  5116. else
  5117. if test "$GXX" = yes; then
  5118. CXXFLAGS="-O2"
  5119. else
  5120. CXXFLAGS=
  5121. fi
  5122. fi
  5123. ac_ext=cpp
  5124. ac_cpp='$CXXCPP $CPPFLAGS'
  5125. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5126. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5127. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5128. depcc="$CXX" am_compiler_list=
  5129. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5130. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  5131. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  5132. echo $ECHO_N "(cached) $ECHO_C" >&6
  5133. else
  5134. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5135. # We make a subdir and do the tests there. Otherwise we can end up
  5136. # making bogus files that we don't know about and never remove. For
  5137. # instance it was reported that on HP-UX the gcc test will end up
  5138. # making a dummy file named `D' -- because `-MD' means `put the output
  5139. # in D'.
  5140. mkdir conftest.dir
  5141. # Copy depcomp to subdir because otherwise we won't find it if we're
  5142. # using a relative directory.
  5143. cp "$am_depcomp" conftest.dir
  5144. cd conftest.dir
  5145. # We will build objects and dependencies in a subdirectory because
  5146. # it helps to detect inapplicable dependency modes. For instance
  5147. # both Tru64's cc and ICC support -MD to output dependencies as a
  5148. # side effect of compilation, but ICC will put the dependencies in
  5149. # the current directory while Tru64 will put them in the object
  5150. # directory.
  5151. mkdir sub
  5152. am_cv_CXX_dependencies_compiler_type=none
  5153. if test "$am_compiler_list" = ""; then
  5154. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5155. fi
  5156. for depmode in $am_compiler_list; do
  5157. # Setup a source with many dependencies, because some compilers
  5158. # like to wrap large dependency lists on column 80 (with \), and
  5159. # we should not choose a depcomp mode which is confused by this.
  5160. #
  5161. # We need to recreate these files for each test, as the compiler may
  5162. # overwrite some of them when testing with obscure command lines.
  5163. # This happens at least with the AIX C compiler.
  5164. : > sub/conftest.c
  5165. for i in 1 2 3 4 5 6; do
  5166. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5167. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5168. # Solaris 8's {/usr,}/bin/sh.
  5169. touch sub/conftst$i.h
  5170. done
  5171. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5172. case $depmode in
  5173. nosideeffect)
  5174. # after this tag, mechanisms are not by side-effect, so they'll
  5175. # only be used when explicitly requested
  5176. if test "x$enable_dependency_tracking" = xyes; then
  5177. continue
  5178. else
  5179. break
  5180. fi
  5181. ;;
  5182. none) break ;;
  5183. esac
  5184. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5185. # mode. It turns out that the SunPro C++ compiler does not properly
  5186. # handle `-M -o', and we need to detect this.
  5187. if depmode=$depmode \
  5188. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5189. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5190. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5191. >/dev/null 2>conftest.err &&
  5192. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5193. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5194. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5195. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5196. # icc doesn't choke on unknown options, it will just issue warnings
  5197. # or remarks (even with -Werror). So we grep stderr for any message
  5198. # that says an option was ignored or not supported.
  5199. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5200. # icc: Command line warning: ignoring option '-M'; no argument required
  5201. # The diagnosis changed in icc 8.0:
  5202. # icc: Command line remark: option '-MP' not supported
  5203. if (grep 'ignoring option' conftest.err ||
  5204. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5205. am_cv_CXX_dependencies_compiler_type=$depmode
  5206. break
  5207. fi
  5208. fi
  5209. done
  5210. cd ..
  5211. rm -rf conftest.dir
  5212. else
  5213. am_cv_CXX_dependencies_compiler_type=none
  5214. fi
  5215. fi
  5216. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  5217. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  5218. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  5219. if
  5220. test "x$enable_dependency_tracking" != xno \
  5221. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  5222. am__fastdepCXX_TRUE=
  5223. am__fastdepCXX_FALSE='#'
  5224. else
  5225. am__fastdepCXX_TRUE='#'
  5226. am__fastdepCXX_FALSE=
  5227. fi
  5228. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5229. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5230. (test "X$CXX" != "Xg++"))) ; then
  5231. ac_ext=cpp
  5232. ac_cpp='$CXXCPP $CPPFLAGS'
  5233. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5234. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5235. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5236. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  5237. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  5238. if test -z "$CXXCPP"; then
  5239. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  5240. echo $ECHO_N "(cached) $ECHO_C" >&6
  5241. else
  5242. # Double quotes because CXXCPP needs to be expanded
  5243. for CXXCPP in "$CXX -E" "/lib/cpp"
  5244. do
  5245. ac_preproc_ok=false
  5246. for ac_cxx_preproc_warn_flag in '' yes
  5247. do
  5248. # Use a header file that comes with gcc, so configuring glibc
  5249. # with a fresh cross-compiler works.
  5250. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5251. # <limits.h> exists even on freestanding compilers.
  5252. # On the NeXT, cc -E runs the code through the compiler's parser,
  5253. # not just through cpp. "Syntax error" is here to catch this case.
  5254. cat >conftest.$ac_ext <<_ACEOF
  5255. /* confdefs.h. */
  5256. _ACEOF
  5257. cat confdefs.h >>conftest.$ac_ext
  5258. cat >>conftest.$ac_ext <<_ACEOF
  5259. /* end confdefs.h. */
  5260. #ifdef __STDC__
  5261. # include <limits.h>
  5262. #else
  5263. # include <assert.h>
  5264. #endif
  5265. Syntax error
  5266. _ACEOF
  5267. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5268. case "(($ac_try" in
  5269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5270. *) ac_try_echo=$ac_try;;
  5271. esac
  5272. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5273. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5274. ac_status=$?
  5275. grep -v '^ *+' conftest.er1 >conftest.err
  5276. rm -f conftest.er1
  5277. cat conftest.err >&5
  5278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5279. (exit $ac_status); } >/dev/null && {
  5280. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5281. test ! -s conftest.err
  5282. }; then
  5283. :
  5284. else
  5285. echo "$as_me: failed program was:" >&5
  5286. sed 's/^/| /' conftest.$ac_ext >&5
  5287. # Broken: fails on valid input.
  5288. continue
  5289. fi
  5290. rm -f conftest.err conftest.$ac_ext
  5291. # OK, works on sane cases. Now check whether nonexistent headers
  5292. # can be detected and how.
  5293. cat >conftest.$ac_ext <<_ACEOF
  5294. /* confdefs.h. */
  5295. _ACEOF
  5296. cat confdefs.h >>conftest.$ac_ext
  5297. cat >>conftest.$ac_ext <<_ACEOF
  5298. /* end confdefs.h. */
  5299. #include <ac_nonexistent.h>
  5300. _ACEOF
  5301. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5302. case "(($ac_try" in
  5303. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5304. *) ac_try_echo=$ac_try;;
  5305. esac
  5306. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5307. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5308. ac_status=$?
  5309. grep -v '^ *+' conftest.er1 >conftest.err
  5310. rm -f conftest.er1
  5311. cat conftest.err >&5
  5312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5313. (exit $ac_status); } >/dev/null && {
  5314. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5315. test ! -s conftest.err
  5316. }; then
  5317. # Broken: success on invalid input.
  5318. continue
  5319. else
  5320. echo "$as_me: failed program was:" >&5
  5321. sed 's/^/| /' conftest.$ac_ext >&5
  5322. # Passes both tests.
  5323. ac_preproc_ok=:
  5324. break
  5325. fi
  5326. rm -f conftest.err conftest.$ac_ext
  5327. done
  5328. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5329. rm -f conftest.err conftest.$ac_ext
  5330. if $ac_preproc_ok; then
  5331. break
  5332. fi
  5333. done
  5334. ac_cv_prog_CXXCPP=$CXXCPP
  5335. fi
  5336. CXXCPP=$ac_cv_prog_CXXCPP
  5337. else
  5338. ac_cv_prog_CXXCPP=$CXXCPP
  5339. fi
  5340. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  5341. echo "${ECHO_T}$CXXCPP" >&6; }
  5342. ac_preproc_ok=false
  5343. for ac_cxx_preproc_warn_flag in '' yes
  5344. do
  5345. # Use a header file that comes with gcc, so configuring glibc
  5346. # with a fresh cross-compiler works.
  5347. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5348. # <limits.h> exists even on freestanding compilers.
  5349. # On the NeXT, cc -E runs the code through the compiler's parser,
  5350. # not just through cpp. "Syntax error" is here to catch this case.
  5351. cat >conftest.$ac_ext <<_ACEOF
  5352. /* confdefs.h. */
  5353. _ACEOF
  5354. cat confdefs.h >>conftest.$ac_ext
  5355. cat >>conftest.$ac_ext <<_ACEOF
  5356. /* end confdefs.h. */
  5357. #ifdef __STDC__
  5358. # include <limits.h>
  5359. #else
  5360. # include <assert.h>
  5361. #endif
  5362. Syntax error
  5363. _ACEOF
  5364. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5365. case "(($ac_try" in
  5366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5367. *) ac_try_echo=$ac_try;;
  5368. esac
  5369. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5370. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5371. ac_status=$?
  5372. grep -v '^ *+' conftest.er1 >conftest.err
  5373. rm -f conftest.er1
  5374. cat conftest.err >&5
  5375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5376. (exit $ac_status); } >/dev/null && {
  5377. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5378. test ! -s conftest.err
  5379. }; then
  5380. :
  5381. else
  5382. echo "$as_me: failed program was:" >&5
  5383. sed 's/^/| /' conftest.$ac_ext >&5
  5384. # Broken: fails on valid input.
  5385. continue
  5386. fi
  5387. rm -f conftest.err conftest.$ac_ext
  5388. # OK, works on sane cases. Now check whether nonexistent headers
  5389. # can be detected and how.
  5390. cat >conftest.$ac_ext <<_ACEOF
  5391. /* confdefs.h. */
  5392. _ACEOF
  5393. cat confdefs.h >>conftest.$ac_ext
  5394. cat >>conftest.$ac_ext <<_ACEOF
  5395. /* end confdefs.h. */
  5396. #include <ac_nonexistent.h>
  5397. _ACEOF
  5398. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5399. case "(($ac_try" in
  5400. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5401. *) ac_try_echo=$ac_try;;
  5402. esac
  5403. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5404. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5405. ac_status=$?
  5406. grep -v '^ *+' conftest.er1 >conftest.err
  5407. rm -f conftest.er1
  5408. cat conftest.err >&5
  5409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5410. (exit $ac_status); } >/dev/null && {
  5411. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5412. test ! -s conftest.err
  5413. }; then
  5414. # Broken: success on invalid input.
  5415. continue
  5416. else
  5417. echo "$as_me: failed program was:" >&5
  5418. sed 's/^/| /' conftest.$ac_ext >&5
  5419. # Passes both tests.
  5420. ac_preproc_ok=:
  5421. break
  5422. fi
  5423. rm -f conftest.err conftest.$ac_ext
  5424. done
  5425. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5426. rm -f conftest.err conftest.$ac_ext
  5427. if $ac_preproc_ok; then
  5428. :
  5429. else
  5430. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5431. See \`config.log' for more details." >&5
  5432. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5433. See \`config.log' for more details." >&2;}
  5434. { (exit 1); exit 1; }; }
  5435. fi
  5436. ac_ext=cpp
  5437. ac_cpp='$CXXCPP $CPPFLAGS'
  5438. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5439. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5440. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5441. fi
  5442. ac_ext=f
  5443. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  5444. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5445. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  5446. if test -n "$ac_tool_prefix"; then
  5447. 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
  5448. do
  5449. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5450. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5451. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5452. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5453. if test "${ac_cv_prog_F77+set}" = set; then
  5454. echo $ECHO_N "(cached) $ECHO_C" >&6
  5455. else
  5456. if test -n "$F77"; then
  5457. ac_cv_prog_F77="$F77" # Let the user override the test.
  5458. else
  5459. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5460. for as_dir in $PATH
  5461. do
  5462. IFS=$as_save_IFS
  5463. test -z "$as_dir" && as_dir=.
  5464. for ac_exec_ext in '' $ac_executable_extensions; do
  5465. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5466. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  5467. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5468. break 2
  5469. fi
  5470. done
  5471. done
  5472. IFS=$as_save_IFS
  5473. fi
  5474. fi
  5475. F77=$ac_cv_prog_F77
  5476. if test -n "$F77"; then
  5477. { echo "$as_me:$LINENO: result: $F77" >&5
  5478. echo "${ECHO_T}$F77" >&6; }
  5479. else
  5480. { echo "$as_me:$LINENO: result: no" >&5
  5481. echo "${ECHO_T}no" >&6; }
  5482. fi
  5483. test -n "$F77" && break
  5484. done
  5485. fi
  5486. if test -z "$F77"; then
  5487. ac_ct_F77=$F77
  5488. 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
  5489. do
  5490. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5491. set dummy $ac_prog; ac_word=$2
  5492. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5493. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5494. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  5495. echo $ECHO_N "(cached) $ECHO_C" >&6
  5496. else
  5497. if test -n "$ac_ct_F77"; then
  5498. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  5499. else
  5500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5501. for as_dir in $PATH
  5502. do
  5503. IFS=$as_save_IFS
  5504. test -z "$as_dir" && as_dir=.
  5505. for ac_exec_ext in '' $ac_executable_extensions; do
  5506. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5507. ac_cv_prog_ac_ct_F77="$ac_prog"
  5508. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5509. break 2
  5510. fi
  5511. done
  5512. done
  5513. IFS=$as_save_IFS
  5514. fi
  5515. fi
  5516. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  5517. if test -n "$ac_ct_F77"; then
  5518. { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  5519. echo "${ECHO_T}$ac_ct_F77" >&6; }
  5520. else
  5521. { echo "$as_me:$LINENO: result: no" >&5
  5522. echo "${ECHO_T}no" >&6; }
  5523. fi
  5524. test -n "$ac_ct_F77" && break
  5525. done
  5526. if test "x$ac_ct_F77" = x; then
  5527. F77=""
  5528. else
  5529. case $cross_compiling:$ac_tool_warned in
  5530. yes:)
  5531. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5532. whose name does not start with the host triplet. If you think this
  5533. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5534. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5535. whose name does not start with the host triplet. If you think this
  5536. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5537. ac_tool_warned=yes ;;
  5538. esac
  5539. F77=$ac_ct_F77
  5540. fi
  5541. fi
  5542. # Provide some information about the compiler.
  5543. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  5544. ac_compiler=`set X $ac_compile; echo $2`
  5545. { (ac_try="$ac_compiler --version >&5"
  5546. case "(($ac_try" in
  5547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5548. *) ac_try_echo=$ac_try;;
  5549. esac
  5550. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5551. (eval "$ac_compiler --version >&5") 2>&5
  5552. ac_status=$?
  5553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5554. (exit $ac_status); }
  5555. { (ac_try="$ac_compiler -v >&5"
  5556. case "(($ac_try" in
  5557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5558. *) ac_try_echo=$ac_try;;
  5559. esac
  5560. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5561. (eval "$ac_compiler -v >&5") 2>&5
  5562. ac_status=$?
  5563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5564. (exit $ac_status); }
  5565. { (ac_try="$ac_compiler -V >&5"
  5566. case "(($ac_try" in
  5567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5568. *) ac_try_echo=$ac_try;;
  5569. esac
  5570. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5571. (eval "$ac_compiler -V >&5") 2>&5
  5572. ac_status=$?
  5573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5574. (exit $ac_status); }
  5575. rm -f a.out
  5576. # If we don't use `.F' as extension, the preprocessor is not run on the
  5577. # input file. (Note that this only needs to work for GNU compilers.)
  5578. ac_save_ext=$ac_ext
  5579. ac_ext=F
  5580. { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  5581. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  5582. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  5583. echo $ECHO_N "(cached) $ECHO_C" >&6
  5584. else
  5585. cat >conftest.$ac_ext <<_ACEOF
  5586. program main
  5587. #ifndef __GNUC__
  5588. choke me
  5589. #endif
  5590. end
  5591. _ACEOF
  5592. rm -f conftest.$ac_objext
  5593. if { (ac_try="$ac_compile"
  5594. case "(($ac_try" in
  5595. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5596. *) ac_try_echo=$ac_try;;
  5597. esac
  5598. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5599. (eval "$ac_compile") 2>conftest.er1
  5600. ac_status=$?
  5601. grep -v '^ *+' conftest.er1 >conftest.err
  5602. rm -f conftest.er1
  5603. cat conftest.err >&5
  5604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5605. (exit $ac_status); } && {
  5606. test -z "$ac_f77_werror_flag" ||
  5607. test ! -s conftest.err
  5608. } && test -s conftest.$ac_objext; then
  5609. ac_compiler_gnu=yes
  5610. else
  5611. echo "$as_me: failed program was:" >&5
  5612. sed 's/^/| /' conftest.$ac_ext >&5
  5613. ac_compiler_gnu=no
  5614. fi
  5615. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5616. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5617. fi
  5618. { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5619. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  5620. ac_ext=$ac_save_ext
  5621. ac_test_FFLAGS=${FFLAGS+set}
  5622. ac_save_FFLAGS=$FFLAGS
  5623. FFLAGS=
  5624. { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5625. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  5626. if test "${ac_cv_prog_f77_g+set}" = set; then
  5627. echo $ECHO_N "(cached) $ECHO_C" >&6
  5628. else
  5629. FFLAGS=-g
  5630. cat >conftest.$ac_ext <<_ACEOF
  5631. program main
  5632. end
  5633. _ACEOF
  5634. rm -f conftest.$ac_objext
  5635. if { (ac_try="$ac_compile"
  5636. case "(($ac_try" in
  5637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5638. *) ac_try_echo=$ac_try;;
  5639. esac
  5640. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5641. (eval "$ac_compile") 2>conftest.er1
  5642. ac_status=$?
  5643. grep -v '^ *+' conftest.er1 >conftest.err
  5644. rm -f conftest.er1
  5645. cat conftest.err >&5
  5646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5647. (exit $ac_status); } && {
  5648. test -z "$ac_f77_werror_flag" ||
  5649. test ! -s conftest.err
  5650. } && test -s conftest.$ac_objext; then
  5651. ac_cv_prog_f77_g=yes
  5652. else
  5653. echo "$as_me: failed program was:" >&5
  5654. sed 's/^/| /' conftest.$ac_ext >&5
  5655. ac_cv_prog_f77_g=no
  5656. fi
  5657. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5658. fi
  5659. { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5660. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  5661. if test "$ac_test_FFLAGS" = set; then
  5662. FFLAGS=$ac_save_FFLAGS
  5663. elif test $ac_cv_prog_f77_g = yes; then
  5664. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5665. FFLAGS="-g -O2"
  5666. else
  5667. FFLAGS="-g"
  5668. fi
  5669. else
  5670. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5671. FFLAGS="-O2"
  5672. else
  5673. FFLAGS=
  5674. fi
  5675. fi
  5676. G77=`test $ac_compiler_gnu = yes && echo yes`
  5677. ac_ext=c
  5678. ac_cpp='$CPP $CPPFLAGS'
  5679. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5680. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5681. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5682. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5683. # find the maximum length of command line arguments
  5684. { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5685. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  5686. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5687. echo $ECHO_N "(cached) $ECHO_C" >&6
  5688. else
  5689. i=0
  5690. teststring="ABCD"
  5691. case $build_os in
  5692. msdosdjgpp*)
  5693. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5694. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5695. # during glob expansion). Even if it were fixed, the result of this
  5696. # check would be larger than it should be.
  5697. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5698. ;;
  5699. gnu*)
  5700. # Under GNU Hurd, this test is not required because there is
  5701. # no limit to the length of command line arguments.
  5702. # Libtool will interpret -1 as no limit whatsoever
  5703. lt_cv_sys_max_cmd_len=-1;
  5704. ;;
  5705. cygwin* | mingw*)
  5706. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5707. # about 5 minutes as the teststring grows exponentially.
  5708. # Worse, since 9x/ME are not pre-emptively multitasking,
  5709. # you end up with a "frozen" computer, even though with patience
  5710. # the test eventually succeeds (with a max line length of 256k).
  5711. # Instead, let's just punt: use the minimum linelength reported by
  5712. # all of the supported platforms: 8192 (on NT/2K/XP).
  5713. lt_cv_sys_max_cmd_len=8192;
  5714. ;;
  5715. amigaos*)
  5716. # On AmigaOS with pdksh, this test takes hours, literally.
  5717. # So we just punt and use a minimum line length of 8192.
  5718. lt_cv_sys_max_cmd_len=8192;
  5719. ;;
  5720. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5721. # This has been around since 386BSD, at least. Likely further.
  5722. if test -x /sbin/sysctl; then
  5723. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5724. elif test -x /usr/sbin/sysctl; then
  5725. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5726. else
  5727. lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
  5728. fi
  5729. # And add a safety zone
  5730. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5731. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5732. ;;
  5733. osf*)
  5734. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5735. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5736. # nice to cause kernel panics so lets avoid the loop below.
  5737. # First set a reasonable default.
  5738. lt_cv_sys_max_cmd_len=16384
  5739. #
  5740. if test -x /sbin/sysconfig; then
  5741. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5742. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5743. esac
  5744. fi
  5745. ;;
  5746. *)
  5747. # If test is not a shell built-in, we'll probably end up computing a
  5748. # maximum length that is only half of the actual maximum length, but
  5749. # we can't tell.
  5750. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5751. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5752. = "XX$teststring") >/dev/null 2>&1 &&
  5753. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5754. lt_cv_sys_max_cmd_len=$new_result &&
  5755. test $i != 17 # 1/2 MB should be enough
  5756. do
  5757. i=`expr $i + 1`
  5758. teststring=$teststring$teststring
  5759. done
  5760. teststring=
  5761. # Add a significant safety factor because C++ compilers can tack on massive
  5762. # amounts of additional arguments before passing them to the linker.
  5763. # It appears as though 1/2 is a usable value.
  5764. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5765. ;;
  5766. esac
  5767. fi
  5768. if test -n $lt_cv_sys_max_cmd_len ; then
  5769. { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5770. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  5771. else
  5772. { echo "$as_me:$LINENO: result: none" >&5
  5773. echo "${ECHO_T}none" >&6; }
  5774. fi
  5775. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5776. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5777. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  5778. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5779. echo $ECHO_N "(cached) $ECHO_C" >&6
  5780. else
  5781. # These are sane defaults that work on at least a few old systems.
  5782. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5783. # Character class describing NM global symbol codes.
  5784. symcode='[BCDEGRST]'
  5785. # Regexp to match symbols that can be accessed directly from C.
  5786. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5787. # Transform an extracted symbol line into a proper C declaration
  5788. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5789. # Transform an extracted symbol line into symbol name and symbol address
  5790. 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'"
  5791. # Define system-specific variables.
  5792. case $host_os in
  5793. aix*)
  5794. symcode='[BCDT]'
  5795. ;;
  5796. cygwin* | mingw* | pw32*)
  5797. symcode='[ABCDGISTW]'
  5798. ;;
  5799. hpux*) # Its linker distinguishes data from code symbols
  5800. if test "$host_cpu" = ia64; then
  5801. symcode='[ABCDEGRST]'
  5802. fi
  5803. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5804. 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'"
  5805. ;;
  5806. linux*)
  5807. if test "$host_cpu" = ia64; then
  5808. symcode='[ABCDGIRSTW]'
  5809. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5810. 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'"
  5811. fi
  5812. ;;
  5813. irix* | nonstopux*)
  5814. symcode='[BCDEGRST]'
  5815. ;;
  5816. osf*)
  5817. symcode='[BCDEGQRST]'
  5818. ;;
  5819. solaris* | sysv5*)
  5820. symcode='[BDRT]'
  5821. ;;
  5822. sysv4)
  5823. symcode='[DFNSTU]'
  5824. ;;
  5825. esac
  5826. # Handle CRLF in mingw tool chain
  5827. opt_cr=
  5828. case $build_os in
  5829. mingw*)
  5830. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5831. ;;
  5832. esac
  5833. # If we're using GNU nm, then use its standard symbol codes.
  5834. case `$NM -V 2>&1` in
  5835. *GNU* | *'with BFD'*)
  5836. symcode='[ABCDGIRSTW]' ;;
  5837. esac
  5838. # Try without a prefix undercore, then with it.
  5839. for ac_symprfx in "" "_"; do
  5840. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5841. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5842. # Write the raw and C identifiers.
  5843. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5844. # Check to see that the pipe works correctly.
  5845. pipe_works=no
  5846. rm -f conftest*
  5847. cat > conftest.$ac_ext <<EOF
  5848. #ifdef __cplusplus
  5849. extern "C" {
  5850. #endif
  5851. char nm_test_var;
  5852. void nm_test_func(){}
  5853. #ifdef __cplusplus
  5854. }
  5855. #endif
  5856. int main(){nm_test_var='a';nm_test_func();return(0);}
  5857. EOF
  5858. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5859. (eval $ac_compile) 2>&5
  5860. ac_status=$?
  5861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5862. (exit $ac_status); }; then
  5863. # Now try to grab the symbols.
  5864. nlist=conftest.nm
  5865. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5866. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5867. ac_status=$?
  5868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5869. (exit $ac_status); } && test -s "$nlist"; then
  5870. # Try sorting and uniquifying the output.
  5871. if sort "$nlist" | uniq > "$nlist"T; then
  5872. mv -f "$nlist"T "$nlist"
  5873. else
  5874. rm -f "$nlist"T
  5875. fi
  5876. # Make sure that we snagged all the symbols we need.
  5877. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5878. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5879. cat <<EOF > conftest.$ac_ext
  5880. #ifdef __cplusplus
  5881. extern "C" {
  5882. #endif
  5883. EOF
  5884. # Now generate the symbol file.
  5885. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5886. cat <<EOF >> conftest.$ac_ext
  5887. #if defined (__STDC__) && __STDC__
  5888. # define lt_ptr_t void *
  5889. #else
  5890. # define lt_ptr_t char *
  5891. # define const
  5892. #endif
  5893. /* The mapping between symbol names and symbols. */
  5894. const struct {
  5895. const char *name;
  5896. lt_ptr_t address;
  5897. }
  5898. lt_preloaded_symbols[] =
  5899. {
  5900. EOF
  5901. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5902. cat <<\EOF >> conftest.$ac_ext
  5903. {0, (lt_ptr_t) 0}
  5904. };
  5905. #ifdef __cplusplus
  5906. }
  5907. #endif
  5908. EOF
  5909. # Now try linking the two files.
  5910. mv conftest.$ac_objext conftstm.$ac_objext
  5911. lt_save_LIBS="$LIBS"
  5912. lt_save_CFLAGS="$CFLAGS"
  5913. LIBS="conftstm.$ac_objext"
  5914. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5915. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5916. (eval $ac_link) 2>&5
  5917. ac_status=$?
  5918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5919. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5920. pipe_works=yes
  5921. fi
  5922. LIBS="$lt_save_LIBS"
  5923. CFLAGS="$lt_save_CFLAGS"
  5924. else
  5925. echo "cannot find nm_test_func in $nlist" >&5
  5926. fi
  5927. else
  5928. echo "cannot find nm_test_var in $nlist" >&5
  5929. fi
  5930. else
  5931. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5932. fi
  5933. else
  5934. echo "$progname: failed program was:" >&5
  5935. cat conftest.$ac_ext >&5
  5936. fi
  5937. rm -f conftest* conftst*
  5938. # Do not use the global_symbol_pipe unless it works.
  5939. if test "$pipe_works" = yes; then
  5940. break
  5941. else
  5942. lt_cv_sys_global_symbol_pipe=
  5943. fi
  5944. done
  5945. fi
  5946. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5947. lt_cv_sys_global_symbol_to_cdecl=
  5948. fi
  5949. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5950. { echo "$as_me:$LINENO: result: failed" >&5
  5951. echo "${ECHO_T}failed" >&6; }
  5952. else
  5953. { echo "$as_me:$LINENO: result: ok" >&5
  5954. echo "${ECHO_T}ok" >&6; }
  5955. fi
  5956. { echo "$as_me:$LINENO: checking for objdir" >&5
  5957. echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  5958. if test "${lt_cv_objdir+set}" = set; then
  5959. echo $ECHO_N "(cached) $ECHO_C" >&6
  5960. else
  5961. rm -f .libs 2>/dev/null
  5962. mkdir .libs 2>/dev/null
  5963. if test -d .libs; then
  5964. lt_cv_objdir=.libs
  5965. else
  5966. # MS-DOS does not allow filenames that begin with a dot.
  5967. lt_cv_objdir=_libs
  5968. fi
  5969. rmdir .libs 2>/dev/null
  5970. fi
  5971. { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  5972. echo "${ECHO_T}$lt_cv_objdir" >&6; }
  5973. objdir=$lt_cv_objdir
  5974. case $host_os in
  5975. aix3*)
  5976. # AIX sometimes has problems with the GCC collect2 program. For some
  5977. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5978. # vanish in a puff of smoke.
  5979. if test "X${COLLECT_NAMES+set}" != Xset; then
  5980. COLLECT_NAMES=
  5981. export COLLECT_NAMES
  5982. fi
  5983. ;;
  5984. esac
  5985. # Sed substitution that helps us do robust quoting. It backslashifies
  5986. # metacharacters that are still active within double-quoted strings.
  5987. Xsed='sed -e 1s/^X//'
  5988. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  5989. # Same as above, but do not quote variable references.
  5990. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  5991. # Sed substitution to delay expansion of an escaped shell variable in a
  5992. # double_quote_subst'ed string.
  5993. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5994. # Sed substitution to avoid accidental globbing in evaled expressions
  5995. no_glob_subst='s/\*/\\\*/g'
  5996. # Constants:
  5997. rm="rm -f"
  5998. # Global variables:
  5999. default_ofile=libtool
  6000. can_build_shared=yes
  6001. # All known linkers require a `.a' archive for static linking (except M$VC,
  6002. # which needs '.lib').
  6003. libext=a
  6004. ltmain="$ac_aux_dir/ltmain.sh"
  6005. ofile="$default_ofile"
  6006. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6007. if test -n "$ac_tool_prefix"; then
  6008. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6009. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6010. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6011. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6012. if test "${ac_cv_prog_AR+set}" = set; then
  6013. echo $ECHO_N "(cached) $ECHO_C" >&6
  6014. else
  6015. if test -n "$AR"; then
  6016. ac_cv_prog_AR="$AR" # Let the user override the test.
  6017. else
  6018. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6019. for as_dir in $PATH
  6020. do
  6021. IFS=$as_save_IFS
  6022. test -z "$as_dir" && as_dir=.
  6023. for ac_exec_ext in '' $ac_executable_extensions; do
  6024. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6025. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6026. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6027. break 2
  6028. fi
  6029. done
  6030. done
  6031. IFS=$as_save_IFS
  6032. fi
  6033. fi
  6034. AR=$ac_cv_prog_AR
  6035. if test -n "$AR"; then
  6036. { echo "$as_me:$LINENO: result: $AR" >&5
  6037. echo "${ECHO_T}$AR" >&6; }
  6038. else
  6039. { echo "$as_me:$LINENO: result: no" >&5
  6040. echo "${ECHO_T}no" >&6; }
  6041. fi
  6042. fi
  6043. if test -z "$ac_cv_prog_AR"; then
  6044. ac_ct_AR=$AR
  6045. # Extract the first word of "ar", so it can be a program name with args.
  6046. set dummy ar; ac_word=$2
  6047. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6048. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6049. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  6050. echo $ECHO_N "(cached) $ECHO_C" >&6
  6051. else
  6052. if test -n "$ac_ct_AR"; then
  6053. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6054. else
  6055. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6056. for as_dir in $PATH
  6057. do
  6058. IFS=$as_save_IFS
  6059. test -z "$as_dir" && as_dir=.
  6060. for ac_exec_ext in '' $ac_executable_extensions; do
  6061. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6062. ac_cv_prog_ac_ct_AR="ar"
  6063. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6064. break 2
  6065. fi
  6066. done
  6067. done
  6068. IFS=$as_save_IFS
  6069. fi
  6070. fi
  6071. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6072. if test -n "$ac_ct_AR"; then
  6073. { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  6074. echo "${ECHO_T}$ac_ct_AR" >&6; }
  6075. else
  6076. { echo "$as_me:$LINENO: result: no" >&5
  6077. echo "${ECHO_T}no" >&6; }
  6078. fi
  6079. if test "x$ac_ct_AR" = x; then
  6080. AR="false"
  6081. else
  6082. case $cross_compiling:$ac_tool_warned in
  6083. yes:)
  6084. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6085. whose name does not start with the host triplet. If you think this
  6086. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6087. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6088. whose name does not start with the host triplet. If you think this
  6089. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6090. ac_tool_warned=yes ;;
  6091. esac
  6092. AR=$ac_ct_AR
  6093. fi
  6094. else
  6095. AR="$ac_cv_prog_AR"
  6096. fi
  6097. if test -n "$ac_tool_prefix"; then
  6098. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6099. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6100. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6101. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6102. if test "${ac_cv_prog_RANLIB+set}" = set; then
  6103. echo $ECHO_N "(cached) $ECHO_C" >&6
  6104. else
  6105. if test -n "$RANLIB"; then
  6106. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6107. else
  6108. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6109. for as_dir in $PATH
  6110. do
  6111. IFS=$as_save_IFS
  6112. test -z "$as_dir" && as_dir=.
  6113. for ac_exec_ext in '' $ac_executable_extensions; do
  6114. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6115. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6116. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6117. break 2
  6118. fi
  6119. done
  6120. done
  6121. IFS=$as_save_IFS
  6122. fi
  6123. fi
  6124. RANLIB=$ac_cv_prog_RANLIB
  6125. if test -n "$RANLIB"; then
  6126. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  6127. echo "${ECHO_T}$RANLIB" >&6; }
  6128. else
  6129. { echo "$as_me:$LINENO: result: no" >&5
  6130. echo "${ECHO_T}no" >&6; }
  6131. fi
  6132. fi
  6133. if test -z "$ac_cv_prog_RANLIB"; then
  6134. ac_ct_RANLIB=$RANLIB
  6135. # Extract the first word of "ranlib", so it can be a program name with args.
  6136. set dummy ranlib; ac_word=$2
  6137. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6138. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6139. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  6140. echo $ECHO_N "(cached) $ECHO_C" >&6
  6141. else
  6142. if test -n "$ac_ct_RANLIB"; then
  6143. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6144. else
  6145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6146. for as_dir in $PATH
  6147. do
  6148. IFS=$as_save_IFS
  6149. test -z "$as_dir" && as_dir=.
  6150. for ac_exec_ext in '' $ac_executable_extensions; do
  6151. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6152. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6153. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6154. break 2
  6155. fi
  6156. done
  6157. done
  6158. IFS=$as_save_IFS
  6159. fi
  6160. fi
  6161. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6162. if test -n "$ac_ct_RANLIB"; then
  6163. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  6164. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  6165. else
  6166. { echo "$as_me:$LINENO: result: no" >&5
  6167. echo "${ECHO_T}no" >&6; }
  6168. fi
  6169. if test "x$ac_ct_RANLIB" = x; then
  6170. RANLIB=":"
  6171. else
  6172. case $cross_compiling:$ac_tool_warned in
  6173. yes:)
  6174. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6175. whose name does not start with the host triplet. If you think this
  6176. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6177. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6178. whose name does not start with the host triplet. If you think this
  6179. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6180. ac_tool_warned=yes ;;
  6181. esac
  6182. RANLIB=$ac_ct_RANLIB
  6183. fi
  6184. else
  6185. RANLIB="$ac_cv_prog_RANLIB"
  6186. fi
  6187. if test -n "$ac_tool_prefix"; then
  6188. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6189. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6190. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6191. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6192. if test "${ac_cv_prog_STRIP+set}" = set; then
  6193. echo $ECHO_N "(cached) $ECHO_C" >&6
  6194. else
  6195. if test -n "$STRIP"; then
  6196. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6197. else
  6198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6199. for as_dir in $PATH
  6200. do
  6201. IFS=$as_save_IFS
  6202. test -z "$as_dir" && as_dir=.
  6203. for ac_exec_ext in '' $ac_executable_extensions; do
  6204. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6205. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6206. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6207. break 2
  6208. fi
  6209. done
  6210. done
  6211. IFS=$as_save_IFS
  6212. fi
  6213. fi
  6214. STRIP=$ac_cv_prog_STRIP
  6215. if test -n "$STRIP"; then
  6216. { echo "$as_me:$LINENO: result: $STRIP" >&5
  6217. echo "${ECHO_T}$STRIP" >&6; }
  6218. else
  6219. { echo "$as_me:$LINENO: result: no" >&5
  6220. echo "${ECHO_T}no" >&6; }
  6221. fi
  6222. fi
  6223. if test -z "$ac_cv_prog_STRIP"; then
  6224. ac_ct_STRIP=$STRIP
  6225. # Extract the first word of "strip", so it can be a program name with args.
  6226. set dummy strip; ac_word=$2
  6227. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6228. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6229. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  6230. echo $ECHO_N "(cached) $ECHO_C" >&6
  6231. else
  6232. if test -n "$ac_ct_STRIP"; then
  6233. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6234. else
  6235. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6236. for as_dir in $PATH
  6237. do
  6238. IFS=$as_save_IFS
  6239. test -z "$as_dir" && as_dir=.
  6240. for ac_exec_ext in '' $ac_executable_extensions; do
  6241. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6242. ac_cv_prog_ac_ct_STRIP="strip"
  6243. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6244. break 2
  6245. fi
  6246. done
  6247. done
  6248. IFS=$as_save_IFS
  6249. fi
  6250. fi
  6251. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6252. if test -n "$ac_ct_STRIP"; then
  6253. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  6254. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  6255. else
  6256. { echo "$as_me:$LINENO: result: no" >&5
  6257. echo "${ECHO_T}no" >&6; }
  6258. fi
  6259. if test "x$ac_ct_STRIP" = x; then
  6260. STRIP=":"
  6261. else
  6262. case $cross_compiling:$ac_tool_warned in
  6263. yes:)
  6264. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6265. whose name does not start with the host triplet. If you think this
  6266. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6267. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6268. whose name does not start with the host triplet. If you think this
  6269. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6270. ac_tool_warned=yes ;;
  6271. esac
  6272. STRIP=$ac_ct_STRIP
  6273. fi
  6274. else
  6275. STRIP="$ac_cv_prog_STRIP"
  6276. fi
  6277. old_CC="$CC"
  6278. old_CFLAGS="$CFLAGS"
  6279. # Set sane defaults for various variables
  6280. test -z "$AR" && AR=ar
  6281. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6282. test -z "$AS" && AS=as
  6283. test -z "$CC" && CC=cc
  6284. test -z "$LTCC" && LTCC=$CC
  6285. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6286. test -z "$LD" && LD=ld
  6287. test -z "$LN_S" && LN_S="ln -s"
  6288. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6289. test -z "$NM" && NM=nm
  6290. test -z "$SED" && SED=sed
  6291. test -z "$OBJDUMP" && OBJDUMP=objdump
  6292. test -z "$RANLIB" && RANLIB=:
  6293. test -z "$STRIP" && STRIP=:
  6294. test -z "$ac_objext" && ac_objext=o
  6295. # Determine commands to create old-style static archives.
  6296. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  6297. old_postinstall_cmds='chmod 644 $oldlib'
  6298. old_postuninstall_cmds=
  6299. if test -n "$RANLIB"; then
  6300. case $host_os in
  6301. openbsd*)
  6302. old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  6303. ;;
  6304. *)
  6305. old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  6306. ;;
  6307. esac
  6308. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6309. fi
  6310. for cc_temp in $compiler""; do
  6311. case $cc_temp in
  6312. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6313. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6314. \-*) ;;
  6315. *) break;;
  6316. esac
  6317. done
  6318. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6319. # Only perform the check for file, if the check method requires it
  6320. case $deplibs_check_method in
  6321. file_magic*)
  6322. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6323. { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6324. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  6325. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6326. echo $ECHO_N "(cached) $ECHO_C" >&6
  6327. else
  6328. case $MAGIC_CMD in
  6329. [\\/*] | ?:[\\/]*)
  6330. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6331. ;;
  6332. *)
  6333. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6334. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6335. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6336. for ac_dir in $ac_dummy; do
  6337. IFS="$lt_save_ifs"
  6338. test -z "$ac_dir" && ac_dir=.
  6339. if test -f $ac_dir/${ac_tool_prefix}file; then
  6340. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6341. if test -n "$file_magic_test_file"; then
  6342. case $deplibs_check_method in
  6343. "file_magic "*)
  6344. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  6345. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6346. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6347. $EGREP "$file_magic_regex" > /dev/null; then
  6348. :
  6349. else
  6350. cat <<EOF 1>&2
  6351. *** Warning: the command libtool uses to detect shared libraries,
  6352. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6353. *** The result is that libtool may fail to recognize shared libraries
  6354. *** as such. This will affect the creation of libtool libraries that
  6355. *** depend on shared libraries, but programs linked with such libtool
  6356. *** libraries will work regardless of this problem. Nevertheless, you
  6357. *** may want to report the problem to your system manager and/or to
  6358. *** bug-libtool@gnu.org
  6359. EOF
  6360. fi ;;
  6361. esac
  6362. fi
  6363. break
  6364. fi
  6365. done
  6366. IFS="$lt_save_ifs"
  6367. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6368. ;;
  6369. esac
  6370. fi
  6371. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6372. if test -n "$MAGIC_CMD"; then
  6373. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6374. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6375. else
  6376. { echo "$as_me:$LINENO: result: no" >&5
  6377. echo "${ECHO_T}no" >&6; }
  6378. fi
  6379. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6380. if test -n "$ac_tool_prefix"; then
  6381. { echo "$as_me:$LINENO: checking for file" >&5
  6382. echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  6383. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6384. echo $ECHO_N "(cached) $ECHO_C" >&6
  6385. else
  6386. case $MAGIC_CMD in
  6387. [\\/*] | ?:[\\/]*)
  6388. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6389. ;;
  6390. *)
  6391. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6392. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6393. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6394. for ac_dir in $ac_dummy; do
  6395. IFS="$lt_save_ifs"
  6396. test -z "$ac_dir" && ac_dir=.
  6397. if test -f $ac_dir/file; then
  6398. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6399. if test -n "$file_magic_test_file"; then
  6400. case $deplibs_check_method in
  6401. "file_magic "*)
  6402. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  6403. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6404. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6405. $EGREP "$file_magic_regex" > /dev/null; then
  6406. :
  6407. else
  6408. cat <<EOF 1>&2
  6409. *** Warning: the command libtool uses to detect shared libraries,
  6410. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6411. *** The result is that libtool may fail to recognize shared libraries
  6412. *** as such. This will affect the creation of libtool libraries that
  6413. *** depend on shared libraries, but programs linked with such libtool
  6414. *** libraries will work regardless of this problem. Nevertheless, you
  6415. *** may want to report the problem to your system manager and/or to
  6416. *** bug-libtool@gnu.org
  6417. EOF
  6418. fi ;;
  6419. esac
  6420. fi
  6421. break
  6422. fi
  6423. done
  6424. IFS="$lt_save_ifs"
  6425. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6426. ;;
  6427. esac
  6428. fi
  6429. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6430. if test -n "$MAGIC_CMD"; then
  6431. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6432. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6433. else
  6434. { echo "$as_me:$LINENO: result: no" >&5
  6435. echo "${ECHO_T}no" >&6; }
  6436. fi
  6437. else
  6438. MAGIC_CMD=:
  6439. fi
  6440. fi
  6441. fi
  6442. ;;
  6443. esac
  6444. enable_dlopen=no
  6445. enable_win32_dll=no
  6446. # Check whether --enable-libtool-lock was given.
  6447. if test "${enable_libtool_lock+set}" = set; then
  6448. enableval=$enable_libtool_lock;
  6449. fi
  6450. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6451. # Check whether --with-pic was given.
  6452. if test "${with_pic+set}" = set; then
  6453. withval=$with_pic; pic_mode="$withval"
  6454. else
  6455. pic_mode=default
  6456. fi
  6457. test -z "$pic_mode" && pic_mode=default
  6458. # Use C for the default configuration in the libtool script
  6459. tagname=
  6460. lt_save_CC="$CC"
  6461. ac_ext=c
  6462. ac_cpp='$CPP $CPPFLAGS'
  6463. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6464. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6465. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6466. # Source file extension for C test sources.
  6467. ac_ext=c
  6468. # Object file extension for compiled C test sources.
  6469. objext=o
  6470. objext=$objext
  6471. # Code to be used in simple compile tests
  6472. lt_simple_compile_test_code="int some_variable = 0;\n"
  6473. # Code to be used in simple link tests
  6474. lt_simple_link_test_code='int main(){return(0);}\n'
  6475. # If no C compiler was specified, use CC.
  6476. LTCC=${LTCC-"$CC"}
  6477. # Allow CC to be a program name with arguments.
  6478. compiler=$CC
  6479. # save warnings/boilerplate of simple test code
  6480. ac_outfile=conftest.$ac_objext
  6481. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  6482. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  6483. _lt_compiler_boilerplate=`cat conftest.err`
  6484. $rm conftest*
  6485. ac_outfile=conftest.$ac_objext
  6486. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  6487. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  6488. _lt_linker_boilerplate=`cat conftest.err`
  6489. $rm conftest*
  6490. #
  6491. # Check for any special shared library compilation flags.
  6492. #
  6493. lt_prog_cc_shlib=
  6494. if test "$GCC" = no; then
  6495. case $host_os in
  6496. sco3.2v5*)
  6497. lt_prog_cc_shlib='-belf'
  6498. ;;
  6499. esac
  6500. fi
  6501. if test -n "$lt_prog_cc_shlib"; then
  6502. { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
  6503. echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
  6504. if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
  6505. else
  6506. { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  6507. echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  6508. lt_cv_prog_cc_can_build_shared=no
  6509. fi
  6510. fi
  6511. #
  6512. # Check to make sure the static flag actually works.
  6513. #
  6514. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
  6515. echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
  6516. if test "${lt_prog_compiler_static_works+set}" = set; then
  6517. echo $ECHO_N "(cached) $ECHO_C" >&6
  6518. else
  6519. lt_prog_compiler_static_works=no
  6520. save_LDFLAGS="$LDFLAGS"
  6521. LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
  6522. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  6523. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6524. # The compiler can only warn and ignore the option if not recognized
  6525. # So say no if there are warnings
  6526. if test -s conftest.err; then
  6527. # Append any errors to the config.log.
  6528. cat conftest.err 1>&5
  6529. $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
  6530. $SED '/^$/d' conftest.err >conftest.er2
  6531. if diff conftest.exp conftest.er2 >/dev/null; then
  6532. lt_prog_compiler_static_works=yes
  6533. fi
  6534. else
  6535. lt_prog_compiler_static_works=yes
  6536. fi
  6537. fi
  6538. $rm conftest*
  6539. LDFLAGS="$save_LDFLAGS"
  6540. fi
  6541. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  6542. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
  6543. if test x"$lt_prog_compiler_static_works" = xyes; then
  6544. :
  6545. else
  6546. lt_prog_compiler_static=
  6547. fi
  6548. lt_prog_compiler_no_builtin_flag=
  6549. if test "$GCC" = yes; then
  6550. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6551. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6552. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  6553. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  6554. echo $ECHO_N "(cached) $ECHO_C" >&6
  6555. else
  6556. lt_cv_prog_compiler_rtti_exceptions=no
  6557. ac_outfile=conftest.$ac_objext
  6558. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6559. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6560. # Insert the option either (1) after the last *FLAGS variable, or
  6561. # (2) before a word containing "conftest.", or (3) at the end.
  6562. # Note that $ac_compile itself does not contain backslashes and begins
  6563. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6564. # The option is referenced via a variable to avoid confusing sed.
  6565. lt_compile=`echo "$ac_compile" | $SED \
  6566. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  6567. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6568. -e 's:$: $lt_compiler_flag:'`
  6569. (eval echo "\"\$as_me:7352: $lt_compile\"" >&5)
  6570. (eval "$lt_compile" 2>conftest.err)
  6571. ac_status=$?
  6572. cat conftest.err >&5
  6573. echo "$as_me:7356: \$? = $ac_status" >&5
  6574. if (exit $ac_status) && test -s "$ac_outfile"; then
  6575. # The compiler can only warn and ignore the option if not recognized
  6576. # So say no if there are warnings other than the usual output.
  6577. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  6578. $SED '/^$/d' conftest.err >conftest.er2
  6579. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  6580. lt_cv_prog_compiler_rtti_exceptions=yes
  6581. fi
  6582. fi
  6583. $rm conftest*
  6584. fi
  6585. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6586. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6587. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6588. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6589. else
  6590. :
  6591. fi
  6592. fi
  6593. lt_prog_compiler_wl=
  6594. lt_prog_compiler_pic=
  6595. lt_prog_compiler_static=
  6596. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  6597. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  6598. if test "$GCC" = yes; then
  6599. lt_prog_compiler_wl='-Wl,'
  6600. lt_prog_compiler_static='-static'
  6601. case $host_os in
  6602. aix*)
  6603. # All AIX code is PIC.
  6604. if test "$host_cpu" = ia64; then
  6605. # AIX 5 now supports IA64 processor
  6606. lt_prog_compiler_static='-Bstatic'
  6607. fi
  6608. ;;
  6609. amigaos*)
  6610. # FIXME: we need at least 68020 code to build shared libraries, but
  6611. # adding the `-m68020' flag to GCC prevents building anything better,
  6612. # like `-m68040'.
  6613. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6614. ;;
  6615. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6616. # PIC is the default for these OSes.
  6617. ;;
  6618. mingw* | pw32* | os2*)
  6619. # This hack is so that the source file can tell whether it is being
  6620. # built for inclusion in a dll (and should export symbols for example).
  6621. lt_prog_compiler_pic='-DDLL_EXPORT'
  6622. ;;
  6623. darwin* | rhapsody*)
  6624. # PIC is the default on this platform
  6625. # Common symbols not allowed in MH_DYLIB files
  6626. lt_prog_compiler_pic='-fno-common'
  6627. ;;
  6628. msdosdjgpp*)
  6629. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6630. # on systems that don't support them.
  6631. lt_prog_compiler_can_build_shared=no
  6632. enable_shared=no
  6633. ;;
  6634. sysv4*MP*)
  6635. if test -d /usr/nec; then
  6636. lt_prog_compiler_pic=-Kconform_pic
  6637. fi
  6638. ;;
  6639. hpux*)
  6640. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6641. # not for PA HP-UX.
  6642. case "$host_cpu" in
  6643. hppa*64*|ia64*)
  6644. # +Z the default
  6645. ;;
  6646. *)
  6647. lt_prog_compiler_pic='-fPIC'
  6648. ;;
  6649. esac
  6650. ;;
  6651. *)
  6652. lt_prog_compiler_pic='-fPIC'
  6653. ;;
  6654. esac
  6655. else
  6656. # PORTME Check for flag to pass linker flags through the system compiler.
  6657. case $host_os in
  6658. aix*)
  6659. lt_prog_compiler_wl='-Wl,'
  6660. if test "$host_cpu" = ia64; then
  6661. # AIX 5 now supports IA64 processor
  6662. lt_prog_compiler_static='-Bstatic'
  6663. else
  6664. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6665. fi
  6666. ;;
  6667. darwin*)
  6668. # PIC is the default on this platform
  6669. # Common symbols not allowed in MH_DYLIB files
  6670. case $cc_basename in
  6671. xlc*)
  6672. lt_prog_compiler_pic='-qnocommon'
  6673. lt_prog_compiler_wl='-Wl,'
  6674. ;;
  6675. esac
  6676. ;;
  6677. mingw* | pw32* | os2*)
  6678. # This hack is so that the source file can tell whether it is being
  6679. # built for inclusion in a dll (and should export symbols for example).
  6680. lt_prog_compiler_pic='-DDLL_EXPORT'
  6681. ;;
  6682. hpux9* | hpux10* | hpux11*)
  6683. lt_prog_compiler_wl='-Wl,'
  6684. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6685. # not for PA HP-UX.
  6686. case "$host_cpu" in
  6687. hppa*64*|ia64*)
  6688. # +Z the default
  6689. ;;
  6690. *)
  6691. lt_prog_compiler_pic='+Z'
  6692. ;;
  6693. esac
  6694. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6695. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6696. ;;
  6697. irix5* | irix6* | nonstopux*)
  6698. lt_prog_compiler_wl='-Wl,'
  6699. # PIC (with -KPIC) is the default.
  6700. lt_prog_compiler_static='-non_shared'
  6701. ;;
  6702. newsos6)
  6703. lt_prog_compiler_pic='-KPIC'
  6704. lt_prog_compiler_static='-Bstatic'
  6705. ;;
  6706. linux*)
  6707. case $cc_basename in
  6708. icc* | ecc*)
  6709. lt_prog_compiler_wl='-Wl,'
  6710. lt_prog_compiler_pic='-KPIC'
  6711. lt_prog_compiler_static='-static'
  6712. ;;
  6713. pgcc* | pgf77* | pgf90*)
  6714. # Portland Group compilers (*not* the Pentium gcc compiler,
  6715. # which looks to be a dead project)
  6716. lt_prog_compiler_wl='-Wl,'
  6717. lt_prog_compiler_pic='-fpic'
  6718. lt_prog_compiler_static='-static'
  6719. ;;
  6720. ccc*)
  6721. lt_prog_compiler_wl='-Wl,'
  6722. # All Alpha code is PIC.
  6723. lt_prog_compiler_static='-non_shared'
  6724. ;;
  6725. esac
  6726. ;;
  6727. osf3* | osf4* | osf5*)
  6728. lt_prog_compiler_wl='-Wl,'
  6729. # All OSF/1 code is PIC.
  6730. lt_prog_compiler_static='-non_shared'
  6731. ;;
  6732. sco3.2v5*)
  6733. lt_prog_compiler_pic='-Kpic'
  6734. lt_prog_compiler_static='-dn'
  6735. ;;
  6736. solaris*)
  6737. lt_prog_compiler_pic='-KPIC'
  6738. lt_prog_compiler_static='-Bstatic'
  6739. case $cc_basename in
  6740. f77* | f90* | f95*)
  6741. lt_prog_compiler_wl='-Qoption ld ';;
  6742. *)
  6743. lt_prog_compiler_wl='-Wl,';;
  6744. esac
  6745. ;;
  6746. sunos4*)
  6747. lt_prog_compiler_wl='-Qoption ld '
  6748. lt_prog_compiler_pic='-PIC'
  6749. lt_prog_compiler_static='-Bstatic'
  6750. ;;
  6751. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  6752. lt_prog_compiler_wl='-Wl,'
  6753. lt_prog_compiler_pic='-KPIC'
  6754. lt_prog_compiler_static='-Bstatic'
  6755. ;;
  6756. sysv4*MP*)
  6757. if test -d /usr/nec ;then
  6758. lt_prog_compiler_pic='-Kconform_pic'
  6759. lt_prog_compiler_static='-Bstatic'
  6760. fi
  6761. ;;
  6762. unicos*)
  6763. lt_prog_compiler_wl='-Wl,'
  6764. lt_prog_compiler_can_build_shared=no
  6765. ;;
  6766. uts4*)
  6767. lt_prog_compiler_pic='-pic'
  6768. lt_prog_compiler_static='-Bstatic'
  6769. ;;
  6770. *)
  6771. lt_prog_compiler_can_build_shared=no
  6772. ;;
  6773. esac
  6774. fi
  6775. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6776. echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  6777. #
  6778. # Check to make sure the PIC flag actually works.
  6779. #
  6780. if test -n "$lt_prog_compiler_pic"; then
  6781. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6782. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  6783. if test "${lt_prog_compiler_pic_works+set}" = set; then
  6784. echo $ECHO_N "(cached) $ECHO_C" >&6
  6785. else
  6786. lt_prog_compiler_pic_works=no
  6787. ac_outfile=conftest.$ac_objext
  6788. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6789. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6790. # Insert the option either (1) after the last *FLAGS variable, or
  6791. # (2) before a word containing "conftest.", or (3) at the end.
  6792. # Note that $ac_compile itself does not contain backslashes and begins
  6793. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6794. # The option is referenced via a variable to avoid confusing sed.
  6795. lt_compile=`echo "$ac_compile" | $SED \
  6796. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  6797. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6798. -e 's:$: $lt_compiler_flag:'`
  6799. (eval echo "\"\$as_me:7614: $lt_compile\"" >&5)
  6800. (eval "$lt_compile" 2>conftest.err)
  6801. ac_status=$?
  6802. cat conftest.err >&5
  6803. echo "$as_me:7618: \$? = $ac_status" >&5
  6804. if (exit $ac_status) && test -s "$ac_outfile"; then
  6805. # The compiler can only warn and ignore the option if not recognized
  6806. # So say no if there are warnings other than the usual output.
  6807. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  6808. $SED '/^$/d' conftest.err >conftest.er2
  6809. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  6810. lt_prog_compiler_pic_works=yes
  6811. fi
  6812. fi
  6813. $rm conftest*
  6814. fi
  6815. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  6816. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
  6817. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6818. case $lt_prog_compiler_pic in
  6819. "" | " "*) ;;
  6820. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6821. esac
  6822. else
  6823. lt_prog_compiler_pic=
  6824. lt_prog_compiler_can_build_shared=no
  6825. fi
  6826. fi
  6827. case "$host_os" in
  6828. # For platforms which do not support PIC, -DPIC is meaningless:
  6829. *djgpp*)
  6830. lt_prog_compiler_pic=
  6831. ;;
  6832. *)
  6833. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6834. ;;
  6835. esac
  6836. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6837. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  6838. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6839. echo $ECHO_N "(cached) $ECHO_C" >&6
  6840. else
  6841. lt_cv_prog_compiler_c_o=no
  6842. $rm -r conftest 2>/dev/null
  6843. mkdir conftest
  6844. cd conftest
  6845. mkdir out
  6846. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6847. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6848. # Insert the option either (1) after the last *FLAGS variable, or
  6849. # (2) before a word containing "conftest.", or (3) at the end.
  6850. # Note that $ac_compile itself does not contain backslashes and begins
  6851. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6852. lt_compile=`echo "$ac_compile" | $SED \
  6853. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  6854. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6855. -e 's:$: $lt_compiler_flag:'`
  6856. (eval echo "\"\$as_me:7676: $lt_compile\"" >&5)
  6857. (eval "$lt_compile" 2>out/conftest.err)
  6858. ac_status=$?
  6859. cat out/conftest.err >&5
  6860. echo "$as_me:7680: \$? = $ac_status" >&5
  6861. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6862. then
  6863. # The compiler can only warn and ignore the option if not recognized
  6864. # So say no if there are warnings
  6865. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  6866. $SED '/^$/d' out/conftest.err >out/conftest.er2
  6867. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6868. lt_cv_prog_compiler_c_o=yes
  6869. fi
  6870. fi
  6871. chmod u+w .
  6872. $rm conftest*
  6873. # SGI C++ compiler will create directory out/ii_files/ for
  6874. # template instantiation
  6875. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  6876. $rm out/* && rmdir out
  6877. cd ..
  6878. rmdir conftest
  6879. $rm conftest*
  6880. fi
  6881. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6882. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  6883. hard_links="nottested"
  6884. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6885. # do not overwrite the value of need_locks provided by the user
  6886. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6887. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  6888. hard_links=yes
  6889. $rm conftest*
  6890. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6891. touch conftest.a
  6892. ln conftest.a conftest.b 2>&5 || hard_links=no
  6893. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6894. { echo "$as_me:$LINENO: result: $hard_links" >&5
  6895. echo "${ECHO_T}$hard_links" >&6; }
  6896. if test "$hard_links" = no; then
  6897. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6898. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6899. need_locks=warn
  6900. fi
  6901. else
  6902. need_locks=no
  6903. fi
  6904. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6905. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  6906. runpath_var=
  6907. allow_undefined_flag=
  6908. enable_shared_with_static_runtimes=no
  6909. archive_cmds=
  6910. archive_expsym_cmds=
  6911. old_archive_From_new_cmds=
  6912. old_archive_from_expsyms_cmds=
  6913. export_dynamic_flag_spec=
  6914. whole_archive_flag_spec=
  6915. thread_safe_flag_spec=
  6916. hardcode_libdir_flag_spec=
  6917. hardcode_libdir_flag_spec_ld=
  6918. hardcode_libdir_separator=
  6919. hardcode_direct=no
  6920. hardcode_minus_L=no
  6921. hardcode_shlibpath_var=unsupported
  6922. link_all_deplibs=unknown
  6923. hardcode_automatic=no
  6924. module_cmds=
  6925. module_expsym_cmds=
  6926. always_export_symbols=no
  6927. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6928. # include_expsyms should be a list of space-separated symbols to be *always*
  6929. # included in the symbol list
  6930. include_expsyms=
  6931. # exclude_expsyms can be an extended regexp of symbols to exclude
  6932. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6933. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6934. # as well as any symbol that contains `d'.
  6935. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  6936. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6937. # platforms (ab)use it in PIC code, but their linkers get confused if
  6938. # the symbol is explicitly referenced. Since portable code cannot
  6939. # rely on this symbol name, it's probably fine to never include it in
  6940. # preloaded symbol tables.
  6941. extract_expsyms_cmds=
  6942. # Just being paranoid about ensuring that cc_basename is set.
  6943. for cc_temp in $compiler""; do
  6944. case $cc_temp in
  6945. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6946. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6947. \-*) ;;
  6948. *) break;;
  6949. esac
  6950. done
  6951. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6952. case $host_os in
  6953. cygwin* | mingw* | pw32*)
  6954. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6955. # When not using gcc, we currently assume that we are using
  6956. # Microsoft Visual C++.
  6957. if test "$GCC" != yes; then
  6958. with_gnu_ld=no
  6959. fi
  6960. ;;
  6961. openbsd*)
  6962. with_gnu_ld=no
  6963. ;;
  6964. esac
  6965. ld_shlibs=yes
  6966. if test "$with_gnu_ld" = yes; then
  6967. # If archive_cmds runs LD, not CC, wlarc should be empty
  6968. wlarc='${wl}'
  6969. # Set some defaults for GNU ld with shared library support. These
  6970. # are reset later if shared libraries are not supported. Putting them
  6971. # here allows them to be overridden if necessary.
  6972. runpath_var=LD_RUN_PATH
  6973. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  6974. export_dynamic_flag_spec='${wl}--export-dynamic'
  6975. # ancient GNU ld didn't support --whole-archive et. al.
  6976. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  6977. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6978. else
  6979. whole_archive_flag_spec=
  6980. fi
  6981. supports_anon_versioning=no
  6982. case `$LD -v 2>/dev/null` in
  6983. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6984. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6985. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6986. *\ 2.11.*) ;; # other 2.11 versions
  6987. *) supports_anon_versioning=yes ;;
  6988. esac
  6989. # See if GNU ld supports shared libraries.
  6990. case $host_os in
  6991. aix3* | aix4* | aix5*)
  6992. # On AIX/PPC, the GNU linker is very broken
  6993. if test "$host_cpu" != ia64; then
  6994. ld_shlibs=no
  6995. cat <<EOF 1>&2
  6996. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6997. *** to be unable to reliably create shared libraries on AIX.
  6998. *** Therefore, libtool is disabling shared libraries support. If you
  6999. *** really care for shared libraries, you may want to modify your PATH
  7000. *** so that a non-GNU linker is found, and then restart.
  7001. EOF
  7002. fi
  7003. ;;
  7004. amigaos*)
  7005. 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)'
  7006. hardcode_libdir_flag_spec='-L$libdir'
  7007. hardcode_minus_L=yes
  7008. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  7009. # that the semantics of dynamic libraries on AmigaOS, at least up
  7010. # to version 4, is to share data among multiple programs linked
  7011. # with the same dynamic library. Since this doesn't match the
  7012. # behavior of shared libraries on other platforms, we can't use
  7013. # them.
  7014. ld_shlibs=no
  7015. ;;
  7016. beos*)
  7017. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7018. allow_undefined_flag=unsupported
  7019. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7020. # support --undefined. This deserves some investigation. FIXME
  7021. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7022. else
  7023. ld_shlibs=no
  7024. fi
  7025. ;;
  7026. cygwin* | mingw* | pw32*)
  7027. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7028. # as there is no search path for DLLs.
  7029. hardcode_libdir_flag_spec='-L$libdir'
  7030. allow_undefined_flag=unsupported
  7031. always_export_symbols=no
  7032. enable_shared_with_static_runtimes=yes
  7033. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  7034. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  7035. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  7036. # If the export-symbols file already is a .def file (1st line
  7037. # is EXPORTS), use it as is; otherwise, prepend...
  7038. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7039. cp $export_symbols $output_objdir/$soname.def;
  7040. else
  7041. echo EXPORTS > $output_objdir/$soname.def;
  7042. cat $export_symbols >> $output_objdir/$soname.def;
  7043. fi~
  7044. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  7045. else
  7046. ld_shlibs=no
  7047. fi
  7048. ;;
  7049. linux*)
  7050. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7051. tmp_addflag=
  7052. case $cc_basename,$host_cpu in
  7053. pgcc*) # Portland Group C compiler
  7054. 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'
  7055. tmp_addflag=' $pic_flag'
  7056. ;;
  7057. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  7058. 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'
  7059. tmp_addflag=' $pic_flag -Mnomain' ;;
  7060. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7061. tmp_addflag=' -i_dynamic' ;;
  7062. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7063. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7064. ifc* | ifort*) # Intel Fortran compiler
  7065. tmp_addflag=' -nofor_main' ;;
  7066. esac
  7067. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7068. if test $supports_anon_versioning = yes; then
  7069. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  7070. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7071. $echo "local: *; };" >> $output_objdir/$libname.ver~
  7072. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7073. fi
  7074. else
  7075. ld_shlibs=no
  7076. fi
  7077. ;;
  7078. netbsd*)
  7079. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7080. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7081. wlarc=
  7082. else
  7083. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7084. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7085. fi
  7086. ;;
  7087. solaris* | sysv5*)
  7088. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  7089. ld_shlibs=no
  7090. cat <<EOF 1>&2
  7091. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7092. *** create shared libraries on Solaris systems. Therefore, libtool
  7093. *** is disabling shared libraries support. We urge you to upgrade GNU
  7094. *** binutils to release 2.9.1 or newer. Another option is to modify
  7095. *** your PATH or compiler configuration so that the native linker is
  7096. *** used, and then restart.
  7097. EOF
  7098. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7099. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7100. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7101. else
  7102. ld_shlibs=no
  7103. fi
  7104. ;;
  7105. sunos4*)
  7106. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7107. wlarc=
  7108. hardcode_direct=yes
  7109. hardcode_shlibpath_var=no
  7110. ;;
  7111. *)
  7112. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7113. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7114. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7115. else
  7116. ld_shlibs=no
  7117. fi
  7118. ;;
  7119. esac
  7120. if test "$ld_shlibs" = no; then
  7121. runpath_var=
  7122. hardcode_libdir_flag_spec=
  7123. export_dynamic_flag_spec=
  7124. whole_archive_flag_spec=
  7125. fi
  7126. else
  7127. # PORTME fill in a description of your system's linker (not GNU ld)
  7128. case $host_os in
  7129. aix3*)
  7130. allow_undefined_flag=unsupported
  7131. always_export_symbols=yes
  7132. 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'
  7133. # Note: this linker hardcodes the directories in LIBPATH if there
  7134. # are no directories specified by -L.
  7135. hardcode_minus_L=yes
  7136. if test "$GCC" = yes && test -z "$link_static_flag"; then
  7137. # Neither direct hardcoding nor static linking is supported with a
  7138. # broken collect2.
  7139. hardcode_direct=unsupported
  7140. fi
  7141. ;;
  7142. aix4* | aix5*)
  7143. if test "$host_cpu" = ia64; then
  7144. # On IA64, the linker does run time linking by default, so we don't
  7145. # have to do anything special.
  7146. aix_use_runtimelinking=no
  7147. exp_sym_flag='-Bexport'
  7148. no_entry_flag=""
  7149. else
  7150. # If we're using GNU nm, then we don't want the "-C" option.
  7151. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7152. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  7153. 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'
  7154. else
  7155. 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'
  7156. fi
  7157. aix_use_runtimelinking=no
  7158. # Test if we are trying to use run time linking or normal
  7159. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7160. # need to do runtime linking.
  7161. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  7162. for ld_flag in $LDFLAGS; do
  7163. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7164. aix_use_runtimelinking=yes
  7165. break
  7166. fi
  7167. done
  7168. esac
  7169. exp_sym_flag='-bexport'
  7170. no_entry_flag='-bnoentry'
  7171. fi
  7172. # When large executables or shared objects are built, AIX ld can
  7173. # have problems creating the table of contents. If linking a library
  7174. # or program results in "error TOC overflow" add -mminimal-toc to
  7175. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7176. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7177. archive_cmds=''
  7178. hardcode_direct=yes
  7179. hardcode_libdir_separator=':'
  7180. link_all_deplibs=yes
  7181. if test "$GCC" = yes; then
  7182. case $host_os in aix4.[012]|aix4.[012].*)
  7183. # We only want to do this on AIX 4.2 and lower, the check
  7184. # below for broken collect2 doesn't work under 4.3+
  7185. collect2name=`${CC} -print-prog-name=collect2`
  7186. if test -f "$collect2name" && \
  7187. strings "$collect2name" | grep resolve_lib_name >/dev/null
  7188. then
  7189. # We have reworked collect2
  7190. hardcode_direct=yes
  7191. else
  7192. # We have old collect2
  7193. hardcode_direct=unsupported
  7194. # It fails to find uninstalled libraries when the uninstalled
  7195. # path is not listed in the libpath. Setting hardcode_minus_L
  7196. # to unsupported forces relinking
  7197. hardcode_minus_L=yes
  7198. hardcode_libdir_flag_spec='-L$libdir'
  7199. hardcode_libdir_separator=
  7200. fi
  7201. esac
  7202. shared_flag='-shared'
  7203. if test "$aix_use_runtimelinking" = yes; then
  7204. shared_flag="$shared_flag "'${wl}-G'
  7205. fi
  7206. else
  7207. # not using gcc
  7208. if test "$host_cpu" = ia64; then
  7209. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7210. # chokes on -Wl,-G. The following line is correct:
  7211. shared_flag='-G'
  7212. else
  7213. if test "$aix_use_runtimelinking" = yes; then
  7214. shared_flag='${wl}-G'
  7215. else
  7216. shared_flag='${wl}-bM:SRE'
  7217. fi
  7218. fi
  7219. fi
  7220. # It seems that -bexpall does not export symbols beginning with
  7221. # underscore (_), so it is better to generate a list of symbols to export.
  7222. always_export_symbols=yes
  7223. if test "$aix_use_runtimelinking" = yes; then
  7224. # Warning - without using the other runtime loading flags (-brtl),
  7225. # -berok will link without error, but may produce a broken library.
  7226. allow_undefined_flag='-berok'
  7227. # Determine the default libpath from the value encoded in an empty executable.
  7228. cat >conftest.$ac_ext <<_ACEOF
  7229. /* confdefs.h. */
  7230. _ACEOF
  7231. cat confdefs.h >>conftest.$ac_ext
  7232. cat >>conftest.$ac_ext <<_ACEOF
  7233. /* end confdefs.h. */
  7234. int
  7235. main ()
  7236. {
  7237. ;
  7238. return 0;
  7239. }
  7240. _ACEOF
  7241. rm -f conftest.$ac_objext conftest$ac_exeext
  7242. if { (ac_try="$ac_link"
  7243. case "(($ac_try" in
  7244. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7245. *) ac_try_echo=$ac_try;;
  7246. esac
  7247. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7248. (eval "$ac_link") 2>conftest.er1
  7249. ac_status=$?
  7250. grep -v '^ *+' conftest.er1 >conftest.err
  7251. rm -f conftest.er1
  7252. cat conftest.err >&5
  7253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7254. (exit $ac_status); } && {
  7255. test -z "$ac_c_werror_flag" ||
  7256. test ! -s conftest.err
  7257. } && test -s conftest$ac_exeext &&
  7258. $as_test_x conftest$ac_exeext; then
  7259. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7260. }'`
  7261. # Check for a 64-bit object if we didn't find anything.
  7262. 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; }
  7263. }'`; fi
  7264. else
  7265. echo "$as_me: failed program was:" >&5
  7266. sed 's/^/| /' conftest.$ac_ext >&5
  7267. fi
  7268. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7269. conftest$ac_exeext conftest.$ac_ext
  7270. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7271. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7272. 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"
  7273. else
  7274. if test "$host_cpu" = ia64; then
  7275. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7276. allow_undefined_flag="-z nodefs"
  7277. 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"
  7278. else
  7279. # Determine the default libpath from the value encoded in an empty executable.
  7280. cat >conftest.$ac_ext <<_ACEOF
  7281. /* confdefs.h. */
  7282. _ACEOF
  7283. cat confdefs.h >>conftest.$ac_ext
  7284. cat >>conftest.$ac_ext <<_ACEOF
  7285. /* end confdefs.h. */
  7286. int
  7287. main ()
  7288. {
  7289. ;
  7290. return 0;
  7291. }
  7292. _ACEOF
  7293. rm -f conftest.$ac_objext conftest$ac_exeext
  7294. if { (ac_try="$ac_link"
  7295. case "(($ac_try" in
  7296. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7297. *) ac_try_echo=$ac_try;;
  7298. esac
  7299. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7300. (eval "$ac_link") 2>conftest.er1
  7301. ac_status=$?
  7302. grep -v '^ *+' conftest.er1 >conftest.err
  7303. rm -f conftest.er1
  7304. cat conftest.err >&5
  7305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7306. (exit $ac_status); } && {
  7307. test -z "$ac_c_werror_flag" ||
  7308. test ! -s conftest.err
  7309. } && test -s conftest$ac_exeext &&
  7310. $as_test_x conftest$ac_exeext; then
  7311. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7312. }'`
  7313. # Check for a 64-bit object if we didn't find anything.
  7314. 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; }
  7315. }'`; fi
  7316. else
  7317. echo "$as_me: failed program was:" >&5
  7318. sed 's/^/| /' conftest.$ac_ext >&5
  7319. fi
  7320. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7321. conftest$ac_exeext conftest.$ac_ext
  7322. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7323. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7324. # Warning - without using the other run time loading flags,
  7325. # -berok will link without error, but may produce a broken library.
  7326. no_undefined_flag=' ${wl}-bernotok'
  7327. allow_undefined_flag=' ${wl}-berok'
  7328. # -bexpall does not export symbols beginning with underscore (_)
  7329. always_export_symbols=yes
  7330. # Exported symbols can be pulled into shared objects from archives
  7331. whole_archive_flag_spec=' '
  7332. archive_cmds_need_lc=yes
  7333. # This is similar to how AIX traditionally builds it's shared libraries.
  7334. 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'
  7335. fi
  7336. fi
  7337. ;;
  7338. amigaos*)
  7339. 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)'
  7340. hardcode_libdir_flag_spec='-L$libdir'
  7341. hardcode_minus_L=yes
  7342. # see comment about different semantics on the GNU ld section
  7343. ld_shlibs=no
  7344. ;;
  7345. bsdi[45]*)
  7346. export_dynamic_flag_spec=-rdynamic
  7347. ;;
  7348. cygwin* | mingw* | pw32*)
  7349. # When not using gcc, we currently assume that we are using
  7350. # Microsoft Visual C++.
  7351. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7352. # no search path for DLLs.
  7353. hardcode_libdir_flag_spec=' '
  7354. allow_undefined_flag=unsupported
  7355. # Tell ltmain to make .lib files, not .a files.
  7356. libext=lib
  7357. # Tell ltmain to make .dll files, not .so files.
  7358. shrext_cmds=".dll"
  7359. # FIXME: Setting linknames here is a bad hack.
  7360. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7361. # The linker will automatically build a .lib file if we build a DLL.
  7362. old_archive_From_new_cmds='true'
  7363. # FIXME: Should let the user specify the lib program.
  7364. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  7365. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7366. enable_shared_with_static_runtimes=yes
  7367. ;;
  7368. darwin* | rhapsody*)
  7369. case "$host_os" in
  7370. rhapsody* | darwin1.[012])
  7371. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  7372. ;;
  7373. *) # Darwin 1.3 on
  7374. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  7375. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7376. else
  7377. case ${MACOSX_DEPLOYMENT_TARGET} in
  7378. 10.[012])
  7379. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7380. ;;
  7381. 10.*)
  7382. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  7383. ;;
  7384. esac
  7385. fi
  7386. ;;
  7387. esac
  7388. archive_cmds_need_lc=no
  7389. hardcode_direct=no
  7390. hardcode_automatic=yes
  7391. hardcode_shlibpath_var=unsupported
  7392. whole_archive_flag_spec=''
  7393. link_all_deplibs=yes
  7394. if test "$GCC" = yes ; then
  7395. output_verbose_link_cmd='echo'
  7396. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  7397. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7398. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  7399. 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}'
  7400. 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}'
  7401. else
  7402. case $cc_basename in
  7403. xlc*)
  7404. output_verbose_link_cmd='echo'
  7405. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  7406. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7407. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  7408. 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}'
  7409. 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}'
  7410. ;;
  7411. *)
  7412. ld_shlibs=no
  7413. ;;
  7414. esac
  7415. fi
  7416. ;;
  7417. dgux*)
  7418. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7419. hardcode_libdir_flag_spec='-L$libdir'
  7420. hardcode_shlibpath_var=no
  7421. ;;
  7422. freebsd1*)
  7423. ld_shlibs=no
  7424. ;;
  7425. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7426. # support. Future versions do this automatically, but an explicit c++rt0.o
  7427. # does not break anything, and helps significantly (at the cost of a little
  7428. # extra space).
  7429. freebsd2.2*)
  7430. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7431. hardcode_libdir_flag_spec='-R$libdir'
  7432. hardcode_direct=yes
  7433. hardcode_shlibpath_var=no
  7434. ;;
  7435. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7436. freebsd2*)
  7437. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7438. hardcode_direct=yes
  7439. hardcode_minus_L=yes
  7440. hardcode_shlibpath_var=no
  7441. ;;
  7442. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7443. freebsd* | kfreebsd*-gnu | dragonfly*)
  7444. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7445. hardcode_libdir_flag_spec='-R$libdir'
  7446. hardcode_direct=yes
  7447. hardcode_shlibpath_var=no
  7448. ;;
  7449. hpux9*)
  7450. if test "$GCC" = yes; then
  7451. 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'
  7452. else
  7453. 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'
  7454. fi
  7455. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7456. hardcode_libdir_separator=:
  7457. hardcode_direct=yes
  7458. # hardcode_minus_L: Not really in the search PATH,
  7459. # but as the default location of the library.
  7460. hardcode_minus_L=yes
  7461. export_dynamic_flag_spec='${wl}-E'
  7462. ;;
  7463. hpux10* | hpux11*)
  7464. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7465. case "$host_cpu" in
  7466. hppa*64*|ia64*)
  7467. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7468. ;;
  7469. *)
  7470. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7471. ;;
  7472. esac
  7473. else
  7474. case "$host_cpu" in
  7475. hppa*64*|ia64*)
  7476. archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  7477. ;;
  7478. *)
  7479. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7480. ;;
  7481. esac
  7482. fi
  7483. if test "$with_gnu_ld" = no; then
  7484. case "$host_cpu" in
  7485. hppa*64*)
  7486. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7487. hardcode_libdir_flag_spec_ld='+b $libdir'
  7488. hardcode_libdir_separator=:
  7489. hardcode_direct=no
  7490. hardcode_shlibpath_var=no
  7491. ;;
  7492. ia64*)
  7493. hardcode_libdir_flag_spec='-L$libdir'
  7494. hardcode_direct=no
  7495. hardcode_shlibpath_var=no
  7496. # hardcode_minus_L: Not really in the search PATH,
  7497. # but as the default location of the library.
  7498. hardcode_minus_L=yes
  7499. ;;
  7500. *)
  7501. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7502. hardcode_libdir_separator=:
  7503. hardcode_direct=yes
  7504. export_dynamic_flag_spec='${wl}-E'
  7505. # hardcode_minus_L: Not really in the search PATH,
  7506. # but as the default location of the library.
  7507. hardcode_minus_L=yes
  7508. ;;
  7509. esac
  7510. fi
  7511. ;;
  7512. irix5* | irix6* | nonstopux*)
  7513. if test "$GCC" = yes; then
  7514. 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'
  7515. else
  7516. 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'
  7517. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7518. fi
  7519. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7520. hardcode_libdir_separator=:
  7521. link_all_deplibs=yes
  7522. ;;
  7523. netbsd*)
  7524. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7525. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7526. else
  7527. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7528. fi
  7529. hardcode_libdir_flag_spec='-R$libdir'
  7530. hardcode_direct=yes
  7531. hardcode_shlibpath_var=no
  7532. ;;
  7533. newsos6)
  7534. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7535. hardcode_direct=yes
  7536. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7537. hardcode_libdir_separator=:
  7538. hardcode_shlibpath_var=no
  7539. ;;
  7540. openbsd*)
  7541. hardcode_direct=yes
  7542. hardcode_shlibpath_var=no
  7543. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7544. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7545. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7546. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7547. export_dynamic_flag_spec='${wl}-E'
  7548. else
  7549. case $host_os in
  7550. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7551. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7552. hardcode_libdir_flag_spec='-R$libdir'
  7553. ;;
  7554. *)
  7555. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7556. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7557. ;;
  7558. esac
  7559. fi
  7560. ;;
  7561. os2*)
  7562. hardcode_libdir_flag_spec='-L$libdir'
  7563. hardcode_minus_L=yes
  7564. allow_undefined_flag=unsupported
  7565. 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'
  7566. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7567. ;;
  7568. osf3*)
  7569. if test "$GCC" = yes; then
  7570. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7571. 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'
  7572. else
  7573. allow_undefined_flag=' -expect_unresolved \*'
  7574. 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'
  7575. fi
  7576. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7577. hardcode_libdir_separator=:
  7578. ;;
  7579. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7580. if test "$GCC" = yes; then
  7581. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7582. 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'
  7583. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7584. else
  7585. allow_undefined_flag=' -expect_unresolved \*'
  7586. 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'
  7587. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  7588. $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'
  7589. # Both c and cxx compiler support -rpath directly
  7590. hardcode_libdir_flag_spec='-rpath $libdir'
  7591. fi
  7592. hardcode_libdir_separator=:
  7593. ;;
  7594. sco3.2v5*)
  7595. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7596. hardcode_shlibpath_var=no
  7597. export_dynamic_flag_spec='${wl}-Bexport'
  7598. runpath_var=LD_RUN_PATH
  7599. hardcode_runpath_var=yes
  7600. ;;
  7601. solaris*)
  7602. no_undefined_flag=' -z text'
  7603. if test "$GCC" = yes; then
  7604. wlarc='${wl}'
  7605. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7606. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7607. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7608. else
  7609. wlarc=''
  7610. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7611. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7612. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7613. fi
  7614. hardcode_libdir_flag_spec='-R$libdir'
  7615. hardcode_shlibpath_var=no
  7616. case $host_os in
  7617. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7618. *)
  7619. # The compiler driver will combine linker options so we
  7620. # cannot just pass the convience library names through
  7621. # without $wl, iff we do not link with $LD.
  7622. # Luckily, gcc supports the same syntax we need for Sun Studio.
  7623. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7624. case $wlarc in
  7625. '')
  7626. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  7627. *)
  7628. 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' ;;
  7629. esac ;;
  7630. esac
  7631. link_all_deplibs=yes
  7632. ;;
  7633. sunos4*)
  7634. if test "x$host_vendor" = xsequent; then
  7635. # Use $CC to link under sequent, because it throws in some extra .o
  7636. # files that make .init and .fini sections work.
  7637. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7638. else
  7639. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7640. fi
  7641. hardcode_libdir_flag_spec='-L$libdir'
  7642. hardcode_direct=yes
  7643. hardcode_minus_L=yes
  7644. hardcode_shlibpath_var=no
  7645. ;;
  7646. sysv4)
  7647. case $host_vendor in
  7648. sni)
  7649. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7650. hardcode_direct=yes # is this really true???
  7651. ;;
  7652. siemens)
  7653. ## LD is ld it makes a PLAMLIB
  7654. ## CC just makes a GrossModule.
  7655. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7656. reload_cmds='$CC -r -o $output$reload_objs'
  7657. hardcode_direct=no
  7658. ;;
  7659. motorola)
  7660. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7661. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7662. ;;
  7663. esac
  7664. runpath_var='LD_RUN_PATH'
  7665. hardcode_shlibpath_var=no
  7666. ;;
  7667. sysv4.3*)
  7668. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7669. hardcode_shlibpath_var=no
  7670. export_dynamic_flag_spec='-Bexport'
  7671. ;;
  7672. sysv4*MP*)
  7673. if test -d /usr/nec; then
  7674. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7675. hardcode_shlibpath_var=no
  7676. runpath_var=LD_RUN_PATH
  7677. hardcode_runpath_var=yes
  7678. ld_shlibs=yes
  7679. fi
  7680. ;;
  7681. sysv4.2uw2*)
  7682. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7683. hardcode_direct=yes
  7684. hardcode_minus_L=no
  7685. hardcode_shlibpath_var=no
  7686. hardcode_runpath_var=yes
  7687. runpath_var=LD_RUN_PATH
  7688. ;;
  7689. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  7690. no_undefined_flag='${wl}-z ${wl}text'
  7691. if test "$GCC" = yes; then
  7692. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7693. else
  7694. archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7695. fi
  7696. runpath_var='LD_RUN_PATH'
  7697. hardcode_shlibpath_var=no
  7698. ;;
  7699. sysv5*)
  7700. no_undefined_flag=' -z text'
  7701. # $CC -shared without GNU ld will not create a library from C++
  7702. # object files and a static libstdc++, better avoid it by now
  7703. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7704. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7705. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7706. hardcode_libdir_flag_spec=
  7707. hardcode_shlibpath_var=no
  7708. runpath_var='LD_RUN_PATH'
  7709. ;;
  7710. uts4*)
  7711. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7712. hardcode_libdir_flag_spec='-L$libdir'
  7713. hardcode_shlibpath_var=no
  7714. ;;
  7715. *)
  7716. ld_shlibs=no
  7717. ;;
  7718. esac
  7719. fi
  7720. { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7721. echo "${ECHO_T}$ld_shlibs" >&6; }
  7722. test "$ld_shlibs" = no && can_build_shared=no
  7723. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  7724. if test "$GCC" = yes; then
  7725. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  7726. fi
  7727. #
  7728. # Do we need to explicitly link libc?
  7729. #
  7730. case "x$archive_cmds_need_lc" in
  7731. x|xyes)
  7732. # Assume -lc should be added
  7733. archive_cmds_need_lc=yes
  7734. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7735. case $archive_cmds in
  7736. *'~'*)
  7737. # FIXME: we may have to deal with multi-command sequences.
  7738. ;;
  7739. '$CC '*)
  7740. # Test whether the compiler implicitly links with -lc since on some
  7741. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7742. # to ld, don't add -lc before -lgcc.
  7743. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7744. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  7745. $rm conftest*
  7746. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7747. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7748. (eval $ac_compile) 2>&5
  7749. ac_status=$?
  7750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7751. (exit $ac_status); } 2>conftest.err; then
  7752. soname=conftest
  7753. lib=conftest
  7754. libobjs=conftest.$ac_objext
  7755. deplibs=
  7756. wl=$lt_prog_compiler_wl
  7757. compiler_flags=-v
  7758. linker_flags=-v
  7759. verstring=
  7760. output_objdir=.
  7761. libname=conftest
  7762. lt_save_allow_undefined_flag=$allow_undefined_flag
  7763. allow_undefined_flag=
  7764. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7765. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7766. ac_status=$?
  7767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7768. (exit $ac_status); }
  7769. then
  7770. archive_cmds_need_lc=no
  7771. else
  7772. archive_cmds_need_lc=yes
  7773. fi
  7774. allow_undefined_flag=$lt_save_allow_undefined_flag
  7775. else
  7776. cat conftest.err 1>&5
  7777. fi
  7778. $rm conftest*
  7779. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7780. echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  7781. ;;
  7782. esac
  7783. fi
  7784. ;;
  7785. esac
  7786. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7787. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  7788. library_names_spec=
  7789. libname_spec='lib$name'
  7790. soname_spec=
  7791. shrext_cmds=".so"
  7792. postinstall_cmds=
  7793. postuninstall_cmds=
  7794. finish_cmds=
  7795. finish_eval=
  7796. shlibpath_var=
  7797. shlibpath_overrides_runpath=unknown
  7798. version_type=none
  7799. dynamic_linker="$host_os ld.so"
  7800. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7801. if test "$GCC" = yes; then
  7802. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7803. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  7804. # if the path contains ";" then we assume it to be the separator
  7805. # otherwise default to the standard path separator (i.e. ":") - it is
  7806. # assumed that no part of a normal pathname contains ";" but that should
  7807. # okay in the real world where ";" in dirpaths is itself problematic.
  7808. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7809. else
  7810. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7811. fi
  7812. else
  7813. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7814. fi
  7815. need_lib_prefix=unknown
  7816. hardcode_into_libs=no
  7817. # when you set need_version to no, make sure it does not cause -set_version
  7818. # flags to be left without arguments
  7819. need_version=unknown
  7820. case $host_os in
  7821. aix3*)
  7822. version_type=linux
  7823. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7824. shlibpath_var=LIBPATH
  7825. # AIX 3 has no versioning support, so we append a major version to the name.
  7826. soname_spec='${libname}${release}${shared_ext}$major'
  7827. ;;
  7828. aix4* | aix5*)
  7829. version_type=linux
  7830. need_lib_prefix=no
  7831. need_version=no
  7832. hardcode_into_libs=yes
  7833. if test "$host_cpu" = ia64; then
  7834. # AIX 5 supports IA64
  7835. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7836. shlibpath_var=LD_LIBRARY_PATH
  7837. else
  7838. # With GCC up to 2.95.x, collect2 would create an import file
  7839. # for dependence libraries. The import file would start with
  7840. # the line `#! .'. This would cause the generated library to
  7841. # depend on `.', always an invalid library. This was fixed in
  7842. # development snapshots of GCC prior to 3.0.
  7843. case $host_os in
  7844. aix4 | aix4.[01] | aix4.[01].*)
  7845. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7846. echo ' yes '
  7847. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  7848. :
  7849. else
  7850. can_build_shared=no
  7851. fi
  7852. ;;
  7853. esac
  7854. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7855. # soname into executable. Probably we can add versioning support to
  7856. # collect2, so additional links can be useful in future.
  7857. if test "$aix_use_runtimelinking" = yes; then
  7858. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7859. # instead of lib<name>.a to let people know that these are not
  7860. # typical AIX shared libraries.
  7861. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7862. else
  7863. # We preserve .a as extension for shared libraries through AIX4.2
  7864. # and later when we are not doing run time linking.
  7865. library_names_spec='${libname}${release}.a $libname.a'
  7866. soname_spec='${libname}${release}${shared_ext}$major'
  7867. fi
  7868. shlibpath_var=LIBPATH
  7869. fi
  7870. ;;
  7871. amigaos*)
  7872. library_names_spec='$libname.ixlibrary $libname.a'
  7873. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7874. 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'
  7875. ;;
  7876. beos*)
  7877. library_names_spec='${libname}${shared_ext}'
  7878. dynamic_linker="$host_os ld.so"
  7879. shlibpath_var=LIBRARY_PATH
  7880. ;;
  7881. bsdi[45]*)
  7882. version_type=linux
  7883. need_version=no
  7884. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7885. soname_spec='${libname}${release}${shared_ext}$major'
  7886. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7887. shlibpath_var=LD_LIBRARY_PATH
  7888. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7889. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7890. # the default ld.so.conf also contains /usr/contrib/lib and
  7891. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7892. # libtool to hard-code these into programs
  7893. ;;
  7894. cygwin* | mingw* | pw32*)
  7895. version_type=windows
  7896. shrext_cmds=".dll"
  7897. need_version=no
  7898. need_lib_prefix=no
  7899. case $GCC,$host_os in
  7900. yes,cygwin* | yes,mingw* | yes,pw32*)
  7901. library_names_spec='$libname.dll.a'
  7902. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7903. postinstall_cmds='base_file=`basename \${file}`~
  7904. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  7905. dldir=$destdir/`dirname \$dlpath`~
  7906. test -d \$dldir || mkdir -p \$dldir~
  7907. $install_prog $dir/$dlname \$dldir/$dlname'
  7908. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7909. dlpath=$dir/\$dldll~
  7910. $rm \$dlpath'
  7911. shlibpath_overrides_runpath=yes
  7912. case $host_os in
  7913. cygwin*)
  7914. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7915. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7916. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7917. ;;
  7918. mingw*)
  7919. # MinGW DLLs use traditional 'lib' prefix
  7920. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7921. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7922. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  7923. # It is most probably a Windows format PATH printed by
  7924. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7925. # path with ; separators, and with drive letters. We can handle the
  7926. # drive letters (cygwin fileutils understands them), so leave them,
  7927. # especially as we might pass files found there to a mingw objdump,
  7928. # which wouldn't understand a cygwinified path. Ahh.
  7929. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7930. else
  7931. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7932. fi
  7933. ;;
  7934. pw32*)
  7935. # pw32 DLLs use 'pw' prefix rather than 'lib'
  7936. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7937. ;;
  7938. esac
  7939. ;;
  7940. *)
  7941. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  7942. ;;
  7943. esac
  7944. dynamic_linker='Win32 ld.exe'
  7945. # FIXME: first we should search . and the directory the executable is in
  7946. shlibpath_var=PATH
  7947. ;;
  7948. darwin* | rhapsody*)
  7949. dynamic_linker="$host_os dyld"
  7950. version_type=darwin
  7951. need_lib_prefix=no
  7952. need_version=no
  7953. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  7954. soname_spec='${libname}${release}${major}$shared_ext'
  7955. shlibpath_overrides_runpath=yes
  7956. shlibpath_var=DYLD_LIBRARY_PATH
  7957. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  7958. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  7959. if test "$GCC" = yes; then
  7960. 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"`
  7961. else
  7962. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  7963. fi
  7964. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  7965. ;;
  7966. dgux*)
  7967. version_type=linux
  7968. need_lib_prefix=no
  7969. need_version=no
  7970. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  7971. soname_spec='${libname}${release}${shared_ext}$major'
  7972. shlibpath_var=LD_LIBRARY_PATH
  7973. ;;
  7974. freebsd1*)
  7975. dynamic_linker=no
  7976. ;;
  7977. kfreebsd*-gnu)
  7978. version_type=linux
  7979. need_lib_prefix=no
  7980. need_version=no
  7981. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7982. soname_spec='${libname}${release}${shared_ext}$major'
  7983. shlibpath_var=LD_LIBRARY_PATH
  7984. shlibpath_overrides_runpath=no
  7985. hardcode_into_libs=yes
  7986. dynamic_linker='GNU ld.so'
  7987. ;;
  7988. freebsd* | dragonfly*)
  7989. # DragonFly does not have aout. When/if they implement a new
  7990. # versioning mechanism, adjust this.
  7991. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  7992. version_type=freebsd-$objformat
  7993. case $version_type in
  7994. freebsd-elf*)
  7995. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7996. need_version=no
  7997. need_lib_prefix=no
  7998. ;;
  7999. freebsd-*)
  8000. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8001. need_version=yes
  8002. ;;
  8003. esac
  8004. shlibpath_var=LD_LIBRARY_PATH
  8005. case $host_os in
  8006. freebsd2*)
  8007. shlibpath_overrides_runpath=yes
  8008. ;;
  8009. freebsd3.[01]* | freebsdelf3.[01]*)
  8010. shlibpath_overrides_runpath=yes
  8011. hardcode_into_libs=yes
  8012. ;;
  8013. *) # from 3.2 on
  8014. shlibpath_overrides_runpath=no
  8015. hardcode_into_libs=yes
  8016. ;;
  8017. esac
  8018. ;;
  8019. gnu*)
  8020. version_type=linux
  8021. need_lib_prefix=no
  8022. need_version=no
  8023. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8024. soname_spec='${libname}${release}${shared_ext}$major'
  8025. shlibpath_var=LD_LIBRARY_PATH
  8026. hardcode_into_libs=yes
  8027. ;;
  8028. hpux9* | hpux10* | hpux11*)
  8029. # Give a soname corresponding to the major version so that dld.sl refuses to
  8030. # link against other versions.
  8031. version_type=sunos
  8032. need_lib_prefix=no
  8033. need_version=no
  8034. case "$host_cpu" in
  8035. ia64*)
  8036. shrext_cmds='.so'
  8037. hardcode_into_libs=yes
  8038. dynamic_linker="$host_os dld.so"
  8039. shlibpath_var=LD_LIBRARY_PATH
  8040. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8041. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8042. soname_spec='${libname}${release}${shared_ext}$major'
  8043. if test "X$HPUX_IA64_MODE" = X32; then
  8044. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8045. else
  8046. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8047. fi
  8048. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8049. ;;
  8050. hppa*64*)
  8051. shrext_cmds='.sl'
  8052. hardcode_into_libs=yes
  8053. dynamic_linker="$host_os dld.sl"
  8054. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8055. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8057. soname_spec='${libname}${release}${shared_ext}$major'
  8058. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8059. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8060. ;;
  8061. *)
  8062. shrext_cmds='.sl'
  8063. dynamic_linker="$host_os dld.sl"
  8064. shlibpath_var=SHLIB_PATH
  8065. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8066. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8067. soname_spec='${libname}${release}${shared_ext}$major'
  8068. ;;
  8069. esac
  8070. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8071. postinstall_cmds='chmod 555 $lib'
  8072. ;;
  8073. irix5* | irix6* | nonstopux*)
  8074. case $host_os in
  8075. nonstopux*) version_type=nonstopux ;;
  8076. *)
  8077. if test "$lt_cv_prog_gnu_ld" = yes; then
  8078. version_type=linux
  8079. else
  8080. version_type=irix
  8081. fi ;;
  8082. esac
  8083. need_lib_prefix=no
  8084. need_version=no
  8085. soname_spec='${libname}${release}${shared_ext}$major'
  8086. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8087. case $host_os in
  8088. irix5* | nonstopux*)
  8089. libsuff= shlibsuff=
  8090. ;;
  8091. *)
  8092. case $LD in # libtool.m4 will add one of these switches to LD
  8093. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8094. libsuff= shlibsuff= libmagic=32-bit;;
  8095. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8096. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8097. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8098. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8099. *) libsuff= shlibsuff= libmagic=never-match;;
  8100. esac
  8101. ;;
  8102. esac
  8103. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8104. shlibpath_overrides_runpath=no
  8105. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8106. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8107. hardcode_into_libs=yes
  8108. ;;
  8109. # No shared lib support for Linux oldld, aout, or coff.
  8110. linux*oldld* | linux*aout* | linux*coff*)
  8111. dynamic_linker=no
  8112. ;;
  8113. # This must be Linux ELF.
  8114. linux*)
  8115. version_type=linux
  8116. need_lib_prefix=no
  8117. need_version=no
  8118. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8119. soname_spec='${libname}${release}${shared_ext}$major'
  8120. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8121. shlibpath_var=LD_LIBRARY_PATH
  8122. shlibpath_overrides_runpath=no
  8123. # This implies no fast_install, which is unacceptable.
  8124. # Some rework will be needed to allow for fast_install
  8125. # before this can be enabled.
  8126. hardcode_into_libs=yes
  8127. # Append ld.so.conf contents to the search path
  8128. if test -f /etc/ld.so.conf; then
  8129. 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' ' '`
  8130. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8131. fi
  8132. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8133. # powerpc, because MkLinux only supported shared libraries with the
  8134. # GNU dynamic linker. Since this was broken with cross compilers,
  8135. # most powerpc-linux boxes support dynamic linking these days and
  8136. # people can always --disable-shared, the test was removed, and we
  8137. # assume the GNU/Linux dynamic linker is in use.
  8138. dynamic_linker='GNU/Linux ld.so'
  8139. ;;
  8140. knetbsd*-gnu)
  8141. version_type=linux
  8142. need_lib_prefix=no
  8143. need_version=no
  8144. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8145. soname_spec='${libname}${release}${shared_ext}$major'
  8146. shlibpath_var=LD_LIBRARY_PATH
  8147. shlibpath_overrides_runpath=no
  8148. hardcode_into_libs=yes
  8149. dynamic_linker='GNU ld.so'
  8150. ;;
  8151. netbsd*)
  8152. version_type=sunos
  8153. need_lib_prefix=no
  8154. need_version=no
  8155. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8156. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8157. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8158. dynamic_linker='NetBSD (a.out) ld.so'
  8159. else
  8160. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8161. soname_spec='${libname}${release}${shared_ext}$major'
  8162. dynamic_linker='NetBSD ld.elf_so'
  8163. fi
  8164. shlibpath_var=LD_LIBRARY_PATH
  8165. shlibpath_overrides_runpath=yes
  8166. hardcode_into_libs=yes
  8167. ;;
  8168. newsos6)
  8169. version_type=linux
  8170. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8171. shlibpath_var=LD_LIBRARY_PATH
  8172. shlibpath_overrides_runpath=yes
  8173. ;;
  8174. nto-qnx*)
  8175. version_type=linux
  8176. need_lib_prefix=no
  8177. need_version=no
  8178. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8179. soname_spec='${libname}${release}${shared_ext}$major'
  8180. shlibpath_var=LD_LIBRARY_PATH
  8181. shlibpath_overrides_runpath=yes
  8182. ;;
  8183. openbsd*)
  8184. version_type=sunos
  8185. need_lib_prefix=no
  8186. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8187. case $host_os in
  8188. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8189. *) need_version=no ;;
  8190. esac
  8191. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8192. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8193. shlibpath_var=LD_LIBRARY_PATH
  8194. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8195. case $host_os in
  8196. openbsd2.[89] | openbsd2.[89].*)
  8197. shlibpath_overrides_runpath=no
  8198. ;;
  8199. *)
  8200. shlibpath_overrides_runpath=yes
  8201. ;;
  8202. esac
  8203. else
  8204. shlibpath_overrides_runpath=yes
  8205. fi
  8206. ;;
  8207. os2*)
  8208. libname_spec='$name'
  8209. shrext_cmds=".dll"
  8210. need_lib_prefix=no
  8211. library_names_spec='$libname${shared_ext} $libname.a'
  8212. dynamic_linker='OS/2 ld.exe'
  8213. shlibpath_var=LIBPATH
  8214. ;;
  8215. osf3* | osf4* | osf5*)
  8216. version_type=osf
  8217. need_lib_prefix=no
  8218. need_version=no
  8219. soname_spec='${libname}${release}${shared_ext}$major'
  8220. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8221. shlibpath_var=LD_LIBRARY_PATH
  8222. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8223. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8224. ;;
  8225. sco3.2v5*)
  8226. version_type=osf
  8227. soname_spec='${libname}${release}${shared_ext}$major'
  8228. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8229. shlibpath_var=LD_LIBRARY_PATH
  8230. ;;
  8231. solaris*)
  8232. version_type=linux
  8233. need_lib_prefix=no
  8234. need_version=no
  8235. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8236. soname_spec='${libname}${release}${shared_ext}$major'
  8237. shlibpath_var=LD_LIBRARY_PATH
  8238. shlibpath_overrides_runpath=yes
  8239. hardcode_into_libs=yes
  8240. # ldd complains unless libraries are executable
  8241. postinstall_cmds='chmod +x $lib'
  8242. ;;
  8243. sunos4*)
  8244. version_type=sunos
  8245. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8246. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8247. shlibpath_var=LD_LIBRARY_PATH
  8248. shlibpath_overrides_runpath=yes
  8249. if test "$with_gnu_ld" = yes; then
  8250. need_lib_prefix=no
  8251. fi
  8252. need_version=yes
  8253. ;;
  8254. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8255. version_type=linux
  8256. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8257. soname_spec='${libname}${release}${shared_ext}$major'
  8258. shlibpath_var=LD_LIBRARY_PATH
  8259. case $host_vendor in
  8260. sni)
  8261. shlibpath_overrides_runpath=no
  8262. need_lib_prefix=no
  8263. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8264. runpath_var=LD_RUN_PATH
  8265. ;;
  8266. siemens)
  8267. need_lib_prefix=no
  8268. ;;
  8269. motorola)
  8270. need_lib_prefix=no
  8271. need_version=no
  8272. shlibpath_overrides_runpath=no
  8273. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8274. ;;
  8275. esac
  8276. ;;
  8277. sysv4*MP*)
  8278. if test -d /usr/nec ;then
  8279. version_type=linux
  8280. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8281. soname_spec='$libname${shared_ext}.$major'
  8282. shlibpath_var=LD_LIBRARY_PATH
  8283. fi
  8284. ;;
  8285. uts4*)
  8286. version_type=linux
  8287. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8288. soname_spec='${libname}${release}${shared_ext}$major'
  8289. shlibpath_var=LD_LIBRARY_PATH
  8290. ;;
  8291. *)
  8292. dynamic_linker=no
  8293. ;;
  8294. esac
  8295. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8296. echo "${ECHO_T}$dynamic_linker" >&6; }
  8297. test "$dynamic_linker" = no && can_build_shared=no
  8298. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8299. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  8300. hardcode_action=
  8301. if test -n "$hardcode_libdir_flag_spec" || \
  8302. test -n "$runpath_var" || \
  8303. test "X$hardcode_automatic" = "Xyes" ; then
  8304. # We can hardcode non-existant directories.
  8305. if test "$hardcode_direct" != no &&
  8306. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8307. # have to relink, otherwise we might link with an installed library
  8308. # when we should be linking with a yet-to-be-installed one
  8309. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8310. test "$hardcode_minus_L" != no; then
  8311. # Linking always hardcodes the temporary library directory.
  8312. hardcode_action=relink
  8313. else
  8314. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8315. hardcode_action=immediate
  8316. fi
  8317. else
  8318. # We cannot hardcode anything, or else we can only hardcode existing
  8319. # directories.
  8320. hardcode_action=unsupported
  8321. fi
  8322. { echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8323. echo "${ECHO_T}$hardcode_action" >&6; }
  8324. if test "$hardcode_action" = relink; then
  8325. # Fast installation is not supported
  8326. enable_fast_install=no
  8327. elif test "$shlibpath_overrides_runpath" = yes ||
  8328. test "$enable_shared" = no; then
  8329. # Fast installation is not necessary
  8330. enable_fast_install=needless
  8331. fi
  8332. striplib=
  8333. old_striplib=
  8334. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  8335. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  8336. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  8337. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  8338. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  8339. { echo "$as_me:$LINENO: result: yes" >&5
  8340. echo "${ECHO_T}yes" >&6; }
  8341. else
  8342. # FIXME - insert some real tests, host_os isn't really good enough
  8343. case $host_os in
  8344. darwin*)
  8345. if test -n "$STRIP" ; then
  8346. striplib="$STRIP -x"
  8347. { echo "$as_me:$LINENO: result: yes" >&5
  8348. echo "${ECHO_T}yes" >&6; }
  8349. else
  8350. { echo "$as_me:$LINENO: result: no" >&5
  8351. echo "${ECHO_T}no" >&6; }
  8352. fi
  8353. ;;
  8354. *)
  8355. { echo "$as_me:$LINENO: result: no" >&5
  8356. echo "${ECHO_T}no" >&6; }
  8357. ;;
  8358. esac
  8359. fi
  8360. if test "x$enable_dlopen" != xyes; then
  8361. enable_dlopen=unknown
  8362. enable_dlopen_self=unknown
  8363. enable_dlopen_self_static=unknown
  8364. else
  8365. lt_cv_dlopen=no
  8366. lt_cv_dlopen_libs=
  8367. case $host_os in
  8368. beos*)
  8369. lt_cv_dlopen="load_add_on"
  8370. lt_cv_dlopen_libs=
  8371. lt_cv_dlopen_self=yes
  8372. ;;
  8373. mingw* | pw32*)
  8374. lt_cv_dlopen="LoadLibrary"
  8375. lt_cv_dlopen_libs=
  8376. ;;
  8377. cygwin*)
  8378. lt_cv_dlopen="dlopen"
  8379. lt_cv_dlopen_libs=
  8380. ;;
  8381. darwin*)
  8382. # if libdl is installed we need to link against it
  8383. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8384. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8385. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8386. echo $ECHO_N "(cached) $ECHO_C" >&6
  8387. else
  8388. ac_check_lib_save_LIBS=$LIBS
  8389. LIBS="-ldl $LIBS"
  8390. cat >conftest.$ac_ext <<_ACEOF
  8391. /* confdefs.h. */
  8392. _ACEOF
  8393. cat confdefs.h >>conftest.$ac_ext
  8394. cat >>conftest.$ac_ext <<_ACEOF
  8395. /* end confdefs.h. */
  8396. /* Override any GCC internal prototype to avoid an error.
  8397. Use char because int might match the return type of a GCC
  8398. builtin and then its argument prototype would still apply. */
  8399. #ifdef __cplusplus
  8400. extern "C"
  8401. #endif
  8402. char dlopen ();
  8403. int
  8404. main ()
  8405. {
  8406. return dlopen ();
  8407. ;
  8408. return 0;
  8409. }
  8410. _ACEOF
  8411. rm -f conftest.$ac_objext conftest$ac_exeext
  8412. if { (ac_try="$ac_link"
  8413. case "(($ac_try" in
  8414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8415. *) ac_try_echo=$ac_try;;
  8416. esac
  8417. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8418. (eval "$ac_link") 2>conftest.er1
  8419. ac_status=$?
  8420. grep -v '^ *+' conftest.er1 >conftest.err
  8421. rm -f conftest.er1
  8422. cat conftest.err >&5
  8423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8424. (exit $ac_status); } && {
  8425. test -z "$ac_c_werror_flag" ||
  8426. test ! -s conftest.err
  8427. } && test -s conftest$ac_exeext &&
  8428. $as_test_x conftest$ac_exeext; then
  8429. ac_cv_lib_dl_dlopen=yes
  8430. else
  8431. echo "$as_me: failed program was:" >&5
  8432. sed 's/^/| /' conftest.$ac_ext >&5
  8433. ac_cv_lib_dl_dlopen=no
  8434. fi
  8435. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8436. conftest$ac_exeext conftest.$ac_ext
  8437. LIBS=$ac_check_lib_save_LIBS
  8438. fi
  8439. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8440. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8441. if test $ac_cv_lib_dl_dlopen = yes; then
  8442. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8443. else
  8444. lt_cv_dlopen="dyld"
  8445. lt_cv_dlopen_libs=
  8446. lt_cv_dlopen_self=yes
  8447. fi
  8448. ;;
  8449. *)
  8450. { echo "$as_me:$LINENO: checking for shl_load" >&5
  8451. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  8452. if test "${ac_cv_func_shl_load+set}" = set; then
  8453. echo $ECHO_N "(cached) $ECHO_C" >&6
  8454. else
  8455. cat >conftest.$ac_ext <<_ACEOF
  8456. /* confdefs.h. */
  8457. _ACEOF
  8458. cat confdefs.h >>conftest.$ac_ext
  8459. cat >>conftest.$ac_ext <<_ACEOF
  8460. /* end confdefs.h. */
  8461. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8462. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8463. #define shl_load innocuous_shl_load
  8464. /* System header to define __stub macros and hopefully few prototypes,
  8465. which can conflict with char shl_load (); below.
  8466. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8467. <limits.h> exists even on freestanding compilers. */
  8468. #ifdef __STDC__
  8469. # include <limits.h>
  8470. #else
  8471. # include <assert.h>
  8472. #endif
  8473. #undef shl_load
  8474. /* Override any GCC internal prototype to avoid an error.
  8475. Use char because int might match the return type of a GCC
  8476. builtin and then its argument prototype would still apply. */
  8477. #ifdef __cplusplus
  8478. extern "C"
  8479. #endif
  8480. char shl_load ();
  8481. /* The GNU C library defines this for functions which it implements
  8482. to always fail with ENOSYS. Some functions are actually named
  8483. something starting with __ and the normal name is an alias. */
  8484. #if defined __stub_shl_load || defined __stub___shl_load
  8485. choke me
  8486. #endif
  8487. int
  8488. main ()
  8489. {
  8490. return shl_load ();
  8491. ;
  8492. return 0;
  8493. }
  8494. _ACEOF
  8495. rm -f conftest.$ac_objext conftest$ac_exeext
  8496. if { (ac_try="$ac_link"
  8497. case "(($ac_try" in
  8498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8499. *) ac_try_echo=$ac_try;;
  8500. esac
  8501. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8502. (eval "$ac_link") 2>conftest.er1
  8503. ac_status=$?
  8504. grep -v '^ *+' conftest.er1 >conftest.err
  8505. rm -f conftest.er1
  8506. cat conftest.err >&5
  8507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8508. (exit $ac_status); } && {
  8509. test -z "$ac_c_werror_flag" ||
  8510. test ! -s conftest.err
  8511. } && test -s conftest$ac_exeext &&
  8512. $as_test_x conftest$ac_exeext; then
  8513. ac_cv_func_shl_load=yes
  8514. else
  8515. echo "$as_me: failed program was:" >&5
  8516. sed 's/^/| /' conftest.$ac_ext >&5
  8517. ac_cv_func_shl_load=no
  8518. fi
  8519. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8520. conftest$ac_exeext conftest.$ac_ext
  8521. fi
  8522. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8523. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  8524. if test $ac_cv_func_shl_load = yes; then
  8525. lt_cv_dlopen="shl_load"
  8526. else
  8527. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8528. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  8529. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8530. echo $ECHO_N "(cached) $ECHO_C" >&6
  8531. else
  8532. ac_check_lib_save_LIBS=$LIBS
  8533. LIBS="-ldld $LIBS"
  8534. cat >conftest.$ac_ext <<_ACEOF
  8535. /* confdefs.h. */
  8536. _ACEOF
  8537. cat confdefs.h >>conftest.$ac_ext
  8538. cat >>conftest.$ac_ext <<_ACEOF
  8539. /* end confdefs.h. */
  8540. /* Override any GCC internal prototype to avoid an error.
  8541. Use char because int might match the return type of a GCC
  8542. builtin and then its argument prototype would still apply. */
  8543. #ifdef __cplusplus
  8544. extern "C"
  8545. #endif
  8546. char shl_load ();
  8547. int
  8548. main ()
  8549. {
  8550. return shl_load ();
  8551. ;
  8552. return 0;
  8553. }
  8554. _ACEOF
  8555. rm -f conftest.$ac_objext conftest$ac_exeext
  8556. if { (ac_try="$ac_link"
  8557. case "(($ac_try" in
  8558. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8559. *) ac_try_echo=$ac_try;;
  8560. esac
  8561. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8562. (eval "$ac_link") 2>conftest.er1
  8563. ac_status=$?
  8564. grep -v '^ *+' conftest.er1 >conftest.err
  8565. rm -f conftest.er1
  8566. cat conftest.err >&5
  8567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8568. (exit $ac_status); } && {
  8569. test -z "$ac_c_werror_flag" ||
  8570. test ! -s conftest.err
  8571. } && test -s conftest$ac_exeext &&
  8572. $as_test_x conftest$ac_exeext; then
  8573. ac_cv_lib_dld_shl_load=yes
  8574. else
  8575. echo "$as_me: failed program was:" >&5
  8576. sed 's/^/| /' conftest.$ac_ext >&5
  8577. ac_cv_lib_dld_shl_load=no
  8578. fi
  8579. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8580. conftest$ac_exeext conftest.$ac_ext
  8581. LIBS=$ac_check_lib_save_LIBS
  8582. fi
  8583. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8584. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  8585. if test $ac_cv_lib_dld_shl_load = yes; then
  8586. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8587. else
  8588. { echo "$as_me:$LINENO: checking for dlopen" >&5
  8589. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  8590. if test "${ac_cv_func_dlopen+set}" = set; then
  8591. echo $ECHO_N "(cached) $ECHO_C" >&6
  8592. else
  8593. cat >conftest.$ac_ext <<_ACEOF
  8594. /* confdefs.h. */
  8595. _ACEOF
  8596. cat confdefs.h >>conftest.$ac_ext
  8597. cat >>conftest.$ac_ext <<_ACEOF
  8598. /* end confdefs.h. */
  8599. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8600. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8601. #define dlopen innocuous_dlopen
  8602. /* System header to define __stub macros and hopefully few prototypes,
  8603. which can conflict with char dlopen (); below.
  8604. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8605. <limits.h> exists even on freestanding compilers. */
  8606. #ifdef __STDC__
  8607. # include <limits.h>
  8608. #else
  8609. # include <assert.h>
  8610. #endif
  8611. #undef dlopen
  8612. /* Override any GCC internal prototype to avoid an error.
  8613. Use char because int might match the return type of a GCC
  8614. builtin and then its argument prototype would still apply. */
  8615. #ifdef __cplusplus
  8616. extern "C"
  8617. #endif
  8618. char dlopen ();
  8619. /* The GNU C library defines this for functions which it implements
  8620. to always fail with ENOSYS. Some functions are actually named
  8621. something starting with __ and the normal name is an alias. */
  8622. #if defined __stub_dlopen || defined __stub___dlopen
  8623. choke me
  8624. #endif
  8625. int
  8626. main ()
  8627. {
  8628. return dlopen ();
  8629. ;
  8630. return 0;
  8631. }
  8632. _ACEOF
  8633. rm -f conftest.$ac_objext conftest$ac_exeext
  8634. if { (ac_try="$ac_link"
  8635. case "(($ac_try" in
  8636. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8637. *) ac_try_echo=$ac_try;;
  8638. esac
  8639. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8640. (eval "$ac_link") 2>conftest.er1
  8641. ac_status=$?
  8642. grep -v '^ *+' conftest.er1 >conftest.err
  8643. rm -f conftest.er1
  8644. cat conftest.err >&5
  8645. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8646. (exit $ac_status); } && {
  8647. test -z "$ac_c_werror_flag" ||
  8648. test ! -s conftest.err
  8649. } && test -s conftest$ac_exeext &&
  8650. $as_test_x conftest$ac_exeext; then
  8651. ac_cv_func_dlopen=yes
  8652. else
  8653. echo "$as_me: failed program was:" >&5
  8654. sed 's/^/| /' conftest.$ac_ext >&5
  8655. ac_cv_func_dlopen=no
  8656. fi
  8657. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8658. conftest$ac_exeext conftest.$ac_ext
  8659. fi
  8660. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8661. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  8662. if test $ac_cv_func_dlopen = yes; then
  8663. lt_cv_dlopen="dlopen"
  8664. else
  8665. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8666. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8667. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8668. echo $ECHO_N "(cached) $ECHO_C" >&6
  8669. else
  8670. ac_check_lib_save_LIBS=$LIBS
  8671. LIBS="-ldl $LIBS"
  8672. cat >conftest.$ac_ext <<_ACEOF
  8673. /* confdefs.h. */
  8674. _ACEOF
  8675. cat confdefs.h >>conftest.$ac_ext
  8676. cat >>conftest.$ac_ext <<_ACEOF
  8677. /* end confdefs.h. */
  8678. /* Override any GCC internal prototype to avoid an error.
  8679. Use char because int might match the return type of a GCC
  8680. builtin and then its argument prototype would still apply. */
  8681. #ifdef __cplusplus
  8682. extern "C"
  8683. #endif
  8684. char dlopen ();
  8685. int
  8686. main ()
  8687. {
  8688. return dlopen ();
  8689. ;
  8690. return 0;
  8691. }
  8692. _ACEOF
  8693. rm -f conftest.$ac_objext conftest$ac_exeext
  8694. if { (ac_try="$ac_link"
  8695. case "(($ac_try" in
  8696. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8697. *) ac_try_echo=$ac_try;;
  8698. esac
  8699. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8700. (eval "$ac_link") 2>conftest.er1
  8701. ac_status=$?
  8702. grep -v '^ *+' conftest.er1 >conftest.err
  8703. rm -f conftest.er1
  8704. cat conftest.err >&5
  8705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8706. (exit $ac_status); } && {
  8707. test -z "$ac_c_werror_flag" ||
  8708. test ! -s conftest.err
  8709. } && test -s conftest$ac_exeext &&
  8710. $as_test_x conftest$ac_exeext; then
  8711. ac_cv_lib_dl_dlopen=yes
  8712. else
  8713. echo "$as_me: failed program was:" >&5
  8714. sed 's/^/| /' conftest.$ac_ext >&5
  8715. ac_cv_lib_dl_dlopen=no
  8716. fi
  8717. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8718. conftest$ac_exeext conftest.$ac_ext
  8719. LIBS=$ac_check_lib_save_LIBS
  8720. fi
  8721. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8722. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8723. if test $ac_cv_lib_dl_dlopen = yes; then
  8724. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8725. else
  8726. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8727. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  8728. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8729. echo $ECHO_N "(cached) $ECHO_C" >&6
  8730. else
  8731. ac_check_lib_save_LIBS=$LIBS
  8732. LIBS="-lsvld $LIBS"
  8733. cat >conftest.$ac_ext <<_ACEOF
  8734. /* confdefs.h. */
  8735. _ACEOF
  8736. cat confdefs.h >>conftest.$ac_ext
  8737. cat >>conftest.$ac_ext <<_ACEOF
  8738. /* end confdefs.h. */
  8739. /* Override any GCC internal prototype to avoid an error.
  8740. Use char because int might match the return type of a GCC
  8741. builtin and then its argument prototype would still apply. */
  8742. #ifdef __cplusplus
  8743. extern "C"
  8744. #endif
  8745. char dlopen ();
  8746. int
  8747. main ()
  8748. {
  8749. return dlopen ();
  8750. ;
  8751. return 0;
  8752. }
  8753. _ACEOF
  8754. rm -f conftest.$ac_objext conftest$ac_exeext
  8755. if { (ac_try="$ac_link"
  8756. case "(($ac_try" in
  8757. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8758. *) ac_try_echo=$ac_try;;
  8759. esac
  8760. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8761. (eval "$ac_link") 2>conftest.er1
  8762. ac_status=$?
  8763. grep -v '^ *+' conftest.er1 >conftest.err
  8764. rm -f conftest.er1
  8765. cat conftest.err >&5
  8766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8767. (exit $ac_status); } && {
  8768. test -z "$ac_c_werror_flag" ||
  8769. test ! -s conftest.err
  8770. } && test -s conftest$ac_exeext &&
  8771. $as_test_x conftest$ac_exeext; then
  8772. ac_cv_lib_svld_dlopen=yes
  8773. else
  8774. echo "$as_me: failed program was:" >&5
  8775. sed 's/^/| /' conftest.$ac_ext >&5
  8776. ac_cv_lib_svld_dlopen=no
  8777. fi
  8778. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8779. conftest$ac_exeext conftest.$ac_ext
  8780. LIBS=$ac_check_lib_save_LIBS
  8781. fi
  8782. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8783. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  8784. if test $ac_cv_lib_svld_dlopen = yes; then
  8785. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8786. else
  8787. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8788. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  8789. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8790. echo $ECHO_N "(cached) $ECHO_C" >&6
  8791. else
  8792. ac_check_lib_save_LIBS=$LIBS
  8793. LIBS="-ldld $LIBS"
  8794. cat >conftest.$ac_ext <<_ACEOF
  8795. /* confdefs.h. */
  8796. _ACEOF
  8797. cat confdefs.h >>conftest.$ac_ext
  8798. cat >>conftest.$ac_ext <<_ACEOF
  8799. /* end confdefs.h. */
  8800. /* Override any GCC internal prototype to avoid an error.
  8801. Use char because int might match the return type of a GCC
  8802. builtin and then its argument prototype would still apply. */
  8803. #ifdef __cplusplus
  8804. extern "C"
  8805. #endif
  8806. char dld_link ();
  8807. int
  8808. main ()
  8809. {
  8810. return dld_link ();
  8811. ;
  8812. return 0;
  8813. }
  8814. _ACEOF
  8815. rm -f conftest.$ac_objext conftest$ac_exeext
  8816. if { (ac_try="$ac_link"
  8817. case "(($ac_try" in
  8818. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8819. *) ac_try_echo=$ac_try;;
  8820. esac
  8821. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8822. (eval "$ac_link") 2>conftest.er1
  8823. ac_status=$?
  8824. grep -v '^ *+' conftest.er1 >conftest.err
  8825. rm -f conftest.er1
  8826. cat conftest.err >&5
  8827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8828. (exit $ac_status); } && {
  8829. test -z "$ac_c_werror_flag" ||
  8830. test ! -s conftest.err
  8831. } && test -s conftest$ac_exeext &&
  8832. $as_test_x conftest$ac_exeext; then
  8833. ac_cv_lib_dld_dld_link=yes
  8834. else
  8835. echo "$as_me: failed program was:" >&5
  8836. sed 's/^/| /' conftest.$ac_ext >&5
  8837. ac_cv_lib_dld_dld_link=no
  8838. fi
  8839. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8840. conftest$ac_exeext conftest.$ac_ext
  8841. LIBS=$ac_check_lib_save_LIBS
  8842. fi
  8843. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  8844. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  8845. if test $ac_cv_lib_dld_dld_link = yes; then
  8846. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  8847. fi
  8848. fi
  8849. fi
  8850. fi
  8851. fi
  8852. fi
  8853. ;;
  8854. esac
  8855. if test "x$lt_cv_dlopen" != xno; then
  8856. enable_dlopen=yes
  8857. else
  8858. enable_dlopen=no
  8859. fi
  8860. case $lt_cv_dlopen in
  8861. dlopen)
  8862. save_CPPFLAGS="$CPPFLAGS"
  8863. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8864. save_LDFLAGS="$LDFLAGS"
  8865. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8866. save_LIBS="$LIBS"
  8867. LIBS="$lt_cv_dlopen_libs $LIBS"
  8868. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  8869. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  8870. if test "${lt_cv_dlopen_self+set}" = set; then
  8871. echo $ECHO_N "(cached) $ECHO_C" >&6
  8872. else
  8873. if test "$cross_compiling" = yes; then :
  8874. lt_cv_dlopen_self=cross
  8875. else
  8876. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8877. lt_status=$lt_dlunknown
  8878. cat > conftest.$ac_ext <<EOF
  8879. #line 9879 "configure"
  8880. #include "confdefs.h"
  8881. #if HAVE_DLFCN_H
  8882. #include <dlfcn.h>
  8883. #endif
  8884. #include <stdio.h>
  8885. #ifdef RTLD_GLOBAL
  8886. # define LT_DLGLOBAL RTLD_GLOBAL
  8887. #else
  8888. # ifdef DL_GLOBAL
  8889. # define LT_DLGLOBAL DL_GLOBAL
  8890. # else
  8891. # define LT_DLGLOBAL 0
  8892. # endif
  8893. #endif
  8894. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8895. find out it does not work in some platform. */
  8896. #ifndef LT_DLLAZY_OR_NOW
  8897. # ifdef RTLD_LAZY
  8898. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8899. # else
  8900. # ifdef DL_LAZY
  8901. # define LT_DLLAZY_OR_NOW DL_LAZY
  8902. # else
  8903. # ifdef RTLD_NOW
  8904. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8905. # else
  8906. # ifdef DL_NOW
  8907. # define LT_DLLAZY_OR_NOW DL_NOW
  8908. # else
  8909. # define LT_DLLAZY_OR_NOW 0
  8910. # endif
  8911. # endif
  8912. # endif
  8913. # endif
  8914. #endif
  8915. #ifdef __cplusplus
  8916. extern "C" void exit (int);
  8917. #endif
  8918. void fnord() { int i=42;}
  8919. int main ()
  8920. {
  8921. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8922. int status = $lt_dlunknown;
  8923. if (self)
  8924. {
  8925. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8926. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8927. /* dlclose (self); */
  8928. }
  8929. exit (status);
  8930. }
  8931. EOF
  8932. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8933. (eval $ac_link) 2>&5
  8934. ac_status=$?
  8935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8936. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8937. (./conftest; exit; ) 2>/dev/null
  8938. lt_status=$?
  8939. case x$lt_status in
  8940. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8941. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8942. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  8943. esac
  8944. else :
  8945. # compilation failed
  8946. lt_cv_dlopen_self=no
  8947. fi
  8948. fi
  8949. rm -fr conftest*
  8950. fi
  8951. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  8952. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  8953. if test "x$lt_cv_dlopen_self" = xyes; then
  8954. LDFLAGS="$LDFLAGS $link_static_flag"
  8955. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  8956. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  8957. if test "${lt_cv_dlopen_self_static+set}" = set; then
  8958. echo $ECHO_N "(cached) $ECHO_C" >&6
  8959. else
  8960. if test "$cross_compiling" = yes; then :
  8961. lt_cv_dlopen_self_static=cross
  8962. else
  8963. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8964. lt_status=$lt_dlunknown
  8965. cat > conftest.$ac_ext <<EOF
  8966. #line 9977 "configure"
  8967. #include "confdefs.h"
  8968. #if HAVE_DLFCN_H
  8969. #include <dlfcn.h>
  8970. #endif
  8971. #include <stdio.h>
  8972. #ifdef RTLD_GLOBAL
  8973. # define LT_DLGLOBAL RTLD_GLOBAL
  8974. #else
  8975. # ifdef DL_GLOBAL
  8976. # define LT_DLGLOBAL DL_GLOBAL
  8977. # else
  8978. # define LT_DLGLOBAL 0
  8979. # endif
  8980. #endif
  8981. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8982. find out it does not work in some platform. */
  8983. #ifndef LT_DLLAZY_OR_NOW
  8984. # ifdef RTLD_LAZY
  8985. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8986. # else
  8987. # ifdef DL_LAZY
  8988. # define LT_DLLAZY_OR_NOW DL_LAZY
  8989. # else
  8990. # ifdef RTLD_NOW
  8991. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8992. # else
  8993. # ifdef DL_NOW
  8994. # define LT_DLLAZY_OR_NOW DL_NOW
  8995. # else
  8996. # define LT_DLLAZY_OR_NOW 0
  8997. # endif
  8998. # endif
  8999. # endif
  9000. # endif
  9001. #endif
  9002. #ifdef __cplusplus
  9003. extern "C" void exit (int);
  9004. #endif
  9005. void fnord() { int i=42;}
  9006. int main ()
  9007. {
  9008. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9009. int status = $lt_dlunknown;
  9010. if (self)
  9011. {
  9012. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9013. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9014. /* dlclose (self); */
  9015. }
  9016. exit (status);
  9017. }
  9018. EOF
  9019. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9020. (eval $ac_link) 2>&5
  9021. ac_status=$?
  9022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9023. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9024. (./conftest; exit; ) 2>/dev/null
  9025. lt_status=$?
  9026. case x$lt_status in
  9027. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9028. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9029. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  9030. esac
  9031. else :
  9032. # compilation failed
  9033. lt_cv_dlopen_self_static=no
  9034. fi
  9035. fi
  9036. rm -fr conftest*
  9037. fi
  9038. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  9039. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  9040. fi
  9041. CPPFLAGS="$save_CPPFLAGS"
  9042. LDFLAGS="$save_LDFLAGS"
  9043. LIBS="$save_LIBS"
  9044. ;;
  9045. esac
  9046. case $lt_cv_dlopen_self in
  9047. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9048. *) enable_dlopen_self=unknown ;;
  9049. esac
  9050. case $lt_cv_dlopen_self_static in
  9051. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9052. *) enable_dlopen_self_static=unknown ;;
  9053. esac
  9054. fi
  9055. # Report which librarie types wil actually be built
  9056. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9057. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  9058. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9059. echo "${ECHO_T}$can_build_shared" >&6; }
  9060. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9061. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  9062. test "$can_build_shared" = "no" && enable_shared=no
  9063. # On AIX, shared libraries and static libraries use the same namespace, and
  9064. # are all built from PIC.
  9065. case "$host_os" in
  9066. aix3*)
  9067. test "$enable_shared" = yes && enable_static=no
  9068. if test -n "$RANLIB"; then
  9069. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9070. postinstall_cmds='$RANLIB $lib'
  9071. fi
  9072. ;;
  9073. aix4* | aix5*)
  9074. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9075. test "$enable_shared" = yes && enable_static=no
  9076. fi
  9077. ;;
  9078. esac
  9079. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  9080. echo "${ECHO_T}$enable_shared" >&6; }
  9081. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9082. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  9083. # Make sure either enable_shared or enable_static is yes.
  9084. test "$enable_shared" = yes || enable_static=yes
  9085. { echo "$as_me:$LINENO: result: $enable_static" >&5
  9086. echo "${ECHO_T}$enable_static" >&6; }
  9087. # The else clause should only fire when bootstrapping the
  9088. # libtool distribution, otherwise you forgot to ship ltmain.sh
  9089. # with your package, and you will get complaints that there are
  9090. # no rules to generate ltmain.sh.
  9091. if test -f "$ltmain"; then
  9092. # See if we are running on zsh, and set the options which allow our commands through
  9093. # without removal of \ escapes.
  9094. if test -n "${ZSH_VERSION+set}" ; then
  9095. setopt NO_GLOB_SUBST
  9096. fi
  9097. # Now quote all the things that may contain metacharacters while being
  9098. # careful not to overquote the AC_SUBSTed values. We take copies of the
  9099. # variables and quote the copies for generation of the libtool script.
  9100. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  9101. SED SHELL STRIP \
  9102. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  9103. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  9104. deplibs_check_method reload_flag reload_cmds need_locks \
  9105. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  9106. lt_cv_sys_global_symbol_to_c_name_address \
  9107. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  9108. old_postinstall_cmds old_postuninstall_cmds \
  9109. compiler \
  9110. CC \
  9111. LD \
  9112. lt_prog_compiler_wl \
  9113. lt_prog_compiler_pic \
  9114. lt_prog_compiler_static \
  9115. lt_prog_compiler_no_builtin_flag \
  9116. export_dynamic_flag_spec \
  9117. thread_safe_flag_spec \
  9118. whole_archive_flag_spec \
  9119. enable_shared_with_static_runtimes \
  9120. old_archive_cmds \
  9121. old_archive_from_new_cmds \
  9122. predep_objects \
  9123. postdep_objects \
  9124. predeps \
  9125. postdeps \
  9126. compiler_lib_search_path \
  9127. archive_cmds \
  9128. archive_expsym_cmds \
  9129. postinstall_cmds \
  9130. postuninstall_cmds \
  9131. old_archive_from_expsyms_cmds \
  9132. allow_undefined_flag \
  9133. no_undefined_flag \
  9134. export_symbols_cmds \
  9135. hardcode_libdir_flag_spec \
  9136. hardcode_libdir_flag_spec_ld \
  9137. hardcode_libdir_separator \
  9138. hardcode_automatic \
  9139. module_cmds \
  9140. module_expsym_cmds \
  9141. lt_cv_prog_compiler_c_o \
  9142. exclude_expsyms \
  9143. include_expsyms; do
  9144. case $var in
  9145. old_archive_cmds | \
  9146. old_archive_from_new_cmds | \
  9147. archive_cmds | \
  9148. archive_expsym_cmds | \
  9149. module_cmds | \
  9150. module_expsym_cmds | \
  9151. old_archive_from_expsyms_cmds | \
  9152. export_symbols_cmds | \
  9153. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  9154. postinstall_cmds | postuninstall_cmds | \
  9155. old_postinstall_cmds | old_postuninstall_cmds | \
  9156. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  9157. # Double-quote double-evaled strings.
  9158. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  9159. ;;
  9160. *)
  9161. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  9162. ;;
  9163. esac
  9164. done
  9165. case $lt_echo in
  9166. *'\$0 --fallback-echo"')
  9167. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  9168. ;;
  9169. esac
  9170. cfgfile="${ofile}T"
  9171. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  9172. $rm -f "$cfgfile"
  9173. { echo "$as_me:$LINENO: creating $ofile" >&5
  9174. echo "$as_me: creating $ofile" >&6;}
  9175. cat <<__EOF__ >> "$cfgfile"
  9176. #! $SHELL
  9177. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  9178. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  9179. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  9180. #
  9181. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  9182. # Free Software Foundation, Inc.
  9183. #
  9184. # This file is part of GNU Libtool:
  9185. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  9186. #
  9187. # This program is free software; you can redistribute it and/or modify
  9188. # it under the terms of the GNU General Public License as published by
  9189. # the Free Software Foundation; either version 2 of the License, or
  9190. # (at your option) any later version.
  9191. #
  9192. # This program is distributed in the hope that it will be useful, but
  9193. # WITHOUT ANY WARRANTY; without even the implied warranty of
  9194. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  9195. # General Public License for more details.
  9196. #
  9197. # You should have received a copy of the GNU General Public License
  9198. # along with this program; if not, write to the Free Software
  9199. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  9200. #
  9201. # As a special exception to the GNU General Public License, if you
  9202. # distribute this file as part of a program that contains a
  9203. # configuration script generated by Autoconf, you may include it under
  9204. # the same distribution terms that you use for the rest of that program.
  9205. # A sed program that does not truncate output.
  9206. SED=$lt_SED
  9207. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  9208. Xsed="$SED -e 1s/^X//"
  9209. # The HP-UX ksh and POSIX shell print the target directory to stdout
  9210. # if CDPATH is set.
  9211. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9212. # The names of the tagged configurations supported by this script.
  9213. available_tags=
  9214. # ### BEGIN LIBTOOL CONFIG
  9215. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  9216. # Shell to use when invoking shell scripts.
  9217. SHELL=$lt_SHELL
  9218. # Whether or not to build shared libraries.
  9219. build_libtool_libs=$enable_shared
  9220. # Whether or not to build static libraries.
  9221. build_old_libs=$enable_static
  9222. # Whether or not to add -lc for building shared libraries.
  9223. build_libtool_need_lc=$archive_cmds_need_lc
  9224. # Whether or not to disallow shared libs when runtime libs are static
  9225. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  9226. # Whether or not to optimize for fast installation.
  9227. fast_install=$enable_fast_install
  9228. # The host system.
  9229. host_alias=$host_alias
  9230. host=$host
  9231. host_os=$host_os
  9232. # The build system.
  9233. build_alias=$build_alias
  9234. build=$build
  9235. build_os=$build_os
  9236. # An echo program that does not interpret backslashes.
  9237. echo=$lt_echo
  9238. # The archiver.
  9239. AR=$lt_AR
  9240. AR_FLAGS=$lt_AR_FLAGS
  9241. # A C compiler.
  9242. LTCC=$lt_LTCC
  9243. # A language-specific compiler.
  9244. CC=$lt_compiler
  9245. # Is the compiler the GNU C compiler?
  9246. with_gcc=$GCC
  9247. # An ERE matcher.
  9248. EGREP=$lt_EGREP
  9249. # The linker used to build libraries.
  9250. LD=$lt_LD
  9251. # Whether we need hard or soft links.
  9252. LN_S=$lt_LN_S
  9253. # A BSD-compatible nm program.
  9254. NM=$lt_NM
  9255. # A symbol stripping program
  9256. STRIP=$lt_STRIP
  9257. # Used to examine libraries when file_magic_cmd begins "file"
  9258. MAGIC_CMD=$MAGIC_CMD
  9259. # Used on cygwin: DLL creation program.
  9260. DLLTOOL="$DLLTOOL"
  9261. # Used on cygwin: object dumper.
  9262. OBJDUMP="$OBJDUMP"
  9263. # Used on cygwin: assembler.
  9264. AS="$AS"
  9265. # The name of the directory that contains temporary libtool files.
  9266. objdir=$objdir
  9267. # How to create reloadable object files.
  9268. reload_flag=$lt_reload_flag
  9269. reload_cmds=$lt_reload_cmds
  9270. # How to pass a linker flag through the compiler.
  9271. wl=$lt_lt_prog_compiler_wl
  9272. # Object file suffix (normally "o").
  9273. objext="$ac_objext"
  9274. # Old archive suffix (normally "a").
  9275. libext="$libext"
  9276. # Shared library suffix (normally ".so").
  9277. shrext_cmds='$shrext_cmds'
  9278. # Executable file suffix (normally "").
  9279. exeext="$exeext"
  9280. # Additional compiler flags for building library objects.
  9281. pic_flag=$lt_lt_prog_compiler_pic
  9282. pic_mode=$pic_mode
  9283. # What is the maximum length of a command?
  9284. max_cmd_len=$lt_cv_sys_max_cmd_len
  9285. # Does compiler simultaneously support -c and -o options?
  9286. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  9287. # Must we lock files when doing compilation?
  9288. need_locks=$lt_need_locks
  9289. # Do we need the lib prefix for modules?
  9290. need_lib_prefix=$need_lib_prefix
  9291. # Do we need a version for libraries?
  9292. need_version=$need_version
  9293. # Whether dlopen is supported.
  9294. dlopen_support=$enable_dlopen
  9295. # Whether dlopen of programs is supported.
  9296. dlopen_self=$enable_dlopen_self
  9297. # Whether dlopen of statically linked programs is supported.
  9298. dlopen_self_static=$enable_dlopen_self_static
  9299. # Compiler flag to prevent dynamic linking.
  9300. link_static_flag=$lt_lt_prog_compiler_static
  9301. # Compiler flag to turn off builtin functions.
  9302. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  9303. # Compiler flag to allow reflexive dlopens.
  9304. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  9305. # Compiler flag to generate shared objects directly from archives.
  9306. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  9307. # Compiler flag to generate thread-safe objects.
  9308. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  9309. # Library versioning type.
  9310. version_type=$version_type
  9311. # Format of library name prefix.
  9312. libname_spec=$lt_libname_spec
  9313. # List of archive names. First name is the real one, the rest are links.
  9314. # The last name is the one that the linker finds with -lNAME.
  9315. library_names_spec=$lt_library_names_spec
  9316. # The coded name of the library, if different from the real name.
  9317. soname_spec=$lt_soname_spec
  9318. # Commands used to build and install an old-style archive.
  9319. RANLIB=$lt_RANLIB
  9320. old_archive_cmds=$lt_old_archive_cmds
  9321. old_postinstall_cmds=$lt_old_postinstall_cmds
  9322. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  9323. # Create an old-style archive from a shared archive.
  9324. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  9325. # Create a temporary old-style archive to link instead of a shared archive.
  9326. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  9327. # Commands used to build and install a shared archive.
  9328. archive_cmds=$lt_archive_cmds
  9329. archive_expsym_cmds=$lt_archive_expsym_cmds
  9330. postinstall_cmds=$lt_postinstall_cmds
  9331. postuninstall_cmds=$lt_postuninstall_cmds
  9332. # Commands used to build a loadable module (assumed same as above if empty)
  9333. module_cmds=$lt_module_cmds
  9334. module_expsym_cmds=$lt_module_expsym_cmds
  9335. # Commands to strip libraries.
  9336. old_striplib=$lt_old_striplib
  9337. striplib=$lt_striplib
  9338. # Dependencies to place before the objects being linked to create a
  9339. # shared library.
  9340. predep_objects=$lt_predep_objects
  9341. # Dependencies to place after the objects being linked to create a
  9342. # shared library.
  9343. postdep_objects=$lt_postdep_objects
  9344. # Dependencies to place before the objects being linked to create a
  9345. # shared library.
  9346. predeps=$lt_predeps
  9347. # Dependencies to place after the objects being linked to create a
  9348. # shared library.
  9349. postdeps=$lt_postdeps
  9350. # The library search path used internally by the compiler when linking
  9351. # a shared library.
  9352. compiler_lib_search_path=$lt_compiler_lib_search_path
  9353. # Method to check whether dependent libraries are shared objects.
  9354. deplibs_check_method=$lt_deplibs_check_method
  9355. # Command to use when deplibs_check_method == file_magic.
  9356. file_magic_cmd=$lt_file_magic_cmd
  9357. # Flag that allows shared libraries with undefined symbols to be built.
  9358. allow_undefined_flag=$lt_allow_undefined_flag
  9359. # Flag that forces no undefined symbols.
  9360. no_undefined_flag=$lt_no_undefined_flag
  9361. # Commands used to finish a libtool library installation in a directory.
  9362. finish_cmds=$lt_finish_cmds
  9363. # Same as above, but a single script fragment to be evaled but not shown.
  9364. finish_eval=$lt_finish_eval
  9365. # Take the output of nm and produce a listing of raw symbols and C names.
  9366. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  9367. # Transform the output of nm in a proper C declaration
  9368. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  9369. # Transform the output of nm in a C name address pair
  9370. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  9371. # This is the shared library runtime path variable.
  9372. runpath_var=$runpath_var
  9373. # This is the shared library path variable.
  9374. shlibpath_var=$shlibpath_var
  9375. # Is shlibpath searched before the hard-coded library search path?
  9376. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  9377. # How to hardcode a shared library path into an executable.
  9378. hardcode_action=$hardcode_action
  9379. # Whether we should hardcode library paths into libraries.
  9380. hardcode_into_libs=$hardcode_into_libs
  9381. # Flag to hardcode \$libdir into a binary during linking.
  9382. # This must work even if \$libdir does not exist.
  9383. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  9384. # If ld is used when linking, flag to hardcode \$libdir into
  9385. # a binary during linking. This must work even if \$libdir does
  9386. # not exist.
  9387. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  9388. # Whether we need a single -rpath flag with a separated argument.
  9389. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  9390. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  9391. # resulting binary.
  9392. hardcode_direct=$hardcode_direct
  9393. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  9394. # resulting binary.
  9395. hardcode_minus_L=$hardcode_minus_L
  9396. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  9397. # the resulting binary.
  9398. hardcode_shlibpath_var=$hardcode_shlibpath_var
  9399. # Set to yes if building a shared library automatically hardcodes DIR into the library
  9400. # and all subsequent libraries and executables linked against it.
  9401. hardcode_automatic=$hardcode_automatic
  9402. # Variables whose values should be saved in libtool wrapper scripts and
  9403. # restored at relink time.
  9404. variables_saved_for_relink="$variables_saved_for_relink"
  9405. # Whether libtool must link a program against all its dependency libraries.
  9406. link_all_deplibs=$link_all_deplibs
  9407. # Compile-time system search path for libraries
  9408. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  9409. # Run-time system search path for libraries
  9410. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  9411. # Fix the shell variable \$srcfile for the compiler.
  9412. fix_srcfile_path="$fix_srcfile_path"
  9413. # Set to yes if exported symbols are required.
  9414. always_export_symbols=$always_export_symbols
  9415. # The commands to list exported symbols.
  9416. export_symbols_cmds=$lt_export_symbols_cmds
  9417. # The commands to extract the exported symbol list from a shared archive.
  9418. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  9419. # Symbols that should not be listed in the preloaded symbols.
  9420. exclude_expsyms=$lt_exclude_expsyms
  9421. # Symbols that must always be exported.
  9422. include_expsyms=$lt_include_expsyms
  9423. # ### END LIBTOOL CONFIG
  9424. __EOF__
  9425. case $host_os in
  9426. aix3*)
  9427. cat <<\EOF >> "$cfgfile"
  9428. # AIX sometimes has problems with the GCC collect2 program. For some
  9429. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9430. # vanish in a puff of smoke.
  9431. if test "X${COLLECT_NAMES+set}" != Xset; then
  9432. COLLECT_NAMES=
  9433. export COLLECT_NAMES
  9434. fi
  9435. EOF
  9436. ;;
  9437. esac
  9438. # We use sed instead of cat because bash on DJGPP gets confused if
  9439. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  9440. # text mode, it properly converts lines to CR/LF. This bash problem
  9441. # is reportedly fixed, but why not run on old versions too?
  9442. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  9443. mv -f "$cfgfile" "$ofile" || \
  9444. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  9445. chmod +x "$ofile"
  9446. else
  9447. # If there is no Makefile yet, we rely on a make rule to execute
  9448. # `config.status --recheck' to rerun these tests and create the
  9449. # libtool script then.
  9450. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  9451. if test -f "$ltmain_in"; then
  9452. test -f Makefile && make "$ltmain"
  9453. fi
  9454. fi
  9455. ac_ext=c
  9456. ac_cpp='$CPP $CPPFLAGS'
  9457. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9458. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9459. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9460. CC="$lt_save_CC"
  9461. # Check whether --with-tags was given.
  9462. if test "${with_tags+set}" = set; then
  9463. withval=$with_tags; tagnames="$withval"
  9464. fi
  9465. if test -f "$ltmain" && test -n "$tagnames"; then
  9466. if test ! -f "${ofile}"; then
  9467. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  9468. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  9469. fi
  9470. if test -z "$LTCC"; then
  9471. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  9472. if test -z "$LTCC"; then
  9473. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  9474. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  9475. else
  9476. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  9477. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  9478. fi
  9479. fi
  9480. # Extract list of available tagged configurations in $ofile.
  9481. # Note that this assumes the entire list is on one line.
  9482. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  9483. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9484. for tagname in $tagnames; do
  9485. IFS="$lt_save_ifs"
  9486. # Check whether tagname contains only valid characters
  9487. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  9488. "") ;;
  9489. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  9490. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  9491. { (exit 1); exit 1; }; }
  9492. ;;
  9493. esac
  9494. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  9495. then
  9496. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  9497. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  9498. { (exit 1); exit 1; }; }
  9499. fi
  9500. # Update the list of available tags.
  9501. if test -n "$tagname"; then
  9502. echo appending configuration tag \"$tagname\" to $ofile
  9503. case $tagname in
  9504. CXX)
  9505. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9506. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9507. (test "X$CXX" != "Xg++"))) ; then
  9508. ac_ext=cpp
  9509. ac_cpp='$CXXCPP $CPPFLAGS'
  9510. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9511. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9512. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9513. archive_cmds_need_lc_CXX=no
  9514. allow_undefined_flag_CXX=
  9515. always_export_symbols_CXX=no
  9516. archive_expsym_cmds_CXX=
  9517. export_dynamic_flag_spec_CXX=
  9518. hardcode_direct_CXX=no
  9519. hardcode_libdir_flag_spec_CXX=
  9520. hardcode_libdir_flag_spec_ld_CXX=
  9521. hardcode_libdir_separator_CXX=
  9522. hardcode_minus_L_CXX=no
  9523. hardcode_automatic_CXX=no
  9524. module_cmds_CXX=
  9525. module_expsym_cmds_CXX=
  9526. link_all_deplibs_CXX=unknown
  9527. old_archive_cmds_CXX=$old_archive_cmds
  9528. no_undefined_flag_CXX=
  9529. whole_archive_flag_spec_CXX=
  9530. enable_shared_with_static_runtimes_CXX=no
  9531. # Dependencies to place before and after the object being linked:
  9532. predep_objects_CXX=
  9533. postdep_objects_CXX=
  9534. predeps_CXX=
  9535. postdeps_CXX=
  9536. compiler_lib_search_path_CXX=
  9537. # Source file extension for C++ test sources.
  9538. ac_ext=cc
  9539. # Object file extension for compiled C++ test sources.
  9540. objext=o
  9541. objext_CXX=$objext
  9542. # Code to be used in simple compile tests
  9543. lt_simple_compile_test_code="int some_variable = 0;\n"
  9544. # Code to be used in simple link tests
  9545. lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
  9546. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9547. # If no C compiler was specified, use CC.
  9548. LTCC=${LTCC-"$CC"}
  9549. # Allow CC to be a program name with arguments.
  9550. compiler=$CC
  9551. # save warnings/boilerplate of simple test code
  9552. ac_outfile=conftest.$ac_objext
  9553. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  9554. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  9555. _lt_compiler_boilerplate=`cat conftest.err`
  9556. $rm conftest*
  9557. ac_outfile=conftest.$ac_objext
  9558. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  9559. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  9560. _lt_linker_boilerplate=`cat conftest.err`
  9561. $rm conftest*
  9562. # Allow CC to be a program name with arguments.
  9563. lt_save_CC=$CC
  9564. lt_save_LD=$LD
  9565. lt_save_GCC=$GCC
  9566. GCC=$GXX
  9567. lt_save_with_gnu_ld=$with_gnu_ld
  9568. lt_save_path_LD=$lt_cv_path_LD
  9569. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9570. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9571. else
  9572. unset lt_cv_prog_gnu_ld
  9573. fi
  9574. if test -n "${lt_cv_path_LDCXX+set}"; then
  9575. lt_cv_path_LD=$lt_cv_path_LDCXX
  9576. else
  9577. unset lt_cv_path_LD
  9578. fi
  9579. test -z "${LDCXX+set}" || LD=$LDCXX
  9580. CC=${CXX-"c++"}
  9581. compiler=$CC
  9582. compiler_CXX=$CC
  9583. for cc_temp in $compiler""; do
  9584. case $cc_temp in
  9585. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9586. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9587. \-*) ;;
  9588. *) break;;
  9589. esac
  9590. done
  9591. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9592. # We don't want -fno-exception wen compiling C++ code, so set the
  9593. # no_builtin_flag separately
  9594. if test "$GXX" = yes; then
  9595. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9596. else
  9597. lt_prog_compiler_no_builtin_flag_CXX=
  9598. fi
  9599. if test "$GXX" = yes; then
  9600. # Set up default GNU C++ configuration
  9601. # Check whether --with-gnu-ld was given.
  9602. if test "${with_gnu_ld+set}" = set; then
  9603. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9604. else
  9605. with_gnu_ld=no
  9606. fi
  9607. ac_prog=ld
  9608. if test "$GCC" = yes; then
  9609. # Check if gcc -print-prog-name=ld gives a path.
  9610. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  9611. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  9612. case $host in
  9613. *-*-mingw*)
  9614. # gcc leaves a trailing carriage return which upsets mingw
  9615. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9616. *)
  9617. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9618. esac
  9619. case $ac_prog in
  9620. # Accept absolute paths.
  9621. [\\/]* | ?:[\\/]*)
  9622. re_direlt='/[^/][^/]*/\.\./'
  9623. # Canonicalize the pathname of ld
  9624. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  9625. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9626. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  9627. done
  9628. test -z "$LD" && LD="$ac_prog"
  9629. ;;
  9630. "")
  9631. # If it fails, then pretend we aren't using GCC.
  9632. ac_prog=ld
  9633. ;;
  9634. *)
  9635. # If it is relative, then search for the first ld in PATH.
  9636. with_gnu_ld=unknown
  9637. ;;
  9638. esac
  9639. elif test "$with_gnu_ld" = yes; then
  9640. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  9641. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  9642. else
  9643. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9644. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  9645. fi
  9646. if test "${lt_cv_path_LD+set}" = set; then
  9647. echo $ECHO_N "(cached) $ECHO_C" >&6
  9648. else
  9649. if test -z "$LD"; then
  9650. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9651. for ac_dir in $PATH; do
  9652. IFS="$lt_save_ifs"
  9653. test -z "$ac_dir" && ac_dir=.
  9654. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9655. lt_cv_path_LD="$ac_dir/$ac_prog"
  9656. # Check to see if the program is GNU ld. I'd rather use --version,
  9657. # but apparently some GNU ld's only accept -v.
  9658. # Break only if it was the GNU/non-GNU ld that we prefer.
  9659. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9660. *GNU* | *'with BFD'*)
  9661. test "$with_gnu_ld" != no && break
  9662. ;;
  9663. *)
  9664. test "$with_gnu_ld" != yes && break
  9665. ;;
  9666. esac
  9667. fi
  9668. done
  9669. IFS="$lt_save_ifs"
  9670. else
  9671. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9672. fi
  9673. fi
  9674. LD="$lt_cv_path_LD"
  9675. if test -n "$LD"; then
  9676. { echo "$as_me:$LINENO: result: $LD" >&5
  9677. echo "${ECHO_T}$LD" >&6; }
  9678. else
  9679. { echo "$as_me:$LINENO: result: no" >&5
  9680. echo "${ECHO_T}no" >&6; }
  9681. fi
  9682. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  9683. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  9684. { (exit 1); exit 1; }; }
  9685. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  9686. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  9687. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  9688. echo $ECHO_N "(cached) $ECHO_C" >&6
  9689. else
  9690. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  9691. case `$LD -v 2>&1 </dev/null` in
  9692. *GNU* | *'with BFD'*)
  9693. lt_cv_prog_gnu_ld=yes
  9694. ;;
  9695. *)
  9696. lt_cv_prog_gnu_ld=no
  9697. ;;
  9698. esac
  9699. fi
  9700. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  9701. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  9702. with_gnu_ld=$lt_cv_prog_gnu_ld
  9703. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9704. # archiving commands below assume that GNU ld is being used.
  9705. if test "$with_gnu_ld" = yes; then
  9706. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9707. 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'
  9708. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9709. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9710. # If archive_cmds runs LD, not CC, wlarc should be empty
  9711. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9712. # investigate it a little bit more. (MM)
  9713. wlarc='${wl}'
  9714. # ancient GNU ld didn't support --whole-archive et. al.
  9715. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  9716. grep 'no-whole-archive' > /dev/null; then
  9717. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9718. else
  9719. whole_archive_flag_spec_CXX=
  9720. fi
  9721. else
  9722. with_gnu_ld=no
  9723. wlarc=
  9724. # A generic and very simple default shared library creation
  9725. # command for GNU C++ for the case where it uses the native
  9726. # linker, instead of GNU ld. If possible, this setting should
  9727. # overridden to take advantage of the native linker features on
  9728. # the platform it is being used on.
  9729. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9730. fi
  9731. # Commands to make compiler produce verbose output that lists
  9732. # what "hidden" libraries, object files and flags are used when
  9733. # linking a shared library.
  9734. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9735. else
  9736. GXX=no
  9737. with_gnu_ld=no
  9738. wlarc=
  9739. fi
  9740. # PORTME: fill in a description of your system's C++ link characteristics
  9741. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9742. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  9743. ld_shlibs_CXX=yes
  9744. case $host_os in
  9745. aix3*)
  9746. # FIXME: insert proper C++ library support
  9747. ld_shlibs_CXX=no
  9748. ;;
  9749. aix4* | aix5*)
  9750. if test "$host_cpu" = ia64; then
  9751. # On IA64, the linker does run time linking by default, so we don't
  9752. # have to do anything special.
  9753. aix_use_runtimelinking=no
  9754. exp_sym_flag='-Bexport'
  9755. no_entry_flag=""
  9756. else
  9757. aix_use_runtimelinking=no
  9758. # Test if we are trying to use run time linking or normal
  9759. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9760. # need to do runtime linking.
  9761. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  9762. for ld_flag in $LDFLAGS; do
  9763. case $ld_flag in
  9764. *-brtl*)
  9765. aix_use_runtimelinking=yes
  9766. break
  9767. ;;
  9768. esac
  9769. done
  9770. esac
  9771. exp_sym_flag='-bexport'
  9772. no_entry_flag='-bnoentry'
  9773. fi
  9774. # When large executables or shared objects are built, AIX ld can
  9775. # have problems creating the table of contents. If linking a library
  9776. # or program results in "error TOC overflow" add -mminimal-toc to
  9777. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9778. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9779. archive_cmds_CXX=''
  9780. hardcode_direct_CXX=yes
  9781. hardcode_libdir_separator_CXX=':'
  9782. link_all_deplibs_CXX=yes
  9783. if test "$GXX" = yes; then
  9784. case $host_os in aix4.[012]|aix4.[012].*)
  9785. # We only want to do this on AIX 4.2 and lower, the check
  9786. # below for broken collect2 doesn't work under 4.3+
  9787. collect2name=`${CC} -print-prog-name=collect2`
  9788. if test -f "$collect2name" && \
  9789. strings "$collect2name" | grep resolve_lib_name >/dev/null
  9790. then
  9791. # We have reworked collect2
  9792. hardcode_direct_CXX=yes
  9793. else
  9794. # We have old collect2
  9795. hardcode_direct_CXX=unsupported
  9796. # It fails to find uninstalled libraries when the uninstalled
  9797. # path is not listed in the libpath. Setting hardcode_minus_L
  9798. # to unsupported forces relinking
  9799. hardcode_minus_L_CXX=yes
  9800. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9801. hardcode_libdir_separator_CXX=
  9802. fi
  9803. esac
  9804. shared_flag='-shared'
  9805. if test "$aix_use_runtimelinking" = yes; then
  9806. shared_flag="$shared_flag "'${wl}-G'
  9807. fi
  9808. else
  9809. # not using gcc
  9810. if test "$host_cpu" = ia64; then
  9811. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9812. # chokes on -Wl,-G. The following line is correct:
  9813. shared_flag='-G'
  9814. else
  9815. if test "$aix_use_runtimelinking" = yes; then
  9816. shared_flag='${wl}-G'
  9817. else
  9818. shared_flag='${wl}-bM:SRE'
  9819. fi
  9820. fi
  9821. fi
  9822. # It seems that -bexpall does not export symbols beginning with
  9823. # underscore (_), so it is better to generate a list of symbols to export.
  9824. always_export_symbols_CXX=yes
  9825. if test "$aix_use_runtimelinking" = yes; then
  9826. # Warning - without using the other runtime loading flags (-brtl),
  9827. # -berok will link without error, but may produce a broken library.
  9828. allow_undefined_flag_CXX='-berok'
  9829. # Determine the default libpath from the value encoded in an empty executable.
  9830. cat >conftest.$ac_ext <<_ACEOF
  9831. /* confdefs.h. */
  9832. _ACEOF
  9833. cat confdefs.h >>conftest.$ac_ext
  9834. cat >>conftest.$ac_ext <<_ACEOF
  9835. /* end confdefs.h. */
  9836. int
  9837. main ()
  9838. {
  9839. ;
  9840. return 0;
  9841. }
  9842. _ACEOF
  9843. rm -f conftest.$ac_objext conftest$ac_exeext
  9844. if { (ac_try="$ac_link"
  9845. case "(($ac_try" in
  9846. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9847. *) ac_try_echo=$ac_try;;
  9848. esac
  9849. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9850. (eval "$ac_link") 2>conftest.er1
  9851. ac_status=$?
  9852. grep -v '^ *+' conftest.er1 >conftest.err
  9853. rm -f conftest.er1
  9854. cat conftest.err >&5
  9855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9856. (exit $ac_status); } && {
  9857. test -z "$ac_cxx_werror_flag" ||
  9858. test ! -s conftest.err
  9859. } && test -s conftest$ac_exeext &&
  9860. $as_test_x conftest$ac_exeext; then
  9861. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9862. }'`
  9863. # Check for a 64-bit object if we didn't find anything.
  9864. 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; }
  9865. }'`; fi
  9866. else
  9867. echo "$as_me: failed program was:" >&5
  9868. sed 's/^/| /' conftest.$ac_ext >&5
  9869. fi
  9870. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9871. conftest$ac_exeext conftest.$ac_ext
  9872. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9873. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9874. 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"
  9875. else
  9876. if test "$host_cpu" = ia64; then
  9877. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  9878. allow_undefined_flag_CXX="-z nodefs"
  9879. 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"
  9880. else
  9881. # Determine the default libpath from the value encoded in an empty executable.
  9882. cat >conftest.$ac_ext <<_ACEOF
  9883. /* confdefs.h. */
  9884. _ACEOF
  9885. cat confdefs.h >>conftest.$ac_ext
  9886. cat >>conftest.$ac_ext <<_ACEOF
  9887. /* end confdefs.h. */
  9888. int
  9889. main ()
  9890. {
  9891. ;
  9892. return 0;
  9893. }
  9894. _ACEOF
  9895. rm -f conftest.$ac_objext conftest$ac_exeext
  9896. if { (ac_try="$ac_link"
  9897. case "(($ac_try" in
  9898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9899. *) ac_try_echo=$ac_try;;
  9900. esac
  9901. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9902. (eval "$ac_link") 2>conftest.er1
  9903. ac_status=$?
  9904. grep -v '^ *+' conftest.er1 >conftest.err
  9905. rm -f conftest.er1
  9906. cat conftest.err >&5
  9907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9908. (exit $ac_status); } && {
  9909. test -z "$ac_cxx_werror_flag" ||
  9910. test ! -s conftest.err
  9911. } && test -s conftest$ac_exeext &&
  9912. $as_test_x conftest$ac_exeext; then
  9913. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9914. }'`
  9915. # Check for a 64-bit object if we didn't find anything.
  9916. 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; }
  9917. }'`; fi
  9918. else
  9919. echo "$as_me: failed program was:" >&5
  9920. sed 's/^/| /' conftest.$ac_ext >&5
  9921. fi
  9922. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9923. conftest$ac_exeext conftest.$ac_ext
  9924. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9925. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9926. # Warning - without using the other run time loading flags,
  9927. # -berok will link without error, but may produce a broken library.
  9928. no_undefined_flag_CXX=' ${wl}-bernotok'
  9929. allow_undefined_flag_CXX=' ${wl}-berok'
  9930. # -bexpall does not export symbols beginning with underscore (_)
  9931. always_export_symbols_CXX=yes
  9932. # Exported symbols can be pulled into shared objects from archives
  9933. whole_archive_flag_spec_CXX=' '
  9934. archive_cmds_need_lc_CXX=yes
  9935. # This is similar to how AIX traditionally builds it's shared libraries.
  9936. 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'
  9937. fi
  9938. fi
  9939. ;;
  9940. chorus*)
  9941. case $cc_basename in
  9942. *)
  9943. # FIXME: insert proper C++ library support
  9944. ld_shlibs_CXX=no
  9945. ;;
  9946. esac
  9947. ;;
  9948. cygwin* | mingw* | pw32*)
  9949. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  9950. # as there is no search path for DLLs.
  9951. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9952. allow_undefined_flag_CXX=unsupported
  9953. always_export_symbols_CXX=no
  9954. enable_shared_with_static_runtimes_CXX=yes
  9955. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9956. 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'
  9957. # If the export-symbols file already is a .def file (1st line
  9958. # is EXPORTS), use it as is; otherwise, prepend...
  9959. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9960. cp $export_symbols $output_objdir/$soname.def;
  9961. else
  9962. echo EXPORTS > $output_objdir/$soname.def;
  9963. cat $export_symbols >> $output_objdir/$soname.def;
  9964. fi~
  9965. $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'
  9966. else
  9967. ld_shlibs_CXX=no
  9968. fi
  9969. ;;
  9970. darwin* | rhapsody*)
  9971. case "$host_os" in
  9972. rhapsody* | darwin1.[012])
  9973. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  9974. ;;
  9975. *) # Darwin 1.3 on
  9976. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  9977. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9978. else
  9979. case ${MACOSX_DEPLOYMENT_TARGET} in
  9980. 10.[012])
  9981. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9982. ;;
  9983. 10.*)
  9984. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  9985. ;;
  9986. esac
  9987. fi
  9988. ;;
  9989. esac
  9990. archive_cmds_need_lc_CXX=no
  9991. hardcode_direct_CXX=no
  9992. hardcode_automatic_CXX=yes
  9993. hardcode_shlibpath_var_CXX=unsupported
  9994. whole_archive_flag_spec_CXX=''
  9995. link_all_deplibs_CXX=yes
  9996. if test "$GXX" = yes ; then
  9997. lt_int_apple_cc_single_mod=no
  9998. output_verbose_link_cmd='echo'
  9999. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  10000. lt_int_apple_cc_single_mod=yes
  10001. fi
  10002. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10003. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  10004. else
  10005. 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'
  10006. fi
  10007. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10008. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  10009. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10010. 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}'
  10011. else
  10012. 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}'
  10013. fi
  10014. 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}'
  10015. else
  10016. case $cc_basename in
  10017. xlc*)
  10018. output_verbose_link_cmd='echo'
  10019. 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'
  10020. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10021. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  10022. 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}'
  10023. 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}'
  10024. ;;
  10025. *)
  10026. ld_shlibs_CXX=no
  10027. ;;
  10028. esac
  10029. fi
  10030. ;;
  10031. dgux*)
  10032. case $cc_basename in
  10033. ec++*)
  10034. # FIXME: insert proper C++ library support
  10035. ld_shlibs_CXX=no
  10036. ;;
  10037. ghcx*)
  10038. # Green Hills C++ Compiler
  10039. # FIXME: insert proper C++ library support
  10040. ld_shlibs_CXX=no
  10041. ;;
  10042. *)
  10043. # FIXME: insert proper C++ library support
  10044. ld_shlibs_CXX=no
  10045. ;;
  10046. esac
  10047. ;;
  10048. freebsd[12]*)
  10049. # C++ shared libraries reported to be fairly broken before switch to ELF
  10050. ld_shlibs_CXX=no
  10051. ;;
  10052. freebsd-elf*)
  10053. archive_cmds_need_lc_CXX=no
  10054. ;;
  10055. freebsd* | kfreebsd*-gnu | dragonfly*)
  10056. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10057. # conventions
  10058. ld_shlibs_CXX=yes
  10059. ;;
  10060. gnu*)
  10061. ;;
  10062. hpux9*)
  10063. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10064. hardcode_libdir_separator_CXX=:
  10065. export_dynamic_flag_spec_CXX='${wl}-E'
  10066. hardcode_direct_CXX=yes
  10067. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10068. # but as the default
  10069. # location of the library.
  10070. case $cc_basename in
  10071. CC*)
  10072. # FIXME: insert proper C++ library support
  10073. ld_shlibs_CXX=no
  10074. ;;
  10075. aCC*)
  10076. 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'
  10077. # Commands to make compiler produce verbose output that lists
  10078. # what "hidden" libraries, object files and flags are used when
  10079. # linking a shared library.
  10080. #
  10081. # There doesn't appear to be a way to prevent this compiler from
  10082. # explicitly linking system object files so we need to strip them
  10083. # from the output so that they don't get included in the library
  10084. # dependencies.
  10085. 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'
  10086. ;;
  10087. *)
  10088. if test "$GXX" = yes; then
  10089. 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'
  10090. else
  10091. # FIXME: insert proper C++ library support
  10092. ld_shlibs_CXX=no
  10093. fi
  10094. ;;
  10095. esac
  10096. ;;
  10097. hpux10*|hpux11*)
  10098. if test $with_gnu_ld = no; then
  10099. case "$host_cpu" in
  10100. hppa*64*)
  10101. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10102. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  10103. hardcode_libdir_separator_CXX=:
  10104. ;;
  10105. ia64*)
  10106. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10107. ;;
  10108. *)
  10109. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10110. hardcode_libdir_separator_CXX=:
  10111. export_dynamic_flag_spec_CXX='${wl}-E'
  10112. ;;
  10113. esac
  10114. fi
  10115. case "$host_cpu" in
  10116. hppa*64*)
  10117. hardcode_direct_CXX=no
  10118. hardcode_shlibpath_var_CXX=no
  10119. ;;
  10120. ia64*)
  10121. hardcode_direct_CXX=no
  10122. hardcode_shlibpath_var_CXX=no
  10123. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10124. # but as the default
  10125. # location of the library.
  10126. ;;
  10127. *)
  10128. hardcode_direct_CXX=yes
  10129. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10130. # but as the default
  10131. # location of the library.
  10132. ;;
  10133. esac
  10134. case $cc_basename in
  10135. CC*)
  10136. # FIXME: insert proper C++ library support
  10137. ld_shlibs_CXX=no
  10138. ;;
  10139. aCC*)
  10140. case "$host_cpu" in
  10141. hppa*64*|ia64*)
  10142. archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  10143. ;;
  10144. *)
  10145. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10146. ;;
  10147. esac
  10148. # Commands to make compiler produce verbose output that lists
  10149. # what "hidden" libraries, object files and flags are used when
  10150. # linking a shared library.
  10151. #
  10152. # There doesn't appear to be a way to prevent this compiler from
  10153. # explicitly linking system object files so we need to strip them
  10154. # from the output so that they don't get included in the library
  10155. # dependencies.
  10156. 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'
  10157. ;;
  10158. *)
  10159. if test "$GXX" = yes; then
  10160. if test $with_gnu_ld = no; then
  10161. case "$host_cpu" in
  10162. ia64*|hppa*64*)
  10163. archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  10164. ;;
  10165. *)
  10166. 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'
  10167. ;;
  10168. esac
  10169. fi
  10170. else
  10171. # FIXME: insert proper C++ library support
  10172. ld_shlibs_CXX=no
  10173. fi
  10174. ;;
  10175. esac
  10176. ;;
  10177. irix5* | irix6*)
  10178. case $cc_basename in
  10179. CC*)
  10180. # SGI C++
  10181. 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'
  10182. # Archives containing C++ object files must be created using
  10183. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10184. # necessary to make sure instantiated templates are included
  10185. # in the archive.
  10186. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10187. ;;
  10188. *)
  10189. if test "$GXX" = yes; then
  10190. if test "$with_gnu_ld" = no; then
  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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10192. else
  10193. 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'
  10194. fi
  10195. fi
  10196. link_all_deplibs_CXX=yes
  10197. ;;
  10198. esac
  10199. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10200. hardcode_libdir_separator_CXX=:
  10201. ;;
  10202. linux*)
  10203. case $cc_basename in
  10204. KCC*)
  10205. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10206. # KCC will only create a shared library if the output file
  10207. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10208. # to its proper name (with version) after linking.
  10209. 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'
  10210. 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'
  10211. # Commands to make compiler produce verbose output that lists
  10212. # what "hidden" libraries, object files and flags are used when
  10213. # linking a shared library.
  10214. #
  10215. # There doesn't appear to be a way to prevent this compiler from
  10216. # explicitly linking system object files so we need to strip them
  10217. # from the output so that they don't get included in the library
  10218. # dependencies.
  10219. 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'
  10220. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  10221. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10222. # Archives containing C++ object files must be created using
  10223. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10224. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10225. ;;
  10226. icpc*)
  10227. # Intel C++
  10228. with_gnu_ld=yes
  10229. # version 8.0 and above of icpc choke on multiply defined symbols
  10230. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10231. # earlier do not add the objects themselves.
  10232. case `$CC -V 2>&1` in
  10233. *"Version 7."*)
  10234. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10235. 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'
  10236. ;;
  10237. *) # Version 8.0 or newer
  10238. tmp_idyn=
  10239. case $host_cpu in
  10240. ia64*) tmp_idyn=' -i_dynamic';;
  10241. esac
  10242. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10243. 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'
  10244. ;;
  10245. esac
  10246. archive_cmds_need_lc_CXX=no
  10247. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10248. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10249. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10250. ;;
  10251. pgCC*)
  10252. # Portland Group C++ compiler
  10253. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10254. 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'
  10255. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10256. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10257. 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'
  10258. ;;
  10259. cxx*)
  10260. # Compaq C++
  10261. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10262. 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'
  10263. runpath_var=LD_RUN_PATH
  10264. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10265. hardcode_libdir_separator_CXX=:
  10266. # Commands to make compiler produce verbose output that lists
  10267. # what "hidden" libraries, object files and flags are used when
  10268. # linking a shared library.
  10269. #
  10270. # There doesn't appear to be a way to prevent this compiler from
  10271. # explicitly linking system object files so we need to strip them
  10272. # from the output so that they don't get included in the library
  10273. # dependencies.
  10274. 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'
  10275. ;;
  10276. esac
  10277. ;;
  10278. lynxos*)
  10279. # FIXME: insert proper C++ library support
  10280. ld_shlibs_CXX=no
  10281. ;;
  10282. m88k*)
  10283. # FIXME: insert proper C++ library support
  10284. ld_shlibs_CXX=no
  10285. ;;
  10286. mvs*)
  10287. case $cc_basename in
  10288. cxx*)
  10289. # FIXME: insert proper C++ library support
  10290. ld_shlibs_CXX=no
  10291. ;;
  10292. *)
  10293. # FIXME: insert proper C++ library support
  10294. ld_shlibs_CXX=no
  10295. ;;
  10296. esac
  10297. ;;
  10298. netbsd*)
  10299. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10300. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10301. wlarc=
  10302. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10303. hardcode_direct_CXX=yes
  10304. hardcode_shlibpath_var_CXX=no
  10305. fi
  10306. # Workaround some broken pre-1.5 toolchains
  10307. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10308. ;;
  10309. openbsd2*)
  10310. # C++ shared libraries are fairly broken
  10311. ld_shlibs_CXX=no
  10312. ;;
  10313. openbsd*)
  10314. hardcode_direct_CXX=yes
  10315. hardcode_shlibpath_var_CXX=no
  10316. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10317. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10318. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10319. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10320. export_dynamic_flag_spec_CXX='${wl}-E'
  10321. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10322. fi
  10323. output_verbose_link_cmd='echo'
  10324. ;;
  10325. osf3*)
  10326. case $cc_basename in
  10327. KCC*)
  10328. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10329. # KCC will only create a shared library if the output file
  10330. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10331. # to its proper name (with version) after linking.
  10332. 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'
  10333. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10334. hardcode_libdir_separator_CXX=:
  10335. # Archives containing C++ object files must be created using
  10336. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10337. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10338. ;;
  10339. RCC*)
  10340. # Rational C++ 2.4.1
  10341. # FIXME: insert proper C++ library support
  10342. ld_shlibs_CXX=no
  10343. ;;
  10344. cxx*)
  10345. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10346. 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'
  10347. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10348. hardcode_libdir_separator_CXX=:
  10349. # Commands to make compiler produce verbose output that lists
  10350. # what "hidden" libraries, object files and flags are used when
  10351. # linking a shared library.
  10352. #
  10353. # There doesn't appear to be a way to prevent this compiler from
  10354. # explicitly linking system object files so we need to strip them
  10355. # from the output so that they don't get included in the library
  10356. # dependencies.
  10357. 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'
  10358. ;;
  10359. *)
  10360. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10361. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10362. 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'
  10363. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10364. hardcode_libdir_separator_CXX=:
  10365. # Commands to make compiler produce verbose output that lists
  10366. # what "hidden" libraries, object files and flags are used when
  10367. # linking a shared library.
  10368. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10369. else
  10370. # FIXME: insert proper C++ library support
  10371. ld_shlibs_CXX=no
  10372. fi
  10373. ;;
  10374. esac
  10375. ;;
  10376. osf4* | osf5*)
  10377. case $cc_basename in
  10378. KCC*)
  10379. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10380. # KCC will only create a shared library if the output file
  10381. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10382. # to its proper name (with version) after linking.
  10383. 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'
  10384. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10385. hardcode_libdir_separator_CXX=:
  10386. # Archives containing C++ object files must be created using
  10387. # the KAI C++ compiler.
  10388. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  10389. ;;
  10390. RCC*)
  10391. # Rational C++ 2.4.1
  10392. # FIXME: insert proper C++ library support
  10393. ld_shlibs_CXX=no
  10394. ;;
  10395. cxx*)
  10396. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10397. 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'
  10398. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10399. echo "-hidden">> $lib.exp~
  10400. $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~
  10401. $rm $lib.exp'
  10402. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10403. hardcode_libdir_separator_CXX=:
  10404. # Commands to make compiler produce verbose output that lists
  10405. # what "hidden" libraries, object files and flags are used when
  10406. # linking a shared library.
  10407. #
  10408. # There doesn't appear to be a way to prevent this compiler from
  10409. # explicitly linking system object files so we need to strip them
  10410. # from the output so that they don't get included in the library
  10411. # dependencies.
  10412. 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'
  10413. ;;
  10414. *)
  10415. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10416. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10417. 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'
  10418. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10419. hardcode_libdir_separator_CXX=:
  10420. # Commands to make compiler produce verbose output that lists
  10421. # what "hidden" libraries, object files and flags are used when
  10422. # linking a shared library.
  10423. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10424. else
  10425. # FIXME: insert proper C++ library support
  10426. ld_shlibs_CXX=no
  10427. fi
  10428. ;;
  10429. esac
  10430. ;;
  10431. psos*)
  10432. # FIXME: insert proper C++ library support
  10433. ld_shlibs_CXX=no
  10434. ;;
  10435. sco*)
  10436. archive_cmds_need_lc_CXX=no
  10437. case $cc_basename in
  10438. CC*)
  10439. # FIXME: insert proper C++ library support
  10440. ld_shlibs_CXX=no
  10441. ;;
  10442. *)
  10443. # FIXME: insert proper C++ library support
  10444. ld_shlibs_CXX=no
  10445. ;;
  10446. esac
  10447. ;;
  10448. sunos4*)
  10449. case $cc_basename in
  10450. CC*)
  10451. # Sun C++ 4.x
  10452. # FIXME: insert proper C++ library support
  10453. ld_shlibs_CXX=no
  10454. ;;
  10455. lcc*)
  10456. # Lucid
  10457. # FIXME: insert proper C++ library support
  10458. ld_shlibs_CXX=no
  10459. ;;
  10460. *)
  10461. # FIXME: insert proper C++ library support
  10462. ld_shlibs_CXX=no
  10463. ;;
  10464. esac
  10465. ;;
  10466. solaris*)
  10467. case $cc_basename in
  10468. CC*)
  10469. # Sun C++ 4.2, 5.x and Centerline C++
  10470. no_undefined_flag_CXX=' -zdefs'
  10471. archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10472. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10473. $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'
  10474. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10475. hardcode_shlibpath_var_CXX=no
  10476. case $host_os in
  10477. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10478. *)
  10479. # The C++ compiler is used as linker so we must use $wl
  10480. # flag to pass the commands to the underlying system
  10481. # linker. We must also pass each convience library through
  10482. # to the system linker between allextract/defaultextract.
  10483. # The C++ compiler will combine linker options so we
  10484. # cannot just pass the convience library names through
  10485. # without $wl.
  10486. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10487. 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'
  10488. ;;
  10489. esac
  10490. link_all_deplibs_CXX=yes
  10491. # Commands to make compiler produce verbose output that lists
  10492. # what "hidden" libraries, object files and flags are used when
  10493. # linking a shared library.
  10494. #
  10495. # There doesn't appear to be a way to prevent this compiler from
  10496. # explicitly linking system object files so we need to strip them
  10497. # from the output so that they don't get included in the library
  10498. # dependencies.
  10499. 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'
  10500. # Archives containing C++ object files must be created using
  10501. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10502. # necessary to make sure instantiated templates are included
  10503. # in the archive.
  10504. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10505. ;;
  10506. gcx*)
  10507. # Green Hills C++ Compiler
  10508. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10509. # The C++ compiler must be used to create the archive.
  10510. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10511. ;;
  10512. *)
  10513. # GNU C++ compiler with Solaris linker
  10514. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10515. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10516. if $CC --version | grep -v '^2\.7' > /dev/null; then
  10517. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10518. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10519. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10520. # Commands to make compiler produce verbose output that lists
  10521. # what "hidden" libraries, object files and flags are used when
  10522. # linking a shared library.
  10523. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10524. else
  10525. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10526. # platform.
  10527. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10528. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10529. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10530. # Commands to make compiler produce verbose output that lists
  10531. # what "hidden" libraries, object files and flags are used when
  10532. # linking a shared library.
  10533. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10534. fi
  10535. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10536. fi
  10537. ;;
  10538. esac
  10539. ;;
  10540. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  10541. archive_cmds_need_lc_CXX=no
  10542. ;;
  10543. tandem*)
  10544. case $cc_basename in
  10545. NCC*)
  10546. # NonStop-UX NCC 3.20
  10547. # FIXME: insert proper C++ library support
  10548. ld_shlibs_CXX=no
  10549. ;;
  10550. *)
  10551. # FIXME: insert proper C++ library support
  10552. ld_shlibs_CXX=no
  10553. ;;
  10554. esac
  10555. ;;
  10556. vxworks*)
  10557. # FIXME: insert proper C++ library support
  10558. ld_shlibs_CXX=no
  10559. ;;
  10560. *)
  10561. # FIXME: insert proper C++ library support
  10562. ld_shlibs_CXX=no
  10563. ;;
  10564. esac
  10565. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10566. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  10567. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10568. GCC_CXX="$GXX"
  10569. LD_CXX="$LD"
  10570. cat > conftest.$ac_ext <<EOF
  10571. class Foo
  10572. {
  10573. public:
  10574. Foo (void) { a = 0; }
  10575. private:
  10576. int a;
  10577. };
  10578. EOF
  10579. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10580. (eval $ac_compile) 2>&5
  10581. ac_status=$?
  10582. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10583. (exit $ac_status); }; then
  10584. # Parse the compiler output and extract the necessary
  10585. # objects, libraries and library flags.
  10586. # Sentinel used to keep track of whether or not we are before
  10587. # the conftest object file.
  10588. pre_test_object_deps_done=no
  10589. # The `*' in the case matches for architectures that use `case' in
  10590. # $output_verbose_cmd can trigger glob expansion during the loop
  10591. # eval without this substitution.
  10592. output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  10593. for p in `eval $output_verbose_link_cmd`; do
  10594. case $p in
  10595. -L* | -R* | -l*)
  10596. # Some compilers place space between "-{L,R}" and the path.
  10597. # Remove the space.
  10598. if test $p = "-L" \
  10599. || test $p = "-R"; then
  10600. prev=$p
  10601. continue
  10602. else
  10603. prev=
  10604. fi
  10605. if test "$pre_test_object_deps_done" = no; then
  10606. case $p in
  10607. -L* | -R*)
  10608. # Internal compiler library paths should come after those
  10609. # provided the user. The postdeps already come after the
  10610. # user supplied libs so there is no need to process them.
  10611. if test -z "$compiler_lib_search_path_CXX"; then
  10612. compiler_lib_search_path_CXX="${prev}${p}"
  10613. else
  10614. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10615. fi
  10616. ;;
  10617. # The "-l" case would never come before the object being
  10618. # linked, so don't bother handling this case.
  10619. esac
  10620. else
  10621. if test -z "$postdeps_CXX"; then
  10622. postdeps_CXX="${prev}${p}"
  10623. else
  10624. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10625. fi
  10626. fi
  10627. ;;
  10628. *.$objext)
  10629. # This assumes that the test object file only shows up
  10630. # once in the compiler output.
  10631. if test "$p" = "conftest.$objext"; then
  10632. pre_test_object_deps_done=yes
  10633. continue
  10634. fi
  10635. if test "$pre_test_object_deps_done" = no; then
  10636. if test -z "$predep_objects_CXX"; then
  10637. predep_objects_CXX="$p"
  10638. else
  10639. predep_objects_CXX="$predep_objects_CXX $p"
  10640. fi
  10641. else
  10642. if test -z "$postdep_objects_CXX"; then
  10643. postdep_objects_CXX="$p"
  10644. else
  10645. postdep_objects_CXX="$postdep_objects_CXX $p"
  10646. fi
  10647. fi
  10648. ;;
  10649. *) ;; # Ignore the rest.
  10650. esac
  10651. done
  10652. # Clean up.
  10653. rm -f a.out a.exe
  10654. else
  10655. echo "libtool.m4: error: problem compiling CXX test program"
  10656. fi
  10657. $rm -f confest.$objext
  10658. case " $postdeps_CXX " in
  10659. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10660. esac
  10661. lt_prog_compiler_wl_CXX=
  10662. lt_prog_compiler_pic_CXX=
  10663. lt_prog_compiler_static_CXX=
  10664. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  10665. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  10666. # C++ specific cases for pic, static, wl, etc.
  10667. if test "$GXX" = yes; then
  10668. lt_prog_compiler_wl_CXX='-Wl,'
  10669. lt_prog_compiler_static_CXX='-static'
  10670. case $host_os in
  10671. aix*)
  10672. # All AIX code is PIC.
  10673. if test "$host_cpu" = ia64; then
  10674. # AIX 5 now supports IA64 processor
  10675. lt_prog_compiler_static_CXX='-Bstatic'
  10676. fi
  10677. ;;
  10678. amigaos*)
  10679. # FIXME: we need at least 68020 code to build shared libraries, but
  10680. # adding the `-m68020' flag to GCC prevents building anything better,
  10681. # like `-m68040'.
  10682. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  10683. ;;
  10684. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10685. # PIC is the default for these OSes.
  10686. ;;
  10687. mingw* | os2* | pw32*)
  10688. # This hack is so that the source file can tell whether it is being
  10689. # built for inclusion in a dll (and should export symbols for example).
  10690. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  10691. ;;
  10692. darwin* | rhapsody*)
  10693. # PIC is the default on this platform
  10694. # Common symbols not allowed in MH_DYLIB files
  10695. lt_prog_compiler_pic_CXX='-fno-common'
  10696. ;;
  10697. *djgpp*)
  10698. # DJGPP does not support shared libraries at all
  10699. lt_prog_compiler_pic_CXX=
  10700. ;;
  10701. sysv4*MP*)
  10702. if test -d /usr/nec; then
  10703. lt_prog_compiler_pic_CXX=-Kconform_pic
  10704. fi
  10705. ;;
  10706. hpux*)
  10707. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10708. # not for PA HP-UX.
  10709. case "$host_cpu" in
  10710. hppa*64*|ia64*)
  10711. ;;
  10712. *)
  10713. lt_prog_compiler_pic_CXX='-fPIC'
  10714. ;;
  10715. esac
  10716. ;;
  10717. *)
  10718. lt_prog_compiler_pic_CXX='-fPIC'
  10719. ;;
  10720. esac
  10721. else
  10722. case $host_os in
  10723. aix4* | aix5*)
  10724. # All AIX code is PIC.
  10725. if test "$host_cpu" = ia64; then
  10726. # AIX 5 now supports IA64 processor
  10727. lt_prog_compiler_static_CXX='-Bstatic'
  10728. else
  10729. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  10730. fi
  10731. ;;
  10732. chorus*)
  10733. case $cc_basename in
  10734. cxch68*)
  10735. # Green Hills C++ Compiler
  10736. # _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"
  10737. ;;
  10738. esac
  10739. ;;
  10740. darwin*)
  10741. # PIC is the default on this platform
  10742. # Common symbols not allowed in MH_DYLIB files
  10743. case $cc_basename in
  10744. xlc*)
  10745. lt_prog_compiler_pic_CXX='-qnocommon'
  10746. lt_prog_compiler_wl_CXX='-Wl,'
  10747. ;;
  10748. esac
  10749. ;;
  10750. dgux*)
  10751. case $cc_basename in
  10752. ec++*)
  10753. lt_prog_compiler_pic_CXX='-KPIC'
  10754. ;;
  10755. ghcx*)
  10756. # Green Hills C++ Compiler
  10757. lt_prog_compiler_pic_CXX='-pic'
  10758. ;;
  10759. *)
  10760. ;;
  10761. esac
  10762. ;;
  10763. freebsd* | kfreebsd*-gnu | dragonfly*)
  10764. # FreeBSD uses GNU C++
  10765. ;;
  10766. hpux9* | hpux10* | hpux11*)
  10767. case $cc_basename in
  10768. CC*)
  10769. lt_prog_compiler_wl_CXX='-Wl,'
  10770. lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  10771. if test "$host_cpu" != ia64; then
  10772. lt_prog_compiler_pic_CXX='+Z'
  10773. fi
  10774. ;;
  10775. aCC*)
  10776. lt_prog_compiler_wl_CXX='-Wl,'
  10777. lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  10778. case "$host_cpu" in
  10779. hppa*64*|ia64*)
  10780. # +Z the default
  10781. ;;
  10782. *)
  10783. lt_prog_compiler_pic_CXX='+Z'
  10784. ;;
  10785. esac
  10786. ;;
  10787. *)
  10788. ;;
  10789. esac
  10790. ;;
  10791. irix5* | irix6* | nonstopux*)
  10792. case $cc_basename in
  10793. CC*)
  10794. lt_prog_compiler_wl_CXX='-Wl,'
  10795. lt_prog_compiler_static_CXX='-non_shared'
  10796. # CC pic flag -KPIC is the default.
  10797. ;;
  10798. *)
  10799. ;;
  10800. esac
  10801. ;;
  10802. linux*)
  10803. case $cc_basename in
  10804. KCC*)
  10805. # KAI C++ Compiler
  10806. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10807. lt_prog_compiler_pic_CXX='-fPIC'
  10808. ;;
  10809. icpc* | ecpc*)
  10810. # Intel C++
  10811. lt_prog_compiler_wl_CXX='-Wl,'
  10812. lt_prog_compiler_pic_CXX='-KPIC'
  10813. lt_prog_compiler_static_CXX='-static'
  10814. ;;
  10815. pgCC*)
  10816. # Portland Group C++ compiler.
  10817. lt_prog_compiler_wl_CXX='-Wl,'
  10818. lt_prog_compiler_pic_CXX='-fpic'
  10819. lt_prog_compiler_static_CXX='-static'
  10820. ;;
  10821. cxx*)
  10822. # Compaq C++
  10823. # Make sure the PIC flag is empty. It appears that all Alpha
  10824. # Linux and Compaq Tru64 Unix objects are PIC.
  10825. lt_prog_compiler_pic_CXX=
  10826. lt_prog_compiler_static_CXX='-non_shared'
  10827. ;;
  10828. *)
  10829. ;;
  10830. esac
  10831. ;;
  10832. lynxos*)
  10833. ;;
  10834. m88k*)
  10835. ;;
  10836. mvs*)
  10837. case $cc_basename in
  10838. cxx*)
  10839. lt_prog_compiler_pic_CXX='-W c,exportall'
  10840. ;;
  10841. *)
  10842. ;;
  10843. esac
  10844. ;;
  10845. netbsd*)
  10846. ;;
  10847. osf3* | osf4* | osf5*)
  10848. case $cc_basename in
  10849. KCC*)
  10850. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10851. ;;
  10852. RCC*)
  10853. # Rational C++ 2.4.1
  10854. lt_prog_compiler_pic_CXX='-pic'
  10855. ;;
  10856. cxx*)
  10857. # Digital/Compaq C++
  10858. lt_prog_compiler_wl_CXX='-Wl,'
  10859. # Make sure the PIC flag is empty. It appears that all Alpha
  10860. # Linux and Compaq Tru64 Unix objects are PIC.
  10861. lt_prog_compiler_pic_CXX=
  10862. lt_prog_compiler_static_CXX='-non_shared'
  10863. ;;
  10864. *)
  10865. ;;
  10866. esac
  10867. ;;
  10868. psos*)
  10869. ;;
  10870. sco*)
  10871. case $cc_basename in
  10872. CC*)
  10873. lt_prog_compiler_pic_CXX='-fPIC'
  10874. ;;
  10875. *)
  10876. ;;
  10877. esac
  10878. ;;
  10879. solaris*)
  10880. case $cc_basename in
  10881. CC*)
  10882. # Sun C++ 4.2, 5.x and Centerline C++
  10883. lt_prog_compiler_pic_CXX='-KPIC'
  10884. lt_prog_compiler_static_CXX='-Bstatic'
  10885. lt_prog_compiler_wl_CXX='-Qoption ld '
  10886. ;;
  10887. gcx*)
  10888. # Green Hills C++ Compiler
  10889. lt_prog_compiler_pic_CXX='-PIC'
  10890. ;;
  10891. *)
  10892. ;;
  10893. esac
  10894. ;;
  10895. sunos4*)
  10896. case $cc_basename in
  10897. CC*)
  10898. # Sun C++ 4.x
  10899. lt_prog_compiler_pic_CXX='-pic'
  10900. lt_prog_compiler_static_CXX='-Bstatic'
  10901. ;;
  10902. lcc*)
  10903. # Lucid
  10904. lt_prog_compiler_pic_CXX='-pic'
  10905. ;;
  10906. *)
  10907. ;;
  10908. esac
  10909. ;;
  10910. tandem*)
  10911. case $cc_basename in
  10912. NCC*)
  10913. # NonStop-UX NCC 3.20
  10914. lt_prog_compiler_pic_CXX='-KPIC'
  10915. ;;
  10916. *)
  10917. ;;
  10918. esac
  10919. ;;
  10920. unixware*)
  10921. ;;
  10922. vxworks*)
  10923. ;;
  10924. *)
  10925. lt_prog_compiler_can_build_shared_CXX=no
  10926. ;;
  10927. esac
  10928. fi
  10929. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  10930. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  10931. #
  10932. # Check to make sure the PIC flag actually works.
  10933. #
  10934. if test -n "$lt_prog_compiler_pic_CXX"; then
  10935. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  10936. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  10937. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  10938. echo $ECHO_N "(cached) $ECHO_C" >&6
  10939. else
  10940. lt_prog_compiler_pic_works_CXX=no
  10941. ac_outfile=conftest.$ac_objext
  10942. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10943. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  10944. # Insert the option either (1) after the last *FLAGS variable, or
  10945. # (2) before a word containing "conftest.", or (3) at the end.
  10946. # Note that $ac_compile itself does not contain backslashes and begins
  10947. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10948. # The option is referenced via a variable to avoid confusing sed.
  10949. lt_compile=`echo "$ac_compile" | $SED \
  10950. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  10951. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10952. -e 's:$: $lt_compiler_flag:'`
  10953. (eval echo "\"\$as_me:12221: $lt_compile\"" >&5)
  10954. (eval "$lt_compile" 2>conftest.err)
  10955. ac_status=$?
  10956. cat conftest.err >&5
  10957. echo "$as_me:12225: \$? = $ac_status" >&5
  10958. if (exit $ac_status) && test -s "$ac_outfile"; then
  10959. # The compiler can only warn and ignore the option if not recognized
  10960. # So say no if there are warnings other than the usual output.
  10961. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  10962. $SED '/^$/d' conftest.err >conftest.er2
  10963. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  10964. lt_prog_compiler_pic_works_CXX=yes
  10965. fi
  10966. fi
  10967. $rm conftest*
  10968. fi
  10969. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  10970. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
  10971. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  10972. case $lt_prog_compiler_pic_CXX in
  10973. "" | " "*) ;;
  10974. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  10975. esac
  10976. else
  10977. lt_prog_compiler_pic_CXX=
  10978. lt_prog_compiler_can_build_shared_CXX=no
  10979. fi
  10980. fi
  10981. case "$host_os" in
  10982. # For platforms which do not support PIC, -DPIC is meaningless:
  10983. *djgpp*)
  10984. lt_prog_compiler_pic_CXX=
  10985. ;;
  10986. *)
  10987. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  10988. ;;
  10989. esac
  10990. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  10991. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  10992. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  10993. echo $ECHO_N "(cached) $ECHO_C" >&6
  10994. else
  10995. lt_cv_prog_compiler_c_o_CXX=no
  10996. $rm -r conftest 2>/dev/null
  10997. mkdir conftest
  10998. cd conftest
  10999. mkdir out
  11000. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11001. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11002. # Insert the option either (1) after the last *FLAGS variable, or
  11003. # (2) before a word containing "conftest.", or (3) at the end.
  11004. # Note that $ac_compile itself does not contain backslashes and begins
  11005. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11006. lt_compile=`echo "$ac_compile" | $SED \
  11007. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  11008. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11009. -e 's:$: $lt_compiler_flag:'`
  11010. (eval echo "\"\$as_me:12283: $lt_compile\"" >&5)
  11011. (eval "$lt_compile" 2>out/conftest.err)
  11012. ac_status=$?
  11013. cat out/conftest.err >&5
  11014. echo "$as_me:12287: \$? = $ac_status" >&5
  11015. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11016. then
  11017. # The compiler can only warn and ignore the option if not recognized
  11018. # So say no if there are warnings
  11019. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  11020. $SED '/^$/d' out/conftest.err >out/conftest.er2
  11021. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11022. lt_cv_prog_compiler_c_o_CXX=yes
  11023. fi
  11024. fi
  11025. chmod u+w .
  11026. $rm conftest*
  11027. # SGI C++ compiler will create directory out/ii_files/ for
  11028. # template instantiation
  11029. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  11030. $rm out/* && rmdir out
  11031. cd ..
  11032. rmdir conftest
  11033. $rm conftest*
  11034. fi
  11035. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11036. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11037. hard_links="nottested"
  11038. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11039. # do not overwrite the value of need_locks provided by the user
  11040. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11041. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  11042. hard_links=yes
  11043. $rm conftest*
  11044. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11045. touch conftest.a
  11046. ln conftest.a conftest.b 2>&5 || hard_links=no
  11047. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11048. { echo "$as_me:$LINENO: result: $hard_links" >&5
  11049. echo "${ECHO_T}$hard_links" >&6; }
  11050. if test "$hard_links" = no; then
  11051. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11052. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11053. need_locks=warn
  11054. fi
  11055. else
  11056. need_locks=no
  11057. fi
  11058. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11059. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  11060. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11061. case $host_os in
  11062. aix4* | aix5*)
  11063. # If we're using GNU nm, then we don't want the "-C" option.
  11064. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11065. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11066. 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'
  11067. else
  11068. 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'
  11069. fi
  11070. ;;
  11071. pw32*)
  11072. export_symbols_cmds_CXX="$ltdll_cmds"
  11073. ;;
  11074. cygwin* | mingw*)
  11075. 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'
  11076. ;;
  11077. *)
  11078. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11079. ;;
  11080. esac
  11081. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11082. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  11083. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11084. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11085. if test "$GCC" = yes; then
  11086. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11087. fi
  11088. #
  11089. # Do we need to explicitly link libc?
  11090. #
  11091. case "x$archive_cmds_need_lc_CXX" in
  11092. x|xyes)
  11093. # Assume -lc should be added
  11094. archive_cmds_need_lc_CXX=yes
  11095. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11096. case $archive_cmds_CXX in
  11097. *'~'*)
  11098. # FIXME: we may have to deal with multi-command sequences.
  11099. ;;
  11100. '$CC '*)
  11101. # Test whether the compiler implicitly links with -lc since on some
  11102. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11103. # to ld, don't add -lc before -lgcc.
  11104. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  11105. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  11106. $rm conftest*
  11107. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11108. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11109. (eval $ac_compile) 2>&5
  11110. ac_status=$?
  11111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11112. (exit $ac_status); } 2>conftest.err; then
  11113. soname=conftest
  11114. lib=conftest
  11115. libobjs=conftest.$ac_objext
  11116. deplibs=
  11117. wl=$lt_prog_compiler_wl_CXX
  11118. compiler_flags=-v
  11119. linker_flags=-v
  11120. verstring=
  11121. output_objdir=.
  11122. libname=conftest
  11123. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11124. allow_undefined_flag_CXX=
  11125. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  11126. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11127. ac_status=$?
  11128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11129. (exit $ac_status); }
  11130. then
  11131. archive_cmds_need_lc_CXX=no
  11132. else
  11133. archive_cmds_need_lc_CXX=yes
  11134. fi
  11135. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11136. else
  11137. cat conftest.err 1>&5
  11138. fi
  11139. $rm conftest*
  11140. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  11141. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  11142. ;;
  11143. esac
  11144. fi
  11145. ;;
  11146. esac
  11147. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  11148. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  11149. library_names_spec=
  11150. libname_spec='lib$name'
  11151. soname_spec=
  11152. shrext_cmds=".so"
  11153. postinstall_cmds=
  11154. postuninstall_cmds=
  11155. finish_cmds=
  11156. finish_eval=
  11157. shlibpath_var=
  11158. shlibpath_overrides_runpath=unknown
  11159. version_type=none
  11160. dynamic_linker="$host_os ld.so"
  11161. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11162. if test "$GCC" = yes; then
  11163. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11164. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  11165. # if the path contains ";" then we assume it to be the separator
  11166. # otherwise default to the standard path separator (i.e. ":") - it is
  11167. # assumed that no part of a normal pathname contains ";" but that should
  11168. # okay in the real world where ";" in dirpaths is itself problematic.
  11169. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11170. else
  11171. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11172. fi
  11173. else
  11174. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11175. fi
  11176. need_lib_prefix=unknown
  11177. hardcode_into_libs=no
  11178. # when you set need_version to no, make sure it does not cause -set_version
  11179. # flags to be left without arguments
  11180. need_version=unknown
  11181. case $host_os in
  11182. aix3*)
  11183. version_type=linux
  11184. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11185. shlibpath_var=LIBPATH
  11186. # AIX 3 has no versioning support, so we append a major version to the name.
  11187. soname_spec='${libname}${release}${shared_ext}$major'
  11188. ;;
  11189. aix4* | aix5*)
  11190. version_type=linux
  11191. need_lib_prefix=no
  11192. need_version=no
  11193. hardcode_into_libs=yes
  11194. if test "$host_cpu" = ia64; then
  11195. # AIX 5 supports IA64
  11196. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11197. shlibpath_var=LD_LIBRARY_PATH
  11198. else
  11199. # With GCC up to 2.95.x, collect2 would create an import file
  11200. # for dependence libraries. The import file would start with
  11201. # the line `#! .'. This would cause the generated library to
  11202. # depend on `.', always an invalid library. This was fixed in
  11203. # development snapshots of GCC prior to 3.0.
  11204. case $host_os in
  11205. aix4 | aix4.[01] | aix4.[01].*)
  11206. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11207. echo ' yes '
  11208. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  11209. :
  11210. else
  11211. can_build_shared=no
  11212. fi
  11213. ;;
  11214. esac
  11215. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11216. # soname into executable. Probably we can add versioning support to
  11217. # collect2, so additional links can be useful in future.
  11218. if test "$aix_use_runtimelinking" = yes; then
  11219. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11220. # instead of lib<name>.a to let people know that these are not
  11221. # typical AIX shared libraries.
  11222. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11223. else
  11224. # We preserve .a as extension for shared libraries through AIX4.2
  11225. # and later when we are not doing run time linking.
  11226. library_names_spec='${libname}${release}.a $libname.a'
  11227. soname_spec='${libname}${release}${shared_ext}$major'
  11228. fi
  11229. shlibpath_var=LIBPATH
  11230. fi
  11231. ;;
  11232. amigaos*)
  11233. library_names_spec='$libname.ixlibrary $libname.a'
  11234. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11235. 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'
  11236. ;;
  11237. beos*)
  11238. library_names_spec='${libname}${shared_ext}'
  11239. dynamic_linker="$host_os ld.so"
  11240. shlibpath_var=LIBRARY_PATH
  11241. ;;
  11242. bsdi[45]*)
  11243. version_type=linux
  11244. need_version=no
  11245. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11246. soname_spec='${libname}${release}${shared_ext}$major'
  11247. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11248. shlibpath_var=LD_LIBRARY_PATH
  11249. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11250. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11251. # the default ld.so.conf also contains /usr/contrib/lib and
  11252. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11253. # libtool to hard-code these into programs
  11254. ;;
  11255. cygwin* | mingw* | pw32*)
  11256. version_type=windows
  11257. shrext_cmds=".dll"
  11258. need_version=no
  11259. need_lib_prefix=no
  11260. case $GCC,$host_os in
  11261. yes,cygwin* | yes,mingw* | yes,pw32*)
  11262. library_names_spec='$libname.dll.a'
  11263. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11264. postinstall_cmds='base_file=`basename \${file}`~
  11265. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  11266. dldir=$destdir/`dirname \$dlpath`~
  11267. test -d \$dldir || mkdir -p \$dldir~
  11268. $install_prog $dir/$dlname \$dldir/$dlname'
  11269. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11270. dlpath=$dir/\$dldll~
  11271. $rm \$dlpath'
  11272. shlibpath_overrides_runpath=yes
  11273. case $host_os in
  11274. cygwin*)
  11275. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11276. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11277. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11278. ;;
  11279. mingw*)
  11280. # MinGW DLLs use traditional 'lib' prefix
  11281. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11282. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11283. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  11284. # It is most probably a Windows format PATH printed by
  11285. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11286. # path with ; separators, and with drive letters. We can handle the
  11287. # drive letters (cygwin fileutils understands them), so leave them,
  11288. # especially as we might pass files found there to a mingw objdump,
  11289. # which wouldn't understand a cygwinified path. Ahh.
  11290. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11291. else
  11292. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11293. fi
  11294. ;;
  11295. pw32*)
  11296. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11297. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11298. ;;
  11299. esac
  11300. ;;
  11301. *)
  11302. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11303. ;;
  11304. esac
  11305. dynamic_linker='Win32 ld.exe'
  11306. # FIXME: first we should search . and the directory the executable is in
  11307. shlibpath_var=PATH
  11308. ;;
  11309. darwin* | rhapsody*)
  11310. dynamic_linker="$host_os dyld"
  11311. version_type=darwin
  11312. need_lib_prefix=no
  11313. need_version=no
  11314. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11315. soname_spec='${libname}${release}${major}$shared_ext'
  11316. shlibpath_overrides_runpath=yes
  11317. shlibpath_var=DYLD_LIBRARY_PATH
  11318. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  11319. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  11320. if test "$GCC" = yes; then
  11321. 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"`
  11322. else
  11323. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  11324. fi
  11325. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11326. ;;
  11327. dgux*)
  11328. version_type=linux
  11329. need_lib_prefix=no
  11330. need_version=no
  11331. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11332. soname_spec='${libname}${release}${shared_ext}$major'
  11333. shlibpath_var=LD_LIBRARY_PATH
  11334. ;;
  11335. freebsd1*)
  11336. dynamic_linker=no
  11337. ;;
  11338. kfreebsd*-gnu)
  11339. version_type=linux
  11340. need_lib_prefix=no
  11341. need_version=no
  11342. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11343. soname_spec='${libname}${release}${shared_ext}$major'
  11344. shlibpath_var=LD_LIBRARY_PATH
  11345. shlibpath_overrides_runpath=no
  11346. hardcode_into_libs=yes
  11347. dynamic_linker='GNU ld.so'
  11348. ;;
  11349. freebsd* | dragonfly*)
  11350. # DragonFly does not have aout. When/if they implement a new
  11351. # versioning mechanism, adjust this.
  11352. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  11353. version_type=freebsd-$objformat
  11354. case $version_type in
  11355. freebsd-elf*)
  11356. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11357. need_version=no
  11358. need_lib_prefix=no
  11359. ;;
  11360. freebsd-*)
  11361. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11362. need_version=yes
  11363. ;;
  11364. esac
  11365. shlibpath_var=LD_LIBRARY_PATH
  11366. case $host_os in
  11367. freebsd2*)
  11368. shlibpath_overrides_runpath=yes
  11369. ;;
  11370. freebsd3.[01]* | freebsdelf3.[01]*)
  11371. shlibpath_overrides_runpath=yes
  11372. hardcode_into_libs=yes
  11373. ;;
  11374. *) # from 3.2 on
  11375. shlibpath_overrides_runpath=no
  11376. hardcode_into_libs=yes
  11377. ;;
  11378. esac
  11379. ;;
  11380. gnu*)
  11381. version_type=linux
  11382. need_lib_prefix=no
  11383. need_version=no
  11384. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11385. soname_spec='${libname}${release}${shared_ext}$major'
  11386. shlibpath_var=LD_LIBRARY_PATH
  11387. hardcode_into_libs=yes
  11388. ;;
  11389. hpux9* | hpux10* | hpux11*)
  11390. # Give a soname corresponding to the major version so that dld.sl refuses to
  11391. # link against other versions.
  11392. version_type=sunos
  11393. need_lib_prefix=no
  11394. need_version=no
  11395. case "$host_cpu" in
  11396. ia64*)
  11397. shrext_cmds='.so'
  11398. hardcode_into_libs=yes
  11399. dynamic_linker="$host_os dld.so"
  11400. shlibpath_var=LD_LIBRARY_PATH
  11401. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11402. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11403. soname_spec='${libname}${release}${shared_ext}$major'
  11404. if test "X$HPUX_IA64_MODE" = X32; then
  11405. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11406. else
  11407. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11408. fi
  11409. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11410. ;;
  11411. hppa*64*)
  11412. shrext_cmds='.sl'
  11413. hardcode_into_libs=yes
  11414. dynamic_linker="$host_os dld.sl"
  11415. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11416. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11417. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11418. soname_spec='${libname}${release}${shared_ext}$major'
  11419. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11420. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11421. ;;
  11422. *)
  11423. shrext_cmds='.sl'
  11424. dynamic_linker="$host_os dld.sl"
  11425. shlibpath_var=SHLIB_PATH
  11426. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11427. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11428. soname_spec='${libname}${release}${shared_ext}$major'
  11429. ;;
  11430. esac
  11431. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11432. postinstall_cmds='chmod 555 $lib'
  11433. ;;
  11434. irix5* | irix6* | nonstopux*)
  11435. case $host_os in
  11436. nonstopux*) version_type=nonstopux ;;
  11437. *)
  11438. if test "$lt_cv_prog_gnu_ld" = yes; then
  11439. version_type=linux
  11440. else
  11441. version_type=irix
  11442. fi ;;
  11443. esac
  11444. need_lib_prefix=no
  11445. need_version=no
  11446. soname_spec='${libname}${release}${shared_ext}$major'
  11447. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11448. case $host_os in
  11449. irix5* | nonstopux*)
  11450. libsuff= shlibsuff=
  11451. ;;
  11452. *)
  11453. case $LD in # libtool.m4 will add one of these switches to LD
  11454. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11455. libsuff= shlibsuff= libmagic=32-bit;;
  11456. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11457. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11458. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11459. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11460. *) libsuff= shlibsuff= libmagic=never-match;;
  11461. esac
  11462. ;;
  11463. esac
  11464. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11465. shlibpath_overrides_runpath=no
  11466. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11467. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11468. hardcode_into_libs=yes
  11469. ;;
  11470. # No shared lib support for Linux oldld, aout, or coff.
  11471. linux*oldld* | linux*aout* | linux*coff*)
  11472. dynamic_linker=no
  11473. ;;
  11474. # This must be Linux ELF.
  11475. linux*)
  11476. version_type=linux
  11477. need_lib_prefix=no
  11478. need_version=no
  11479. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11480. soname_spec='${libname}${release}${shared_ext}$major'
  11481. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11482. shlibpath_var=LD_LIBRARY_PATH
  11483. shlibpath_overrides_runpath=no
  11484. # This implies no fast_install, which is unacceptable.
  11485. # Some rework will be needed to allow for fast_install
  11486. # before this can be enabled.
  11487. hardcode_into_libs=yes
  11488. # Append ld.so.conf contents to the search path
  11489. if test -f /etc/ld.so.conf; then
  11490. 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' ' '`
  11491. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11492. fi
  11493. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11494. # powerpc, because MkLinux only supported shared libraries with the
  11495. # GNU dynamic linker. Since this was broken with cross compilers,
  11496. # most powerpc-linux boxes support dynamic linking these days and
  11497. # people can always --disable-shared, the test was removed, and we
  11498. # assume the GNU/Linux dynamic linker is in use.
  11499. dynamic_linker='GNU/Linux ld.so'
  11500. ;;
  11501. knetbsd*-gnu)
  11502. version_type=linux
  11503. need_lib_prefix=no
  11504. need_version=no
  11505. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11506. soname_spec='${libname}${release}${shared_ext}$major'
  11507. shlibpath_var=LD_LIBRARY_PATH
  11508. shlibpath_overrides_runpath=no
  11509. hardcode_into_libs=yes
  11510. dynamic_linker='GNU ld.so'
  11511. ;;
  11512. netbsd*)
  11513. version_type=sunos
  11514. need_lib_prefix=no
  11515. need_version=no
  11516. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11517. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11518. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11519. dynamic_linker='NetBSD (a.out) ld.so'
  11520. else
  11521. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11522. soname_spec='${libname}${release}${shared_ext}$major'
  11523. dynamic_linker='NetBSD ld.elf_so'
  11524. fi
  11525. shlibpath_var=LD_LIBRARY_PATH
  11526. shlibpath_overrides_runpath=yes
  11527. hardcode_into_libs=yes
  11528. ;;
  11529. newsos6)
  11530. version_type=linux
  11531. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11532. shlibpath_var=LD_LIBRARY_PATH
  11533. shlibpath_overrides_runpath=yes
  11534. ;;
  11535. nto-qnx*)
  11536. version_type=linux
  11537. need_lib_prefix=no
  11538. need_version=no
  11539. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11540. soname_spec='${libname}${release}${shared_ext}$major'
  11541. shlibpath_var=LD_LIBRARY_PATH
  11542. shlibpath_overrides_runpath=yes
  11543. ;;
  11544. openbsd*)
  11545. version_type=sunos
  11546. need_lib_prefix=no
  11547. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11548. case $host_os in
  11549. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11550. *) need_version=no ;;
  11551. esac
  11552. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11553. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11554. shlibpath_var=LD_LIBRARY_PATH
  11555. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11556. case $host_os in
  11557. openbsd2.[89] | openbsd2.[89].*)
  11558. shlibpath_overrides_runpath=no
  11559. ;;
  11560. *)
  11561. shlibpath_overrides_runpath=yes
  11562. ;;
  11563. esac
  11564. else
  11565. shlibpath_overrides_runpath=yes
  11566. fi
  11567. ;;
  11568. os2*)
  11569. libname_spec='$name'
  11570. shrext_cmds=".dll"
  11571. need_lib_prefix=no
  11572. library_names_spec='$libname${shared_ext} $libname.a'
  11573. dynamic_linker='OS/2 ld.exe'
  11574. shlibpath_var=LIBPATH
  11575. ;;
  11576. osf3* | osf4* | osf5*)
  11577. version_type=osf
  11578. need_lib_prefix=no
  11579. need_version=no
  11580. soname_spec='${libname}${release}${shared_ext}$major'
  11581. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11582. shlibpath_var=LD_LIBRARY_PATH
  11583. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11584. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11585. ;;
  11586. sco3.2v5*)
  11587. version_type=osf
  11588. soname_spec='${libname}${release}${shared_ext}$major'
  11589. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11590. shlibpath_var=LD_LIBRARY_PATH
  11591. ;;
  11592. solaris*)
  11593. version_type=linux
  11594. need_lib_prefix=no
  11595. need_version=no
  11596. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11597. soname_spec='${libname}${release}${shared_ext}$major'
  11598. shlibpath_var=LD_LIBRARY_PATH
  11599. shlibpath_overrides_runpath=yes
  11600. hardcode_into_libs=yes
  11601. # ldd complains unless libraries are executable
  11602. postinstall_cmds='chmod +x $lib'
  11603. ;;
  11604. sunos4*)
  11605. version_type=sunos
  11606. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11607. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11608. shlibpath_var=LD_LIBRARY_PATH
  11609. shlibpath_overrides_runpath=yes
  11610. if test "$with_gnu_ld" = yes; then
  11611. need_lib_prefix=no
  11612. fi
  11613. need_version=yes
  11614. ;;
  11615. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11616. version_type=linux
  11617. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11618. soname_spec='${libname}${release}${shared_ext}$major'
  11619. shlibpath_var=LD_LIBRARY_PATH
  11620. case $host_vendor in
  11621. sni)
  11622. shlibpath_overrides_runpath=no
  11623. need_lib_prefix=no
  11624. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11625. runpath_var=LD_RUN_PATH
  11626. ;;
  11627. siemens)
  11628. need_lib_prefix=no
  11629. ;;
  11630. motorola)
  11631. need_lib_prefix=no
  11632. need_version=no
  11633. shlibpath_overrides_runpath=no
  11634. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11635. ;;
  11636. esac
  11637. ;;
  11638. sysv4*MP*)
  11639. if test -d /usr/nec ;then
  11640. version_type=linux
  11641. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11642. soname_spec='$libname${shared_ext}.$major'
  11643. shlibpath_var=LD_LIBRARY_PATH
  11644. fi
  11645. ;;
  11646. uts4*)
  11647. version_type=linux
  11648. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11649. soname_spec='${libname}${release}${shared_ext}$major'
  11650. shlibpath_var=LD_LIBRARY_PATH
  11651. ;;
  11652. *)
  11653. dynamic_linker=no
  11654. ;;
  11655. esac
  11656. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  11657. echo "${ECHO_T}$dynamic_linker" >&6; }
  11658. test "$dynamic_linker" = no && can_build_shared=no
  11659. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  11660. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  11661. hardcode_action_CXX=
  11662. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  11663. test -n "$runpath_var_CXX" || \
  11664. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  11665. # We can hardcode non-existant directories.
  11666. if test "$hardcode_direct_CXX" != no &&
  11667. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11668. # have to relink, otherwise we might link with an installed library
  11669. # when we should be linking with a yet-to-be-installed one
  11670. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  11671. test "$hardcode_minus_L_CXX" != no; then
  11672. # Linking always hardcodes the temporary library directory.
  11673. hardcode_action_CXX=relink
  11674. else
  11675. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11676. hardcode_action_CXX=immediate
  11677. fi
  11678. else
  11679. # We cannot hardcode anything, or else we can only hardcode existing
  11680. # directories.
  11681. hardcode_action_CXX=unsupported
  11682. fi
  11683. { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  11684. echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  11685. if test "$hardcode_action_CXX" = relink; then
  11686. # Fast installation is not supported
  11687. enable_fast_install=no
  11688. elif test "$shlibpath_overrides_runpath" = yes ||
  11689. test "$enable_shared" = no; then
  11690. # Fast installation is not necessary
  11691. enable_fast_install=needless
  11692. fi
  11693. striplib=
  11694. old_striplib=
  11695. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  11696. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  11697. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  11698. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11699. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11700. { echo "$as_me:$LINENO: result: yes" >&5
  11701. echo "${ECHO_T}yes" >&6; }
  11702. else
  11703. # FIXME - insert some real tests, host_os isn't really good enough
  11704. case $host_os in
  11705. darwin*)
  11706. if test -n "$STRIP" ; then
  11707. striplib="$STRIP -x"
  11708. { echo "$as_me:$LINENO: result: yes" >&5
  11709. echo "${ECHO_T}yes" >&6; }
  11710. else
  11711. { echo "$as_me:$LINENO: result: no" >&5
  11712. echo "${ECHO_T}no" >&6; }
  11713. fi
  11714. ;;
  11715. *)
  11716. { echo "$as_me:$LINENO: result: no" >&5
  11717. echo "${ECHO_T}no" >&6; }
  11718. ;;
  11719. esac
  11720. fi
  11721. if test "x$enable_dlopen" != xyes; then
  11722. enable_dlopen=unknown
  11723. enable_dlopen_self=unknown
  11724. enable_dlopen_self_static=unknown
  11725. else
  11726. lt_cv_dlopen=no
  11727. lt_cv_dlopen_libs=
  11728. case $host_os in
  11729. beos*)
  11730. lt_cv_dlopen="load_add_on"
  11731. lt_cv_dlopen_libs=
  11732. lt_cv_dlopen_self=yes
  11733. ;;
  11734. mingw* | pw32*)
  11735. lt_cv_dlopen="LoadLibrary"
  11736. lt_cv_dlopen_libs=
  11737. ;;
  11738. cygwin*)
  11739. lt_cv_dlopen="dlopen"
  11740. lt_cv_dlopen_libs=
  11741. ;;
  11742. darwin*)
  11743. # if libdl is installed we need to link against it
  11744. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  11745. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  11746. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  11747. echo $ECHO_N "(cached) $ECHO_C" >&6
  11748. else
  11749. ac_check_lib_save_LIBS=$LIBS
  11750. LIBS="-ldl $LIBS"
  11751. cat >conftest.$ac_ext <<_ACEOF
  11752. /* confdefs.h. */
  11753. _ACEOF
  11754. cat confdefs.h >>conftest.$ac_ext
  11755. cat >>conftest.$ac_ext <<_ACEOF
  11756. /* end confdefs.h. */
  11757. /* Override any GCC internal prototype to avoid an error.
  11758. Use char because int might match the return type of a GCC
  11759. builtin and then its argument prototype would still apply. */
  11760. #ifdef __cplusplus
  11761. extern "C"
  11762. #endif
  11763. char dlopen ();
  11764. int
  11765. main ()
  11766. {
  11767. return dlopen ();
  11768. ;
  11769. return 0;
  11770. }
  11771. _ACEOF
  11772. rm -f conftest.$ac_objext conftest$ac_exeext
  11773. if { (ac_try="$ac_link"
  11774. case "(($ac_try" in
  11775. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11776. *) ac_try_echo=$ac_try;;
  11777. esac
  11778. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11779. (eval "$ac_link") 2>conftest.er1
  11780. ac_status=$?
  11781. grep -v '^ *+' conftest.er1 >conftest.err
  11782. rm -f conftest.er1
  11783. cat conftest.err >&5
  11784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11785. (exit $ac_status); } && {
  11786. test -z "$ac_cxx_werror_flag" ||
  11787. test ! -s conftest.err
  11788. } && test -s conftest$ac_exeext &&
  11789. $as_test_x conftest$ac_exeext; then
  11790. ac_cv_lib_dl_dlopen=yes
  11791. else
  11792. echo "$as_me: failed program was:" >&5
  11793. sed 's/^/| /' conftest.$ac_ext >&5
  11794. ac_cv_lib_dl_dlopen=no
  11795. fi
  11796. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11797. conftest$ac_exeext conftest.$ac_ext
  11798. LIBS=$ac_check_lib_save_LIBS
  11799. fi
  11800. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  11801. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  11802. if test $ac_cv_lib_dl_dlopen = yes; then
  11803. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11804. else
  11805. lt_cv_dlopen="dyld"
  11806. lt_cv_dlopen_libs=
  11807. lt_cv_dlopen_self=yes
  11808. fi
  11809. ;;
  11810. *)
  11811. { echo "$as_me:$LINENO: checking for shl_load" >&5
  11812. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  11813. if test "${ac_cv_func_shl_load+set}" = set; then
  11814. echo $ECHO_N "(cached) $ECHO_C" >&6
  11815. else
  11816. cat >conftest.$ac_ext <<_ACEOF
  11817. /* confdefs.h. */
  11818. _ACEOF
  11819. cat confdefs.h >>conftest.$ac_ext
  11820. cat >>conftest.$ac_ext <<_ACEOF
  11821. /* end confdefs.h. */
  11822. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  11823. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11824. #define shl_load innocuous_shl_load
  11825. /* System header to define __stub macros and hopefully few prototypes,
  11826. which can conflict with char shl_load (); below.
  11827. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11828. <limits.h> exists even on freestanding compilers. */
  11829. #ifdef __STDC__
  11830. # include <limits.h>
  11831. #else
  11832. # include <assert.h>
  11833. #endif
  11834. #undef shl_load
  11835. /* Override any GCC internal prototype to avoid an error.
  11836. Use char because int might match the return type of a GCC
  11837. builtin and then its argument prototype would still apply. */
  11838. #ifdef __cplusplus
  11839. extern "C"
  11840. #endif
  11841. char shl_load ();
  11842. /* The GNU C library defines this for functions which it implements
  11843. to always fail with ENOSYS. Some functions are actually named
  11844. something starting with __ and the normal name is an alias. */
  11845. #if defined __stub_shl_load || defined __stub___shl_load
  11846. choke me
  11847. #endif
  11848. int
  11849. main ()
  11850. {
  11851. return shl_load ();
  11852. ;
  11853. return 0;
  11854. }
  11855. _ACEOF
  11856. rm -f conftest.$ac_objext conftest$ac_exeext
  11857. if { (ac_try="$ac_link"
  11858. case "(($ac_try" in
  11859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11860. *) ac_try_echo=$ac_try;;
  11861. esac
  11862. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11863. (eval "$ac_link") 2>conftest.er1
  11864. ac_status=$?
  11865. grep -v '^ *+' conftest.er1 >conftest.err
  11866. rm -f conftest.er1
  11867. cat conftest.err >&5
  11868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11869. (exit $ac_status); } && {
  11870. test -z "$ac_cxx_werror_flag" ||
  11871. test ! -s conftest.err
  11872. } && test -s conftest$ac_exeext &&
  11873. $as_test_x conftest$ac_exeext; then
  11874. ac_cv_func_shl_load=yes
  11875. else
  11876. echo "$as_me: failed program was:" >&5
  11877. sed 's/^/| /' conftest.$ac_ext >&5
  11878. ac_cv_func_shl_load=no
  11879. fi
  11880. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11881. conftest$ac_exeext conftest.$ac_ext
  11882. fi
  11883. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  11884. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  11885. if test $ac_cv_func_shl_load = yes; then
  11886. lt_cv_dlopen="shl_load"
  11887. else
  11888. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  11889. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  11890. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  11891. echo $ECHO_N "(cached) $ECHO_C" >&6
  11892. else
  11893. ac_check_lib_save_LIBS=$LIBS
  11894. LIBS="-ldld $LIBS"
  11895. cat >conftest.$ac_ext <<_ACEOF
  11896. /* confdefs.h. */
  11897. _ACEOF
  11898. cat confdefs.h >>conftest.$ac_ext
  11899. cat >>conftest.$ac_ext <<_ACEOF
  11900. /* end confdefs.h. */
  11901. /* Override any GCC internal prototype to avoid an error.
  11902. Use char because int might match the return type of a GCC
  11903. builtin and then its argument prototype would still apply. */
  11904. #ifdef __cplusplus
  11905. extern "C"
  11906. #endif
  11907. char shl_load ();
  11908. int
  11909. main ()
  11910. {
  11911. return shl_load ();
  11912. ;
  11913. return 0;
  11914. }
  11915. _ACEOF
  11916. rm -f conftest.$ac_objext conftest$ac_exeext
  11917. if { (ac_try="$ac_link"
  11918. case "(($ac_try" in
  11919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11920. *) ac_try_echo=$ac_try;;
  11921. esac
  11922. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11923. (eval "$ac_link") 2>conftest.er1
  11924. ac_status=$?
  11925. grep -v '^ *+' conftest.er1 >conftest.err
  11926. rm -f conftest.er1
  11927. cat conftest.err >&5
  11928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11929. (exit $ac_status); } && {
  11930. test -z "$ac_cxx_werror_flag" ||
  11931. test ! -s conftest.err
  11932. } && test -s conftest$ac_exeext &&
  11933. $as_test_x conftest$ac_exeext; then
  11934. ac_cv_lib_dld_shl_load=yes
  11935. else
  11936. echo "$as_me: failed program was:" >&5
  11937. sed 's/^/| /' conftest.$ac_ext >&5
  11938. ac_cv_lib_dld_shl_load=no
  11939. fi
  11940. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11941. conftest$ac_exeext conftest.$ac_ext
  11942. LIBS=$ac_check_lib_save_LIBS
  11943. fi
  11944. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  11945. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  11946. if test $ac_cv_lib_dld_shl_load = yes; then
  11947. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  11948. else
  11949. { echo "$as_me:$LINENO: checking for dlopen" >&5
  11950. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  11951. if test "${ac_cv_func_dlopen+set}" = set; then
  11952. echo $ECHO_N "(cached) $ECHO_C" >&6
  11953. else
  11954. cat >conftest.$ac_ext <<_ACEOF
  11955. /* confdefs.h. */
  11956. _ACEOF
  11957. cat confdefs.h >>conftest.$ac_ext
  11958. cat >>conftest.$ac_ext <<_ACEOF
  11959. /* end confdefs.h. */
  11960. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  11961. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11962. #define dlopen innocuous_dlopen
  11963. /* System header to define __stub macros and hopefully few prototypes,
  11964. which can conflict with char dlopen (); below.
  11965. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11966. <limits.h> exists even on freestanding compilers. */
  11967. #ifdef __STDC__
  11968. # include <limits.h>
  11969. #else
  11970. # include <assert.h>
  11971. #endif
  11972. #undef dlopen
  11973. /* Override any GCC internal prototype to avoid an error.
  11974. Use char because int might match the return type of a GCC
  11975. builtin and then its argument prototype would still apply. */
  11976. #ifdef __cplusplus
  11977. extern "C"
  11978. #endif
  11979. char dlopen ();
  11980. /* The GNU C library defines this for functions which it implements
  11981. to always fail with ENOSYS. Some functions are actually named
  11982. something starting with __ and the normal name is an alias. */
  11983. #if defined __stub_dlopen || defined __stub___dlopen
  11984. choke me
  11985. #endif
  11986. int
  11987. main ()
  11988. {
  11989. return dlopen ();
  11990. ;
  11991. return 0;
  11992. }
  11993. _ACEOF
  11994. rm -f conftest.$ac_objext conftest$ac_exeext
  11995. if { (ac_try="$ac_link"
  11996. case "(($ac_try" in
  11997. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11998. *) ac_try_echo=$ac_try;;
  11999. esac
  12000. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12001. (eval "$ac_link") 2>conftest.er1
  12002. ac_status=$?
  12003. grep -v '^ *+' conftest.er1 >conftest.err
  12004. rm -f conftest.er1
  12005. cat conftest.err >&5
  12006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12007. (exit $ac_status); } && {
  12008. test -z "$ac_cxx_werror_flag" ||
  12009. test ! -s conftest.err
  12010. } && test -s conftest$ac_exeext &&
  12011. $as_test_x conftest$ac_exeext; then
  12012. ac_cv_func_dlopen=yes
  12013. else
  12014. echo "$as_me: failed program was:" >&5
  12015. sed 's/^/| /' conftest.$ac_ext >&5
  12016. ac_cv_func_dlopen=no
  12017. fi
  12018. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12019. conftest$ac_exeext conftest.$ac_ext
  12020. fi
  12021. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  12022. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  12023. if test $ac_cv_func_dlopen = yes; then
  12024. lt_cv_dlopen="dlopen"
  12025. else
  12026. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  12027. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  12028. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  12029. echo $ECHO_N "(cached) $ECHO_C" >&6
  12030. else
  12031. ac_check_lib_save_LIBS=$LIBS
  12032. LIBS="-ldl $LIBS"
  12033. cat >conftest.$ac_ext <<_ACEOF
  12034. /* confdefs.h. */
  12035. _ACEOF
  12036. cat confdefs.h >>conftest.$ac_ext
  12037. cat >>conftest.$ac_ext <<_ACEOF
  12038. /* end confdefs.h. */
  12039. /* Override any GCC internal prototype to avoid an error.
  12040. Use char because int might match the return type of a GCC
  12041. builtin and then its argument prototype would still apply. */
  12042. #ifdef __cplusplus
  12043. extern "C"
  12044. #endif
  12045. char dlopen ();
  12046. int
  12047. main ()
  12048. {
  12049. return dlopen ();
  12050. ;
  12051. return 0;
  12052. }
  12053. _ACEOF
  12054. rm -f conftest.$ac_objext conftest$ac_exeext
  12055. if { (ac_try="$ac_link"
  12056. case "(($ac_try" in
  12057. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12058. *) ac_try_echo=$ac_try;;
  12059. esac
  12060. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12061. (eval "$ac_link") 2>conftest.er1
  12062. ac_status=$?
  12063. grep -v '^ *+' conftest.er1 >conftest.err
  12064. rm -f conftest.er1
  12065. cat conftest.err >&5
  12066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12067. (exit $ac_status); } && {
  12068. test -z "$ac_cxx_werror_flag" ||
  12069. test ! -s conftest.err
  12070. } && test -s conftest$ac_exeext &&
  12071. $as_test_x conftest$ac_exeext; then
  12072. ac_cv_lib_dl_dlopen=yes
  12073. else
  12074. echo "$as_me: failed program was:" >&5
  12075. sed 's/^/| /' conftest.$ac_ext >&5
  12076. ac_cv_lib_dl_dlopen=no
  12077. fi
  12078. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12079. conftest$ac_exeext conftest.$ac_ext
  12080. LIBS=$ac_check_lib_save_LIBS
  12081. fi
  12082. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  12083. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  12084. if test $ac_cv_lib_dl_dlopen = yes; then
  12085. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  12086. else
  12087. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  12088. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  12089. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  12090. echo $ECHO_N "(cached) $ECHO_C" >&6
  12091. else
  12092. ac_check_lib_save_LIBS=$LIBS
  12093. LIBS="-lsvld $LIBS"
  12094. cat >conftest.$ac_ext <<_ACEOF
  12095. /* confdefs.h. */
  12096. _ACEOF
  12097. cat confdefs.h >>conftest.$ac_ext
  12098. cat >>conftest.$ac_ext <<_ACEOF
  12099. /* end confdefs.h. */
  12100. /* Override any GCC internal prototype to avoid an error.
  12101. Use char because int might match the return type of a GCC
  12102. builtin and then its argument prototype would still apply. */
  12103. #ifdef __cplusplus
  12104. extern "C"
  12105. #endif
  12106. char dlopen ();
  12107. int
  12108. main ()
  12109. {
  12110. return dlopen ();
  12111. ;
  12112. return 0;
  12113. }
  12114. _ACEOF
  12115. rm -f conftest.$ac_objext conftest$ac_exeext
  12116. if { (ac_try="$ac_link"
  12117. case "(($ac_try" in
  12118. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12119. *) ac_try_echo=$ac_try;;
  12120. esac
  12121. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12122. (eval "$ac_link") 2>conftest.er1
  12123. ac_status=$?
  12124. grep -v '^ *+' conftest.er1 >conftest.err
  12125. rm -f conftest.er1
  12126. cat conftest.err >&5
  12127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12128. (exit $ac_status); } && {
  12129. test -z "$ac_cxx_werror_flag" ||
  12130. test ! -s conftest.err
  12131. } && test -s conftest$ac_exeext &&
  12132. $as_test_x conftest$ac_exeext; then
  12133. ac_cv_lib_svld_dlopen=yes
  12134. else
  12135. echo "$as_me: failed program was:" >&5
  12136. sed 's/^/| /' conftest.$ac_ext >&5
  12137. ac_cv_lib_svld_dlopen=no
  12138. fi
  12139. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12140. conftest$ac_exeext conftest.$ac_ext
  12141. LIBS=$ac_check_lib_save_LIBS
  12142. fi
  12143. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  12144. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  12145. if test $ac_cv_lib_svld_dlopen = yes; then
  12146. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  12147. else
  12148. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  12149. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  12150. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  12151. echo $ECHO_N "(cached) $ECHO_C" >&6
  12152. else
  12153. ac_check_lib_save_LIBS=$LIBS
  12154. LIBS="-ldld $LIBS"
  12155. cat >conftest.$ac_ext <<_ACEOF
  12156. /* confdefs.h. */
  12157. _ACEOF
  12158. cat confdefs.h >>conftest.$ac_ext
  12159. cat >>conftest.$ac_ext <<_ACEOF
  12160. /* end confdefs.h. */
  12161. /* Override any GCC internal prototype to avoid an error.
  12162. Use char because int might match the return type of a GCC
  12163. builtin and then its argument prototype would still apply. */
  12164. #ifdef __cplusplus
  12165. extern "C"
  12166. #endif
  12167. char dld_link ();
  12168. int
  12169. main ()
  12170. {
  12171. return dld_link ();
  12172. ;
  12173. return 0;
  12174. }
  12175. _ACEOF
  12176. rm -f conftest.$ac_objext conftest$ac_exeext
  12177. if { (ac_try="$ac_link"
  12178. case "(($ac_try" in
  12179. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12180. *) ac_try_echo=$ac_try;;
  12181. esac
  12182. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12183. (eval "$ac_link") 2>conftest.er1
  12184. ac_status=$?
  12185. grep -v '^ *+' conftest.er1 >conftest.err
  12186. rm -f conftest.er1
  12187. cat conftest.err >&5
  12188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12189. (exit $ac_status); } && {
  12190. test -z "$ac_cxx_werror_flag" ||
  12191. test ! -s conftest.err
  12192. } && test -s conftest$ac_exeext &&
  12193. $as_test_x conftest$ac_exeext; then
  12194. ac_cv_lib_dld_dld_link=yes
  12195. else
  12196. echo "$as_me: failed program was:" >&5
  12197. sed 's/^/| /' conftest.$ac_ext >&5
  12198. ac_cv_lib_dld_dld_link=no
  12199. fi
  12200. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12201. conftest$ac_exeext conftest.$ac_ext
  12202. LIBS=$ac_check_lib_save_LIBS
  12203. fi
  12204. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  12205. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  12206. if test $ac_cv_lib_dld_dld_link = yes; then
  12207. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  12208. fi
  12209. fi
  12210. fi
  12211. fi
  12212. fi
  12213. fi
  12214. ;;
  12215. esac
  12216. if test "x$lt_cv_dlopen" != xno; then
  12217. enable_dlopen=yes
  12218. else
  12219. enable_dlopen=no
  12220. fi
  12221. case $lt_cv_dlopen in
  12222. dlopen)
  12223. save_CPPFLAGS="$CPPFLAGS"
  12224. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  12225. save_LDFLAGS="$LDFLAGS"
  12226. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  12227. save_LIBS="$LIBS"
  12228. LIBS="$lt_cv_dlopen_libs $LIBS"
  12229. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  12230. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  12231. if test "${lt_cv_dlopen_self+set}" = set; then
  12232. echo $ECHO_N "(cached) $ECHO_C" >&6
  12233. else
  12234. if test "$cross_compiling" = yes; then :
  12235. lt_cv_dlopen_self=cross
  12236. else
  12237. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12238. lt_status=$lt_dlunknown
  12239. cat > conftest.$ac_ext <<EOF
  12240. #line 13619 "configure"
  12241. #include "confdefs.h"
  12242. #if HAVE_DLFCN_H
  12243. #include <dlfcn.h>
  12244. #endif
  12245. #include <stdio.h>
  12246. #ifdef RTLD_GLOBAL
  12247. # define LT_DLGLOBAL RTLD_GLOBAL
  12248. #else
  12249. # ifdef DL_GLOBAL
  12250. # define LT_DLGLOBAL DL_GLOBAL
  12251. # else
  12252. # define LT_DLGLOBAL 0
  12253. # endif
  12254. #endif
  12255. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12256. find out it does not work in some platform. */
  12257. #ifndef LT_DLLAZY_OR_NOW
  12258. # ifdef RTLD_LAZY
  12259. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12260. # else
  12261. # ifdef DL_LAZY
  12262. # define LT_DLLAZY_OR_NOW DL_LAZY
  12263. # else
  12264. # ifdef RTLD_NOW
  12265. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12266. # else
  12267. # ifdef DL_NOW
  12268. # define LT_DLLAZY_OR_NOW DL_NOW
  12269. # else
  12270. # define LT_DLLAZY_OR_NOW 0
  12271. # endif
  12272. # endif
  12273. # endif
  12274. # endif
  12275. #endif
  12276. #ifdef __cplusplus
  12277. extern "C" void exit (int);
  12278. #endif
  12279. void fnord() { int i=42;}
  12280. int main ()
  12281. {
  12282. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12283. int status = $lt_dlunknown;
  12284. if (self)
  12285. {
  12286. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12287. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12288. /* dlclose (self); */
  12289. }
  12290. exit (status);
  12291. }
  12292. EOF
  12293. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12294. (eval $ac_link) 2>&5
  12295. ac_status=$?
  12296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12297. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  12298. (./conftest; exit; ) 2>/dev/null
  12299. lt_status=$?
  12300. case x$lt_status in
  12301. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  12302. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  12303. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  12304. esac
  12305. else :
  12306. # compilation failed
  12307. lt_cv_dlopen_self=no
  12308. fi
  12309. fi
  12310. rm -fr conftest*
  12311. fi
  12312. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  12313. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  12314. if test "x$lt_cv_dlopen_self" = xyes; then
  12315. LDFLAGS="$LDFLAGS $link_static_flag"
  12316. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  12317. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  12318. if test "${lt_cv_dlopen_self_static+set}" = set; then
  12319. echo $ECHO_N "(cached) $ECHO_C" >&6
  12320. else
  12321. if test "$cross_compiling" = yes; then :
  12322. lt_cv_dlopen_self_static=cross
  12323. else
  12324. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12325. lt_status=$lt_dlunknown
  12326. cat > conftest.$ac_ext <<EOF
  12327. #line 13717 "configure"
  12328. #include "confdefs.h"
  12329. #if HAVE_DLFCN_H
  12330. #include <dlfcn.h>
  12331. #endif
  12332. #include <stdio.h>
  12333. #ifdef RTLD_GLOBAL
  12334. # define LT_DLGLOBAL RTLD_GLOBAL
  12335. #else
  12336. # ifdef DL_GLOBAL
  12337. # define LT_DLGLOBAL DL_GLOBAL
  12338. # else
  12339. # define LT_DLGLOBAL 0
  12340. # endif
  12341. #endif
  12342. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12343. find out it does not work in some platform. */
  12344. #ifndef LT_DLLAZY_OR_NOW
  12345. # ifdef RTLD_LAZY
  12346. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12347. # else
  12348. # ifdef DL_LAZY
  12349. # define LT_DLLAZY_OR_NOW DL_LAZY
  12350. # else
  12351. # ifdef RTLD_NOW
  12352. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12353. # else
  12354. # ifdef DL_NOW
  12355. # define LT_DLLAZY_OR_NOW DL_NOW
  12356. # else
  12357. # define LT_DLLAZY_OR_NOW 0
  12358. # endif
  12359. # endif
  12360. # endif
  12361. # endif
  12362. #endif
  12363. #ifdef __cplusplus
  12364. extern "C" void exit (int);
  12365. #endif
  12366. void fnord() { int i=42;}
  12367. int main ()
  12368. {
  12369. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12370. int status = $lt_dlunknown;
  12371. if (self)
  12372. {
  12373. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12374. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12375. /* dlclose (self); */
  12376. }
  12377. exit (status);
  12378. }
  12379. EOF
  12380. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12381. (eval $ac_link) 2>&5
  12382. ac_status=$?
  12383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12384. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  12385. (./conftest; exit; ) 2>/dev/null
  12386. lt_status=$?
  12387. case x$lt_status in
  12388. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  12389. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  12390. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  12391. esac
  12392. else :
  12393. # compilation failed
  12394. lt_cv_dlopen_self_static=no
  12395. fi
  12396. fi
  12397. rm -fr conftest*
  12398. fi
  12399. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  12400. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  12401. fi
  12402. CPPFLAGS="$save_CPPFLAGS"
  12403. LDFLAGS="$save_LDFLAGS"
  12404. LIBS="$save_LIBS"
  12405. ;;
  12406. esac
  12407. case $lt_cv_dlopen_self in
  12408. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  12409. *) enable_dlopen_self=unknown ;;
  12410. esac
  12411. case $lt_cv_dlopen_self_static in
  12412. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  12413. *) enable_dlopen_self_static=unknown ;;
  12414. esac
  12415. fi
  12416. # The else clause should only fire when bootstrapping the
  12417. # libtool distribution, otherwise you forgot to ship ltmain.sh
  12418. # with your package, and you will get complaints that there are
  12419. # no rules to generate ltmain.sh.
  12420. if test -f "$ltmain"; then
  12421. # See if we are running on zsh, and set the options which allow our commands through
  12422. # without removal of \ escapes.
  12423. if test -n "${ZSH_VERSION+set}" ; then
  12424. setopt NO_GLOB_SUBST
  12425. fi
  12426. # Now quote all the things that may contain metacharacters while being
  12427. # careful not to overquote the AC_SUBSTed values. We take copies of the
  12428. # variables and quote the copies for generation of the libtool script.
  12429. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  12430. SED SHELL STRIP \
  12431. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  12432. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  12433. deplibs_check_method reload_flag reload_cmds need_locks \
  12434. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  12435. lt_cv_sys_global_symbol_to_c_name_address \
  12436. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  12437. old_postinstall_cmds old_postuninstall_cmds \
  12438. compiler_CXX \
  12439. CC_CXX \
  12440. LD_CXX \
  12441. lt_prog_compiler_wl_CXX \
  12442. lt_prog_compiler_pic_CXX \
  12443. lt_prog_compiler_static_CXX \
  12444. lt_prog_compiler_no_builtin_flag_CXX \
  12445. export_dynamic_flag_spec_CXX \
  12446. thread_safe_flag_spec_CXX \
  12447. whole_archive_flag_spec_CXX \
  12448. enable_shared_with_static_runtimes_CXX \
  12449. old_archive_cmds_CXX \
  12450. old_archive_from_new_cmds_CXX \
  12451. predep_objects_CXX \
  12452. postdep_objects_CXX \
  12453. predeps_CXX \
  12454. postdeps_CXX \
  12455. compiler_lib_search_path_CXX \
  12456. archive_cmds_CXX \
  12457. archive_expsym_cmds_CXX \
  12458. postinstall_cmds_CXX \
  12459. postuninstall_cmds_CXX \
  12460. old_archive_from_expsyms_cmds_CXX \
  12461. allow_undefined_flag_CXX \
  12462. no_undefined_flag_CXX \
  12463. export_symbols_cmds_CXX \
  12464. hardcode_libdir_flag_spec_CXX \
  12465. hardcode_libdir_flag_spec_ld_CXX \
  12466. hardcode_libdir_separator_CXX \
  12467. hardcode_automatic_CXX \
  12468. module_cmds_CXX \
  12469. module_expsym_cmds_CXX \
  12470. lt_cv_prog_compiler_c_o_CXX \
  12471. exclude_expsyms_CXX \
  12472. include_expsyms_CXX; do
  12473. case $var in
  12474. old_archive_cmds_CXX | \
  12475. old_archive_from_new_cmds_CXX | \
  12476. archive_cmds_CXX | \
  12477. archive_expsym_cmds_CXX | \
  12478. module_cmds_CXX | \
  12479. module_expsym_cmds_CXX | \
  12480. old_archive_from_expsyms_cmds_CXX | \
  12481. export_symbols_cmds_CXX | \
  12482. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  12483. postinstall_cmds | postuninstall_cmds | \
  12484. old_postinstall_cmds | old_postuninstall_cmds | \
  12485. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  12486. # Double-quote double-evaled strings.
  12487. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  12488. ;;
  12489. *)
  12490. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  12491. ;;
  12492. esac
  12493. done
  12494. case $lt_echo in
  12495. *'\$0 --fallback-echo"')
  12496. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  12497. ;;
  12498. esac
  12499. cfgfile="$ofile"
  12500. cat <<__EOF__ >> "$cfgfile"
  12501. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  12502. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12503. # Shell to use when invoking shell scripts.
  12504. SHELL=$lt_SHELL
  12505. # Whether or not to build shared libraries.
  12506. build_libtool_libs=$enable_shared
  12507. # Whether or not to build static libraries.
  12508. build_old_libs=$enable_static
  12509. # Whether or not to add -lc for building shared libraries.
  12510. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  12511. # Whether or not to disallow shared libs when runtime libs are static
  12512. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  12513. # Whether or not to optimize for fast installation.
  12514. fast_install=$enable_fast_install
  12515. # The host system.
  12516. host_alias=$host_alias
  12517. host=$host
  12518. host_os=$host_os
  12519. # The build system.
  12520. build_alias=$build_alias
  12521. build=$build
  12522. build_os=$build_os
  12523. # An echo program that does not interpret backslashes.
  12524. echo=$lt_echo
  12525. # The archiver.
  12526. AR=$lt_AR
  12527. AR_FLAGS=$lt_AR_FLAGS
  12528. # A C compiler.
  12529. LTCC=$lt_LTCC
  12530. # A language-specific compiler.
  12531. CC=$lt_compiler_CXX
  12532. # Is the compiler the GNU C compiler?
  12533. with_gcc=$GCC_CXX
  12534. # An ERE matcher.
  12535. EGREP=$lt_EGREP
  12536. # The linker used to build libraries.
  12537. LD=$lt_LD_CXX
  12538. # Whether we need hard or soft links.
  12539. LN_S=$lt_LN_S
  12540. # A BSD-compatible nm program.
  12541. NM=$lt_NM
  12542. # A symbol stripping program
  12543. STRIP=$lt_STRIP
  12544. # Used to examine libraries when file_magic_cmd begins "file"
  12545. MAGIC_CMD=$MAGIC_CMD
  12546. # Used on cygwin: DLL creation program.
  12547. DLLTOOL="$DLLTOOL"
  12548. # Used on cygwin: object dumper.
  12549. OBJDUMP="$OBJDUMP"
  12550. # Used on cygwin: assembler.
  12551. AS="$AS"
  12552. # The name of the directory that contains temporary libtool files.
  12553. objdir=$objdir
  12554. # How to create reloadable object files.
  12555. reload_flag=$lt_reload_flag
  12556. reload_cmds=$lt_reload_cmds
  12557. # How to pass a linker flag through the compiler.
  12558. wl=$lt_lt_prog_compiler_wl_CXX
  12559. # Object file suffix (normally "o").
  12560. objext="$ac_objext"
  12561. # Old archive suffix (normally "a").
  12562. libext="$libext"
  12563. # Shared library suffix (normally ".so").
  12564. shrext_cmds='$shrext_cmds'
  12565. # Executable file suffix (normally "").
  12566. exeext="$exeext"
  12567. # Additional compiler flags for building library objects.
  12568. pic_flag=$lt_lt_prog_compiler_pic_CXX
  12569. pic_mode=$pic_mode
  12570. # What is the maximum length of a command?
  12571. max_cmd_len=$lt_cv_sys_max_cmd_len
  12572. # Does compiler simultaneously support -c and -o options?
  12573. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  12574. # Must we lock files when doing compilation?
  12575. need_locks=$lt_need_locks
  12576. # Do we need the lib prefix for modules?
  12577. need_lib_prefix=$need_lib_prefix
  12578. # Do we need a version for libraries?
  12579. need_version=$need_version
  12580. # Whether dlopen is supported.
  12581. dlopen_support=$enable_dlopen
  12582. # Whether dlopen of programs is supported.
  12583. dlopen_self=$enable_dlopen_self
  12584. # Whether dlopen of statically linked programs is supported.
  12585. dlopen_self_static=$enable_dlopen_self_static
  12586. # Compiler flag to prevent dynamic linking.
  12587. link_static_flag=$lt_lt_prog_compiler_static_CXX
  12588. # Compiler flag to turn off builtin functions.
  12589. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  12590. # Compiler flag to allow reflexive dlopens.
  12591. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  12592. # Compiler flag to generate shared objects directly from archives.
  12593. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  12594. # Compiler flag to generate thread-safe objects.
  12595. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  12596. # Library versioning type.
  12597. version_type=$version_type
  12598. # Format of library name prefix.
  12599. libname_spec=$lt_libname_spec
  12600. # List of archive names. First name is the real one, the rest are links.
  12601. # The last name is the one that the linker finds with -lNAME.
  12602. library_names_spec=$lt_library_names_spec
  12603. # The coded name of the library, if different from the real name.
  12604. soname_spec=$lt_soname_spec
  12605. # Commands used to build and install an old-style archive.
  12606. RANLIB=$lt_RANLIB
  12607. old_archive_cmds=$lt_old_archive_cmds_CXX
  12608. old_postinstall_cmds=$lt_old_postinstall_cmds
  12609. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12610. # Create an old-style archive from a shared archive.
  12611. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  12612. # Create a temporary old-style archive to link instead of a shared archive.
  12613. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  12614. # Commands used to build and install a shared archive.
  12615. archive_cmds=$lt_archive_cmds_CXX
  12616. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  12617. postinstall_cmds=$lt_postinstall_cmds
  12618. postuninstall_cmds=$lt_postuninstall_cmds
  12619. # Commands used to build a loadable module (assumed same as above if empty)
  12620. module_cmds=$lt_module_cmds_CXX
  12621. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  12622. # Commands to strip libraries.
  12623. old_striplib=$lt_old_striplib
  12624. striplib=$lt_striplib
  12625. # Dependencies to place before the objects being linked to create a
  12626. # shared library.
  12627. predep_objects=$lt_predep_objects_CXX
  12628. # Dependencies to place after the objects being linked to create a
  12629. # shared library.
  12630. postdep_objects=$lt_postdep_objects_CXX
  12631. # Dependencies to place before the objects being linked to create a
  12632. # shared library.
  12633. predeps=$lt_predeps_CXX
  12634. # Dependencies to place after the objects being linked to create a
  12635. # shared library.
  12636. postdeps=$lt_postdeps_CXX
  12637. # The library search path used internally by the compiler when linking
  12638. # a shared library.
  12639. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  12640. # Method to check whether dependent libraries are shared objects.
  12641. deplibs_check_method=$lt_deplibs_check_method
  12642. # Command to use when deplibs_check_method == file_magic.
  12643. file_magic_cmd=$lt_file_magic_cmd
  12644. # Flag that allows shared libraries with undefined symbols to be built.
  12645. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  12646. # Flag that forces no undefined symbols.
  12647. no_undefined_flag=$lt_no_undefined_flag_CXX
  12648. # Commands used to finish a libtool library installation in a directory.
  12649. finish_cmds=$lt_finish_cmds
  12650. # Same as above, but a single script fragment to be evaled but not shown.
  12651. finish_eval=$lt_finish_eval
  12652. # Take the output of nm and produce a listing of raw symbols and C names.
  12653. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12654. # Transform the output of nm in a proper C declaration
  12655. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12656. # Transform the output of nm in a C name address pair
  12657. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12658. # This is the shared library runtime path variable.
  12659. runpath_var=$runpath_var
  12660. # This is the shared library path variable.
  12661. shlibpath_var=$shlibpath_var
  12662. # Is shlibpath searched before the hard-coded library search path?
  12663. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12664. # How to hardcode a shared library path into an executable.
  12665. hardcode_action=$hardcode_action_CXX
  12666. # Whether we should hardcode library paths into libraries.
  12667. hardcode_into_libs=$hardcode_into_libs
  12668. # Flag to hardcode \$libdir into a binary during linking.
  12669. # This must work even if \$libdir does not exist.
  12670. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  12671. # If ld is used when linking, flag to hardcode \$libdir into
  12672. # a binary during linking. This must work even if \$libdir does
  12673. # not exist.
  12674. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  12675. # Whether we need a single -rpath flag with a separated argument.
  12676. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  12677. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  12678. # resulting binary.
  12679. hardcode_direct=$hardcode_direct_CXX
  12680. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  12681. # resulting binary.
  12682. hardcode_minus_L=$hardcode_minus_L_CXX
  12683. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  12684. # the resulting binary.
  12685. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  12686. # Set to yes if building a shared library automatically hardcodes DIR into the library
  12687. # and all subsequent libraries and executables linked against it.
  12688. hardcode_automatic=$hardcode_automatic_CXX
  12689. # Variables whose values should be saved in libtool wrapper scripts and
  12690. # restored at relink time.
  12691. variables_saved_for_relink="$variables_saved_for_relink"
  12692. # Whether libtool must link a program against all its dependency libraries.
  12693. link_all_deplibs=$link_all_deplibs_CXX
  12694. # Compile-time system search path for libraries
  12695. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12696. # Run-time system search path for libraries
  12697. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12698. # Fix the shell variable \$srcfile for the compiler.
  12699. fix_srcfile_path="$fix_srcfile_path_CXX"
  12700. # Set to yes if exported symbols are required.
  12701. always_export_symbols=$always_export_symbols_CXX
  12702. # The commands to list exported symbols.
  12703. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  12704. # The commands to extract the exported symbol list from a shared archive.
  12705. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12706. # Symbols that should not be listed in the preloaded symbols.
  12707. exclude_expsyms=$lt_exclude_expsyms_CXX
  12708. # Symbols that must always be exported.
  12709. include_expsyms=$lt_include_expsyms_CXX
  12710. # ### END LIBTOOL TAG CONFIG: $tagname
  12711. __EOF__
  12712. else
  12713. # If there is no Makefile yet, we rely on a make rule to execute
  12714. # `config.status --recheck' to rerun these tests and create the
  12715. # libtool script then.
  12716. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  12717. if test -f "$ltmain_in"; then
  12718. test -f Makefile && make "$ltmain"
  12719. fi
  12720. fi
  12721. ac_ext=c
  12722. ac_cpp='$CPP $CPPFLAGS'
  12723. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12724. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12725. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12726. CC=$lt_save_CC
  12727. LDCXX=$LD
  12728. LD=$lt_save_LD
  12729. GCC=$lt_save_GCC
  12730. with_gnu_ldcxx=$with_gnu_ld
  12731. with_gnu_ld=$lt_save_with_gnu_ld
  12732. lt_cv_path_LDCXX=$lt_cv_path_LD
  12733. lt_cv_path_LD=$lt_save_path_LD
  12734. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12735. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12736. else
  12737. tagname=""
  12738. fi
  12739. ;;
  12740. F77)
  12741. if test -n "$F77" && test "X$F77" != "Xno"; then
  12742. ac_ext=f
  12743. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  12744. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12745. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  12746. archive_cmds_need_lc_F77=no
  12747. allow_undefined_flag_F77=
  12748. always_export_symbols_F77=no
  12749. archive_expsym_cmds_F77=
  12750. export_dynamic_flag_spec_F77=
  12751. hardcode_direct_F77=no
  12752. hardcode_libdir_flag_spec_F77=
  12753. hardcode_libdir_flag_spec_ld_F77=
  12754. hardcode_libdir_separator_F77=
  12755. hardcode_minus_L_F77=no
  12756. hardcode_automatic_F77=no
  12757. module_cmds_F77=
  12758. module_expsym_cmds_F77=
  12759. link_all_deplibs_F77=unknown
  12760. old_archive_cmds_F77=$old_archive_cmds
  12761. no_undefined_flag_F77=
  12762. whole_archive_flag_spec_F77=
  12763. enable_shared_with_static_runtimes_F77=no
  12764. # Source file extension for f77 test sources.
  12765. ac_ext=f
  12766. # Object file extension for compiled f77 test sources.
  12767. objext=o
  12768. objext_F77=$objext
  12769. # Code to be used in simple compile tests
  12770. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  12771. # Code to be used in simple link tests
  12772. lt_simple_link_test_code=" program t\n end\n"
  12773. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12774. # If no C compiler was specified, use CC.
  12775. LTCC=${LTCC-"$CC"}
  12776. # Allow CC to be a program name with arguments.
  12777. compiler=$CC
  12778. # save warnings/boilerplate of simple test code
  12779. ac_outfile=conftest.$ac_objext
  12780. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  12781. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  12782. _lt_compiler_boilerplate=`cat conftest.err`
  12783. $rm conftest*
  12784. ac_outfile=conftest.$ac_objext
  12785. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  12786. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  12787. _lt_linker_boilerplate=`cat conftest.err`
  12788. $rm conftest*
  12789. # Allow CC to be a program name with arguments.
  12790. lt_save_CC="$CC"
  12791. CC=${F77-"f77"}
  12792. compiler=$CC
  12793. compiler_F77=$CC
  12794. for cc_temp in $compiler""; do
  12795. case $cc_temp in
  12796. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12797. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12798. \-*) ;;
  12799. *) break;;
  12800. esac
  12801. done
  12802. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12803. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  12804. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  12805. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  12806. echo "${ECHO_T}$can_build_shared" >&6; }
  12807. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  12808. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  12809. test "$can_build_shared" = "no" && enable_shared=no
  12810. # On AIX, shared libraries and static libraries use the same namespace, and
  12811. # are all built from PIC.
  12812. case "$host_os" in
  12813. aix3*)
  12814. test "$enable_shared" = yes && enable_static=no
  12815. if test -n "$RANLIB"; then
  12816. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12817. postinstall_cmds='$RANLIB $lib'
  12818. fi
  12819. ;;
  12820. aix4* | aix5*)
  12821. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  12822. test "$enable_shared" = yes && enable_static=no
  12823. fi
  12824. ;;
  12825. esac
  12826. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  12827. echo "${ECHO_T}$enable_shared" >&6; }
  12828. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  12829. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  12830. # Make sure either enable_shared or enable_static is yes.
  12831. test "$enable_shared" = yes || enable_static=yes
  12832. { echo "$as_me:$LINENO: result: $enable_static" >&5
  12833. echo "${ECHO_T}$enable_static" >&6; }
  12834. test "$ld_shlibs_F77" = no && can_build_shared=no
  12835. GCC_F77="$G77"
  12836. LD_F77="$LD"
  12837. lt_prog_compiler_wl_F77=
  12838. lt_prog_compiler_pic_F77=
  12839. lt_prog_compiler_static_F77=
  12840. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12841. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  12842. if test "$GCC" = yes; then
  12843. lt_prog_compiler_wl_F77='-Wl,'
  12844. lt_prog_compiler_static_F77='-static'
  12845. case $host_os in
  12846. aix*)
  12847. # All AIX code is PIC.
  12848. if test "$host_cpu" = ia64; then
  12849. # AIX 5 now supports IA64 processor
  12850. lt_prog_compiler_static_F77='-Bstatic'
  12851. fi
  12852. ;;
  12853. amigaos*)
  12854. # FIXME: we need at least 68020 code to build shared libraries, but
  12855. # adding the `-m68020' flag to GCC prevents building anything better,
  12856. # like `-m68040'.
  12857. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  12858. ;;
  12859. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12860. # PIC is the default for these OSes.
  12861. ;;
  12862. mingw* | pw32* | os2*)
  12863. # This hack is so that the source file can tell whether it is being
  12864. # built for inclusion in a dll (and should export symbols for example).
  12865. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12866. ;;
  12867. darwin* | rhapsody*)
  12868. # PIC is the default on this platform
  12869. # Common symbols not allowed in MH_DYLIB files
  12870. lt_prog_compiler_pic_F77='-fno-common'
  12871. ;;
  12872. msdosdjgpp*)
  12873. # Just because we use GCC doesn't mean we suddenly get shared libraries
  12874. # on systems that don't support them.
  12875. lt_prog_compiler_can_build_shared_F77=no
  12876. enable_shared=no
  12877. ;;
  12878. sysv4*MP*)
  12879. if test -d /usr/nec; then
  12880. lt_prog_compiler_pic_F77=-Kconform_pic
  12881. fi
  12882. ;;
  12883. hpux*)
  12884. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12885. # not for PA HP-UX.
  12886. case "$host_cpu" in
  12887. hppa*64*|ia64*)
  12888. # +Z the default
  12889. ;;
  12890. *)
  12891. lt_prog_compiler_pic_F77='-fPIC'
  12892. ;;
  12893. esac
  12894. ;;
  12895. *)
  12896. lt_prog_compiler_pic_F77='-fPIC'
  12897. ;;
  12898. esac
  12899. else
  12900. # PORTME Check for flag to pass linker flags through the system compiler.
  12901. case $host_os in
  12902. aix*)
  12903. lt_prog_compiler_wl_F77='-Wl,'
  12904. if test "$host_cpu" = ia64; then
  12905. # AIX 5 now supports IA64 processor
  12906. lt_prog_compiler_static_F77='-Bstatic'
  12907. else
  12908. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  12909. fi
  12910. ;;
  12911. darwin*)
  12912. # PIC is the default on this platform
  12913. # Common symbols not allowed in MH_DYLIB files
  12914. case $cc_basename in
  12915. xlc*)
  12916. lt_prog_compiler_pic_F77='-qnocommon'
  12917. lt_prog_compiler_wl_F77='-Wl,'
  12918. ;;
  12919. esac
  12920. ;;
  12921. mingw* | pw32* | os2*)
  12922. # This hack is so that the source file can tell whether it is being
  12923. # built for inclusion in a dll (and should export symbols for example).
  12924. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12925. ;;
  12926. hpux9* | hpux10* | hpux11*)
  12927. lt_prog_compiler_wl_F77='-Wl,'
  12928. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12929. # not for PA HP-UX.
  12930. case "$host_cpu" in
  12931. hppa*64*|ia64*)
  12932. # +Z the default
  12933. ;;
  12934. *)
  12935. lt_prog_compiler_pic_F77='+Z'
  12936. ;;
  12937. esac
  12938. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12939. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  12940. ;;
  12941. irix5* | irix6* | nonstopux*)
  12942. lt_prog_compiler_wl_F77='-Wl,'
  12943. # PIC (with -KPIC) is the default.
  12944. lt_prog_compiler_static_F77='-non_shared'
  12945. ;;
  12946. newsos6)
  12947. lt_prog_compiler_pic_F77='-KPIC'
  12948. lt_prog_compiler_static_F77='-Bstatic'
  12949. ;;
  12950. linux*)
  12951. case $cc_basename in
  12952. icc* | ecc*)
  12953. lt_prog_compiler_wl_F77='-Wl,'
  12954. lt_prog_compiler_pic_F77='-KPIC'
  12955. lt_prog_compiler_static_F77='-static'
  12956. ;;
  12957. pgcc* | pgf77* | pgf90*)
  12958. # Portland Group compilers (*not* the Pentium gcc compiler,
  12959. # which looks to be a dead project)
  12960. lt_prog_compiler_wl_F77='-Wl,'
  12961. lt_prog_compiler_pic_F77='-fpic'
  12962. lt_prog_compiler_static_F77='-static'
  12963. ;;
  12964. ccc*)
  12965. lt_prog_compiler_wl_F77='-Wl,'
  12966. # All Alpha code is PIC.
  12967. lt_prog_compiler_static_F77='-non_shared'
  12968. ;;
  12969. esac
  12970. ;;
  12971. osf3* | osf4* | osf5*)
  12972. lt_prog_compiler_wl_F77='-Wl,'
  12973. # All OSF/1 code is PIC.
  12974. lt_prog_compiler_static_F77='-non_shared'
  12975. ;;
  12976. sco3.2v5*)
  12977. lt_prog_compiler_pic_F77='-Kpic'
  12978. lt_prog_compiler_static_F77='-dn'
  12979. ;;
  12980. solaris*)
  12981. lt_prog_compiler_pic_F77='-KPIC'
  12982. lt_prog_compiler_static_F77='-Bstatic'
  12983. case $cc_basename in
  12984. f77* | f90* | f95*)
  12985. lt_prog_compiler_wl_F77='-Qoption ld ';;
  12986. *)
  12987. lt_prog_compiler_wl_F77='-Wl,';;
  12988. esac
  12989. ;;
  12990. sunos4*)
  12991. lt_prog_compiler_wl_F77='-Qoption ld '
  12992. lt_prog_compiler_pic_F77='-PIC'
  12993. lt_prog_compiler_static_F77='-Bstatic'
  12994. ;;
  12995. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  12996. lt_prog_compiler_wl_F77='-Wl,'
  12997. lt_prog_compiler_pic_F77='-KPIC'
  12998. lt_prog_compiler_static_F77='-Bstatic'
  12999. ;;
  13000. sysv4*MP*)
  13001. if test -d /usr/nec ;then
  13002. lt_prog_compiler_pic_F77='-Kconform_pic'
  13003. lt_prog_compiler_static_F77='-Bstatic'
  13004. fi
  13005. ;;
  13006. unicos*)
  13007. lt_prog_compiler_wl_F77='-Wl,'
  13008. lt_prog_compiler_can_build_shared_F77=no
  13009. ;;
  13010. uts4*)
  13011. lt_prog_compiler_pic_F77='-pic'
  13012. lt_prog_compiler_static_F77='-Bstatic'
  13013. ;;
  13014. *)
  13015. lt_prog_compiler_can_build_shared_F77=no
  13016. ;;
  13017. esac
  13018. fi
  13019. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  13020. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  13021. #
  13022. # Check to make sure the PIC flag actually works.
  13023. #
  13024. if test -n "$lt_prog_compiler_pic_F77"; then
  13025. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  13026. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  13027. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  13028. echo $ECHO_N "(cached) $ECHO_C" >&6
  13029. else
  13030. lt_prog_compiler_pic_works_F77=no
  13031. ac_outfile=conftest.$ac_objext
  13032. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13033. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  13034. # Insert the option either (1) after the last *FLAGS variable, or
  13035. # (2) before a word containing "conftest.", or (3) at the end.
  13036. # Note that $ac_compile itself does not contain backslashes and begins
  13037. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13038. # The option is referenced via a variable to avoid confusing sed.
  13039. lt_compile=`echo "$ac_compile" | $SED \
  13040. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  13041. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13042. -e 's:$: $lt_compiler_flag:'`
  13043. (eval echo "\"\$as_me:14602: $lt_compile\"" >&5)
  13044. (eval "$lt_compile" 2>conftest.err)
  13045. ac_status=$?
  13046. cat conftest.err >&5
  13047. echo "$as_me:14606: \$? = $ac_status" >&5
  13048. if (exit $ac_status) && test -s "$ac_outfile"; then
  13049. # The compiler can only warn and ignore the option if not recognized
  13050. # So say no if there are warnings other than the usual output.
  13051. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  13052. $SED '/^$/d' conftest.err >conftest.er2
  13053. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  13054. lt_prog_compiler_pic_works_F77=yes
  13055. fi
  13056. fi
  13057. $rm conftest*
  13058. fi
  13059. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  13060. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
  13061. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  13062. case $lt_prog_compiler_pic_F77 in
  13063. "" | " "*) ;;
  13064. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  13065. esac
  13066. else
  13067. lt_prog_compiler_pic_F77=
  13068. lt_prog_compiler_can_build_shared_F77=no
  13069. fi
  13070. fi
  13071. case "$host_os" in
  13072. # For platforms which do not support PIC, -DPIC is meaningless:
  13073. *djgpp*)
  13074. lt_prog_compiler_pic_F77=
  13075. ;;
  13076. *)
  13077. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  13078. ;;
  13079. esac
  13080. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  13081. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  13082. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  13083. echo $ECHO_N "(cached) $ECHO_C" >&6
  13084. else
  13085. lt_cv_prog_compiler_c_o_F77=no
  13086. $rm -r conftest 2>/dev/null
  13087. mkdir conftest
  13088. cd conftest
  13089. mkdir out
  13090. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13091. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13092. # Insert the option either (1) after the last *FLAGS variable, or
  13093. # (2) before a word containing "conftest.", or (3) at the end.
  13094. # Note that $ac_compile itself does not contain backslashes and begins
  13095. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13096. lt_compile=`echo "$ac_compile" | $SED \
  13097. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  13098. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13099. -e 's:$: $lt_compiler_flag:'`
  13100. (eval echo "\"\$as_me:14664: $lt_compile\"" >&5)
  13101. (eval "$lt_compile" 2>out/conftest.err)
  13102. ac_status=$?
  13103. cat out/conftest.err >&5
  13104. echo "$as_me:14668: \$? = $ac_status" >&5
  13105. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13106. then
  13107. # The compiler can only warn and ignore the option if not recognized
  13108. # So say no if there are warnings
  13109. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  13110. $SED '/^$/d' out/conftest.err >out/conftest.er2
  13111. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13112. lt_cv_prog_compiler_c_o_F77=yes
  13113. fi
  13114. fi
  13115. chmod u+w .
  13116. $rm conftest*
  13117. # SGI C++ compiler will create directory out/ii_files/ for
  13118. # template instantiation
  13119. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  13120. $rm out/* && rmdir out
  13121. cd ..
  13122. rmdir conftest
  13123. $rm conftest*
  13124. fi
  13125. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  13126. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  13127. hard_links="nottested"
  13128. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  13129. # do not overwrite the value of need_locks provided by the user
  13130. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  13131. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  13132. hard_links=yes
  13133. $rm conftest*
  13134. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13135. touch conftest.a
  13136. ln conftest.a conftest.b 2>&5 || hard_links=no
  13137. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13138. { echo "$as_me:$LINENO: result: $hard_links" >&5
  13139. echo "${ECHO_T}$hard_links" >&6; }
  13140. if test "$hard_links" = no; then
  13141. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  13142. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  13143. need_locks=warn
  13144. fi
  13145. else
  13146. need_locks=no
  13147. fi
  13148. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13149. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  13150. runpath_var=
  13151. allow_undefined_flag_F77=
  13152. enable_shared_with_static_runtimes_F77=no
  13153. archive_cmds_F77=
  13154. archive_expsym_cmds_F77=
  13155. old_archive_From_new_cmds_F77=
  13156. old_archive_from_expsyms_cmds_F77=
  13157. export_dynamic_flag_spec_F77=
  13158. whole_archive_flag_spec_F77=
  13159. thread_safe_flag_spec_F77=
  13160. hardcode_libdir_flag_spec_F77=
  13161. hardcode_libdir_flag_spec_ld_F77=
  13162. hardcode_libdir_separator_F77=
  13163. hardcode_direct_F77=no
  13164. hardcode_minus_L_F77=no
  13165. hardcode_shlibpath_var_F77=unsupported
  13166. link_all_deplibs_F77=unknown
  13167. hardcode_automatic_F77=no
  13168. module_cmds_F77=
  13169. module_expsym_cmds_F77=
  13170. always_export_symbols_F77=no
  13171. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13172. # include_expsyms should be a list of space-separated symbols to be *always*
  13173. # included in the symbol list
  13174. include_expsyms_F77=
  13175. # exclude_expsyms can be an extended regexp of symbols to exclude
  13176. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  13177. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  13178. # as well as any symbol that contains `d'.
  13179. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  13180. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  13181. # platforms (ab)use it in PIC code, but their linkers get confused if
  13182. # the symbol is explicitly referenced. Since portable code cannot
  13183. # rely on this symbol name, it's probably fine to never include it in
  13184. # preloaded symbol tables.
  13185. extract_expsyms_cmds=
  13186. # Just being paranoid about ensuring that cc_basename is set.
  13187. for cc_temp in $compiler""; do
  13188. case $cc_temp in
  13189. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13190. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13191. \-*) ;;
  13192. *) break;;
  13193. esac
  13194. done
  13195. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13196. case $host_os in
  13197. cygwin* | mingw* | pw32*)
  13198. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  13199. # When not using gcc, we currently assume that we are using
  13200. # Microsoft Visual C++.
  13201. if test "$GCC" != yes; then
  13202. with_gnu_ld=no
  13203. fi
  13204. ;;
  13205. openbsd*)
  13206. with_gnu_ld=no
  13207. ;;
  13208. esac
  13209. ld_shlibs_F77=yes
  13210. if test "$with_gnu_ld" = yes; then
  13211. # If archive_cmds runs LD, not CC, wlarc should be empty
  13212. wlarc='${wl}'
  13213. # Set some defaults for GNU ld with shared library support. These
  13214. # are reset later if shared libraries are not supported. Putting them
  13215. # here allows them to be overridden if necessary.
  13216. runpath_var=LD_RUN_PATH
  13217. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  13218. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  13219. # ancient GNU ld didn't support --whole-archive et. al.
  13220. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  13221. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  13222. else
  13223. whole_archive_flag_spec_F77=
  13224. fi
  13225. supports_anon_versioning=no
  13226. case `$LD -v 2>/dev/null` in
  13227. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  13228. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  13229. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  13230. *\ 2.11.*) ;; # other 2.11 versions
  13231. *) supports_anon_versioning=yes ;;
  13232. esac
  13233. # See if GNU ld supports shared libraries.
  13234. case $host_os in
  13235. aix3* | aix4* | aix5*)
  13236. # On AIX/PPC, the GNU linker is very broken
  13237. if test "$host_cpu" != ia64; then
  13238. ld_shlibs_F77=no
  13239. cat <<EOF 1>&2
  13240. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  13241. *** to be unable to reliably create shared libraries on AIX.
  13242. *** Therefore, libtool is disabling shared libraries support. If you
  13243. *** really care for shared libraries, you may want to modify your PATH
  13244. *** so that a non-GNU linker is found, and then restart.
  13245. EOF
  13246. fi
  13247. ;;
  13248. amigaos*)
  13249. 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)'
  13250. hardcode_libdir_flag_spec_F77='-L$libdir'
  13251. hardcode_minus_L_F77=yes
  13252. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  13253. # that the semantics of dynamic libraries on AmigaOS, at least up
  13254. # to version 4, is to share data among multiple programs linked
  13255. # with the same dynamic library. Since this doesn't match the
  13256. # behavior of shared libraries on other platforms, we can't use
  13257. # them.
  13258. ld_shlibs_F77=no
  13259. ;;
  13260. beos*)
  13261. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13262. allow_undefined_flag_F77=unsupported
  13263. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13264. # support --undefined. This deserves some investigation. FIXME
  13265. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13266. else
  13267. ld_shlibs_F77=no
  13268. fi
  13269. ;;
  13270. cygwin* | mingw* | pw32*)
  13271. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  13272. # as there is no search path for DLLs.
  13273. hardcode_libdir_flag_spec_F77='-L$libdir'
  13274. allow_undefined_flag_F77=unsupported
  13275. always_export_symbols_F77=no
  13276. enable_shared_with_static_runtimes_F77=yes
  13277. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  13278. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  13279. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  13280. # If the export-symbols file already is a .def file (1st line
  13281. # is EXPORTS), use it as is; otherwise, prepend...
  13282. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13283. cp $export_symbols $output_objdir/$soname.def;
  13284. else
  13285. echo EXPORTS > $output_objdir/$soname.def;
  13286. cat $export_symbols >> $output_objdir/$soname.def;
  13287. fi~
  13288. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  13289. else
  13290. ld_shlibs_F77=no
  13291. fi
  13292. ;;
  13293. linux*)
  13294. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13295. tmp_addflag=
  13296. case $cc_basename,$host_cpu in
  13297. pgcc*) # Portland Group C compiler
  13298. 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'
  13299. tmp_addflag=' $pic_flag'
  13300. ;;
  13301. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  13302. 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'
  13303. tmp_addflag=' $pic_flag -Mnomain' ;;
  13304. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  13305. tmp_addflag=' -i_dynamic' ;;
  13306. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  13307. tmp_addflag=' -i_dynamic -nofor_main' ;;
  13308. ifc* | ifort*) # Intel Fortran compiler
  13309. tmp_addflag=' -nofor_main' ;;
  13310. esac
  13311. archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13312. if test $supports_anon_versioning = yes; then
  13313. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  13314. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13315. $echo "local: *; };" >> $output_objdir/$libname.ver~
  13316. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  13317. fi
  13318. else
  13319. ld_shlibs_F77=no
  13320. fi
  13321. ;;
  13322. netbsd*)
  13323. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13324. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13325. wlarc=
  13326. else
  13327. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13328. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13329. fi
  13330. ;;
  13331. solaris* | sysv5*)
  13332. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  13333. ld_shlibs_F77=no
  13334. cat <<EOF 1>&2
  13335. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13336. *** create shared libraries on Solaris systems. Therefore, libtool
  13337. *** is disabling shared libraries support. We urge you to upgrade GNU
  13338. *** binutils to release 2.9.1 or newer. Another option is to modify
  13339. *** your PATH or compiler configuration so that the native linker is
  13340. *** used, and then restart.
  13341. EOF
  13342. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13343. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13344. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13345. else
  13346. ld_shlibs_F77=no
  13347. fi
  13348. ;;
  13349. sunos4*)
  13350. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13351. wlarc=
  13352. hardcode_direct_F77=yes
  13353. hardcode_shlibpath_var_F77=no
  13354. ;;
  13355. *)
  13356. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13357. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13358. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13359. else
  13360. ld_shlibs_F77=no
  13361. fi
  13362. ;;
  13363. esac
  13364. if test "$ld_shlibs_F77" = no; then
  13365. runpath_var=
  13366. hardcode_libdir_flag_spec_F77=
  13367. export_dynamic_flag_spec_F77=
  13368. whole_archive_flag_spec_F77=
  13369. fi
  13370. else
  13371. # PORTME fill in a description of your system's linker (not GNU ld)
  13372. case $host_os in
  13373. aix3*)
  13374. allow_undefined_flag_F77=unsupported
  13375. always_export_symbols_F77=yes
  13376. 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'
  13377. # Note: this linker hardcodes the directories in LIBPATH if there
  13378. # are no directories specified by -L.
  13379. hardcode_minus_L_F77=yes
  13380. if test "$GCC" = yes && test -z "$link_static_flag"; then
  13381. # Neither direct hardcoding nor static linking is supported with a
  13382. # broken collect2.
  13383. hardcode_direct_F77=unsupported
  13384. fi
  13385. ;;
  13386. aix4* | aix5*)
  13387. if test "$host_cpu" = ia64; then
  13388. # On IA64, the linker does run time linking by default, so we don't
  13389. # have to do anything special.
  13390. aix_use_runtimelinking=no
  13391. exp_sym_flag='-Bexport'
  13392. no_entry_flag=""
  13393. else
  13394. # If we're using GNU nm, then we don't want the "-C" option.
  13395. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13396. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  13397. 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'
  13398. else
  13399. 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'
  13400. fi
  13401. aix_use_runtimelinking=no
  13402. # Test if we are trying to use run time linking or normal
  13403. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13404. # need to do runtime linking.
  13405. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  13406. for ld_flag in $LDFLAGS; do
  13407. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  13408. aix_use_runtimelinking=yes
  13409. break
  13410. fi
  13411. done
  13412. esac
  13413. exp_sym_flag='-bexport'
  13414. no_entry_flag='-bnoentry'
  13415. fi
  13416. # When large executables or shared objects are built, AIX ld can
  13417. # have problems creating the table of contents. If linking a library
  13418. # or program results in "error TOC overflow" add -mminimal-toc to
  13419. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13420. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13421. archive_cmds_F77=''
  13422. hardcode_direct_F77=yes
  13423. hardcode_libdir_separator_F77=':'
  13424. link_all_deplibs_F77=yes
  13425. if test "$GCC" = yes; then
  13426. case $host_os in aix4.[012]|aix4.[012].*)
  13427. # We only want to do this on AIX 4.2 and lower, the check
  13428. # below for broken collect2 doesn't work under 4.3+
  13429. collect2name=`${CC} -print-prog-name=collect2`
  13430. if test -f "$collect2name" && \
  13431. strings "$collect2name" | grep resolve_lib_name >/dev/null
  13432. then
  13433. # We have reworked collect2
  13434. hardcode_direct_F77=yes
  13435. else
  13436. # We have old collect2
  13437. hardcode_direct_F77=unsupported
  13438. # It fails to find uninstalled libraries when the uninstalled
  13439. # path is not listed in the libpath. Setting hardcode_minus_L
  13440. # to unsupported forces relinking
  13441. hardcode_minus_L_F77=yes
  13442. hardcode_libdir_flag_spec_F77='-L$libdir'
  13443. hardcode_libdir_separator_F77=
  13444. fi
  13445. esac
  13446. shared_flag='-shared'
  13447. if test "$aix_use_runtimelinking" = yes; then
  13448. shared_flag="$shared_flag "'${wl}-G'
  13449. fi
  13450. else
  13451. # not using gcc
  13452. if test "$host_cpu" = ia64; then
  13453. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13454. # chokes on -Wl,-G. The following line is correct:
  13455. shared_flag='-G'
  13456. else
  13457. if test "$aix_use_runtimelinking" = yes; then
  13458. shared_flag='${wl}-G'
  13459. else
  13460. shared_flag='${wl}-bM:SRE'
  13461. fi
  13462. fi
  13463. fi
  13464. # It seems that -bexpall does not export symbols beginning with
  13465. # underscore (_), so it is better to generate a list of symbols to export.
  13466. always_export_symbols_F77=yes
  13467. if test "$aix_use_runtimelinking" = yes; then
  13468. # Warning - without using the other runtime loading flags (-brtl),
  13469. # -berok will link without error, but may produce a broken library.
  13470. allow_undefined_flag_F77='-berok'
  13471. # Determine the default libpath from the value encoded in an empty executable.
  13472. cat >conftest.$ac_ext <<_ACEOF
  13473. program main
  13474. end
  13475. _ACEOF
  13476. rm -f conftest.$ac_objext conftest$ac_exeext
  13477. if { (ac_try="$ac_link"
  13478. case "(($ac_try" in
  13479. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13480. *) ac_try_echo=$ac_try;;
  13481. esac
  13482. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13483. (eval "$ac_link") 2>conftest.er1
  13484. ac_status=$?
  13485. grep -v '^ *+' conftest.er1 >conftest.err
  13486. rm -f conftest.er1
  13487. cat conftest.err >&5
  13488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13489. (exit $ac_status); } && {
  13490. test -z "$ac_f77_werror_flag" ||
  13491. test ! -s conftest.err
  13492. } && test -s conftest$ac_exeext &&
  13493. $as_test_x conftest$ac_exeext; then
  13494. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13495. }'`
  13496. # Check for a 64-bit object if we didn't find anything.
  13497. 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; }
  13498. }'`; fi
  13499. else
  13500. echo "$as_me: failed program was:" >&5
  13501. sed 's/^/| /' conftest.$ac_ext >&5
  13502. fi
  13503. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13504. conftest$ac_exeext conftest.$ac_ext
  13505. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13506. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13507. 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"
  13508. else
  13509. if test "$host_cpu" = ia64; then
  13510. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  13511. allow_undefined_flag_F77="-z nodefs"
  13512. 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"
  13513. else
  13514. # Determine the default libpath from the value encoded in an empty executable.
  13515. cat >conftest.$ac_ext <<_ACEOF
  13516. program main
  13517. end
  13518. _ACEOF
  13519. rm -f conftest.$ac_objext conftest$ac_exeext
  13520. if { (ac_try="$ac_link"
  13521. case "(($ac_try" in
  13522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13523. *) ac_try_echo=$ac_try;;
  13524. esac
  13525. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13526. (eval "$ac_link") 2>conftest.er1
  13527. ac_status=$?
  13528. grep -v '^ *+' conftest.er1 >conftest.err
  13529. rm -f conftest.er1
  13530. cat conftest.err >&5
  13531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13532. (exit $ac_status); } && {
  13533. test -z "$ac_f77_werror_flag" ||
  13534. test ! -s conftest.err
  13535. } && test -s conftest$ac_exeext &&
  13536. $as_test_x conftest$ac_exeext; then
  13537. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13538. }'`
  13539. # Check for a 64-bit object if we didn't find anything.
  13540. 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; }
  13541. }'`; fi
  13542. else
  13543. echo "$as_me: failed program was:" >&5
  13544. sed 's/^/| /' conftest.$ac_ext >&5
  13545. fi
  13546. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13547. conftest$ac_exeext conftest.$ac_ext
  13548. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13549. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13550. # Warning - without using the other run time loading flags,
  13551. # -berok will link without error, but may produce a broken library.
  13552. no_undefined_flag_F77=' ${wl}-bernotok'
  13553. allow_undefined_flag_F77=' ${wl}-berok'
  13554. # -bexpall does not export symbols beginning with underscore (_)
  13555. always_export_symbols_F77=yes
  13556. # Exported symbols can be pulled into shared objects from archives
  13557. whole_archive_flag_spec_F77=' '
  13558. archive_cmds_need_lc_F77=yes
  13559. # This is similar to how AIX traditionally builds it's shared libraries.
  13560. 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'
  13561. fi
  13562. fi
  13563. ;;
  13564. amigaos*)
  13565. 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)'
  13566. hardcode_libdir_flag_spec_F77='-L$libdir'
  13567. hardcode_minus_L_F77=yes
  13568. # see comment about different semantics on the GNU ld section
  13569. ld_shlibs_F77=no
  13570. ;;
  13571. bsdi[45]*)
  13572. export_dynamic_flag_spec_F77=-rdynamic
  13573. ;;
  13574. cygwin* | mingw* | pw32*)
  13575. # When not using gcc, we currently assume that we are using
  13576. # Microsoft Visual C++.
  13577. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13578. # no search path for DLLs.
  13579. hardcode_libdir_flag_spec_F77=' '
  13580. allow_undefined_flag_F77=unsupported
  13581. # Tell ltmain to make .lib files, not .a files.
  13582. libext=lib
  13583. # Tell ltmain to make .dll files, not .so files.
  13584. shrext_cmds=".dll"
  13585. # FIXME: Setting linknames here is a bad hack.
  13586. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  13587. # The linker will automatically build a .lib file if we build a DLL.
  13588. old_archive_From_new_cmds_F77='true'
  13589. # FIXME: Should let the user specify the lib program.
  13590. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  13591. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  13592. enable_shared_with_static_runtimes_F77=yes
  13593. ;;
  13594. darwin* | rhapsody*)
  13595. case "$host_os" in
  13596. rhapsody* | darwin1.[012])
  13597. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  13598. ;;
  13599. *) # Darwin 1.3 on
  13600. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  13601. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13602. else
  13603. case ${MACOSX_DEPLOYMENT_TARGET} in
  13604. 10.[012])
  13605. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13606. ;;
  13607. 10.*)
  13608. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  13609. ;;
  13610. esac
  13611. fi
  13612. ;;
  13613. esac
  13614. archive_cmds_need_lc_F77=no
  13615. hardcode_direct_F77=no
  13616. hardcode_automatic_F77=yes
  13617. hardcode_shlibpath_var_F77=unsupported
  13618. whole_archive_flag_spec_F77=''
  13619. link_all_deplibs_F77=yes
  13620. if test "$GCC" = yes ; then
  13621. output_verbose_link_cmd='echo'
  13622. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  13623. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13624. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  13625. 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}'
  13626. 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}'
  13627. else
  13628. case $cc_basename in
  13629. xlc*)
  13630. output_verbose_link_cmd='echo'
  13631. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  13632. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13633. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  13634. 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}'
  13635. 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}'
  13636. ;;
  13637. *)
  13638. ld_shlibs_F77=no
  13639. ;;
  13640. esac
  13641. fi
  13642. ;;
  13643. dgux*)
  13644. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13645. hardcode_libdir_flag_spec_F77='-L$libdir'
  13646. hardcode_shlibpath_var_F77=no
  13647. ;;
  13648. freebsd1*)
  13649. ld_shlibs_F77=no
  13650. ;;
  13651. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  13652. # support. Future versions do this automatically, but an explicit c++rt0.o
  13653. # does not break anything, and helps significantly (at the cost of a little
  13654. # extra space).
  13655. freebsd2.2*)
  13656. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  13657. hardcode_libdir_flag_spec_F77='-R$libdir'
  13658. hardcode_direct_F77=yes
  13659. hardcode_shlibpath_var_F77=no
  13660. ;;
  13661. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  13662. freebsd2*)
  13663. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13664. hardcode_direct_F77=yes
  13665. hardcode_minus_L_F77=yes
  13666. hardcode_shlibpath_var_F77=no
  13667. ;;
  13668. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  13669. freebsd* | kfreebsd*-gnu | dragonfly*)
  13670. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  13671. hardcode_libdir_flag_spec_F77='-R$libdir'
  13672. hardcode_direct_F77=yes
  13673. hardcode_shlibpath_var_F77=no
  13674. ;;
  13675. hpux9*)
  13676. if test "$GCC" = yes; then
  13677. 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'
  13678. else
  13679. 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'
  13680. fi
  13681. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13682. hardcode_libdir_separator_F77=:
  13683. hardcode_direct_F77=yes
  13684. # hardcode_minus_L: Not really in the search PATH,
  13685. # but as the default location of the library.
  13686. hardcode_minus_L_F77=yes
  13687. export_dynamic_flag_spec_F77='${wl}-E'
  13688. ;;
  13689. hpux10* | hpux11*)
  13690. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13691. case "$host_cpu" in
  13692. hppa*64*|ia64*)
  13693. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13694. ;;
  13695. *)
  13696. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13697. ;;
  13698. esac
  13699. else
  13700. case "$host_cpu" in
  13701. hppa*64*|ia64*)
  13702. archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  13703. ;;
  13704. *)
  13705. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13706. ;;
  13707. esac
  13708. fi
  13709. if test "$with_gnu_ld" = no; then
  13710. case "$host_cpu" in
  13711. hppa*64*)
  13712. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13713. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  13714. hardcode_libdir_separator_F77=:
  13715. hardcode_direct_F77=no
  13716. hardcode_shlibpath_var_F77=no
  13717. ;;
  13718. ia64*)
  13719. hardcode_libdir_flag_spec_F77='-L$libdir'
  13720. hardcode_direct_F77=no
  13721. hardcode_shlibpath_var_F77=no
  13722. # hardcode_minus_L: Not really in the search PATH,
  13723. # but as the default location of the library.
  13724. hardcode_minus_L_F77=yes
  13725. ;;
  13726. *)
  13727. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13728. hardcode_libdir_separator_F77=:
  13729. hardcode_direct_F77=yes
  13730. export_dynamic_flag_spec_F77='${wl}-E'
  13731. # hardcode_minus_L: Not really in the search PATH,
  13732. # but as the default location of the library.
  13733. hardcode_minus_L_F77=yes
  13734. ;;
  13735. esac
  13736. fi
  13737. ;;
  13738. irix5* | irix6* | nonstopux*)
  13739. if test "$GCC" = yes; then
  13740. 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'
  13741. else
  13742. 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'
  13743. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  13744. fi
  13745. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13746. hardcode_libdir_separator_F77=:
  13747. link_all_deplibs_F77=yes
  13748. ;;
  13749. netbsd*)
  13750. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13751. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  13752. else
  13753. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  13754. fi
  13755. hardcode_libdir_flag_spec_F77='-R$libdir'
  13756. hardcode_direct_F77=yes
  13757. hardcode_shlibpath_var_F77=no
  13758. ;;
  13759. newsos6)
  13760. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13761. hardcode_direct_F77=yes
  13762. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13763. hardcode_libdir_separator_F77=:
  13764. hardcode_shlibpath_var_F77=no
  13765. ;;
  13766. openbsd*)
  13767. hardcode_direct_F77=yes
  13768. hardcode_shlibpath_var_F77=no
  13769. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13770. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13771. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  13772. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13773. export_dynamic_flag_spec_F77='${wl}-E'
  13774. else
  13775. case $host_os in
  13776. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  13777. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13778. hardcode_libdir_flag_spec_F77='-R$libdir'
  13779. ;;
  13780. *)
  13781. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13782. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13783. ;;
  13784. esac
  13785. fi
  13786. ;;
  13787. os2*)
  13788. hardcode_libdir_flag_spec_F77='-L$libdir'
  13789. hardcode_minus_L_F77=yes
  13790. allow_undefined_flag_F77=unsupported
  13791. 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'
  13792. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  13793. ;;
  13794. osf3*)
  13795. if test "$GCC" = yes; then
  13796. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13797. 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'
  13798. else
  13799. allow_undefined_flag_F77=' -expect_unresolved \*'
  13800. 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'
  13801. fi
  13802. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13803. hardcode_libdir_separator_F77=:
  13804. ;;
  13805. osf4* | osf5*) # as osf3* with the addition of -msym flag
  13806. if test "$GCC" = yes; then
  13807. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13808. 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'
  13809. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13810. else
  13811. allow_undefined_flag_F77=' -expect_unresolved \*'
  13812. 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'
  13813. 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~
  13814. $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'
  13815. # Both c and cxx compiler support -rpath directly
  13816. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  13817. fi
  13818. hardcode_libdir_separator_F77=:
  13819. ;;
  13820. sco3.2v5*)
  13821. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13822. hardcode_shlibpath_var_F77=no
  13823. export_dynamic_flag_spec_F77='${wl}-Bexport'
  13824. runpath_var=LD_RUN_PATH
  13825. hardcode_runpath_var=yes
  13826. ;;
  13827. solaris*)
  13828. no_undefined_flag_F77=' -z text'
  13829. if test "$GCC" = yes; then
  13830. wlarc='${wl}'
  13831. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13832. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13833. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  13834. else
  13835. wlarc=''
  13836. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13837. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13838. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13839. fi
  13840. hardcode_libdir_flag_spec_F77='-R$libdir'
  13841. hardcode_shlibpath_var_F77=no
  13842. case $host_os in
  13843. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13844. *)
  13845. # The compiler driver will combine linker options so we
  13846. # cannot just pass the convience library names through
  13847. # without $wl, iff we do not link with $LD.
  13848. # Luckily, gcc supports the same syntax we need for Sun Studio.
  13849. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13850. case $wlarc in
  13851. '')
  13852. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  13853. *)
  13854. 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' ;;
  13855. esac ;;
  13856. esac
  13857. link_all_deplibs_F77=yes
  13858. ;;
  13859. sunos4*)
  13860. if test "x$host_vendor" = xsequent; then
  13861. # Use $CC to link under sequent, because it throws in some extra .o
  13862. # files that make .init and .fini sections work.
  13863. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13864. else
  13865. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13866. fi
  13867. hardcode_libdir_flag_spec_F77='-L$libdir'
  13868. hardcode_direct_F77=yes
  13869. hardcode_minus_L_F77=yes
  13870. hardcode_shlibpath_var_F77=no
  13871. ;;
  13872. sysv4)
  13873. case $host_vendor in
  13874. sni)
  13875. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13876. hardcode_direct_F77=yes # is this really true???
  13877. ;;
  13878. siemens)
  13879. ## LD is ld it makes a PLAMLIB
  13880. ## CC just makes a GrossModule.
  13881. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13882. reload_cmds_F77='$CC -r -o $output$reload_objs'
  13883. hardcode_direct_F77=no
  13884. ;;
  13885. motorola)
  13886. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13887. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  13888. ;;
  13889. esac
  13890. runpath_var='LD_RUN_PATH'
  13891. hardcode_shlibpath_var_F77=no
  13892. ;;
  13893. sysv4.3*)
  13894. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13895. hardcode_shlibpath_var_F77=no
  13896. export_dynamic_flag_spec_F77='-Bexport'
  13897. ;;
  13898. sysv4*MP*)
  13899. if test -d /usr/nec; then
  13900. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13901. hardcode_shlibpath_var_F77=no
  13902. runpath_var=LD_RUN_PATH
  13903. hardcode_runpath_var=yes
  13904. ld_shlibs_F77=yes
  13905. fi
  13906. ;;
  13907. sysv4.2uw2*)
  13908. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13909. hardcode_direct_F77=yes
  13910. hardcode_minus_L_F77=no
  13911. hardcode_shlibpath_var_F77=no
  13912. hardcode_runpath_var=yes
  13913. runpath_var=LD_RUN_PATH
  13914. ;;
  13915. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  13916. no_undefined_flag_F77='${wl}-z ${wl}text'
  13917. if test "$GCC" = yes; then
  13918. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13919. else
  13920. archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13921. fi
  13922. runpath_var='LD_RUN_PATH'
  13923. hardcode_shlibpath_var_F77=no
  13924. ;;
  13925. sysv5*)
  13926. no_undefined_flag_F77=' -z text'
  13927. # $CC -shared without GNU ld will not create a library from C++
  13928. # object files and a static libstdc++, better avoid it by now
  13929. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13930. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13931. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13932. hardcode_libdir_flag_spec_F77=
  13933. hardcode_shlibpath_var_F77=no
  13934. runpath_var='LD_RUN_PATH'
  13935. ;;
  13936. uts4*)
  13937. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13938. hardcode_libdir_flag_spec_F77='-L$libdir'
  13939. hardcode_shlibpath_var_F77=no
  13940. ;;
  13941. *)
  13942. ld_shlibs_F77=no
  13943. ;;
  13944. esac
  13945. fi
  13946. { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  13947. echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  13948. test "$ld_shlibs_F77" = no && can_build_shared=no
  13949. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13950. if test "$GCC" = yes; then
  13951. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13952. fi
  13953. #
  13954. # Do we need to explicitly link libc?
  13955. #
  13956. case "x$archive_cmds_need_lc_F77" in
  13957. x|xyes)
  13958. # Assume -lc should be added
  13959. archive_cmds_need_lc_F77=yes
  13960. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13961. case $archive_cmds_F77 in
  13962. *'~'*)
  13963. # FIXME: we may have to deal with multi-command sequences.
  13964. ;;
  13965. '$CC '*)
  13966. # Test whether the compiler implicitly links with -lc since on some
  13967. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13968. # to ld, don't add -lc before -lgcc.
  13969. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13970. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  13971. $rm conftest*
  13972. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13973. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13974. (eval $ac_compile) 2>&5
  13975. ac_status=$?
  13976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13977. (exit $ac_status); } 2>conftest.err; then
  13978. soname=conftest
  13979. lib=conftest
  13980. libobjs=conftest.$ac_objext
  13981. deplibs=
  13982. wl=$lt_prog_compiler_wl_F77
  13983. compiler_flags=-v
  13984. linker_flags=-v
  13985. verstring=
  13986. output_objdir=.
  13987. libname=conftest
  13988. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  13989. allow_undefined_flag_F77=
  13990. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13991. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13992. ac_status=$?
  13993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13994. (exit $ac_status); }
  13995. then
  13996. archive_cmds_need_lc_F77=no
  13997. else
  13998. archive_cmds_need_lc_F77=yes
  13999. fi
  14000. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  14001. else
  14002. cat conftest.err 1>&5
  14003. fi
  14004. $rm conftest*
  14005. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  14006. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  14007. ;;
  14008. esac
  14009. fi
  14010. ;;
  14011. esac
  14012. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  14013. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  14014. library_names_spec=
  14015. libname_spec='lib$name'
  14016. soname_spec=
  14017. shrext_cmds=".so"
  14018. postinstall_cmds=
  14019. postuninstall_cmds=
  14020. finish_cmds=
  14021. finish_eval=
  14022. shlibpath_var=
  14023. shlibpath_overrides_runpath=unknown
  14024. version_type=none
  14025. dynamic_linker="$host_os ld.so"
  14026. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14027. if test "$GCC" = yes; then
  14028. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14029. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  14030. # if the path contains ";" then we assume it to be the separator
  14031. # otherwise default to the standard path separator (i.e. ":") - it is
  14032. # assumed that no part of a normal pathname contains ";" but that should
  14033. # okay in the real world where ";" in dirpaths is itself problematic.
  14034. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14035. else
  14036. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14037. fi
  14038. else
  14039. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14040. fi
  14041. need_lib_prefix=unknown
  14042. hardcode_into_libs=no
  14043. # when you set need_version to no, make sure it does not cause -set_version
  14044. # flags to be left without arguments
  14045. need_version=unknown
  14046. case $host_os in
  14047. aix3*)
  14048. version_type=linux
  14049. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  14050. shlibpath_var=LIBPATH
  14051. # AIX 3 has no versioning support, so we append a major version to the name.
  14052. soname_spec='${libname}${release}${shared_ext}$major'
  14053. ;;
  14054. aix4* | aix5*)
  14055. version_type=linux
  14056. need_lib_prefix=no
  14057. need_version=no
  14058. hardcode_into_libs=yes
  14059. if test "$host_cpu" = ia64; then
  14060. # AIX 5 supports IA64
  14061. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  14062. shlibpath_var=LD_LIBRARY_PATH
  14063. else
  14064. # With GCC up to 2.95.x, collect2 would create an import file
  14065. # for dependence libraries. The import file would start with
  14066. # the line `#! .'. This would cause the generated library to
  14067. # depend on `.', always an invalid library. This was fixed in
  14068. # development snapshots of GCC prior to 3.0.
  14069. case $host_os in
  14070. aix4 | aix4.[01] | aix4.[01].*)
  14071. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14072. echo ' yes '
  14073. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  14074. :
  14075. else
  14076. can_build_shared=no
  14077. fi
  14078. ;;
  14079. esac
  14080. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  14081. # soname into executable. Probably we can add versioning support to
  14082. # collect2, so additional links can be useful in future.
  14083. if test "$aix_use_runtimelinking" = yes; then
  14084. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14085. # instead of lib<name>.a to let people know that these are not
  14086. # typical AIX shared libraries.
  14087. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14088. else
  14089. # We preserve .a as extension for shared libraries through AIX4.2
  14090. # and later when we are not doing run time linking.
  14091. library_names_spec='${libname}${release}.a $libname.a'
  14092. soname_spec='${libname}${release}${shared_ext}$major'
  14093. fi
  14094. shlibpath_var=LIBPATH
  14095. fi
  14096. ;;
  14097. amigaos*)
  14098. library_names_spec='$libname.ixlibrary $libname.a'
  14099. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14100. 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'
  14101. ;;
  14102. beos*)
  14103. library_names_spec='${libname}${shared_ext}'
  14104. dynamic_linker="$host_os ld.so"
  14105. shlibpath_var=LIBRARY_PATH
  14106. ;;
  14107. bsdi[45]*)
  14108. version_type=linux
  14109. need_version=no
  14110. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14111. soname_spec='${libname}${release}${shared_ext}$major'
  14112. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14113. shlibpath_var=LD_LIBRARY_PATH
  14114. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14115. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14116. # the default ld.so.conf also contains /usr/contrib/lib and
  14117. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14118. # libtool to hard-code these into programs
  14119. ;;
  14120. cygwin* | mingw* | pw32*)
  14121. version_type=windows
  14122. shrext_cmds=".dll"
  14123. need_version=no
  14124. need_lib_prefix=no
  14125. case $GCC,$host_os in
  14126. yes,cygwin* | yes,mingw* | yes,pw32*)
  14127. library_names_spec='$libname.dll.a'
  14128. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14129. postinstall_cmds='base_file=`basename \${file}`~
  14130. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  14131. dldir=$destdir/`dirname \$dlpath`~
  14132. test -d \$dldir || mkdir -p \$dldir~
  14133. $install_prog $dir/$dlname \$dldir/$dlname'
  14134. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14135. dlpath=$dir/\$dldll~
  14136. $rm \$dlpath'
  14137. shlibpath_overrides_runpath=yes
  14138. case $host_os in
  14139. cygwin*)
  14140. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14141. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14142. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  14143. ;;
  14144. mingw*)
  14145. # MinGW DLLs use traditional 'lib' prefix
  14146. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14147. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14148. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  14149. # It is most probably a Windows format PATH printed by
  14150. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  14151. # path with ; separators, and with drive letters. We can handle the
  14152. # drive letters (cygwin fileutils understands them), so leave them,
  14153. # especially as we might pass files found there to a mingw objdump,
  14154. # which wouldn't understand a cygwinified path. Ahh.
  14155. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14156. else
  14157. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14158. fi
  14159. ;;
  14160. pw32*)
  14161. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14162. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14163. ;;
  14164. esac
  14165. ;;
  14166. *)
  14167. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  14168. ;;
  14169. esac
  14170. dynamic_linker='Win32 ld.exe'
  14171. # FIXME: first we should search . and the directory the executable is in
  14172. shlibpath_var=PATH
  14173. ;;
  14174. darwin* | rhapsody*)
  14175. dynamic_linker="$host_os dyld"
  14176. version_type=darwin
  14177. need_lib_prefix=no
  14178. need_version=no
  14179. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  14180. soname_spec='${libname}${release}${major}$shared_ext'
  14181. shlibpath_overrides_runpath=yes
  14182. shlibpath_var=DYLD_LIBRARY_PATH
  14183. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  14184. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  14185. if test "$GCC" = yes; then
  14186. 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"`
  14187. else
  14188. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  14189. fi
  14190. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14191. ;;
  14192. dgux*)
  14193. version_type=linux
  14194. need_lib_prefix=no
  14195. need_version=no
  14196. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  14197. soname_spec='${libname}${release}${shared_ext}$major'
  14198. shlibpath_var=LD_LIBRARY_PATH
  14199. ;;
  14200. freebsd1*)
  14201. dynamic_linker=no
  14202. ;;
  14203. kfreebsd*-gnu)
  14204. version_type=linux
  14205. need_lib_prefix=no
  14206. need_version=no
  14207. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14208. soname_spec='${libname}${release}${shared_ext}$major'
  14209. shlibpath_var=LD_LIBRARY_PATH
  14210. shlibpath_overrides_runpath=no
  14211. hardcode_into_libs=yes
  14212. dynamic_linker='GNU ld.so'
  14213. ;;
  14214. freebsd* | dragonfly*)
  14215. # DragonFly does not have aout. When/if they implement a new
  14216. # versioning mechanism, adjust this.
  14217. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  14218. version_type=freebsd-$objformat
  14219. case $version_type in
  14220. freebsd-elf*)
  14221. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14222. need_version=no
  14223. need_lib_prefix=no
  14224. ;;
  14225. freebsd-*)
  14226. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  14227. need_version=yes
  14228. ;;
  14229. esac
  14230. shlibpath_var=LD_LIBRARY_PATH
  14231. case $host_os in
  14232. freebsd2*)
  14233. shlibpath_overrides_runpath=yes
  14234. ;;
  14235. freebsd3.[01]* | freebsdelf3.[01]*)
  14236. shlibpath_overrides_runpath=yes
  14237. hardcode_into_libs=yes
  14238. ;;
  14239. *) # from 3.2 on
  14240. shlibpath_overrides_runpath=no
  14241. hardcode_into_libs=yes
  14242. ;;
  14243. esac
  14244. ;;
  14245. gnu*)
  14246. version_type=linux
  14247. need_lib_prefix=no
  14248. need_version=no
  14249. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14250. soname_spec='${libname}${release}${shared_ext}$major'
  14251. shlibpath_var=LD_LIBRARY_PATH
  14252. hardcode_into_libs=yes
  14253. ;;
  14254. hpux9* | hpux10* | hpux11*)
  14255. # Give a soname corresponding to the major version so that dld.sl refuses to
  14256. # link against other versions.
  14257. version_type=sunos
  14258. need_lib_prefix=no
  14259. need_version=no
  14260. case "$host_cpu" in
  14261. ia64*)
  14262. shrext_cmds='.so'
  14263. hardcode_into_libs=yes
  14264. dynamic_linker="$host_os dld.so"
  14265. shlibpath_var=LD_LIBRARY_PATH
  14266. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14267. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14268. soname_spec='${libname}${release}${shared_ext}$major'
  14269. if test "X$HPUX_IA64_MODE" = X32; then
  14270. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14271. else
  14272. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14273. fi
  14274. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14275. ;;
  14276. hppa*64*)
  14277. shrext_cmds='.sl'
  14278. hardcode_into_libs=yes
  14279. dynamic_linker="$host_os dld.sl"
  14280. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14281. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14282. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14283. soname_spec='${libname}${release}${shared_ext}$major'
  14284. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14285. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14286. ;;
  14287. *)
  14288. shrext_cmds='.sl'
  14289. dynamic_linker="$host_os dld.sl"
  14290. shlibpath_var=SHLIB_PATH
  14291. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14292. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14293. soname_spec='${libname}${release}${shared_ext}$major'
  14294. ;;
  14295. esac
  14296. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  14297. postinstall_cmds='chmod 555 $lib'
  14298. ;;
  14299. irix5* | irix6* | nonstopux*)
  14300. case $host_os in
  14301. nonstopux*) version_type=nonstopux ;;
  14302. *)
  14303. if test "$lt_cv_prog_gnu_ld" = yes; then
  14304. version_type=linux
  14305. else
  14306. version_type=irix
  14307. fi ;;
  14308. esac
  14309. need_lib_prefix=no
  14310. need_version=no
  14311. soname_spec='${libname}${release}${shared_ext}$major'
  14312. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  14313. case $host_os in
  14314. irix5* | nonstopux*)
  14315. libsuff= shlibsuff=
  14316. ;;
  14317. *)
  14318. case $LD in # libtool.m4 will add one of these switches to LD
  14319. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14320. libsuff= shlibsuff= libmagic=32-bit;;
  14321. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14322. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14323. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14324. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14325. *) libsuff= shlibsuff= libmagic=never-match;;
  14326. esac
  14327. ;;
  14328. esac
  14329. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14330. shlibpath_overrides_runpath=no
  14331. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  14332. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  14333. hardcode_into_libs=yes
  14334. ;;
  14335. # No shared lib support for Linux oldld, aout, or coff.
  14336. linux*oldld* | linux*aout* | linux*coff*)
  14337. dynamic_linker=no
  14338. ;;
  14339. # This must be Linux ELF.
  14340. linux*)
  14341. version_type=linux
  14342. need_lib_prefix=no
  14343. need_version=no
  14344. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14345. soname_spec='${libname}${release}${shared_ext}$major'
  14346. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14347. shlibpath_var=LD_LIBRARY_PATH
  14348. shlibpath_overrides_runpath=no
  14349. # This implies no fast_install, which is unacceptable.
  14350. # Some rework will be needed to allow for fast_install
  14351. # before this can be enabled.
  14352. hardcode_into_libs=yes
  14353. # Append ld.so.conf contents to the search path
  14354. if test -f /etc/ld.so.conf; then
  14355. 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' ' '`
  14356. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14357. fi
  14358. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14359. # powerpc, because MkLinux only supported shared libraries with the
  14360. # GNU dynamic linker. Since this was broken with cross compilers,
  14361. # most powerpc-linux boxes support dynamic linking these days and
  14362. # people can always --disable-shared, the test was removed, and we
  14363. # assume the GNU/Linux dynamic linker is in use.
  14364. dynamic_linker='GNU/Linux ld.so'
  14365. ;;
  14366. knetbsd*-gnu)
  14367. version_type=linux
  14368. need_lib_prefix=no
  14369. need_version=no
  14370. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14371. soname_spec='${libname}${release}${shared_ext}$major'
  14372. shlibpath_var=LD_LIBRARY_PATH
  14373. shlibpath_overrides_runpath=no
  14374. hardcode_into_libs=yes
  14375. dynamic_linker='GNU ld.so'
  14376. ;;
  14377. netbsd*)
  14378. version_type=sunos
  14379. need_lib_prefix=no
  14380. need_version=no
  14381. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14382. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14383. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14384. dynamic_linker='NetBSD (a.out) ld.so'
  14385. else
  14386. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14387. soname_spec='${libname}${release}${shared_ext}$major'
  14388. dynamic_linker='NetBSD ld.elf_so'
  14389. fi
  14390. shlibpath_var=LD_LIBRARY_PATH
  14391. shlibpath_overrides_runpath=yes
  14392. hardcode_into_libs=yes
  14393. ;;
  14394. newsos6)
  14395. version_type=linux
  14396. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14397. shlibpath_var=LD_LIBRARY_PATH
  14398. shlibpath_overrides_runpath=yes
  14399. ;;
  14400. nto-qnx*)
  14401. version_type=linux
  14402. need_lib_prefix=no
  14403. need_version=no
  14404. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14405. soname_spec='${libname}${release}${shared_ext}$major'
  14406. shlibpath_var=LD_LIBRARY_PATH
  14407. shlibpath_overrides_runpath=yes
  14408. ;;
  14409. openbsd*)
  14410. version_type=sunos
  14411. need_lib_prefix=no
  14412. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  14413. case $host_os in
  14414. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  14415. *) need_version=no ;;
  14416. esac
  14417. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14418. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14419. shlibpath_var=LD_LIBRARY_PATH
  14420. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14421. case $host_os in
  14422. openbsd2.[89] | openbsd2.[89].*)
  14423. shlibpath_overrides_runpath=no
  14424. ;;
  14425. *)
  14426. shlibpath_overrides_runpath=yes
  14427. ;;
  14428. esac
  14429. else
  14430. shlibpath_overrides_runpath=yes
  14431. fi
  14432. ;;
  14433. os2*)
  14434. libname_spec='$name'
  14435. shrext_cmds=".dll"
  14436. need_lib_prefix=no
  14437. library_names_spec='$libname${shared_ext} $libname.a'
  14438. dynamic_linker='OS/2 ld.exe'
  14439. shlibpath_var=LIBPATH
  14440. ;;
  14441. osf3* | osf4* | osf5*)
  14442. version_type=osf
  14443. need_lib_prefix=no
  14444. need_version=no
  14445. soname_spec='${libname}${release}${shared_ext}$major'
  14446. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14447. shlibpath_var=LD_LIBRARY_PATH
  14448. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14449. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14450. ;;
  14451. sco3.2v5*)
  14452. version_type=osf
  14453. soname_spec='${libname}${release}${shared_ext}$major'
  14454. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14455. shlibpath_var=LD_LIBRARY_PATH
  14456. ;;
  14457. solaris*)
  14458. version_type=linux
  14459. need_lib_prefix=no
  14460. need_version=no
  14461. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14462. soname_spec='${libname}${release}${shared_ext}$major'
  14463. shlibpath_var=LD_LIBRARY_PATH
  14464. shlibpath_overrides_runpath=yes
  14465. hardcode_into_libs=yes
  14466. # ldd complains unless libraries are executable
  14467. postinstall_cmds='chmod +x $lib'
  14468. ;;
  14469. sunos4*)
  14470. version_type=sunos
  14471. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14472. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14473. shlibpath_var=LD_LIBRARY_PATH
  14474. shlibpath_overrides_runpath=yes
  14475. if test "$with_gnu_ld" = yes; then
  14476. need_lib_prefix=no
  14477. fi
  14478. need_version=yes
  14479. ;;
  14480. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  14481. version_type=linux
  14482. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14483. soname_spec='${libname}${release}${shared_ext}$major'
  14484. shlibpath_var=LD_LIBRARY_PATH
  14485. case $host_vendor in
  14486. sni)
  14487. shlibpath_overrides_runpath=no
  14488. need_lib_prefix=no
  14489. export_dynamic_flag_spec='${wl}-Blargedynsym'
  14490. runpath_var=LD_RUN_PATH
  14491. ;;
  14492. siemens)
  14493. need_lib_prefix=no
  14494. ;;
  14495. motorola)
  14496. need_lib_prefix=no
  14497. need_version=no
  14498. shlibpath_overrides_runpath=no
  14499. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14500. ;;
  14501. esac
  14502. ;;
  14503. sysv4*MP*)
  14504. if test -d /usr/nec ;then
  14505. version_type=linux
  14506. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14507. soname_spec='$libname${shared_ext}.$major'
  14508. shlibpath_var=LD_LIBRARY_PATH
  14509. fi
  14510. ;;
  14511. uts4*)
  14512. version_type=linux
  14513. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14514. soname_spec='${libname}${release}${shared_ext}$major'
  14515. shlibpath_var=LD_LIBRARY_PATH
  14516. ;;
  14517. *)
  14518. dynamic_linker=no
  14519. ;;
  14520. esac
  14521. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  14522. echo "${ECHO_T}$dynamic_linker" >&6; }
  14523. test "$dynamic_linker" = no && can_build_shared=no
  14524. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  14525. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  14526. hardcode_action_F77=
  14527. if test -n "$hardcode_libdir_flag_spec_F77" || \
  14528. test -n "$runpath_var_F77" || \
  14529. test "X$hardcode_automatic_F77" = "Xyes" ; then
  14530. # We can hardcode non-existant directories.
  14531. if test "$hardcode_direct_F77" != no &&
  14532. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14533. # have to relink, otherwise we might link with an installed library
  14534. # when we should be linking with a yet-to-be-installed one
  14535. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  14536. test "$hardcode_minus_L_F77" != no; then
  14537. # Linking always hardcodes the temporary library directory.
  14538. hardcode_action_F77=relink
  14539. else
  14540. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14541. hardcode_action_F77=immediate
  14542. fi
  14543. else
  14544. # We cannot hardcode anything, or else we can only hardcode existing
  14545. # directories.
  14546. hardcode_action_F77=unsupported
  14547. fi
  14548. { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  14549. echo "${ECHO_T}$hardcode_action_F77" >&6; }
  14550. if test "$hardcode_action_F77" = relink; then
  14551. # Fast installation is not supported
  14552. enable_fast_install=no
  14553. elif test "$shlibpath_overrides_runpath" = yes ||
  14554. test "$enable_shared" = no; then
  14555. # Fast installation is not necessary
  14556. enable_fast_install=needless
  14557. fi
  14558. striplib=
  14559. old_striplib=
  14560. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  14561. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  14562. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  14563. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  14564. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  14565. { echo "$as_me:$LINENO: result: yes" >&5
  14566. echo "${ECHO_T}yes" >&6; }
  14567. else
  14568. # FIXME - insert some real tests, host_os isn't really good enough
  14569. case $host_os in
  14570. darwin*)
  14571. if test -n "$STRIP" ; then
  14572. striplib="$STRIP -x"
  14573. { echo "$as_me:$LINENO: result: yes" >&5
  14574. echo "${ECHO_T}yes" >&6; }
  14575. else
  14576. { echo "$as_me:$LINENO: result: no" >&5
  14577. echo "${ECHO_T}no" >&6; }
  14578. fi
  14579. ;;
  14580. *)
  14581. { echo "$as_me:$LINENO: result: no" >&5
  14582. echo "${ECHO_T}no" >&6; }
  14583. ;;
  14584. esac
  14585. fi
  14586. # The else clause should only fire when bootstrapping the
  14587. # libtool distribution, otherwise you forgot to ship ltmain.sh
  14588. # with your package, and you will get complaints that there are
  14589. # no rules to generate ltmain.sh.
  14590. if test -f "$ltmain"; then
  14591. # See if we are running on zsh, and set the options which allow our commands through
  14592. # without removal of \ escapes.
  14593. if test -n "${ZSH_VERSION+set}" ; then
  14594. setopt NO_GLOB_SUBST
  14595. fi
  14596. # Now quote all the things that may contain metacharacters while being
  14597. # careful not to overquote the AC_SUBSTed values. We take copies of the
  14598. # variables and quote the copies for generation of the libtool script.
  14599. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  14600. SED SHELL STRIP \
  14601. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  14602. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  14603. deplibs_check_method reload_flag reload_cmds need_locks \
  14604. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  14605. lt_cv_sys_global_symbol_to_c_name_address \
  14606. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  14607. old_postinstall_cmds old_postuninstall_cmds \
  14608. compiler_F77 \
  14609. CC_F77 \
  14610. LD_F77 \
  14611. lt_prog_compiler_wl_F77 \
  14612. lt_prog_compiler_pic_F77 \
  14613. lt_prog_compiler_static_F77 \
  14614. lt_prog_compiler_no_builtin_flag_F77 \
  14615. export_dynamic_flag_spec_F77 \
  14616. thread_safe_flag_spec_F77 \
  14617. whole_archive_flag_spec_F77 \
  14618. enable_shared_with_static_runtimes_F77 \
  14619. old_archive_cmds_F77 \
  14620. old_archive_from_new_cmds_F77 \
  14621. predep_objects_F77 \
  14622. postdep_objects_F77 \
  14623. predeps_F77 \
  14624. postdeps_F77 \
  14625. compiler_lib_search_path_F77 \
  14626. archive_cmds_F77 \
  14627. archive_expsym_cmds_F77 \
  14628. postinstall_cmds_F77 \
  14629. postuninstall_cmds_F77 \
  14630. old_archive_from_expsyms_cmds_F77 \
  14631. allow_undefined_flag_F77 \
  14632. no_undefined_flag_F77 \
  14633. export_symbols_cmds_F77 \
  14634. hardcode_libdir_flag_spec_F77 \
  14635. hardcode_libdir_flag_spec_ld_F77 \
  14636. hardcode_libdir_separator_F77 \
  14637. hardcode_automatic_F77 \
  14638. module_cmds_F77 \
  14639. module_expsym_cmds_F77 \
  14640. lt_cv_prog_compiler_c_o_F77 \
  14641. exclude_expsyms_F77 \
  14642. include_expsyms_F77; do
  14643. case $var in
  14644. old_archive_cmds_F77 | \
  14645. old_archive_from_new_cmds_F77 | \
  14646. archive_cmds_F77 | \
  14647. archive_expsym_cmds_F77 | \
  14648. module_cmds_F77 | \
  14649. module_expsym_cmds_F77 | \
  14650. old_archive_from_expsyms_cmds_F77 | \
  14651. export_symbols_cmds_F77 | \
  14652. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  14653. postinstall_cmds | postuninstall_cmds | \
  14654. old_postinstall_cmds | old_postuninstall_cmds | \
  14655. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  14656. # Double-quote double-evaled strings.
  14657. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  14658. ;;
  14659. *)
  14660. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  14661. ;;
  14662. esac
  14663. done
  14664. case $lt_echo in
  14665. *'\$0 --fallback-echo"')
  14666. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  14667. ;;
  14668. esac
  14669. cfgfile="$ofile"
  14670. cat <<__EOF__ >> "$cfgfile"
  14671. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  14672. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14673. # Shell to use when invoking shell scripts.
  14674. SHELL=$lt_SHELL
  14675. # Whether or not to build shared libraries.
  14676. build_libtool_libs=$enable_shared
  14677. # Whether or not to build static libraries.
  14678. build_old_libs=$enable_static
  14679. # Whether or not to add -lc for building shared libraries.
  14680. build_libtool_need_lc=$archive_cmds_need_lc_F77
  14681. # Whether or not to disallow shared libs when runtime libs are static
  14682. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  14683. # Whether or not to optimize for fast installation.
  14684. fast_install=$enable_fast_install
  14685. # The host system.
  14686. host_alias=$host_alias
  14687. host=$host
  14688. host_os=$host_os
  14689. # The build system.
  14690. build_alias=$build_alias
  14691. build=$build
  14692. build_os=$build_os
  14693. # An echo program that does not interpret backslashes.
  14694. echo=$lt_echo
  14695. # The archiver.
  14696. AR=$lt_AR
  14697. AR_FLAGS=$lt_AR_FLAGS
  14698. # A C compiler.
  14699. LTCC=$lt_LTCC
  14700. # A language-specific compiler.
  14701. CC=$lt_compiler_F77
  14702. # Is the compiler the GNU C compiler?
  14703. with_gcc=$GCC_F77
  14704. # An ERE matcher.
  14705. EGREP=$lt_EGREP
  14706. # The linker used to build libraries.
  14707. LD=$lt_LD_F77
  14708. # Whether we need hard or soft links.
  14709. LN_S=$lt_LN_S
  14710. # A BSD-compatible nm program.
  14711. NM=$lt_NM
  14712. # A symbol stripping program
  14713. STRIP=$lt_STRIP
  14714. # Used to examine libraries when file_magic_cmd begins "file"
  14715. MAGIC_CMD=$MAGIC_CMD
  14716. # Used on cygwin: DLL creation program.
  14717. DLLTOOL="$DLLTOOL"
  14718. # Used on cygwin: object dumper.
  14719. OBJDUMP="$OBJDUMP"
  14720. # Used on cygwin: assembler.
  14721. AS="$AS"
  14722. # The name of the directory that contains temporary libtool files.
  14723. objdir=$objdir
  14724. # How to create reloadable object files.
  14725. reload_flag=$lt_reload_flag
  14726. reload_cmds=$lt_reload_cmds
  14727. # How to pass a linker flag through the compiler.
  14728. wl=$lt_lt_prog_compiler_wl_F77
  14729. # Object file suffix (normally "o").
  14730. objext="$ac_objext"
  14731. # Old archive suffix (normally "a").
  14732. libext="$libext"
  14733. # Shared library suffix (normally ".so").
  14734. shrext_cmds='$shrext_cmds'
  14735. # Executable file suffix (normally "").
  14736. exeext="$exeext"
  14737. # Additional compiler flags for building library objects.
  14738. pic_flag=$lt_lt_prog_compiler_pic_F77
  14739. pic_mode=$pic_mode
  14740. # What is the maximum length of a command?
  14741. max_cmd_len=$lt_cv_sys_max_cmd_len
  14742. # Does compiler simultaneously support -c and -o options?
  14743. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  14744. # Must we lock files when doing compilation?
  14745. need_locks=$lt_need_locks
  14746. # Do we need the lib prefix for modules?
  14747. need_lib_prefix=$need_lib_prefix
  14748. # Do we need a version for libraries?
  14749. need_version=$need_version
  14750. # Whether dlopen is supported.
  14751. dlopen_support=$enable_dlopen
  14752. # Whether dlopen of programs is supported.
  14753. dlopen_self=$enable_dlopen_self
  14754. # Whether dlopen of statically linked programs is supported.
  14755. dlopen_self_static=$enable_dlopen_self_static
  14756. # Compiler flag to prevent dynamic linking.
  14757. link_static_flag=$lt_lt_prog_compiler_static_F77
  14758. # Compiler flag to turn off builtin functions.
  14759. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  14760. # Compiler flag to allow reflexive dlopens.
  14761. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  14762. # Compiler flag to generate shared objects directly from archives.
  14763. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  14764. # Compiler flag to generate thread-safe objects.
  14765. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  14766. # Library versioning type.
  14767. version_type=$version_type
  14768. # Format of library name prefix.
  14769. libname_spec=$lt_libname_spec
  14770. # List of archive names. First name is the real one, the rest are links.
  14771. # The last name is the one that the linker finds with -lNAME.
  14772. library_names_spec=$lt_library_names_spec
  14773. # The coded name of the library, if different from the real name.
  14774. soname_spec=$lt_soname_spec
  14775. # Commands used to build and install an old-style archive.
  14776. RANLIB=$lt_RANLIB
  14777. old_archive_cmds=$lt_old_archive_cmds_F77
  14778. old_postinstall_cmds=$lt_old_postinstall_cmds
  14779. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14780. # Create an old-style archive from a shared archive.
  14781. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  14782. # Create a temporary old-style archive to link instead of a shared archive.
  14783. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  14784. # Commands used to build and install a shared archive.
  14785. archive_cmds=$lt_archive_cmds_F77
  14786. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  14787. postinstall_cmds=$lt_postinstall_cmds
  14788. postuninstall_cmds=$lt_postuninstall_cmds
  14789. # Commands used to build a loadable module (assumed same as above if empty)
  14790. module_cmds=$lt_module_cmds_F77
  14791. module_expsym_cmds=$lt_module_expsym_cmds_F77
  14792. # Commands to strip libraries.
  14793. old_striplib=$lt_old_striplib
  14794. striplib=$lt_striplib
  14795. # Dependencies to place before the objects being linked to create a
  14796. # shared library.
  14797. predep_objects=$lt_predep_objects_F77
  14798. # Dependencies to place after the objects being linked to create a
  14799. # shared library.
  14800. postdep_objects=$lt_postdep_objects_F77
  14801. # Dependencies to place before the objects being linked to create a
  14802. # shared library.
  14803. predeps=$lt_predeps_F77
  14804. # Dependencies to place after the objects being linked to create a
  14805. # shared library.
  14806. postdeps=$lt_postdeps_F77
  14807. # The library search path used internally by the compiler when linking
  14808. # a shared library.
  14809. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  14810. # Method to check whether dependent libraries are shared objects.
  14811. deplibs_check_method=$lt_deplibs_check_method
  14812. # Command to use when deplibs_check_method == file_magic.
  14813. file_magic_cmd=$lt_file_magic_cmd
  14814. # Flag that allows shared libraries with undefined symbols to be built.
  14815. allow_undefined_flag=$lt_allow_undefined_flag_F77
  14816. # Flag that forces no undefined symbols.
  14817. no_undefined_flag=$lt_no_undefined_flag_F77
  14818. # Commands used to finish a libtool library installation in a directory.
  14819. finish_cmds=$lt_finish_cmds
  14820. # Same as above, but a single script fragment to be evaled but not shown.
  14821. finish_eval=$lt_finish_eval
  14822. # Take the output of nm and produce a listing of raw symbols and C names.
  14823. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14824. # Transform the output of nm in a proper C declaration
  14825. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14826. # Transform the output of nm in a C name address pair
  14827. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14828. # This is the shared library runtime path variable.
  14829. runpath_var=$runpath_var
  14830. # This is the shared library path variable.
  14831. shlibpath_var=$shlibpath_var
  14832. # Is shlibpath searched before the hard-coded library search path?
  14833. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14834. # How to hardcode a shared library path into an executable.
  14835. hardcode_action=$hardcode_action_F77
  14836. # Whether we should hardcode library paths into libraries.
  14837. hardcode_into_libs=$hardcode_into_libs
  14838. # Flag to hardcode \$libdir into a binary during linking.
  14839. # This must work even if \$libdir does not exist.
  14840. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  14841. # If ld is used when linking, flag to hardcode \$libdir into
  14842. # a binary during linking. This must work even if \$libdir does
  14843. # not exist.
  14844. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  14845. # Whether we need a single -rpath flag with a separated argument.
  14846. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  14847. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  14848. # resulting binary.
  14849. hardcode_direct=$hardcode_direct_F77
  14850. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  14851. # resulting binary.
  14852. hardcode_minus_L=$hardcode_minus_L_F77
  14853. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  14854. # the resulting binary.
  14855. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  14856. # Set to yes if building a shared library automatically hardcodes DIR into the library
  14857. # and all subsequent libraries and executables linked against it.
  14858. hardcode_automatic=$hardcode_automatic_F77
  14859. # Variables whose values should be saved in libtool wrapper scripts and
  14860. # restored at relink time.
  14861. variables_saved_for_relink="$variables_saved_for_relink"
  14862. # Whether libtool must link a program against all its dependency libraries.
  14863. link_all_deplibs=$link_all_deplibs_F77
  14864. # Compile-time system search path for libraries
  14865. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14866. # Run-time system search path for libraries
  14867. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14868. # Fix the shell variable \$srcfile for the compiler.
  14869. fix_srcfile_path="$fix_srcfile_path_F77"
  14870. # Set to yes if exported symbols are required.
  14871. always_export_symbols=$always_export_symbols_F77
  14872. # The commands to list exported symbols.
  14873. export_symbols_cmds=$lt_export_symbols_cmds_F77
  14874. # The commands to extract the exported symbol list from a shared archive.
  14875. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14876. # Symbols that should not be listed in the preloaded symbols.
  14877. exclude_expsyms=$lt_exclude_expsyms_F77
  14878. # Symbols that must always be exported.
  14879. include_expsyms=$lt_include_expsyms_F77
  14880. # ### END LIBTOOL TAG CONFIG: $tagname
  14881. __EOF__
  14882. else
  14883. # If there is no Makefile yet, we rely on a make rule to execute
  14884. # `config.status --recheck' to rerun these tests and create the
  14885. # libtool script then.
  14886. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  14887. if test -f "$ltmain_in"; then
  14888. test -f Makefile && make "$ltmain"
  14889. fi
  14890. fi
  14891. ac_ext=c
  14892. ac_cpp='$CPP $CPPFLAGS'
  14893. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14894. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14895. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14896. CC="$lt_save_CC"
  14897. else
  14898. tagname=""
  14899. fi
  14900. ;;
  14901. GCJ)
  14902. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  14903. # Source file extension for Java test sources.
  14904. ac_ext=java
  14905. # Object file extension for compiled Java test sources.
  14906. objext=o
  14907. objext_GCJ=$objext
  14908. # Code to be used in simple compile tests
  14909. lt_simple_compile_test_code="class foo {}\n"
  14910. # Code to be used in simple link tests
  14911. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  14912. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14913. # If no C compiler was specified, use CC.
  14914. LTCC=${LTCC-"$CC"}
  14915. # Allow CC to be a program name with arguments.
  14916. compiler=$CC
  14917. # save warnings/boilerplate of simple test code
  14918. ac_outfile=conftest.$ac_objext
  14919. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  14920. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  14921. _lt_compiler_boilerplate=`cat conftest.err`
  14922. $rm conftest*
  14923. ac_outfile=conftest.$ac_objext
  14924. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  14925. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  14926. _lt_linker_boilerplate=`cat conftest.err`
  14927. $rm conftest*
  14928. # Allow CC to be a program name with arguments.
  14929. lt_save_CC="$CC"
  14930. CC=${GCJ-"gcj"}
  14931. compiler=$CC
  14932. compiler_GCJ=$CC
  14933. for cc_temp in $compiler""; do
  14934. case $cc_temp in
  14935. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14936. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14937. \-*) ;;
  14938. *) break;;
  14939. esac
  14940. done
  14941. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14942. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  14943. archive_cmds_need_lc_GCJ=no
  14944. old_archive_cmds_GCJ=$old_archive_cmds
  14945. lt_prog_compiler_no_builtin_flag_GCJ=
  14946. if test "$GCC" = yes; then
  14947. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  14948. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14949. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  14950. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  14951. echo $ECHO_N "(cached) $ECHO_C" >&6
  14952. else
  14953. lt_cv_prog_compiler_rtti_exceptions=no
  14954. ac_outfile=conftest.$ac_objext
  14955. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14956. lt_compiler_flag="-fno-rtti -fno-exceptions"
  14957. # Insert the option either (1) after the last *FLAGS variable, or
  14958. # (2) before a word containing "conftest.", or (3) at the end.
  14959. # Note that $ac_compile itself does not contain backslashes and begins
  14960. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14961. # The option is referenced via a variable to avoid confusing sed.
  14962. lt_compile=`echo "$ac_compile" | $SED \
  14963. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  14964. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14965. -e 's:$: $lt_compiler_flag:'`
  14966. (eval echo "\"\$as_me:16781: $lt_compile\"" >&5)
  14967. (eval "$lt_compile" 2>conftest.err)
  14968. ac_status=$?
  14969. cat conftest.err >&5
  14970. echo "$as_me:16785: \$? = $ac_status" >&5
  14971. if (exit $ac_status) && test -s "$ac_outfile"; then
  14972. # The compiler can only warn and ignore the option if not recognized
  14973. # So say no if there are warnings other than the usual output.
  14974. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  14975. $SED '/^$/d' conftest.err >conftest.er2
  14976. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  14977. lt_cv_prog_compiler_rtti_exceptions=yes
  14978. fi
  14979. fi
  14980. $rm conftest*
  14981. fi
  14982. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  14983. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  14984. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  14985. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  14986. else
  14987. :
  14988. fi
  14989. fi
  14990. lt_prog_compiler_wl_GCJ=
  14991. lt_prog_compiler_pic_GCJ=
  14992. lt_prog_compiler_static_GCJ=
  14993. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14994. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  14995. if test "$GCC" = yes; then
  14996. lt_prog_compiler_wl_GCJ='-Wl,'
  14997. lt_prog_compiler_static_GCJ='-static'
  14998. case $host_os in
  14999. aix*)
  15000. # All AIX code is PIC.
  15001. if test "$host_cpu" = ia64; then
  15002. # AIX 5 now supports IA64 processor
  15003. lt_prog_compiler_static_GCJ='-Bstatic'
  15004. fi
  15005. ;;
  15006. amigaos*)
  15007. # FIXME: we need at least 68020 code to build shared libraries, but
  15008. # adding the `-m68020' flag to GCC prevents building anything better,
  15009. # like `-m68040'.
  15010. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  15011. ;;
  15012. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  15013. # PIC is the default for these OSes.
  15014. ;;
  15015. mingw* | pw32* | os2*)
  15016. # This hack is so that the source file can tell whether it is being
  15017. # built for inclusion in a dll (and should export symbols for example).
  15018. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  15019. ;;
  15020. darwin* | rhapsody*)
  15021. # PIC is the default on this platform
  15022. # Common symbols not allowed in MH_DYLIB files
  15023. lt_prog_compiler_pic_GCJ='-fno-common'
  15024. ;;
  15025. msdosdjgpp*)
  15026. # Just because we use GCC doesn't mean we suddenly get shared libraries
  15027. # on systems that don't support them.
  15028. lt_prog_compiler_can_build_shared_GCJ=no
  15029. enable_shared=no
  15030. ;;
  15031. sysv4*MP*)
  15032. if test -d /usr/nec; then
  15033. lt_prog_compiler_pic_GCJ=-Kconform_pic
  15034. fi
  15035. ;;
  15036. hpux*)
  15037. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  15038. # not for PA HP-UX.
  15039. case "$host_cpu" in
  15040. hppa*64*|ia64*)
  15041. # +Z the default
  15042. ;;
  15043. *)
  15044. lt_prog_compiler_pic_GCJ='-fPIC'
  15045. ;;
  15046. esac
  15047. ;;
  15048. *)
  15049. lt_prog_compiler_pic_GCJ='-fPIC'
  15050. ;;
  15051. esac
  15052. else
  15053. # PORTME Check for flag to pass linker flags through the system compiler.
  15054. case $host_os in
  15055. aix*)
  15056. lt_prog_compiler_wl_GCJ='-Wl,'
  15057. if test "$host_cpu" = ia64; then
  15058. # AIX 5 now supports IA64 processor
  15059. lt_prog_compiler_static_GCJ='-Bstatic'
  15060. else
  15061. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  15062. fi
  15063. ;;
  15064. darwin*)
  15065. # PIC is the default on this platform
  15066. # Common symbols not allowed in MH_DYLIB files
  15067. case $cc_basename in
  15068. xlc*)
  15069. lt_prog_compiler_pic_GCJ='-qnocommon'
  15070. lt_prog_compiler_wl_GCJ='-Wl,'
  15071. ;;
  15072. esac
  15073. ;;
  15074. mingw* | pw32* | os2*)
  15075. # This hack is so that the source file can tell whether it is being
  15076. # built for inclusion in a dll (and should export symbols for example).
  15077. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  15078. ;;
  15079. hpux9* | hpux10* | hpux11*)
  15080. lt_prog_compiler_wl_GCJ='-Wl,'
  15081. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  15082. # not for PA HP-UX.
  15083. case "$host_cpu" in
  15084. hppa*64*|ia64*)
  15085. # +Z the default
  15086. ;;
  15087. *)
  15088. lt_prog_compiler_pic_GCJ='+Z'
  15089. ;;
  15090. esac
  15091. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  15092. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  15093. ;;
  15094. irix5* | irix6* | nonstopux*)
  15095. lt_prog_compiler_wl_GCJ='-Wl,'
  15096. # PIC (with -KPIC) is the default.
  15097. lt_prog_compiler_static_GCJ='-non_shared'
  15098. ;;
  15099. newsos6)
  15100. lt_prog_compiler_pic_GCJ='-KPIC'
  15101. lt_prog_compiler_static_GCJ='-Bstatic'
  15102. ;;
  15103. linux*)
  15104. case $cc_basename in
  15105. icc* | ecc*)
  15106. lt_prog_compiler_wl_GCJ='-Wl,'
  15107. lt_prog_compiler_pic_GCJ='-KPIC'
  15108. lt_prog_compiler_static_GCJ='-static'
  15109. ;;
  15110. pgcc* | pgf77* | pgf90*)
  15111. # Portland Group compilers (*not* the Pentium gcc compiler,
  15112. # which looks to be a dead project)
  15113. lt_prog_compiler_wl_GCJ='-Wl,'
  15114. lt_prog_compiler_pic_GCJ='-fpic'
  15115. lt_prog_compiler_static_GCJ='-static'
  15116. ;;
  15117. ccc*)
  15118. lt_prog_compiler_wl_GCJ='-Wl,'
  15119. # All Alpha code is PIC.
  15120. lt_prog_compiler_static_GCJ='-non_shared'
  15121. ;;
  15122. esac
  15123. ;;
  15124. osf3* | osf4* | osf5*)
  15125. lt_prog_compiler_wl_GCJ='-Wl,'
  15126. # All OSF/1 code is PIC.
  15127. lt_prog_compiler_static_GCJ='-non_shared'
  15128. ;;
  15129. sco3.2v5*)
  15130. lt_prog_compiler_pic_GCJ='-Kpic'
  15131. lt_prog_compiler_static_GCJ='-dn'
  15132. ;;
  15133. solaris*)
  15134. lt_prog_compiler_pic_GCJ='-KPIC'
  15135. lt_prog_compiler_static_GCJ='-Bstatic'
  15136. case $cc_basename in
  15137. f77* | f90* | f95*)
  15138. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  15139. *)
  15140. lt_prog_compiler_wl_GCJ='-Wl,';;
  15141. esac
  15142. ;;
  15143. sunos4*)
  15144. lt_prog_compiler_wl_GCJ='-Qoption ld '
  15145. lt_prog_compiler_pic_GCJ='-PIC'
  15146. lt_prog_compiler_static_GCJ='-Bstatic'
  15147. ;;
  15148. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  15149. lt_prog_compiler_wl_GCJ='-Wl,'
  15150. lt_prog_compiler_pic_GCJ='-KPIC'
  15151. lt_prog_compiler_static_GCJ='-Bstatic'
  15152. ;;
  15153. sysv4*MP*)
  15154. if test -d /usr/nec ;then
  15155. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  15156. lt_prog_compiler_static_GCJ='-Bstatic'
  15157. fi
  15158. ;;
  15159. unicos*)
  15160. lt_prog_compiler_wl_GCJ='-Wl,'
  15161. lt_prog_compiler_can_build_shared_GCJ=no
  15162. ;;
  15163. uts4*)
  15164. lt_prog_compiler_pic_GCJ='-pic'
  15165. lt_prog_compiler_static_GCJ='-Bstatic'
  15166. ;;
  15167. *)
  15168. lt_prog_compiler_can_build_shared_GCJ=no
  15169. ;;
  15170. esac
  15171. fi
  15172. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  15173. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  15174. #
  15175. # Check to make sure the PIC flag actually works.
  15176. #
  15177. if test -n "$lt_prog_compiler_pic_GCJ"; then
  15178. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  15179. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  15180. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  15181. echo $ECHO_N "(cached) $ECHO_C" >&6
  15182. else
  15183. lt_prog_compiler_pic_works_GCJ=no
  15184. ac_outfile=conftest.$ac_objext
  15185. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15186. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  15187. # Insert the option either (1) after the last *FLAGS variable, or
  15188. # (2) before a word containing "conftest.", or (3) at the end.
  15189. # Note that $ac_compile itself does not contain backslashes and begins
  15190. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15191. # The option is referenced via a variable to avoid confusing sed.
  15192. lt_compile=`echo "$ac_compile" | $SED \
  15193. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  15194. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15195. -e 's:$: $lt_compiler_flag:'`
  15196. (eval echo "\"\$as_me:17043: $lt_compile\"" >&5)
  15197. (eval "$lt_compile" 2>conftest.err)
  15198. ac_status=$?
  15199. cat conftest.err >&5
  15200. echo "$as_me:17047: \$? = $ac_status" >&5
  15201. if (exit $ac_status) && test -s "$ac_outfile"; then
  15202. # The compiler can only warn and ignore the option if not recognized
  15203. # So say no if there are warnings other than the usual output.
  15204. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  15205. $SED '/^$/d' conftest.err >conftest.er2
  15206. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  15207. lt_prog_compiler_pic_works_GCJ=yes
  15208. fi
  15209. fi
  15210. $rm conftest*
  15211. fi
  15212. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  15213. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
  15214. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  15215. case $lt_prog_compiler_pic_GCJ in
  15216. "" | " "*) ;;
  15217. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  15218. esac
  15219. else
  15220. lt_prog_compiler_pic_GCJ=
  15221. lt_prog_compiler_can_build_shared_GCJ=no
  15222. fi
  15223. fi
  15224. case "$host_os" in
  15225. # For platforms which do not support PIC, -DPIC is meaningless:
  15226. *djgpp*)
  15227. lt_prog_compiler_pic_GCJ=
  15228. ;;
  15229. *)
  15230. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  15231. ;;
  15232. esac
  15233. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  15234. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  15235. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  15236. echo $ECHO_N "(cached) $ECHO_C" >&6
  15237. else
  15238. lt_cv_prog_compiler_c_o_GCJ=no
  15239. $rm -r conftest 2>/dev/null
  15240. mkdir conftest
  15241. cd conftest
  15242. mkdir out
  15243. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15244. lt_compiler_flag="-o out/conftest2.$ac_objext"
  15245. # Insert the option either (1) after the last *FLAGS variable, or
  15246. # (2) before a word containing "conftest.", or (3) at the end.
  15247. # Note that $ac_compile itself does not contain backslashes and begins
  15248. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15249. lt_compile=`echo "$ac_compile" | $SED \
  15250. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  15251. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15252. -e 's:$: $lt_compiler_flag:'`
  15253. (eval echo "\"\$as_me:17105: $lt_compile\"" >&5)
  15254. (eval "$lt_compile" 2>out/conftest.err)
  15255. ac_status=$?
  15256. cat out/conftest.err >&5
  15257. echo "$as_me:17109: \$? = $ac_status" >&5
  15258. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15259. then
  15260. # The compiler can only warn and ignore the option if not recognized
  15261. # So say no if there are warnings
  15262. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  15263. $SED '/^$/d' out/conftest.err >out/conftest.er2
  15264. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15265. lt_cv_prog_compiler_c_o_GCJ=yes
  15266. fi
  15267. fi
  15268. chmod u+w .
  15269. $rm conftest*
  15270. # SGI C++ compiler will create directory out/ii_files/ for
  15271. # template instantiation
  15272. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  15273. $rm out/* && rmdir out
  15274. cd ..
  15275. rmdir conftest
  15276. $rm conftest*
  15277. fi
  15278. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  15279. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  15280. hard_links="nottested"
  15281. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  15282. # do not overwrite the value of need_locks provided by the user
  15283. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  15284. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  15285. hard_links=yes
  15286. $rm conftest*
  15287. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15288. touch conftest.a
  15289. ln conftest.a conftest.b 2>&5 || hard_links=no
  15290. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15291. { echo "$as_me:$LINENO: result: $hard_links" >&5
  15292. echo "${ECHO_T}$hard_links" >&6; }
  15293. if test "$hard_links" = no; then
  15294. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  15295. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  15296. need_locks=warn
  15297. fi
  15298. else
  15299. need_locks=no
  15300. fi
  15301. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  15302. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  15303. runpath_var=
  15304. allow_undefined_flag_GCJ=
  15305. enable_shared_with_static_runtimes_GCJ=no
  15306. archive_cmds_GCJ=
  15307. archive_expsym_cmds_GCJ=
  15308. old_archive_From_new_cmds_GCJ=
  15309. old_archive_from_expsyms_cmds_GCJ=
  15310. export_dynamic_flag_spec_GCJ=
  15311. whole_archive_flag_spec_GCJ=
  15312. thread_safe_flag_spec_GCJ=
  15313. hardcode_libdir_flag_spec_GCJ=
  15314. hardcode_libdir_flag_spec_ld_GCJ=
  15315. hardcode_libdir_separator_GCJ=
  15316. hardcode_direct_GCJ=no
  15317. hardcode_minus_L_GCJ=no
  15318. hardcode_shlibpath_var_GCJ=unsupported
  15319. link_all_deplibs_GCJ=unknown
  15320. hardcode_automatic_GCJ=no
  15321. module_cmds_GCJ=
  15322. module_expsym_cmds_GCJ=
  15323. always_export_symbols_GCJ=no
  15324. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15325. # include_expsyms should be a list of space-separated symbols to be *always*
  15326. # included in the symbol list
  15327. include_expsyms_GCJ=
  15328. # exclude_expsyms can be an extended regexp of symbols to exclude
  15329. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  15330. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  15331. # as well as any symbol that contains `d'.
  15332. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  15333. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  15334. # platforms (ab)use it in PIC code, but their linkers get confused if
  15335. # the symbol is explicitly referenced. Since portable code cannot
  15336. # rely on this symbol name, it's probably fine to never include it in
  15337. # preloaded symbol tables.
  15338. extract_expsyms_cmds=
  15339. # Just being paranoid about ensuring that cc_basename is set.
  15340. for cc_temp in $compiler""; do
  15341. case $cc_temp in
  15342. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15343. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15344. \-*) ;;
  15345. *) break;;
  15346. esac
  15347. done
  15348. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  15349. case $host_os in
  15350. cygwin* | mingw* | pw32*)
  15351. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  15352. # When not using gcc, we currently assume that we are using
  15353. # Microsoft Visual C++.
  15354. if test "$GCC" != yes; then
  15355. with_gnu_ld=no
  15356. fi
  15357. ;;
  15358. openbsd*)
  15359. with_gnu_ld=no
  15360. ;;
  15361. esac
  15362. ld_shlibs_GCJ=yes
  15363. if test "$with_gnu_ld" = yes; then
  15364. # If archive_cmds runs LD, not CC, wlarc should be empty
  15365. wlarc='${wl}'
  15366. # Set some defaults for GNU ld with shared library support. These
  15367. # are reset later if shared libraries are not supported. Putting them
  15368. # here allows them to be overridden if necessary.
  15369. runpath_var=LD_RUN_PATH
  15370. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  15371. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  15372. # ancient GNU ld didn't support --whole-archive et. al.
  15373. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  15374. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  15375. else
  15376. whole_archive_flag_spec_GCJ=
  15377. fi
  15378. supports_anon_versioning=no
  15379. case `$LD -v 2>/dev/null` in
  15380. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  15381. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  15382. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  15383. *\ 2.11.*) ;; # other 2.11 versions
  15384. *) supports_anon_versioning=yes ;;
  15385. esac
  15386. # See if GNU ld supports shared libraries.
  15387. case $host_os in
  15388. aix3* | aix4* | aix5*)
  15389. # On AIX/PPC, the GNU linker is very broken
  15390. if test "$host_cpu" != ia64; then
  15391. ld_shlibs_GCJ=no
  15392. cat <<EOF 1>&2
  15393. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  15394. *** to be unable to reliably create shared libraries on AIX.
  15395. *** Therefore, libtool is disabling shared libraries support. If you
  15396. *** really care for shared libraries, you may want to modify your PATH
  15397. *** so that a non-GNU linker is found, and then restart.
  15398. EOF
  15399. fi
  15400. ;;
  15401. amigaos*)
  15402. 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)'
  15403. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15404. hardcode_minus_L_GCJ=yes
  15405. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  15406. # that the semantics of dynamic libraries on AmigaOS, at least up
  15407. # to version 4, is to share data among multiple programs linked
  15408. # with the same dynamic library. Since this doesn't match the
  15409. # behavior of shared libraries on other platforms, we can't use
  15410. # them.
  15411. ld_shlibs_GCJ=no
  15412. ;;
  15413. beos*)
  15414. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15415. allow_undefined_flag_GCJ=unsupported
  15416. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  15417. # support --undefined. This deserves some investigation. FIXME
  15418. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15419. else
  15420. ld_shlibs_GCJ=no
  15421. fi
  15422. ;;
  15423. cygwin* | mingw* | pw32*)
  15424. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  15425. # as there is no search path for DLLs.
  15426. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15427. allow_undefined_flag_GCJ=unsupported
  15428. always_export_symbols_GCJ=no
  15429. enable_shared_with_static_runtimes_GCJ=yes
  15430. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  15431. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  15432. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  15433. # If the export-symbols file already is a .def file (1st line
  15434. # is EXPORTS), use it as is; otherwise, prepend...
  15435. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  15436. cp $export_symbols $output_objdir/$soname.def;
  15437. else
  15438. echo EXPORTS > $output_objdir/$soname.def;
  15439. cat $export_symbols >> $output_objdir/$soname.def;
  15440. fi~
  15441. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  15442. else
  15443. ld_shlibs_GCJ=no
  15444. fi
  15445. ;;
  15446. linux*)
  15447. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15448. tmp_addflag=
  15449. case $cc_basename,$host_cpu in
  15450. pgcc*) # Portland Group C compiler
  15451. 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'
  15452. tmp_addflag=' $pic_flag'
  15453. ;;
  15454. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  15455. 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'
  15456. tmp_addflag=' $pic_flag -Mnomain' ;;
  15457. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  15458. tmp_addflag=' -i_dynamic' ;;
  15459. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  15460. tmp_addflag=' -i_dynamic -nofor_main' ;;
  15461. ifc* | ifort*) # Intel Fortran compiler
  15462. tmp_addflag=' -nofor_main' ;;
  15463. esac
  15464. archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15465. if test $supports_anon_versioning = yes; then
  15466. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  15467. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  15468. $echo "local: *; };" >> $output_objdir/$libname.ver~
  15469. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  15470. fi
  15471. else
  15472. ld_shlibs_GCJ=no
  15473. fi
  15474. ;;
  15475. netbsd*)
  15476. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15477. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  15478. wlarc=
  15479. else
  15480. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15481. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15482. fi
  15483. ;;
  15484. solaris* | sysv5*)
  15485. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  15486. ld_shlibs_GCJ=no
  15487. cat <<EOF 1>&2
  15488. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  15489. *** create shared libraries on Solaris systems. Therefore, libtool
  15490. *** is disabling shared libraries support. We urge you to upgrade GNU
  15491. *** binutils to release 2.9.1 or newer. Another option is to modify
  15492. *** your PATH or compiler configuration so that the native linker is
  15493. *** used, and then restart.
  15494. EOF
  15495. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15496. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15497. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15498. else
  15499. ld_shlibs_GCJ=no
  15500. fi
  15501. ;;
  15502. sunos4*)
  15503. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15504. wlarc=
  15505. hardcode_direct_GCJ=yes
  15506. hardcode_shlibpath_var_GCJ=no
  15507. ;;
  15508. *)
  15509. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15510. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15511. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15512. else
  15513. ld_shlibs_GCJ=no
  15514. fi
  15515. ;;
  15516. esac
  15517. if test "$ld_shlibs_GCJ" = no; then
  15518. runpath_var=
  15519. hardcode_libdir_flag_spec_GCJ=
  15520. export_dynamic_flag_spec_GCJ=
  15521. whole_archive_flag_spec_GCJ=
  15522. fi
  15523. else
  15524. # PORTME fill in a description of your system's linker (not GNU ld)
  15525. case $host_os in
  15526. aix3*)
  15527. allow_undefined_flag_GCJ=unsupported
  15528. always_export_symbols_GCJ=yes
  15529. 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'
  15530. # Note: this linker hardcodes the directories in LIBPATH if there
  15531. # are no directories specified by -L.
  15532. hardcode_minus_L_GCJ=yes
  15533. if test "$GCC" = yes && test -z "$link_static_flag"; then
  15534. # Neither direct hardcoding nor static linking is supported with a
  15535. # broken collect2.
  15536. hardcode_direct_GCJ=unsupported
  15537. fi
  15538. ;;
  15539. aix4* | aix5*)
  15540. if test "$host_cpu" = ia64; then
  15541. # On IA64, the linker does run time linking by default, so we don't
  15542. # have to do anything special.
  15543. aix_use_runtimelinking=no
  15544. exp_sym_flag='-Bexport'
  15545. no_entry_flag=""
  15546. else
  15547. # If we're using GNU nm, then we don't want the "-C" option.
  15548. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  15549. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  15550. 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'
  15551. else
  15552. 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'
  15553. fi
  15554. aix_use_runtimelinking=no
  15555. # Test if we are trying to use run time linking or normal
  15556. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  15557. # need to do runtime linking.
  15558. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  15559. for ld_flag in $LDFLAGS; do
  15560. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  15561. aix_use_runtimelinking=yes
  15562. break
  15563. fi
  15564. done
  15565. esac
  15566. exp_sym_flag='-bexport'
  15567. no_entry_flag='-bnoentry'
  15568. fi
  15569. # When large executables or shared objects are built, AIX ld can
  15570. # have problems creating the table of contents. If linking a library
  15571. # or program results in "error TOC overflow" add -mminimal-toc to
  15572. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  15573. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  15574. archive_cmds_GCJ=''
  15575. hardcode_direct_GCJ=yes
  15576. hardcode_libdir_separator_GCJ=':'
  15577. link_all_deplibs_GCJ=yes
  15578. if test "$GCC" = yes; then
  15579. case $host_os in aix4.[012]|aix4.[012].*)
  15580. # We only want to do this on AIX 4.2 and lower, the check
  15581. # below for broken collect2 doesn't work under 4.3+
  15582. collect2name=`${CC} -print-prog-name=collect2`
  15583. if test -f "$collect2name" && \
  15584. strings "$collect2name" | grep resolve_lib_name >/dev/null
  15585. then
  15586. # We have reworked collect2
  15587. hardcode_direct_GCJ=yes
  15588. else
  15589. # We have old collect2
  15590. hardcode_direct_GCJ=unsupported
  15591. # It fails to find uninstalled libraries when the uninstalled
  15592. # path is not listed in the libpath. Setting hardcode_minus_L
  15593. # to unsupported forces relinking
  15594. hardcode_minus_L_GCJ=yes
  15595. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15596. hardcode_libdir_separator_GCJ=
  15597. fi
  15598. esac
  15599. shared_flag='-shared'
  15600. if test "$aix_use_runtimelinking" = yes; then
  15601. shared_flag="$shared_flag "'${wl}-G'
  15602. fi
  15603. else
  15604. # not using gcc
  15605. if test "$host_cpu" = ia64; then
  15606. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  15607. # chokes on -Wl,-G. The following line is correct:
  15608. shared_flag='-G'
  15609. else
  15610. if test "$aix_use_runtimelinking" = yes; then
  15611. shared_flag='${wl}-G'
  15612. else
  15613. shared_flag='${wl}-bM:SRE'
  15614. fi
  15615. fi
  15616. fi
  15617. # It seems that -bexpall does not export symbols beginning with
  15618. # underscore (_), so it is better to generate a list of symbols to export.
  15619. always_export_symbols_GCJ=yes
  15620. if test "$aix_use_runtimelinking" = yes; then
  15621. # Warning - without using the other runtime loading flags (-brtl),
  15622. # -berok will link without error, but may produce a broken library.
  15623. allow_undefined_flag_GCJ='-berok'
  15624. # Determine the default libpath from the value encoded in an empty executable.
  15625. cat >conftest.$ac_ext <<_ACEOF
  15626. /* confdefs.h. */
  15627. _ACEOF
  15628. cat confdefs.h >>conftest.$ac_ext
  15629. cat >>conftest.$ac_ext <<_ACEOF
  15630. /* end confdefs.h. */
  15631. int
  15632. main ()
  15633. {
  15634. ;
  15635. return 0;
  15636. }
  15637. _ACEOF
  15638. rm -f conftest.$ac_objext conftest$ac_exeext
  15639. if { (ac_try="$ac_link"
  15640. case "(($ac_try" in
  15641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15642. *) ac_try_echo=$ac_try;;
  15643. esac
  15644. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15645. (eval "$ac_link") 2>conftest.er1
  15646. ac_status=$?
  15647. grep -v '^ *+' conftest.er1 >conftest.err
  15648. rm -f conftest.er1
  15649. cat conftest.err >&5
  15650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15651. (exit $ac_status); } && {
  15652. test -z "$ac_c_werror_flag" ||
  15653. test ! -s conftest.err
  15654. } && test -s conftest$ac_exeext &&
  15655. $as_test_x conftest$ac_exeext; then
  15656. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15657. }'`
  15658. # Check for a 64-bit object if we didn't find anything.
  15659. 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; }
  15660. }'`; fi
  15661. else
  15662. echo "$as_me: failed program was:" >&5
  15663. sed 's/^/| /' conftest.$ac_ext >&5
  15664. fi
  15665. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15666. conftest$ac_exeext conftest.$ac_ext
  15667. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15668. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15669. 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"
  15670. else
  15671. if test "$host_cpu" = ia64; then
  15672. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  15673. allow_undefined_flag_GCJ="-z nodefs"
  15674. 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"
  15675. else
  15676. # Determine the default libpath from the value encoded in an empty executable.
  15677. cat >conftest.$ac_ext <<_ACEOF
  15678. /* confdefs.h. */
  15679. _ACEOF
  15680. cat confdefs.h >>conftest.$ac_ext
  15681. cat >>conftest.$ac_ext <<_ACEOF
  15682. /* end confdefs.h. */
  15683. int
  15684. main ()
  15685. {
  15686. ;
  15687. return 0;
  15688. }
  15689. _ACEOF
  15690. rm -f conftest.$ac_objext conftest$ac_exeext
  15691. if { (ac_try="$ac_link"
  15692. case "(($ac_try" in
  15693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15694. *) ac_try_echo=$ac_try;;
  15695. esac
  15696. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15697. (eval "$ac_link") 2>conftest.er1
  15698. ac_status=$?
  15699. grep -v '^ *+' conftest.er1 >conftest.err
  15700. rm -f conftest.er1
  15701. cat conftest.err >&5
  15702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15703. (exit $ac_status); } && {
  15704. test -z "$ac_c_werror_flag" ||
  15705. test ! -s conftest.err
  15706. } && test -s conftest$ac_exeext &&
  15707. $as_test_x conftest$ac_exeext; then
  15708. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15709. }'`
  15710. # Check for a 64-bit object if we didn't find anything.
  15711. 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; }
  15712. }'`; fi
  15713. else
  15714. echo "$as_me: failed program was:" >&5
  15715. sed 's/^/| /' conftest.$ac_ext >&5
  15716. fi
  15717. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15718. conftest$ac_exeext conftest.$ac_ext
  15719. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15720. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15721. # Warning - without using the other run time loading flags,
  15722. # -berok will link without error, but may produce a broken library.
  15723. no_undefined_flag_GCJ=' ${wl}-bernotok'
  15724. allow_undefined_flag_GCJ=' ${wl}-berok'
  15725. # -bexpall does not export symbols beginning with underscore (_)
  15726. always_export_symbols_GCJ=yes
  15727. # Exported symbols can be pulled into shared objects from archives
  15728. whole_archive_flag_spec_GCJ=' '
  15729. archive_cmds_need_lc_GCJ=yes
  15730. # This is similar to how AIX traditionally builds it's shared libraries.
  15731. 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'
  15732. fi
  15733. fi
  15734. ;;
  15735. amigaos*)
  15736. 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)'
  15737. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15738. hardcode_minus_L_GCJ=yes
  15739. # see comment about different semantics on the GNU ld section
  15740. ld_shlibs_GCJ=no
  15741. ;;
  15742. bsdi[45]*)
  15743. export_dynamic_flag_spec_GCJ=-rdynamic
  15744. ;;
  15745. cygwin* | mingw* | pw32*)
  15746. # When not using gcc, we currently assume that we are using
  15747. # Microsoft Visual C++.
  15748. # hardcode_libdir_flag_spec is actually meaningless, as there is
  15749. # no search path for DLLs.
  15750. hardcode_libdir_flag_spec_GCJ=' '
  15751. allow_undefined_flag_GCJ=unsupported
  15752. # Tell ltmain to make .lib files, not .a files.
  15753. libext=lib
  15754. # Tell ltmain to make .dll files, not .so files.
  15755. shrext_cmds=".dll"
  15756. # FIXME: Setting linknames here is a bad hack.
  15757. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  15758. # The linker will automatically build a .lib file if we build a DLL.
  15759. old_archive_From_new_cmds_GCJ='true'
  15760. # FIXME: Should let the user specify the lib program.
  15761. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  15762. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  15763. enable_shared_with_static_runtimes_GCJ=yes
  15764. ;;
  15765. darwin* | rhapsody*)
  15766. case "$host_os" in
  15767. rhapsody* | darwin1.[012])
  15768. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  15769. ;;
  15770. *) # Darwin 1.3 on
  15771. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  15772. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15773. else
  15774. case ${MACOSX_DEPLOYMENT_TARGET} in
  15775. 10.[012])
  15776. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15777. ;;
  15778. 10.*)
  15779. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  15780. ;;
  15781. esac
  15782. fi
  15783. ;;
  15784. esac
  15785. archive_cmds_need_lc_GCJ=no
  15786. hardcode_direct_GCJ=no
  15787. hardcode_automatic_GCJ=yes
  15788. hardcode_shlibpath_var_GCJ=unsupported
  15789. whole_archive_flag_spec_GCJ=''
  15790. link_all_deplibs_GCJ=yes
  15791. if test "$GCC" = yes ; then
  15792. output_verbose_link_cmd='echo'
  15793. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  15794. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15795. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  15796. 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}'
  15797. 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}'
  15798. else
  15799. case $cc_basename in
  15800. xlc*)
  15801. output_verbose_link_cmd='echo'
  15802. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  15803. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15804. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  15805. 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}'
  15806. 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}'
  15807. ;;
  15808. *)
  15809. ld_shlibs_GCJ=no
  15810. ;;
  15811. esac
  15812. fi
  15813. ;;
  15814. dgux*)
  15815. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15816. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15817. hardcode_shlibpath_var_GCJ=no
  15818. ;;
  15819. freebsd1*)
  15820. ld_shlibs_GCJ=no
  15821. ;;
  15822. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  15823. # support. Future versions do this automatically, but an explicit c++rt0.o
  15824. # does not break anything, and helps significantly (at the cost of a little
  15825. # extra space).
  15826. freebsd2.2*)
  15827. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15828. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15829. hardcode_direct_GCJ=yes
  15830. hardcode_shlibpath_var_GCJ=no
  15831. ;;
  15832. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15833. freebsd2*)
  15834. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15835. hardcode_direct_GCJ=yes
  15836. hardcode_minus_L_GCJ=yes
  15837. hardcode_shlibpath_var_GCJ=no
  15838. ;;
  15839. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15840. freebsd* | kfreebsd*-gnu | dragonfly*)
  15841. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15842. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15843. hardcode_direct_GCJ=yes
  15844. hardcode_shlibpath_var_GCJ=no
  15845. ;;
  15846. hpux9*)
  15847. if test "$GCC" = yes; then
  15848. 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'
  15849. else
  15850. 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'
  15851. fi
  15852. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15853. hardcode_libdir_separator_GCJ=:
  15854. hardcode_direct_GCJ=yes
  15855. # hardcode_minus_L: Not really in the search PATH,
  15856. # but as the default location of the library.
  15857. hardcode_minus_L_GCJ=yes
  15858. export_dynamic_flag_spec_GCJ='${wl}-E'
  15859. ;;
  15860. hpux10* | hpux11*)
  15861. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15862. case "$host_cpu" in
  15863. hppa*64*|ia64*)
  15864. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15865. ;;
  15866. *)
  15867. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15868. ;;
  15869. esac
  15870. else
  15871. case "$host_cpu" in
  15872. hppa*64*|ia64*)
  15873. archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  15874. ;;
  15875. *)
  15876. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  15877. ;;
  15878. esac
  15879. fi
  15880. if test "$with_gnu_ld" = no; then
  15881. case "$host_cpu" in
  15882. hppa*64*)
  15883. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15884. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  15885. hardcode_libdir_separator_GCJ=:
  15886. hardcode_direct_GCJ=no
  15887. hardcode_shlibpath_var_GCJ=no
  15888. ;;
  15889. ia64*)
  15890. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15891. hardcode_direct_GCJ=no
  15892. hardcode_shlibpath_var_GCJ=no
  15893. # hardcode_minus_L: Not really in the search PATH,
  15894. # but as the default location of the library.
  15895. hardcode_minus_L_GCJ=yes
  15896. ;;
  15897. *)
  15898. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15899. hardcode_libdir_separator_GCJ=:
  15900. hardcode_direct_GCJ=yes
  15901. export_dynamic_flag_spec_GCJ='${wl}-E'
  15902. # hardcode_minus_L: Not really in the search PATH,
  15903. # but as the default location of the library.
  15904. hardcode_minus_L_GCJ=yes
  15905. ;;
  15906. esac
  15907. fi
  15908. ;;
  15909. irix5* | irix6* | nonstopux*)
  15910. if test "$GCC" = yes; then
  15911. 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'
  15912. else
  15913. 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'
  15914. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  15915. fi
  15916. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15917. hardcode_libdir_separator_GCJ=:
  15918. link_all_deplibs_GCJ=yes
  15919. ;;
  15920. netbsd*)
  15921. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15922. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  15923. else
  15924. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  15925. fi
  15926. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15927. hardcode_direct_GCJ=yes
  15928. hardcode_shlibpath_var_GCJ=no
  15929. ;;
  15930. newsos6)
  15931. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15932. hardcode_direct_GCJ=yes
  15933. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15934. hardcode_libdir_separator_GCJ=:
  15935. hardcode_shlibpath_var_GCJ=no
  15936. ;;
  15937. openbsd*)
  15938. hardcode_direct_GCJ=yes
  15939. hardcode_shlibpath_var_GCJ=no
  15940. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15941. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15942. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  15943. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15944. export_dynamic_flag_spec_GCJ='${wl}-E'
  15945. else
  15946. case $host_os in
  15947. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  15948. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15949. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15950. ;;
  15951. *)
  15952. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15953. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15954. ;;
  15955. esac
  15956. fi
  15957. ;;
  15958. os2*)
  15959. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15960. hardcode_minus_L_GCJ=yes
  15961. allow_undefined_flag_GCJ=unsupported
  15962. 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'
  15963. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  15964. ;;
  15965. osf3*)
  15966. if test "$GCC" = yes; then
  15967. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15968. 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'
  15969. else
  15970. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15971. 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'
  15972. fi
  15973. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15974. hardcode_libdir_separator_GCJ=:
  15975. ;;
  15976. osf4* | osf5*) # as osf3* with the addition of -msym flag
  15977. if test "$GCC" = yes; then
  15978. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15979. 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'
  15980. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15981. else
  15982. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15983. 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'
  15984. 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~
  15985. $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'
  15986. # Both c and cxx compiler support -rpath directly
  15987. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  15988. fi
  15989. hardcode_libdir_separator_GCJ=:
  15990. ;;
  15991. sco3.2v5*)
  15992. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15993. hardcode_shlibpath_var_GCJ=no
  15994. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  15995. runpath_var=LD_RUN_PATH
  15996. hardcode_runpath_var=yes
  15997. ;;
  15998. solaris*)
  15999. no_undefined_flag_GCJ=' -z text'
  16000. if test "$GCC" = yes; then
  16001. wlarc='${wl}'
  16002. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16003. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16004. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  16005. else
  16006. wlarc=''
  16007. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16008. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16009. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  16010. fi
  16011. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16012. hardcode_shlibpath_var_GCJ=no
  16013. case $host_os in
  16014. solaris2.[0-5] | solaris2.[0-5].*) ;;
  16015. *)
  16016. # The compiler driver will combine linker options so we
  16017. # cannot just pass the convience library names through
  16018. # without $wl, iff we do not link with $LD.
  16019. # Luckily, gcc supports the same syntax we need for Sun Studio.
  16020. # Supported since Solaris 2.6 (maybe 2.5.1?)
  16021. case $wlarc in
  16022. '')
  16023. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  16024. *)
  16025. 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' ;;
  16026. esac ;;
  16027. esac
  16028. link_all_deplibs_GCJ=yes
  16029. ;;
  16030. sunos4*)
  16031. if test "x$host_vendor" = xsequent; then
  16032. # Use $CC to link under sequent, because it throws in some extra .o
  16033. # files that make .init and .fini sections work.
  16034. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  16035. else
  16036. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  16037. fi
  16038. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16039. hardcode_direct_GCJ=yes
  16040. hardcode_minus_L_GCJ=yes
  16041. hardcode_shlibpath_var_GCJ=no
  16042. ;;
  16043. sysv4)
  16044. case $host_vendor in
  16045. sni)
  16046. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16047. hardcode_direct_GCJ=yes # is this really true???
  16048. ;;
  16049. siemens)
  16050. ## LD is ld it makes a PLAMLIB
  16051. ## CC just makes a GrossModule.
  16052. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  16053. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  16054. hardcode_direct_GCJ=no
  16055. ;;
  16056. motorola)
  16057. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16058. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  16059. ;;
  16060. esac
  16061. runpath_var='LD_RUN_PATH'
  16062. hardcode_shlibpath_var_GCJ=no
  16063. ;;
  16064. sysv4.3*)
  16065. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16066. hardcode_shlibpath_var_GCJ=no
  16067. export_dynamic_flag_spec_GCJ='-Bexport'
  16068. ;;
  16069. sysv4*MP*)
  16070. if test -d /usr/nec; then
  16071. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16072. hardcode_shlibpath_var_GCJ=no
  16073. runpath_var=LD_RUN_PATH
  16074. hardcode_runpath_var=yes
  16075. ld_shlibs_GCJ=yes
  16076. fi
  16077. ;;
  16078. sysv4.2uw2*)
  16079. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  16080. hardcode_direct_GCJ=yes
  16081. hardcode_minus_L_GCJ=no
  16082. hardcode_shlibpath_var_GCJ=no
  16083. hardcode_runpath_var=yes
  16084. runpath_var=LD_RUN_PATH
  16085. ;;
  16086. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  16087. no_undefined_flag_GCJ='${wl}-z ${wl}text'
  16088. if test "$GCC" = yes; then
  16089. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16090. else
  16091. archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16092. fi
  16093. runpath_var='LD_RUN_PATH'
  16094. hardcode_shlibpath_var_GCJ=no
  16095. ;;
  16096. sysv5*)
  16097. no_undefined_flag_GCJ=' -z text'
  16098. # $CC -shared without GNU ld will not create a library from C++
  16099. # object files and a static libstdc++, better avoid it by now
  16100. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16101. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16102. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  16103. hardcode_libdir_flag_spec_GCJ=
  16104. hardcode_shlibpath_var_GCJ=no
  16105. runpath_var='LD_RUN_PATH'
  16106. ;;
  16107. uts4*)
  16108. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16109. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16110. hardcode_shlibpath_var_GCJ=no
  16111. ;;
  16112. *)
  16113. ld_shlibs_GCJ=no
  16114. ;;
  16115. esac
  16116. fi
  16117. { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  16118. echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  16119. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  16120. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16121. if test "$GCC" = yes; then
  16122. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16123. fi
  16124. #
  16125. # Do we need to explicitly link libc?
  16126. #
  16127. case "x$archive_cmds_need_lc_GCJ" in
  16128. x|xyes)
  16129. # Assume -lc should be added
  16130. archive_cmds_need_lc_GCJ=yes
  16131. if test "$enable_shared" = yes && test "$GCC" = yes; then
  16132. case $archive_cmds_GCJ in
  16133. *'~'*)
  16134. # FIXME: we may have to deal with multi-command sequences.
  16135. ;;
  16136. '$CC '*)
  16137. # Test whether the compiler implicitly links with -lc since on some
  16138. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  16139. # to ld, don't add -lc before -lgcc.
  16140. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  16141. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  16142. $rm conftest*
  16143. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  16144. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16145. (eval $ac_compile) 2>&5
  16146. ac_status=$?
  16147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16148. (exit $ac_status); } 2>conftest.err; then
  16149. soname=conftest
  16150. lib=conftest
  16151. libobjs=conftest.$ac_objext
  16152. deplibs=
  16153. wl=$lt_prog_compiler_wl_GCJ
  16154. compiler_flags=-v
  16155. linker_flags=-v
  16156. verstring=
  16157. output_objdir=.
  16158. libname=conftest
  16159. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  16160. allow_undefined_flag_GCJ=
  16161. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  16162. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  16163. ac_status=$?
  16164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16165. (exit $ac_status); }
  16166. then
  16167. archive_cmds_need_lc_GCJ=no
  16168. else
  16169. archive_cmds_need_lc_GCJ=yes
  16170. fi
  16171. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  16172. else
  16173. cat conftest.err 1>&5
  16174. fi
  16175. $rm conftest*
  16176. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  16177. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  16178. ;;
  16179. esac
  16180. fi
  16181. ;;
  16182. esac
  16183. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  16184. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  16185. library_names_spec=
  16186. libname_spec='lib$name'
  16187. soname_spec=
  16188. shrext_cmds=".so"
  16189. postinstall_cmds=
  16190. postuninstall_cmds=
  16191. finish_cmds=
  16192. finish_eval=
  16193. shlibpath_var=
  16194. shlibpath_overrides_runpath=unknown
  16195. version_type=none
  16196. dynamic_linker="$host_os ld.so"
  16197. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  16198. if test "$GCC" = yes; then
  16199. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16200. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  16201. # if the path contains ";" then we assume it to be the separator
  16202. # otherwise default to the standard path separator (i.e. ":") - it is
  16203. # assumed that no part of a normal pathname contains ";" but that should
  16204. # okay in the real world where ";" in dirpaths is itself problematic.
  16205. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16206. else
  16207. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16208. fi
  16209. else
  16210. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  16211. fi
  16212. need_lib_prefix=unknown
  16213. hardcode_into_libs=no
  16214. # when you set need_version to no, make sure it does not cause -set_version
  16215. # flags to be left without arguments
  16216. need_version=unknown
  16217. case $host_os in
  16218. aix3*)
  16219. version_type=linux
  16220. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  16221. shlibpath_var=LIBPATH
  16222. # AIX 3 has no versioning support, so we append a major version to the name.
  16223. soname_spec='${libname}${release}${shared_ext}$major'
  16224. ;;
  16225. aix4* | aix5*)
  16226. version_type=linux
  16227. need_lib_prefix=no
  16228. need_version=no
  16229. hardcode_into_libs=yes
  16230. if test "$host_cpu" = ia64; then
  16231. # AIX 5 supports IA64
  16232. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  16233. shlibpath_var=LD_LIBRARY_PATH
  16234. else
  16235. # With GCC up to 2.95.x, collect2 would create an import file
  16236. # for dependence libraries. The import file would start with
  16237. # the line `#! .'. This would cause the generated library to
  16238. # depend on `.', always an invalid library. This was fixed in
  16239. # development snapshots of GCC prior to 3.0.
  16240. case $host_os in
  16241. aix4 | aix4.[01] | aix4.[01].*)
  16242. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  16243. echo ' yes '
  16244. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  16245. :
  16246. else
  16247. can_build_shared=no
  16248. fi
  16249. ;;
  16250. esac
  16251. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  16252. # soname into executable. Probably we can add versioning support to
  16253. # collect2, so additional links can be useful in future.
  16254. if test "$aix_use_runtimelinking" = yes; then
  16255. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  16256. # instead of lib<name>.a to let people know that these are not
  16257. # typical AIX shared libraries.
  16258. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16259. else
  16260. # We preserve .a as extension for shared libraries through AIX4.2
  16261. # and later when we are not doing run time linking.
  16262. library_names_spec='${libname}${release}.a $libname.a'
  16263. soname_spec='${libname}${release}${shared_ext}$major'
  16264. fi
  16265. shlibpath_var=LIBPATH
  16266. fi
  16267. ;;
  16268. amigaos*)
  16269. library_names_spec='$libname.ixlibrary $libname.a'
  16270. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  16271. 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'
  16272. ;;
  16273. beos*)
  16274. library_names_spec='${libname}${shared_ext}'
  16275. dynamic_linker="$host_os ld.so"
  16276. shlibpath_var=LIBRARY_PATH
  16277. ;;
  16278. bsdi[45]*)
  16279. version_type=linux
  16280. need_version=no
  16281. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16282. soname_spec='${libname}${release}${shared_ext}$major'
  16283. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  16284. shlibpath_var=LD_LIBRARY_PATH
  16285. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  16286. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  16287. # the default ld.so.conf also contains /usr/contrib/lib and
  16288. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  16289. # libtool to hard-code these into programs
  16290. ;;
  16291. cygwin* | mingw* | pw32*)
  16292. version_type=windows
  16293. shrext_cmds=".dll"
  16294. need_version=no
  16295. need_lib_prefix=no
  16296. case $GCC,$host_os in
  16297. yes,cygwin* | yes,mingw* | yes,pw32*)
  16298. library_names_spec='$libname.dll.a'
  16299. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  16300. postinstall_cmds='base_file=`basename \${file}`~
  16301. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  16302. dldir=$destdir/`dirname \$dlpath`~
  16303. test -d \$dldir || mkdir -p \$dldir~
  16304. $install_prog $dir/$dlname \$dldir/$dlname'
  16305. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  16306. dlpath=$dir/\$dldll~
  16307. $rm \$dlpath'
  16308. shlibpath_overrides_runpath=yes
  16309. case $host_os in
  16310. cygwin*)
  16311. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  16312. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16313. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  16314. ;;
  16315. mingw*)
  16316. # MinGW DLLs use traditional 'lib' prefix
  16317. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16318. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16319. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  16320. # It is most probably a Windows format PATH printed by
  16321. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  16322. # path with ; separators, and with drive letters. We can handle the
  16323. # drive letters (cygwin fileutils understands them), so leave them,
  16324. # especially as we might pass files found there to a mingw objdump,
  16325. # which wouldn't understand a cygwinified path. Ahh.
  16326. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16327. else
  16328. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16329. fi
  16330. ;;
  16331. pw32*)
  16332. # pw32 DLLs use 'pw' prefix rather than 'lib'
  16333. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16334. ;;
  16335. esac
  16336. ;;
  16337. *)
  16338. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  16339. ;;
  16340. esac
  16341. dynamic_linker='Win32 ld.exe'
  16342. # FIXME: first we should search . and the directory the executable is in
  16343. shlibpath_var=PATH
  16344. ;;
  16345. darwin* | rhapsody*)
  16346. dynamic_linker="$host_os dyld"
  16347. version_type=darwin
  16348. need_lib_prefix=no
  16349. need_version=no
  16350. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  16351. soname_spec='${libname}${release}${major}$shared_ext'
  16352. shlibpath_overrides_runpath=yes
  16353. shlibpath_var=DYLD_LIBRARY_PATH
  16354. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  16355. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  16356. if test "$GCC" = yes; then
  16357. 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"`
  16358. else
  16359. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  16360. fi
  16361. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  16362. ;;
  16363. dgux*)
  16364. version_type=linux
  16365. need_lib_prefix=no
  16366. need_version=no
  16367. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  16368. soname_spec='${libname}${release}${shared_ext}$major'
  16369. shlibpath_var=LD_LIBRARY_PATH
  16370. ;;
  16371. freebsd1*)
  16372. dynamic_linker=no
  16373. ;;
  16374. kfreebsd*-gnu)
  16375. version_type=linux
  16376. need_lib_prefix=no
  16377. need_version=no
  16378. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16379. soname_spec='${libname}${release}${shared_ext}$major'
  16380. shlibpath_var=LD_LIBRARY_PATH
  16381. shlibpath_overrides_runpath=no
  16382. hardcode_into_libs=yes
  16383. dynamic_linker='GNU ld.so'
  16384. ;;
  16385. freebsd* | dragonfly*)
  16386. # DragonFly does not have aout. When/if they implement a new
  16387. # versioning mechanism, adjust this.
  16388. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  16389. version_type=freebsd-$objformat
  16390. case $version_type in
  16391. freebsd-elf*)
  16392. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16393. need_version=no
  16394. need_lib_prefix=no
  16395. ;;
  16396. freebsd-*)
  16397. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  16398. need_version=yes
  16399. ;;
  16400. esac
  16401. shlibpath_var=LD_LIBRARY_PATH
  16402. case $host_os in
  16403. freebsd2*)
  16404. shlibpath_overrides_runpath=yes
  16405. ;;
  16406. freebsd3.[01]* | freebsdelf3.[01]*)
  16407. shlibpath_overrides_runpath=yes
  16408. hardcode_into_libs=yes
  16409. ;;
  16410. *) # from 3.2 on
  16411. shlibpath_overrides_runpath=no
  16412. hardcode_into_libs=yes
  16413. ;;
  16414. esac
  16415. ;;
  16416. gnu*)
  16417. version_type=linux
  16418. need_lib_prefix=no
  16419. need_version=no
  16420. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  16421. soname_spec='${libname}${release}${shared_ext}$major'
  16422. shlibpath_var=LD_LIBRARY_PATH
  16423. hardcode_into_libs=yes
  16424. ;;
  16425. hpux9* | hpux10* | hpux11*)
  16426. # Give a soname corresponding to the major version so that dld.sl refuses to
  16427. # link against other versions.
  16428. version_type=sunos
  16429. need_lib_prefix=no
  16430. need_version=no
  16431. case "$host_cpu" in
  16432. ia64*)
  16433. shrext_cmds='.so'
  16434. hardcode_into_libs=yes
  16435. dynamic_linker="$host_os dld.so"
  16436. shlibpath_var=LD_LIBRARY_PATH
  16437. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16438. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16439. soname_spec='${libname}${release}${shared_ext}$major'
  16440. if test "X$HPUX_IA64_MODE" = X32; then
  16441. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  16442. else
  16443. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  16444. fi
  16445. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16446. ;;
  16447. hppa*64*)
  16448. shrext_cmds='.sl'
  16449. hardcode_into_libs=yes
  16450. dynamic_linker="$host_os dld.sl"
  16451. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  16452. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16453. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16454. soname_spec='${libname}${release}${shared_ext}$major'
  16455. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  16456. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16457. ;;
  16458. *)
  16459. shrext_cmds='.sl'
  16460. dynamic_linker="$host_os dld.sl"
  16461. shlibpath_var=SHLIB_PATH
  16462. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  16463. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16464. soname_spec='${libname}${release}${shared_ext}$major'
  16465. ;;
  16466. esac
  16467. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  16468. postinstall_cmds='chmod 555 $lib'
  16469. ;;
  16470. irix5* | irix6* | nonstopux*)
  16471. case $host_os in
  16472. nonstopux*) version_type=nonstopux ;;
  16473. *)
  16474. if test "$lt_cv_prog_gnu_ld" = yes; then
  16475. version_type=linux
  16476. else
  16477. version_type=irix
  16478. fi ;;
  16479. esac
  16480. need_lib_prefix=no
  16481. need_version=no
  16482. soname_spec='${libname}${release}${shared_ext}$major'
  16483. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  16484. case $host_os in
  16485. irix5* | nonstopux*)
  16486. libsuff= shlibsuff=
  16487. ;;
  16488. *)
  16489. case $LD in # libtool.m4 will add one of these switches to LD
  16490. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  16491. libsuff= shlibsuff= libmagic=32-bit;;
  16492. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  16493. libsuff=32 shlibsuff=N32 libmagic=N32;;
  16494. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  16495. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  16496. *) libsuff= shlibsuff= libmagic=never-match;;
  16497. esac
  16498. ;;
  16499. esac
  16500. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  16501. shlibpath_overrides_runpath=no
  16502. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  16503. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  16504. hardcode_into_libs=yes
  16505. ;;
  16506. # No shared lib support for Linux oldld, aout, or coff.
  16507. linux*oldld* | linux*aout* | linux*coff*)
  16508. dynamic_linker=no
  16509. ;;
  16510. # This must be Linux ELF.
  16511. linux*)
  16512. version_type=linux
  16513. need_lib_prefix=no
  16514. need_version=no
  16515. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16516. soname_spec='${libname}${release}${shared_ext}$major'
  16517. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  16518. shlibpath_var=LD_LIBRARY_PATH
  16519. shlibpath_overrides_runpath=no
  16520. # This implies no fast_install, which is unacceptable.
  16521. # Some rework will be needed to allow for fast_install
  16522. # before this can be enabled.
  16523. hardcode_into_libs=yes
  16524. # Append ld.so.conf contents to the search path
  16525. if test -f /etc/ld.so.conf; then
  16526. 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' ' '`
  16527. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  16528. fi
  16529. # We used to test for /lib/ld.so.1 and disable shared libraries on
  16530. # powerpc, because MkLinux only supported shared libraries with the
  16531. # GNU dynamic linker. Since this was broken with cross compilers,
  16532. # most powerpc-linux boxes support dynamic linking these days and
  16533. # people can always --disable-shared, the test was removed, and we
  16534. # assume the GNU/Linux dynamic linker is in use.
  16535. dynamic_linker='GNU/Linux ld.so'
  16536. ;;
  16537. knetbsd*-gnu)
  16538. version_type=linux
  16539. need_lib_prefix=no
  16540. need_version=no
  16541. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16542. soname_spec='${libname}${release}${shared_ext}$major'
  16543. shlibpath_var=LD_LIBRARY_PATH
  16544. shlibpath_overrides_runpath=no
  16545. hardcode_into_libs=yes
  16546. dynamic_linker='GNU ld.so'
  16547. ;;
  16548. netbsd*)
  16549. version_type=sunos
  16550. need_lib_prefix=no
  16551. need_version=no
  16552. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16553. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16554. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16555. dynamic_linker='NetBSD (a.out) ld.so'
  16556. else
  16557. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16558. soname_spec='${libname}${release}${shared_ext}$major'
  16559. dynamic_linker='NetBSD ld.elf_so'
  16560. fi
  16561. shlibpath_var=LD_LIBRARY_PATH
  16562. shlibpath_overrides_runpath=yes
  16563. hardcode_into_libs=yes
  16564. ;;
  16565. newsos6)
  16566. version_type=linux
  16567. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16568. shlibpath_var=LD_LIBRARY_PATH
  16569. shlibpath_overrides_runpath=yes
  16570. ;;
  16571. nto-qnx*)
  16572. version_type=linux
  16573. need_lib_prefix=no
  16574. need_version=no
  16575. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16576. soname_spec='${libname}${release}${shared_ext}$major'
  16577. shlibpath_var=LD_LIBRARY_PATH
  16578. shlibpath_overrides_runpath=yes
  16579. ;;
  16580. openbsd*)
  16581. version_type=sunos
  16582. need_lib_prefix=no
  16583. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  16584. case $host_os in
  16585. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  16586. *) need_version=no ;;
  16587. esac
  16588. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16589. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16590. shlibpath_var=LD_LIBRARY_PATH
  16591. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16592. case $host_os in
  16593. openbsd2.[89] | openbsd2.[89].*)
  16594. shlibpath_overrides_runpath=no
  16595. ;;
  16596. *)
  16597. shlibpath_overrides_runpath=yes
  16598. ;;
  16599. esac
  16600. else
  16601. shlibpath_overrides_runpath=yes
  16602. fi
  16603. ;;
  16604. os2*)
  16605. libname_spec='$name'
  16606. shrext_cmds=".dll"
  16607. need_lib_prefix=no
  16608. library_names_spec='$libname${shared_ext} $libname.a'
  16609. dynamic_linker='OS/2 ld.exe'
  16610. shlibpath_var=LIBPATH
  16611. ;;
  16612. osf3* | osf4* | osf5*)
  16613. version_type=osf
  16614. need_lib_prefix=no
  16615. need_version=no
  16616. soname_spec='${libname}${release}${shared_ext}$major'
  16617. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16618. shlibpath_var=LD_LIBRARY_PATH
  16619. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  16620. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  16621. ;;
  16622. sco3.2v5*)
  16623. version_type=osf
  16624. soname_spec='${libname}${release}${shared_ext}$major'
  16625. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16626. shlibpath_var=LD_LIBRARY_PATH
  16627. ;;
  16628. solaris*)
  16629. version_type=linux
  16630. need_lib_prefix=no
  16631. need_version=no
  16632. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16633. soname_spec='${libname}${release}${shared_ext}$major'
  16634. shlibpath_var=LD_LIBRARY_PATH
  16635. shlibpath_overrides_runpath=yes
  16636. hardcode_into_libs=yes
  16637. # ldd complains unless libraries are executable
  16638. postinstall_cmds='chmod +x $lib'
  16639. ;;
  16640. sunos4*)
  16641. version_type=sunos
  16642. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16643. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  16644. shlibpath_var=LD_LIBRARY_PATH
  16645. shlibpath_overrides_runpath=yes
  16646. if test "$with_gnu_ld" = yes; then
  16647. need_lib_prefix=no
  16648. fi
  16649. need_version=yes
  16650. ;;
  16651. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  16652. version_type=linux
  16653. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16654. soname_spec='${libname}${release}${shared_ext}$major'
  16655. shlibpath_var=LD_LIBRARY_PATH
  16656. case $host_vendor in
  16657. sni)
  16658. shlibpath_overrides_runpath=no
  16659. need_lib_prefix=no
  16660. export_dynamic_flag_spec='${wl}-Blargedynsym'
  16661. runpath_var=LD_RUN_PATH
  16662. ;;
  16663. siemens)
  16664. need_lib_prefix=no
  16665. ;;
  16666. motorola)
  16667. need_lib_prefix=no
  16668. need_version=no
  16669. shlibpath_overrides_runpath=no
  16670. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  16671. ;;
  16672. esac
  16673. ;;
  16674. sysv4*MP*)
  16675. if test -d /usr/nec ;then
  16676. version_type=linux
  16677. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  16678. soname_spec='$libname${shared_ext}.$major'
  16679. shlibpath_var=LD_LIBRARY_PATH
  16680. fi
  16681. ;;
  16682. uts4*)
  16683. version_type=linux
  16684. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16685. soname_spec='${libname}${release}${shared_ext}$major'
  16686. shlibpath_var=LD_LIBRARY_PATH
  16687. ;;
  16688. *)
  16689. dynamic_linker=no
  16690. ;;
  16691. esac
  16692. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  16693. echo "${ECHO_T}$dynamic_linker" >&6; }
  16694. test "$dynamic_linker" = no && can_build_shared=no
  16695. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  16696. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  16697. hardcode_action_GCJ=
  16698. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  16699. test -n "$runpath_var_GCJ" || \
  16700. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  16701. # We can hardcode non-existant directories.
  16702. if test "$hardcode_direct_GCJ" != no &&
  16703. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16704. # have to relink, otherwise we might link with an installed library
  16705. # when we should be linking with a yet-to-be-installed one
  16706. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  16707. test "$hardcode_minus_L_GCJ" != no; then
  16708. # Linking always hardcodes the temporary library directory.
  16709. hardcode_action_GCJ=relink
  16710. else
  16711. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16712. hardcode_action_GCJ=immediate
  16713. fi
  16714. else
  16715. # We cannot hardcode anything, or else we can only hardcode existing
  16716. # directories.
  16717. hardcode_action_GCJ=unsupported
  16718. fi
  16719. { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  16720. echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  16721. if test "$hardcode_action_GCJ" = relink; then
  16722. # Fast installation is not supported
  16723. enable_fast_install=no
  16724. elif test "$shlibpath_overrides_runpath" = yes ||
  16725. test "$enable_shared" = no; then
  16726. # Fast installation is not necessary
  16727. enable_fast_install=needless
  16728. fi
  16729. striplib=
  16730. old_striplib=
  16731. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  16732. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  16733. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  16734. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  16735. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  16736. { echo "$as_me:$LINENO: result: yes" >&5
  16737. echo "${ECHO_T}yes" >&6; }
  16738. else
  16739. # FIXME - insert some real tests, host_os isn't really good enough
  16740. case $host_os in
  16741. darwin*)
  16742. if test -n "$STRIP" ; then
  16743. striplib="$STRIP -x"
  16744. { echo "$as_me:$LINENO: result: yes" >&5
  16745. echo "${ECHO_T}yes" >&6; }
  16746. else
  16747. { echo "$as_me:$LINENO: result: no" >&5
  16748. echo "${ECHO_T}no" >&6; }
  16749. fi
  16750. ;;
  16751. *)
  16752. { echo "$as_me:$LINENO: result: no" >&5
  16753. echo "${ECHO_T}no" >&6; }
  16754. ;;
  16755. esac
  16756. fi
  16757. if test "x$enable_dlopen" != xyes; then
  16758. enable_dlopen=unknown
  16759. enable_dlopen_self=unknown
  16760. enable_dlopen_self_static=unknown
  16761. else
  16762. lt_cv_dlopen=no
  16763. lt_cv_dlopen_libs=
  16764. case $host_os in
  16765. beos*)
  16766. lt_cv_dlopen="load_add_on"
  16767. lt_cv_dlopen_libs=
  16768. lt_cv_dlopen_self=yes
  16769. ;;
  16770. mingw* | pw32*)
  16771. lt_cv_dlopen="LoadLibrary"
  16772. lt_cv_dlopen_libs=
  16773. ;;
  16774. cygwin*)
  16775. lt_cv_dlopen="dlopen"
  16776. lt_cv_dlopen_libs=
  16777. ;;
  16778. darwin*)
  16779. # if libdl is installed we need to link against it
  16780. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  16781. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  16782. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  16783. echo $ECHO_N "(cached) $ECHO_C" >&6
  16784. else
  16785. ac_check_lib_save_LIBS=$LIBS
  16786. LIBS="-ldl $LIBS"
  16787. cat >conftest.$ac_ext <<_ACEOF
  16788. /* confdefs.h. */
  16789. _ACEOF
  16790. cat confdefs.h >>conftest.$ac_ext
  16791. cat >>conftest.$ac_ext <<_ACEOF
  16792. /* end confdefs.h. */
  16793. /* Override any GCC internal prototype to avoid an error.
  16794. Use char because int might match the return type of a GCC
  16795. builtin and then its argument prototype would still apply. */
  16796. #ifdef __cplusplus
  16797. extern "C"
  16798. #endif
  16799. char dlopen ();
  16800. int
  16801. main ()
  16802. {
  16803. return dlopen ();
  16804. ;
  16805. return 0;
  16806. }
  16807. _ACEOF
  16808. rm -f conftest.$ac_objext conftest$ac_exeext
  16809. if { (ac_try="$ac_link"
  16810. case "(($ac_try" in
  16811. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16812. *) ac_try_echo=$ac_try;;
  16813. esac
  16814. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16815. (eval "$ac_link") 2>conftest.er1
  16816. ac_status=$?
  16817. grep -v '^ *+' conftest.er1 >conftest.err
  16818. rm -f conftest.er1
  16819. cat conftest.err >&5
  16820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16821. (exit $ac_status); } && {
  16822. test -z "$ac_c_werror_flag" ||
  16823. test ! -s conftest.err
  16824. } && test -s conftest$ac_exeext &&
  16825. $as_test_x conftest$ac_exeext; then
  16826. ac_cv_lib_dl_dlopen=yes
  16827. else
  16828. echo "$as_me: failed program was:" >&5
  16829. sed 's/^/| /' conftest.$ac_ext >&5
  16830. ac_cv_lib_dl_dlopen=no
  16831. fi
  16832. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16833. conftest$ac_exeext conftest.$ac_ext
  16834. LIBS=$ac_check_lib_save_LIBS
  16835. fi
  16836. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  16837. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  16838. if test $ac_cv_lib_dl_dlopen = yes; then
  16839. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  16840. else
  16841. lt_cv_dlopen="dyld"
  16842. lt_cv_dlopen_libs=
  16843. lt_cv_dlopen_self=yes
  16844. fi
  16845. ;;
  16846. *)
  16847. { echo "$as_me:$LINENO: checking for shl_load" >&5
  16848. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  16849. if test "${ac_cv_func_shl_load+set}" = set; then
  16850. echo $ECHO_N "(cached) $ECHO_C" >&6
  16851. else
  16852. cat >conftest.$ac_ext <<_ACEOF
  16853. /* confdefs.h. */
  16854. _ACEOF
  16855. cat confdefs.h >>conftest.$ac_ext
  16856. cat >>conftest.$ac_ext <<_ACEOF
  16857. /* end confdefs.h. */
  16858. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  16859. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16860. #define shl_load innocuous_shl_load
  16861. /* System header to define __stub macros and hopefully few prototypes,
  16862. which can conflict with char shl_load (); below.
  16863. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16864. <limits.h> exists even on freestanding compilers. */
  16865. #ifdef __STDC__
  16866. # include <limits.h>
  16867. #else
  16868. # include <assert.h>
  16869. #endif
  16870. #undef shl_load
  16871. /* Override any GCC internal prototype to avoid an error.
  16872. Use char because int might match the return type of a GCC
  16873. builtin and then its argument prototype would still apply. */
  16874. #ifdef __cplusplus
  16875. extern "C"
  16876. #endif
  16877. char shl_load ();
  16878. /* The GNU C library defines this for functions which it implements
  16879. to always fail with ENOSYS. Some functions are actually named
  16880. something starting with __ and the normal name is an alias. */
  16881. #if defined __stub_shl_load || defined __stub___shl_load
  16882. choke me
  16883. #endif
  16884. int
  16885. main ()
  16886. {
  16887. return shl_load ();
  16888. ;
  16889. return 0;
  16890. }
  16891. _ACEOF
  16892. rm -f conftest.$ac_objext conftest$ac_exeext
  16893. if { (ac_try="$ac_link"
  16894. case "(($ac_try" in
  16895. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16896. *) ac_try_echo=$ac_try;;
  16897. esac
  16898. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16899. (eval "$ac_link") 2>conftest.er1
  16900. ac_status=$?
  16901. grep -v '^ *+' conftest.er1 >conftest.err
  16902. rm -f conftest.er1
  16903. cat conftest.err >&5
  16904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16905. (exit $ac_status); } && {
  16906. test -z "$ac_c_werror_flag" ||
  16907. test ! -s conftest.err
  16908. } && test -s conftest$ac_exeext &&
  16909. $as_test_x conftest$ac_exeext; then
  16910. ac_cv_func_shl_load=yes
  16911. else
  16912. echo "$as_me: failed program was:" >&5
  16913. sed 's/^/| /' conftest.$ac_ext >&5
  16914. ac_cv_func_shl_load=no
  16915. fi
  16916. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16917. conftest$ac_exeext conftest.$ac_ext
  16918. fi
  16919. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  16920. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  16921. if test $ac_cv_func_shl_load = yes; then
  16922. lt_cv_dlopen="shl_load"
  16923. else
  16924. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  16925. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  16926. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  16927. echo $ECHO_N "(cached) $ECHO_C" >&6
  16928. else
  16929. ac_check_lib_save_LIBS=$LIBS
  16930. LIBS="-ldld $LIBS"
  16931. cat >conftest.$ac_ext <<_ACEOF
  16932. /* confdefs.h. */
  16933. _ACEOF
  16934. cat confdefs.h >>conftest.$ac_ext
  16935. cat >>conftest.$ac_ext <<_ACEOF
  16936. /* end confdefs.h. */
  16937. /* Override any GCC internal prototype to avoid an error.
  16938. Use char because int might match the return type of a GCC
  16939. builtin and then its argument prototype would still apply. */
  16940. #ifdef __cplusplus
  16941. extern "C"
  16942. #endif
  16943. char shl_load ();
  16944. int
  16945. main ()
  16946. {
  16947. return shl_load ();
  16948. ;
  16949. return 0;
  16950. }
  16951. _ACEOF
  16952. rm -f conftest.$ac_objext conftest$ac_exeext
  16953. if { (ac_try="$ac_link"
  16954. case "(($ac_try" in
  16955. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16956. *) ac_try_echo=$ac_try;;
  16957. esac
  16958. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16959. (eval "$ac_link") 2>conftest.er1
  16960. ac_status=$?
  16961. grep -v '^ *+' conftest.er1 >conftest.err
  16962. rm -f conftest.er1
  16963. cat conftest.err >&5
  16964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16965. (exit $ac_status); } && {
  16966. test -z "$ac_c_werror_flag" ||
  16967. test ! -s conftest.err
  16968. } && test -s conftest$ac_exeext &&
  16969. $as_test_x conftest$ac_exeext; then
  16970. ac_cv_lib_dld_shl_load=yes
  16971. else
  16972. echo "$as_me: failed program was:" >&5
  16973. sed 's/^/| /' conftest.$ac_ext >&5
  16974. ac_cv_lib_dld_shl_load=no
  16975. fi
  16976. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16977. conftest$ac_exeext conftest.$ac_ext
  16978. LIBS=$ac_check_lib_save_LIBS
  16979. fi
  16980. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  16981. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  16982. if test $ac_cv_lib_dld_shl_load = yes; then
  16983. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  16984. else
  16985. { echo "$as_me:$LINENO: checking for dlopen" >&5
  16986. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  16987. if test "${ac_cv_func_dlopen+set}" = set; then
  16988. echo $ECHO_N "(cached) $ECHO_C" >&6
  16989. else
  16990. cat >conftest.$ac_ext <<_ACEOF
  16991. /* confdefs.h. */
  16992. _ACEOF
  16993. cat confdefs.h >>conftest.$ac_ext
  16994. cat >>conftest.$ac_ext <<_ACEOF
  16995. /* end confdefs.h. */
  16996. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  16997. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16998. #define dlopen innocuous_dlopen
  16999. /* System header to define __stub macros and hopefully few prototypes,
  17000. which can conflict with char dlopen (); below.
  17001. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17002. <limits.h> exists even on freestanding compilers. */
  17003. #ifdef __STDC__
  17004. # include <limits.h>
  17005. #else
  17006. # include <assert.h>
  17007. #endif
  17008. #undef dlopen
  17009. /* Override any GCC internal prototype to avoid an error.
  17010. Use char because int might match the return type of a GCC
  17011. builtin and then its argument prototype would still apply. */
  17012. #ifdef __cplusplus
  17013. extern "C"
  17014. #endif
  17015. char dlopen ();
  17016. /* The GNU C library defines this for functions which it implements
  17017. to always fail with ENOSYS. Some functions are actually named
  17018. something starting with __ and the normal name is an alias. */
  17019. #if defined __stub_dlopen || defined __stub___dlopen
  17020. choke me
  17021. #endif
  17022. int
  17023. main ()
  17024. {
  17025. return dlopen ();
  17026. ;
  17027. return 0;
  17028. }
  17029. _ACEOF
  17030. rm -f conftest.$ac_objext conftest$ac_exeext
  17031. if { (ac_try="$ac_link"
  17032. case "(($ac_try" in
  17033. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17034. *) ac_try_echo=$ac_try;;
  17035. esac
  17036. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17037. (eval "$ac_link") 2>conftest.er1
  17038. ac_status=$?
  17039. grep -v '^ *+' conftest.er1 >conftest.err
  17040. rm -f conftest.er1
  17041. cat conftest.err >&5
  17042. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17043. (exit $ac_status); } && {
  17044. test -z "$ac_c_werror_flag" ||
  17045. test ! -s conftest.err
  17046. } && test -s conftest$ac_exeext &&
  17047. $as_test_x conftest$ac_exeext; then
  17048. ac_cv_func_dlopen=yes
  17049. else
  17050. echo "$as_me: failed program was:" >&5
  17051. sed 's/^/| /' conftest.$ac_ext >&5
  17052. ac_cv_func_dlopen=no
  17053. fi
  17054. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17055. conftest$ac_exeext conftest.$ac_ext
  17056. fi
  17057. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  17058. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  17059. if test $ac_cv_func_dlopen = yes; then
  17060. lt_cv_dlopen="dlopen"
  17061. else
  17062. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  17063. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  17064. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  17065. echo $ECHO_N "(cached) $ECHO_C" >&6
  17066. else
  17067. ac_check_lib_save_LIBS=$LIBS
  17068. LIBS="-ldl $LIBS"
  17069. cat >conftest.$ac_ext <<_ACEOF
  17070. /* confdefs.h. */
  17071. _ACEOF
  17072. cat confdefs.h >>conftest.$ac_ext
  17073. cat >>conftest.$ac_ext <<_ACEOF
  17074. /* end confdefs.h. */
  17075. /* Override any GCC internal prototype to avoid an error.
  17076. Use char because int might match the return type of a GCC
  17077. builtin and then its argument prototype would still apply. */
  17078. #ifdef __cplusplus
  17079. extern "C"
  17080. #endif
  17081. char dlopen ();
  17082. int
  17083. main ()
  17084. {
  17085. return dlopen ();
  17086. ;
  17087. return 0;
  17088. }
  17089. _ACEOF
  17090. rm -f conftest.$ac_objext conftest$ac_exeext
  17091. if { (ac_try="$ac_link"
  17092. case "(($ac_try" in
  17093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17094. *) ac_try_echo=$ac_try;;
  17095. esac
  17096. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17097. (eval "$ac_link") 2>conftest.er1
  17098. ac_status=$?
  17099. grep -v '^ *+' conftest.er1 >conftest.err
  17100. rm -f conftest.er1
  17101. cat conftest.err >&5
  17102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17103. (exit $ac_status); } && {
  17104. test -z "$ac_c_werror_flag" ||
  17105. test ! -s conftest.err
  17106. } && test -s conftest$ac_exeext &&
  17107. $as_test_x conftest$ac_exeext; then
  17108. ac_cv_lib_dl_dlopen=yes
  17109. else
  17110. echo "$as_me: failed program was:" >&5
  17111. sed 's/^/| /' conftest.$ac_ext >&5
  17112. ac_cv_lib_dl_dlopen=no
  17113. fi
  17114. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17115. conftest$ac_exeext conftest.$ac_ext
  17116. LIBS=$ac_check_lib_save_LIBS
  17117. fi
  17118. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  17119. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  17120. if test $ac_cv_lib_dl_dlopen = yes; then
  17121. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  17122. else
  17123. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  17124. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  17125. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  17126. echo $ECHO_N "(cached) $ECHO_C" >&6
  17127. else
  17128. ac_check_lib_save_LIBS=$LIBS
  17129. LIBS="-lsvld $LIBS"
  17130. cat >conftest.$ac_ext <<_ACEOF
  17131. /* confdefs.h. */
  17132. _ACEOF
  17133. cat confdefs.h >>conftest.$ac_ext
  17134. cat >>conftest.$ac_ext <<_ACEOF
  17135. /* end confdefs.h. */
  17136. /* Override any GCC internal prototype to avoid an error.
  17137. Use char because int might match the return type of a GCC
  17138. builtin and then its argument prototype would still apply. */
  17139. #ifdef __cplusplus
  17140. extern "C"
  17141. #endif
  17142. char dlopen ();
  17143. int
  17144. main ()
  17145. {
  17146. return dlopen ();
  17147. ;
  17148. return 0;
  17149. }
  17150. _ACEOF
  17151. rm -f conftest.$ac_objext conftest$ac_exeext
  17152. if { (ac_try="$ac_link"
  17153. case "(($ac_try" in
  17154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17155. *) ac_try_echo=$ac_try;;
  17156. esac
  17157. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17158. (eval "$ac_link") 2>conftest.er1
  17159. ac_status=$?
  17160. grep -v '^ *+' conftest.er1 >conftest.err
  17161. rm -f conftest.er1
  17162. cat conftest.err >&5
  17163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17164. (exit $ac_status); } && {
  17165. test -z "$ac_c_werror_flag" ||
  17166. test ! -s conftest.err
  17167. } && test -s conftest$ac_exeext &&
  17168. $as_test_x conftest$ac_exeext; then
  17169. ac_cv_lib_svld_dlopen=yes
  17170. else
  17171. echo "$as_me: failed program was:" >&5
  17172. sed 's/^/| /' conftest.$ac_ext >&5
  17173. ac_cv_lib_svld_dlopen=no
  17174. fi
  17175. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17176. conftest$ac_exeext conftest.$ac_ext
  17177. LIBS=$ac_check_lib_save_LIBS
  17178. fi
  17179. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  17180. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  17181. if test $ac_cv_lib_svld_dlopen = yes; then
  17182. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  17183. else
  17184. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  17185. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  17186. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  17187. echo $ECHO_N "(cached) $ECHO_C" >&6
  17188. else
  17189. ac_check_lib_save_LIBS=$LIBS
  17190. LIBS="-ldld $LIBS"
  17191. cat >conftest.$ac_ext <<_ACEOF
  17192. /* confdefs.h. */
  17193. _ACEOF
  17194. cat confdefs.h >>conftest.$ac_ext
  17195. cat >>conftest.$ac_ext <<_ACEOF
  17196. /* end confdefs.h. */
  17197. /* Override any GCC internal prototype to avoid an error.
  17198. Use char because int might match the return type of a GCC
  17199. builtin and then its argument prototype would still apply. */
  17200. #ifdef __cplusplus
  17201. extern "C"
  17202. #endif
  17203. char dld_link ();
  17204. int
  17205. main ()
  17206. {
  17207. return dld_link ();
  17208. ;
  17209. return 0;
  17210. }
  17211. _ACEOF
  17212. rm -f conftest.$ac_objext conftest$ac_exeext
  17213. if { (ac_try="$ac_link"
  17214. case "(($ac_try" in
  17215. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17216. *) ac_try_echo=$ac_try;;
  17217. esac
  17218. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17219. (eval "$ac_link") 2>conftest.er1
  17220. ac_status=$?
  17221. grep -v '^ *+' conftest.er1 >conftest.err
  17222. rm -f conftest.er1
  17223. cat conftest.err >&5
  17224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17225. (exit $ac_status); } && {
  17226. test -z "$ac_c_werror_flag" ||
  17227. test ! -s conftest.err
  17228. } && test -s conftest$ac_exeext &&
  17229. $as_test_x conftest$ac_exeext; then
  17230. ac_cv_lib_dld_dld_link=yes
  17231. else
  17232. echo "$as_me: failed program was:" >&5
  17233. sed 's/^/| /' conftest.$ac_ext >&5
  17234. ac_cv_lib_dld_dld_link=no
  17235. fi
  17236. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17237. conftest$ac_exeext conftest.$ac_ext
  17238. LIBS=$ac_check_lib_save_LIBS
  17239. fi
  17240. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  17241. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  17242. if test $ac_cv_lib_dld_dld_link = yes; then
  17243. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  17244. fi
  17245. fi
  17246. fi
  17247. fi
  17248. fi
  17249. fi
  17250. ;;
  17251. esac
  17252. if test "x$lt_cv_dlopen" != xno; then
  17253. enable_dlopen=yes
  17254. else
  17255. enable_dlopen=no
  17256. fi
  17257. case $lt_cv_dlopen in
  17258. dlopen)
  17259. save_CPPFLAGS="$CPPFLAGS"
  17260. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  17261. save_LDFLAGS="$LDFLAGS"
  17262. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  17263. save_LIBS="$LIBS"
  17264. LIBS="$lt_cv_dlopen_libs $LIBS"
  17265. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  17266. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  17267. if test "${lt_cv_dlopen_self+set}" = set; then
  17268. echo $ECHO_N "(cached) $ECHO_C" >&6
  17269. else
  17270. if test "$cross_compiling" = yes; then :
  17271. lt_cv_dlopen_self=cross
  17272. else
  17273. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  17274. lt_status=$lt_dlunknown
  17275. cat > conftest.$ac_ext <<EOF
  17276. #line 19308 "configure"
  17277. #include "confdefs.h"
  17278. #if HAVE_DLFCN_H
  17279. #include <dlfcn.h>
  17280. #endif
  17281. #include <stdio.h>
  17282. #ifdef RTLD_GLOBAL
  17283. # define LT_DLGLOBAL RTLD_GLOBAL
  17284. #else
  17285. # ifdef DL_GLOBAL
  17286. # define LT_DLGLOBAL DL_GLOBAL
  17287. # else
  17288. # define LT_DLGLOBAL 0
  17289. # endif
  17290. #endif
  17291. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  17292. find out it does not work in some platform. */
  17293. #ifndef LT_DLLAZY_OR_NOW
  17294. # ifdef RTLD_LAZY
  17295. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  17296. # else
  17297. # ifdef DL_LAZY
  17298. # define LT_DLLAZY_OR_NOW DL_LAZY
  17299. # else
  17300. # ifdef RTLD_NOW
  17301. # define LT_DLLAZY_OR_NOW RTLD_NOW
  17302. # else
  17303. # ifdef DL_NOW
  17304. # define LT_DLLAZY_OR_NOW DL_NOW
  17305. # else
  17306. # define LT_DLLAZY_OR_NOW 0
  17307. # endif
  17308. # endif
  17309. # endif
  17310. # endif
  17311. #endif
  17312. #ifdef __cplusplus
  17313. extern "C" void exit (int);
  17314. #endif
  17315. void fnord() { int i=42;}
  17316. int main ()
  17317. {
  17318. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  17319. int status = $lt_dlunknown;
  17320. if (self)
  17321. {
  17322. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  17323. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  17324. /* dlclose (self); */
  17325. }
  17326. exit (status);
  17327. }
  17328. EOF
  17329. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17330. (eval $ac_link) 2>&5
  17331. ac_status=$?
  17332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17333. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  17334. (./conftest; exit; ) 2>/dev/null
  17335. lt_status=$?
  17336. case x$lt_status in
  17337. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  17338. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  17339. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  17340. esac
  17341. else :
  17342. # compilation failed
  17343. lt_cv_dlopen_self=no
  17344. fi
  17345. fi
  17346. rm -fr conftest*
  17347. fi
  17348. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  17349. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  17350. if test "x$lt_cv_dlopen_self" = xyes; then
  17351. LDFLAGS="$LDFLAGS $link_static_flag"
  17352. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  17353. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  17354. if test "${lt_cv_dlopen_self_static+set}" = set; then
  17355. echo $ECHO_N "(cached) $ECHO_C" >&6
  17356. else
  17357. if test "$cross_compiling" = yes; then :
  17358. lt_cv_dlopen_self_static=cross
  17359. else
  17360. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  17361. lt_status=$lt_dlunknown
  17362. cat > conftest.$ac_ext <<EOF
  17363. #line 19406 "configure"
  17364. #include "confdefs.h"
  17365. #if HAVE_DLFCN_H
  17366. #include <dlfcn.h>
  17367. #endif
  17368. #include <stdio.h>
  17369. #ifdef RTLD_GLOBAL
  17370. # define LT_DLGLOBAL RTLD_GLOBAL
  17371. #else
  17372. # ifdef DL_GLOBAL
  17373. # define LT_DLGLOBAL DL_GLOBAL
  17374. # else
  17375. # define LT_DLGLOBAL 0
  17376. # endif
  17377. #endif
  17378. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  17379. find out it does not work in some platform. */
  17380. #ifndef LT_DLLAZY_OR_NOW
  17381. # ifdef RTLD_LAZY
  17382. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  17383. # else
  17384. # ifdef DL_LAZY
  17385. # define LT_DLLAZY_OR_NOW DL_LAZY
  17386. # else
  17387. # ifdef RTLD_NOW
  17388. # define LT_DLLAZY_OR_NOW RTLD_NOW
  17389. # else
  17390. # ifdef DL_NOW
  17391. # define LT_DLLAZY_OR_NOW DL_NOW
  17392. # else
  17393. # define LT_DLLAZY_OR_NOW 0
  17394. # endif
  17395. # endif
  17396. # endif
  17397. # endif
  17398. #endif
  17399. #ifdef __cplusplus
  17400. extern "C" void exit (int);
  17401. #endif
  17402. void fnord() { int i=42;}
  17403. int main ()
  17404. {
  17405. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  17406. int status = $lt_dlunknown;
  17407. if (self)
  17408. {
  17409. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  17410. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  17411. /* dlclose (self); */
  17412. }
  17413. exit (status);
  17414. }
  17415. EOF
  17416. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17417. (eval $ac_link) 2>&5
  17418. ac_status=$?
  17419. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17420. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  17421. (./conftest; exit; ) 2>/dev/null
  17422. lt_status=$?
  17423. case x$lt_status in
  17424. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  17425. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  17426. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  17427. esac
  17428. else :
  17429. # compilation failed
  17430. lt_cv_dlopen_self_static=no
  17431. fi
  17432. fi
  17433. rm -fr conftest*
  17434. fi
  17435. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  17436. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  17437. fi
  17438. CPPFLAGS="$save_CPPFLAGS"
  17439. LDFLAGS="$save_LDFLAGS"
  17440. LIBS="$save_LIBS"
  17441. ;;
  17442. esac
  17443. case $lt_cv_dlopen_self in
  17444. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  17445. *) enable_dlopen_self=unknown ;;
  17446. esac
  17447. case $lt_cv_dlopen_self_static in
  17448. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  17449. *) enable_dlopen_self_static=unknown ;;
  17450. esac
  17451. fi
  17452. # The else clause should only fire when bootstrapping the
  17453. # libtool distribution, otherwise you forgot to ship ltmain.sh
  17454. # with your package, and you will get complaints that there are
  17455. # no rules to generate ltmain.sh.
  17456. if test -f "$ltmain"; then
  17457. # See if we are running on zsh, and set the options which allow our commands through
  17458. # without removal of \ escapes.
  17459. if test -n "${ZSH_VERSION+set}" ; then
  17460. setopt NO_GLOB_SUBST
  17461. fi
  17462. # Now quote all the things that may contain metacharacters while being
  17463. # careful not to overquote the AC_SUBSTed values. We take copies of the
  17464. # variables and quote the copies for generation of the libtool script.
  17465. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  17466. SED SHELL STRIP \
  17467. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  17468. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  17469. deplibs_check_method reload_flag reload_cmds need_locks \
  17470. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  17471. lt_cv_sys_global_symbol_to_c_name_address \
  17472. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  17473. old_postinstall_cmds old_postuninstall_cmds \
  17474. compiler_GCJ \
  17475. CC_GCJ \
  17476. LD_GCJ \
  17477. lt_prog_compiler_wl_GCJ \
  17478. lt_prog_compiler_pic_GCJ \
  17479. lt_prog_compiler_static_GCJ \
  17480. lt_prog_compiler_no_builtin_flag_GCJ \
  17481. export_dynamic_flag_spec_GCJ \
  17482. thread_safe_flag_spec_GCJ \
  17483. whole_archive_flag_spec_GCJ \
  17484. enable_shared_with_static_runtimes_GCJ \
  17485. old_archive_cmds_GCJ \
  17486. old_archive_from_new_cmds_GCJ \
  17487. predep_objects_GCJ \
  17488. postdep_objects_GCJ \
  17489. predeps_GCJ \
  17490. postdeps_GCJ \
  17491. compiler_lib_search_path_GCJ \
  17492. archive_cmds_GCJ \
  17493. archive_expsym_cmds_GCJ \
  17494. postinstall_cmds_GCJ \
  17495. postuninstall_cmds_GCJ \
  17496. old_archive_from_expsyms_cmds_GCJ \
  17497. allow_undefined_flag_GCJ \
  17498. no_undefined_flag_GCJ \
  17499. export_symbols_cmds_GCJ \
  17500. hardcode_libdir_flag_spec_GCJ \
  17501. hardcode_libdir_flag_spec_ld_GCJ \
  17502. hardcode_libdir_separator_GCJ \
  17503. hardcode_automatic_GCJ \
  17504. module_cmds_GCJ \
  17505. module_expsym_cmds_GCJ \
  17506. lt_cv_prog_compiler_c_o_GCJ \
  17507. exclude_expsyms_GCJ \
  17508. include_expsyms_GCJ; do
  17509. case $var in
  17510. old_archive_cmds_GCJ | \
  17511. old_archive_from_new_cmds_GCJ | \
  17512. archive_cmds_GCJ | \
  17513. archive_expsym_cmds_GCJ | \
  17514. module_cmds_GCJ | \
  17515. module_expsym_cmds_GCJ | \
  17516. old_archive_from_expsyms_cmds_GCJ | \
  17517. export_symbols_cmds_GCJ | \
  17518. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  17519. postinstall_cmds | postuninstall_cmds | \
  17520. old_postinstall_cmds | old_postuninstall_cmds | \
  17521. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  17522. # Double-quote double-evaled strings.
  17523. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  17524. ;;
  17525. *)
  17526. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  17527. ;;
  17528. esac
  17529. done
  17530. case $lt_echo in
  17531. *'\$0 --fallback-echo"')
  17532. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  17533. ;;
  17534. esac
  17535. cfgfile="$ofile"
  17536. cat <<__EOF__ >> "$cfgfile"
  17537. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  17538. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17539. # Shell to use when invoking shell scripts.
  17540. SHELL=$lt_SHELL
  17541. # Whether or not to build shared libraries.
  17542. build_libtool_libs=$enable_shared
  17543. # Whether or not to build static libraries.
  17544. build_old_libs=$enable_static
  17545. # Whether or not to add -lc for building shared libraries.
  17546. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  17547. # Whether or not to disallow shared libs when runtime libs are static
  17548. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  17549. # Whether or not to optimize for fast installation.
  17550. fast_install=$enable_fast_install
  17551. # The host system.
  17552. host_alias=$host_alias
  17553. host=$host
  17554. host_os=$host_os
  17555. # The build system.
  17556. build_alias=$build_alias
  17557. build=$build
  17558. build_os=$build_os
  17559. # An echo program that does not interpret backslashes.
  17560. echo=$lt_echo
  17561. # The archiver.
  17562. AR=$lt_AR
  17563. AR_FLAGS=$lt_AR_FLAGS
  17564. # A C compiler.
  17565. LTCC=$lt_LTCC
  17566. # A language-specific compiler.
  17567. CC=$lt_compiler_GCJ
  17568. # Is the compiler the GNU C compiler?
  17569. with_gcc=$GCC_GCJ
  17570. # An ERE matcher.
  17571. EGREP=$lt_EGREP
  17572. # The linker used to build libraries.
  17573. LD=$lt_LD_GCJ
  17574. # Whether we need hard or soft links.
  17575. LN_S=$lt_LN_S
  17576. # A BSD-compatible nm program.
  17577. NM=$lt_NM
  17578. # A symbol stripping program
  17579. STRIP=$lt_STRIP
  17580. # Used to examine libraries when file_magic_cmd begins "file"
  17581. MAGIC_CMD=$MAGIC_CMD
  17582. # Used on cygwin: DLL creation program.
  17583. DLLTOOL="$DLLTOOL"
  17584. # Used on cygwin: object dumper.
  17585. OBJDUMP="$OBJDUMP"
  17586. # Used on cygwin: assembler.
  17587. AS="$AS"
  17588. # The name of the directory that contains temporary libtool files.
  17589. objdir=$objdir
  17590. # How to create reloadable object files.
  17591. reload_flag=$lt_reload_flag
  17592. reload_cmds=$lt_reload_cmds
  17593. # How to pass a linker flag through the compiler.
  17594. wl=$lt_lt_prog_compiler_wl_GCJ
  17595. # Object file suffix (normally "o").
  17596. objext="$ac_objext"
  17597. # Old archive suffix (normally "a").
  17598. libext="$libext"
  17599. # Shared library suffix (normally ".so").
  17600. shrext_cmds='$shrext_cmds'
  17601. # Executable file suffix (normally "").
  17602. exeext="$exeext"
  17603. # Additional compiler flags for building library objects.
  17604. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  17605. pic_mode=$pic_mode
  17606. # What is the maximum length of a command?
  17607. max_cmd_len=$lt_cv_sys_max_cmd_len
  17608. # Does compiler simultaneously support -c and -o options?
  17609. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  17610. # Must we lock files when doing compilation?
  17611. need_locks=$lt_need_locks
  17612. # Do we need the lib prefix for modules?
  17613. need_lib_prefix=$need_lib_prefix
  17614. # Do we need a version for libraries?
  17615. need_version=$need_version
  17616. # Whether dlopen is supported.
  17617. dlopen_support=$enable_dlopen
  17618. # Whether dlopen of programs is supported.
  17619. dlopen_self=$enable_dlopen_self
  17620. # Whether dlopen of statically linked programs is supported.
  17621. dlopen_self_static=$enable_dlopen_self_static
  17622. # Compiler flag to prevent dynamic linking.
  17623. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  17624. # Compiler flag to turn off builtin functions.
  17625. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  17626. # Compiler flag to allow reflexive dlopens.
  17627. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  17628. # Compiler flag to generate shared objects directly from archives.
  17629. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  17630. # Compiler flag to generate thread-safe objects.
  17631. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  17632. # Library versioning type.
  17633. version_type=$version_type
  17634. # Format of library name prefix.
  17635. libname_spec=$lt_libname_spec
  17636. # List of archive names. First name is the real one, the rest are links.
  17637. # The last name is the one that the linker finds with -lNAME.
  17638. library_names_spec=$lt_library_names_spec
  17639. # The coded name of the library, if different from the real name.
  17640. soname_spec=$lt_soname_spec
  17641. # Commands used to build and install an old-style archive.
  17642. RANLIB=$lt_RANLIB
  17643. old_archive_cmds=$lt_old_archive_cmds_GCJ
  17644. old_postinstall_cmds=$lt_old_postinstall_cmds
  17645. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17646. # Create an old-style archive from a shared archive.
  17647. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  17648. # Create a temporary old-style archive to link instead of a shared archive.
  17649. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  17650. # Commands used to build and install a shared archive.
  17651. archive_cmds=$lt_archive_cmds_GCJ
  17652. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  17653. postinstall_cmds=$lt_postinstall_cmds
  17654. postuninstall_cmds=$lt_postuninstall_cmds
  17655. # Commands used to build a loadable module (assumed same as above if empty)
  17656. module_cmds=$lt_module_cmds_GCJ
  17657. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  17658. # Commands to strip libraries.
  17659. old_striplib=$lt_old_striplib
  17660. striplib=$lt_striplib
  17661. # Dependencies to place before the objects being linked to create a
  17662. # shared library.
  17663. predep_objects=$lt_predep_objects_GCJ
  17664. # Dependencies to place after the objects being linked to create a
  17665. # shared library.
  17666. postdep_objects=$lt_postdep_objects_GCJ
  17667. # Dependencies to place before the objects being linked to create a
  17668. # shared library.
  17669. predeps=$lt_predeps_GCJ
  17670. # Dependencies to place after the objects being linked to create a
  17671. # shared library.
  17672. postdeps=$lt_postdeps_GCJ
  17673. # The library search path used internally by the compiler when linking
  17674. # a shared library.
  17675. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  17676. # Method to check whether dependent libraries are shared objects.
  17677. deplibs_check_method=$lt_deplibs_check_method
  17678. # Command to use when deplibs_check_method == file_magic.
  17679. file_magic_cmd=$lt_file_magic_cmd
  17680. # Flag that allows shared libraries with undefined symbols to be built.
  17681. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  17682. # Flag that forces no undefined symbols.
  17683. no_undefined_flag=$lt_no_undefined_flag_GCJ
  17684. # Commands used to finish a libtool library installation in a directory.
  17685. finish_cmds=$lt_finish_cmds
  17686. # Same as above, but a single script fragment to be evaled but not shown.
  17687. finish_eval=$lt_finish_eval
  17688. # Take the output of nm and produce a listing of raw symbols and C names.
  17689. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17690. # Transform the output of nm in a proper C declaration
  17691. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17692. # Transform the output of nm in a C name address pair
  17693. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17694. # This is the shared library runtime path variable.
  17695. runpath_var=$runpath_var
  17696. # This is the shared library path variable.
  17697. shlibpath_var=$shlibpath_var
  17698. # Is shlibpath searched before the hard-coded library search path?
  17699. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17700. # How to hardcode a shared library path into an executable.
  17701. hardcode_action=$hardcode_action_GCJ
  17702. # Whether we should hardcode library paths into libraries.
  17703. hardcode_into_libs=$hardcode_into_libs
  17704. # Flag to hardcode \$libdir into a binary during linking.
  17705. # This must work even if \$libdir does not exist.
  17706. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  17707. # If ld is used when linking, flag to hardcode \$libdir into
  17708. # a binary during linking. This must work even if \$libdir does
  17709. # not exist.
  17710. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  17711. # Whether we need a single -rpath flag with a separated argument.
  17712. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  17713. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17714. # resulting binary.
  17715. hardcode_direct=$hardcode_direct_GCJ
  17716. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17717. # resulting binary.
  17718. hardcode_minus_L=$hardcode_minus_L_GCJ
  17719. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17720. # the resulting binary.
  17721. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  17722. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17723. # and all subsequent libraries and executables linked against it.
  17724. hardcode_automatic=$hardcode_automatic_GCJ
  17725. # Variables whose values should be saved in libtool wrapper scripts and
  17726. # restored at relink time.
  17727. variables_saved_for_relink="$variables_saved_for_relink"
  17728. # Whether libtool must link a program against all its dependency libraries.
  17729. link_all_deplibs=$link_all_deplibs_GCJ
  17730. # Compile-time system search path for libraries
  17731. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17732. # Run-time system search path for libraries
  17733. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17734. # Fix the shell variable \$srcfile for the compiler.
  17735. fix_srcfile_path="$fix_srcfile_path_GCJ"
  17736. # Set to yes if exported symbols are required.
  17737. always_export_symbols=$always_export_symbols_GCJ
  17738. # The commands to list exported symbols.
  17739. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  17740. # The commands to extract the exported symbol list from a shared archive.
  17741. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17742. # Symbols that should not be listed in the preloaded symbols.
  17743. exclude_expsyms=$lt_exclude_expsyms_GCJ
  17744. # Symbols that must always be exported.
  17745. include_expsyms=$lt_include_expsyms_GCJ
  17746. # ### END LIBTOOL TAG CONFIG: $tagname
  17747. __EOF__
  17748. else
  17749. # If there is no Makefile yet, we rely on a make rule to execute
  17750. # `config.status --recheck' to rerun these tests and create the
  17751. # libtool script then.
  17752. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17753. if test -f "$ltmain_in"; then
  17754. test -f Makefile && make "$ltmain"
  17755. fi
  17756. fi
  17757. ac_ext=c
  17758. ac_cpp='$CPP $CPPFLAGS'
  17759. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17760. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17761. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17762. CC="$lt_save_CC"
  17763. else
  17764. tagname=""
  17765. fi
  17766. ;;
  17767. RC)
  17768. # Source file extension for RC test sources.
  17769. ac_ext=rc
  17770. # Object file extension for compiled RC test sources.
  17771. objext=o
  17772. objext_RC=$objext
  17773. # Code to be used in simple compile tests
  17774. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  17775. # Code to be used in simple link tests
  17776. lt_simple_link_test_code="$lt_simple_compile_test_code"
  17777. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  17778. # If no C compiler was specified, use CC.
  17779. LTCC=${LTCC-"$CC"}
  17780. # Allow CC to be a program name with arguments.
  17781. compiler=$CC
  17782. # save warnings/boilerplate of simple test code
  17783. ac_outfile=conftest.$ac_objext
  17784. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  17785. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  17786. _lt_compiler_boilerplate=`cat conftest.err`
  17787. $rm conftest*
  17788. ac_outfile=conftest.$ac_objext
  17789. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  17790. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  17791. _lt_linker_boilerplate=`cat conftest.err`
  17792. $rm conftest*
  17793. # Allow CC to be a program name with arguments.
  17794. lt_save_CC="$CC"
  17795. CC=${RC-"windres"}
  17796. compiler=$CC
  17797. compiler_RC=$CC
  17798. for cc_temp in $compiler""; do
  17799. case $cc_temp in
  17800. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  17801. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  17802. \-*) ;;
  17803. *) break;;
  17804. esac
  17805. done
  17806. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  17807. lt_cv_prog_compiler_c_o_RC=yes
  17808. # The else clause should only fire when bootstrapping the
  17809. # libtool distribution, otherwise you forgot to ship ltmain.sh
  17810. # with your package, and you will get complaints that there are
  17811. # no rules to generate ltmain.sh.
  17812. if test -f "$ltmain"; then
  17813. # See if we are running on zsh, and set the options which allow our commands through
  17814. # without removal of \ escapes.
  17815. if test -n "${ZSH_VERSION+set}" ; then
  17816. setopt NO_GLOB_SUBST
  17817. fi
  17818. # Now quote all the things that may contain metacharacters while being
  17819. # careful not to overquote the AC_SUBSTed values. We take copies of the
  17820. # variables and quote the copies for generation of the libtool script.
  17821. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  17822. SED SHELL STRIP \
  17823. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  17824. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  17825. deplibs_check_method reload_flag reload_cmds need_locks \
  17826. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  17827. lt_cv_sys_global_symbol_to_c_name_address \
  17828. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  17829. old_postinstall_cmds old_postuninstall_cmds \
  17830. compiler_RC \
  17831. CC_RC \
  17832. LD_RC \
  17833. lt_prog_compiler_wl_RC \
  17834. lt_prog_compiler_pic_RC \
  17835. lt_prog_compiler_static_RC \
  17836. lt_prog_compiler_no_builtin_flag_RC \
  17837. export_dynamic_flag_spec_RC \
  17838. thread_safe_flag_spec_RC \
  17839. whole_archive_flag_spec_RC \
  17840. enable_shared_with_static_runtimes_RC \
  17841. old_archive_cmds_RC \
  17842. old_archive_from_new_cmds_RC \
  17843. predep_objects_RC \
  17844. postdep_objects_RC \
  17845. predeps_RC \
  17846. postdeps_RC \
  17847. compiler_lib_search_path_RC \
  17848. archive_cmds_RC \
  17849. archive_expsym_cmds_RC \
  17850. postinstall_cmds_RC \
  17851. postuninstall_cmds_RC \
  17852. old_archive_from_expsyms_cmds_RC \
  17853. allow_undefined_flag_RC \
  17854. no_undefined_flag_RC \
  17855. export_symbols_cmds_RC \
  17856. hardcode_libdir_flag_spec_RC \
  17857. hardcode_libdir_flag_spec_ld_RC \
  17858. hardcode_libdir_separator_RC \
  17859. hardcode_automatic_RC \
  17860. module_cmds_RC \
  17861. module_expsym_cmds_RC \
  17862. lt_cv_prog_compiler_c_o_RC \
  17863. exclude_expsyms_RC \
  17864. include_expsyms_RC; do
  17865. case $var in
  17866. old_archive_cmds_RC | \
  17867. old_archive_from_new_cmds_RC | \
  17868. archive_cmds_RC | \
  17869. archive_expsym_cmds_RC | \
  17870. module_cmds_RC | \
  17871. module_expsym_cmds_RC | \
  17872. old_archive_from_expsyms_cmds_RC | \
  17873. export_symbols_cmds_RC | \
  17874. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  17875. postinstall_cmds | postuninstall_cmds | \
  17876. old_postinstall_cmds | old_postuninstall_cmds | \
  17877. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  17878. # Double-quote double-evaled strings.
  17879. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  17880. ;;
  17881. *)
  17882. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  17883. ;;
  17884. esac
  17885. done
  17886. case $lt_echo in
  17887. *'\$0 --fallback-echo"')
  17888. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  17889. ;;
  17890. esac
  17891. cfgfile="$ofile"
  17892. cat <<__EOF__ >> "$cfgfile"
  17893. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  17894. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17895. # Shell to use when invoking shell scripts.
  17896. SHELL=$lt_SHELL
  17897. # Whether or not to build shared libraries.
  17898. build_libtool_libs=$enable_shared
  17899. # Whether or not to build static libraries.
  17900. build_old_libs=$enable_static
  17901. # Whether or not to add -lc for building shared libraries.
  17902. build_libtool_need_lc=$archive_cmds_need_lc_RC
  17903. # Whether or not to disallow shared libs when runtime libs are static
  17904. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  17905. # Whether or not to optimize for fast installation.
  17906. fast_install=$enable_fast_install
  17907. # The host system.
  17908. host_alias=$host_alias
  17909. host=$host
  17910. host_os=$host_os
  17911. # The build system.
  17912. build_alias=$build_alias
  17913. build=$build
  17914. build_os=$build_os
  17915. # An echo program that does not interpret backslashes.
  17916. echo=$lt_echo
  17917. # The archiver.
  17918. AR=$lt_AR
  17919. AR_FLAGS=$lt_AR_FLAGS
  17920. # A C compiler.
  17921. LTCC=$lt_LTCC
  17922. # A language-specific compiler.
  17923. CC=$lt_compiler_RC
  17924. # Is the compiler the GNU C compiler?
  17925. with_gcc=$GCC_RC
  17926. # An ERE matcher.
  17927. EGREP=$lt_EGREP
  17928. # The linker used to build libraries.
  17929. LD=$lt_LD_RC
  17930. # Whether we need hard or soft links.
  17931. LN_S=$lt_LN_S
  17932. # A BSD-compatible nm program.
  17933. NM=$lt_NM
  17934. # A symbol stripping program
  17935. STRIP=$lt_STRIP
  17936. # Used to examine libraries when file_magic_cmd begins "file"
  17937. MAGIC_CMD=$MAGIC_CMD
  17938. # Used on cygwin: DLL creation program.
  17939. DLLTOOL="$DLLTOOL"
  17940. # Used on cygwin: object dumper.
  17941. OBJDUMP="$OBJDUMP"
  17942. # Used on cygwin: assembler.
  17943. AS="$AS"
  17944. # The name of the directory that contains temporary libtool files.
  17945. objdir=$objdir
  17946. # How to create reloadable object files.
  17947. reload_flag=$lt_reload_flag
  17948. reload_cmds=$lt_reload_cmds
  17949. # How to pass a linker flag through the compiler.
  17950. wl=$lt_lt_prog_compiler_wl_RC
  17951. # Object file suffix (normally "o").
  17952. objext="$ac_objext"
  17953. # Old archive suffix (normally "a").
  17954. libext="$libext"
  17955. # Shared library suffix (normally ".so").
  17956. shrext_cmds='$shrext_cmds'
  17957. # Executable file suffix (normally "").
  17958. exeext="$exeext"
  17959. # Additional compiler flags for building library objects.
  17960. pic_flag=$lt_lt_prog_compiler_pic_RC
  17961. pic_mode=$pic_mode
  17962. # What is the maximum length of a command?
  17963. max_cmd_len=$lt_cv_sys_max_cmd_len
  17964. # Does compiler simultaneously support -c and -o options?
  17965. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  17966. # Must we lock files when doing compilation?
  17967. need_locks=$lt_need_locks
  17968. # Do we need the lib prefix for modules?
  17969. need_lib_prefix=$need_lib_prefix
  17970. # Do we need a version for libraries?
  17971. need_version=$need_version
  17972. # Whether dlopen is supported.
  17973. dlopen_support=$enable_dlopen
  17974. # Whether dlopen of programs is supported.
  17975. dlopen_self=$enable_dlopen_self
  17976. # Whether dlopen of statically linked programs is supported.
  17977. dlopen_self_static=$enable_dlopen_self_static
  17978. # Compiler flag to prevent dynamic linking.
  17979. link_static_flag=$lt_lt_prog_compiler_static_RC
  17980. # Compiler flag to turn off builtin functions.
  17981. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  17982. # Compiler flag to allow reflexive dlopens.
  17983. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  17984. # Compiler flag to generate shared objects directly from archives.
  17985. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  17986. # Compiler flag to generate thread-safe objects.
  17987. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  17988. # Library versioning type.
  17989. version_type=$version_type
  17990. # Format of library name prefix.
  17991. libname_spec=$lt_libname_spec
  17992. # List of archive names. First name is the real one, the rest are links.
  17993. # The last name is the one that the linker finds with -lNAME.
  17994. library_names_spec=$lt_library_names_spec
  17995. # The coded name of the library, if different from the real name.
  17996. soname_spec=$lt_soname_spec
  17997. # Commands used to build and install an old-style archive.
  17998. RANLIB=$lt_RANLIB
  17999. old_archive_cmds=$lt_old_archive_cmds_RC
  18000. old_postinstall_cmds=$lt_old_postinstall_cmds
  18001. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  18002. # Create an old-style archive from a shared archive.
  18003. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  18004. # Create a temporary old-style archive to link instead of a shared archive.
  18005. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  18006. # Commands used to build and install a shared archive.
  18007. archive_cmds=$lt_archive_cmds_RC
  18008. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  18009. postinstall_cmds=$lt_postinstall_cmds
  18010. postuninstall_cmds=$lt_postuninstall_cmds
  18011. # Commands used to build a loadable module (assumed same as above if empty)
  18012. module_cmds=$lt_module_cmds_RC
  18013. module_expsym_cmds=$lt_module_expsym_cmds_RC
  18014. # Commands to strip libraries.
  18015. old_striplib=$lt_old_striplib
  18016. striplib=$lt_striplib
  18017. # Dependencies to place before the objects being linked to create a
  18018. # shared library.
  18019. predep_objects=$lt_predep_objects_RC
  18020. # Dependencies to place after the objects being linked to create a
  18021. # shared library.
  18022. postdep_objects=$lt_postdep_objects_RC
  18023. # Dependencies to place before the objects being linked to create a
  18024. # shared library.
  18025. predeps=$lt_predeps_RC
  18026. # Dependencies to place after the objects being linked to create a
  18027. # shared library.
  18028. postdeps=$lt_postdeps_RC
  18029. # The library search path used internally by the compiler when linking
  18030. # a shared library.
  18031. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  18032. # Method to check whether dependent libraries are shared objects.
  18033. deplibs_check_method=$lt_deplibs_check_method
  18034. # Command to use when deplibs_check_method == file_magic.
  18035. file_magic_cmd=$lt_file_magic_cmd
  18036. # Flag that allows shared libraries with undefined symbols to be built.
  18037. allow_undefined_flag=$lt_allow_undefined_flag_RC
  18038. # Flag that forces no undefined symbols.
  18039. no_undefined_flag=$lt_no_undefined_flag_RC
  18040. # Commands used to finish a libtool library installation in a directory.
  18041. finish_cmds=$lt_finish_cmds
  18042. # Same as above, but a single script fragment to be evaled but not shown.
  18043. finish_eval=$lt_finish_eval
  18044. # Take the output of nm and produce a listing of raw symbols and C names.
  18045. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  18046. # Transform the output of nm in a proper C declaration
  18047. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  18048. # Transform the output of nm in a C name address pair
  18049. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  18050. # This is the shared library runtime path variable.
  18051. runpath_var=$runpath_var
  18052. # This is the shared library path variable.
  18053. shlibpath_var=$shlibpath_var
  18054. # Is shlibpath searched before the hard-coded library search path?
  18055. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  18056. # How to hardcode a shared library path into an executable.
  18057. hardcode_action=$hardcode_action_RC
  18058. # Whether we should hardcode library paths into libraries.
  18059. hardcode_into_libs=$hardcode_into_libs
  18060. # Flag to hardcode \$libdir into a binary during linking.
  18061. # This must work even if \$libdir does not exist.
  18062. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  18063. # If ld is used when linking, flag to hardcode \$libdir into
  18064. # a binary during linking. This must work even if \$libdir does
  18065. # not exist.
  18066. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  18067. # Whether we need a single -rpath flag with a separated argument.
  18068. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  18069. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  18070. # resulting binary.
  18071. hardcode_direct=$hardcode_direct_RC
  18072. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  18073. # resulting binary.
  18074. hardcode_minus_L=$hardcode_minus_L_RC
  18075. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  18076. # the resulting binary.
  18077. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  18078. # Set to yes if building a shared library automatically hardcodes DIR into the library
  18079. # and all subsequent libraries and executables linked against it.
  18080. hardcode_automatic=$hardcode_automatic_RC
  18081. # Variables whose values should be saved in libtool wrapper scripts and
  18082. # restored at relink time.
  18083. variables_saved_for_relink="$variables_saved_for_relink"
  18084. # Whether libtool must link a program against all its dependency libraries.
  18085. link_all_deplibs=$link_all_deplibs_RC
  18086. # Compile-time system search path for libraries
  18087. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  18088. # Run-time system search path for libraries
  18089. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  18090. # Fix the shell variable \$srcfile for the compiler.
  18091. fix_srcfile_path="$fix_srcfile_path_RC"
  18092. # Set to yes if exported symbols are required.
  18093. always_export_symbols=$always_export_symbols_RC
  18094. # The commands to list exported symbols.
  18095. export_symbols_cmds=$lt_export_symbols_cmds_RC
  18096. # The commands to extract the exported symbol list from a shared archive.
  18097. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  18098. # Symbols that should not be listed in the preloaded symbols.
  18099. exclude_expsyms=$lt_exclude_expsyms_RC
  18100. # Symbols that must always be exported.
  18101. include_expsyms=$lt_include_expsyms_RC
  18102. # ### END LIBTOOL TAG CONFIG: $tagname
  18103. __EOF__
  18104. else
  18105. # If there is no Makefile yet, we rely on a make rule to execute
  18106. # `config.status --recheck' to rerun these tests and create the
  18107. # libtool script then.
  18108. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  18109. if test -f "$ltmain_in"; then
  18110. test -f Makefile && make "$ltmain"
  18111. fi
  18112. fi
  18113. ac_ext=c
  18114. ac_cpp='$CPP $CPPFLAGS'
  18115. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18116. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18117. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18118. CC="$lt_save_CC"
  18119. ;;
  18120. *)
  18121. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  18122. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  18123. { (exit 1); exit 1; }; }
  18124. ;;
  18125. esac
  18126. # Append the new tag name to the list of available tags.
  18127. if test -n "$tagname" ; then
  18128. available_tags="$available_tags $tagname"
  18129. fi
  18130. fi
  18131. done
  18132. IFS="$lt_save_ifs"
  18133. # Now substitute the updated list of available tags.
  18134. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  18135. mv "${ofile}T" "$ofile"
  18136. chmod +x "$ofile"
  18137. else
  18138. rm -f "${ofile}T"
  18139. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  18140. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  18141. { (exit 1); exit 1; }; }
  18142. fi
  18143. fi
  18144. # This can be used to rebuild libtool when needed
  18145. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  18146. # Always use our own libtool.
  18147. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  18148. # Prevent multiple expansion
  18149. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  18150. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  18151. if test "${ac_cv_header_stdc+set}" = set; then
  18152. echo $ECHO_N "(cached) $ECHO_C" >&6
  18153. else
  18154. cat >conftest.$ac_ext <<_ACEOF
  18155. /* confdefs.h. */
  18156. _ACEOF
  18157. cat confdefs.h >>conftest.$ac_ext
  18158. cat >>conftest.$ac_ext <<_ACEOF
  18159. /* end confdefs.h. */
  18160. #include <stdlib.h>
  18161. #include <stdarg.h>
  18162. #include <string.h>
  18163. #include <float.h>
  18164. int
  18165. main ()
  18166. {
  18167. ;
  18168. return 0;
  18169. }
  18170. _ACEOF
  18171. rm -f conftest.$ac_objext
  18172. if { (ac_try="$ac_compile"
  18173. case "(($ac_try" in
  18174. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18175. *) ac_try_echo=$ac_try;;
  18176. esac
  18177. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18178. (eval "$ac_compile") 2>conftest.er1
  18179. ac_status=$?
  18180. grep -v '^ *+' conftest.er1 >conftest.err
  18181. rm -f conftest.er1
  18182. cat conftest.err >&5
  18183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18184. (exit $ac_status); } && {
  18185. test -z "$ac_c_werror_flag" ||
  18186. test ! -s conftest.err
  18187. } && test -s conftest.$ac_objext; then
  18188. ac_cv_header_stdc=yes
  18189. else
  18190. echo "$as_me: failed program was:" >&5
  18191. sed 's/^/| /' conftest.$ac_ext >&5
  18192. ac_cv_header_stdc=no
  18193. fi
  18194. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18195. if test $ac_cv_header_stdc = yes; then
  18196. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  18197. cat >conftest.$ac_ext <<_ACEOF
  18198. /* confdefs.h. */
  18199. _ACEOF
  18200. cat confdefs.h >>conftest.$ac_ext
  18201. cat >>conftest.$ac_ext <<_ACEOF
  18202. /* end confdefs.h. */
  18203. #include <string.h>
  18204. _ACEOF
  18205. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18206. $EGREP "memchr" >/dev/null 2>&1; then
  18207. :
  18208. else
  18209. ac_cv_header_stdc=no
  18210. fi
  18211. rm -f conftest*
  18212. fi
  18213. if test $ac_cv_header_stdc = yes; then
  18214. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  18215. cat >conftest.$ac_ext <<_ACEOF
  18216. /* confdefs.h. */
  18217. _ACEOF
  18218. cat confdefs.h >>conftest.$ac_ext
  18219. cat >>conftest.$ac_ext <<_ACEOF
  18220. /* end confdefs.h. */
  18221. #include <stdlib.h>
  18222. _ACEOF
  18223. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18224. $EGREP "free" >/dev/null 2>&1; then
  18225. :
  18226. else
  18227. ac_cv_header_stdc=no
  18228. fi
  18229. rm -f conftest*
  18230. fi
  18231. if test $ac_cv_header_stdc = yes; then
  18232. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  18233. if test "$cross_compiling" = yes; then
  18234. :
  18235. else
  18236. cat >conftest.$ac_ext <<_ACEOF
  18237. /* confdefs.h. */
  18238. _ACEOF
  18239. cat confdefs.h >>conftest.$ac_ext
  18240. cat >>conftest.$ac_ext <<_ACEOF
  18241. /* end confdefs.h. */
  18242. #include <ctype.h>
  18243. #include <stdlib.h>
  18244. #if ((' ' & 0x0FF) == 0x020)
  18245. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  18246. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  18247. #else
  18248. # define ISLOWER(c) \
  18249. (('a' <= (c) && (c) <= 'i') \
  18250. || ('j' <= (c) && (c) <= 'r') \
  18251. || ('s' <= (c) && (c) <= 'z'))
  18252. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  18253. #endif
  18254. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  18255. int
  18256. main ()
  18257. {
  18258. int i;
  18259. for (i = 0; i < 256; i++)
  18260. if (XOR (islower (i), ISLOWER (i))
  18261. || toupper (i) != TOUPPER (i))
  18262. return 2;
  18263. return 0;
  18264. }
  18265. _ACEOF
  18266. rm -f conftest$ac_exeext
  18267. if { (ac_try="$ac_link"
  18268. case "(($ac_try" in
  18269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18270. *) ac_try_echo=$ac_try;;
  18271. esac
  18272. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18273. (eval "$ac_link") 2>&5
  18274. ac_status=$?
  18275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18276. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18277. { (case "(($ac_try" in
  18278. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18279. *) ac_try_echo=$ac_try;;
  18280. esac
  18281. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18282. (eval "$ac_try") 2>&5
  18283. ac_status=$?
  18284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18285. (exit $ac_status); }; }; then
  18286. :
  18287. else
  18288. echo "$as_me: program exited with status $ac_status" >&5
  18289. echo "$as_me: failed program was:" >&5
  18290. sed 's/^/| /' conftest.$ac_ext >&5
  18291. ( exit $ac_status )
  18292. ac_cv_header_stdc=no
  18293. fi
  18294. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18295. fi
  18296. fi
  18297. fi
  18298. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  18299. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  18300. if test $ac_cv_header_stdc = yes; then
  18301. cat >>confdefs.h <<\_ACEOF
  18302. #define STDC_HEADERS 1
  18303. _ACEOF
  18304. fi
  18305. { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
  18306. echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
  18307. if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
  18308. echo $ECHO_N "(cached) $ECHO_C" >&6
  18309. else
  18310. cat >conftest.$ac_ext <<_ACEOF
  18311. /* confdefs.h. */
  18312. _ACEOF
  18313. cat confdefs.h >>conftest.$ac_ext
  18314. cat >>conftest.$ac_ext <<_ACEOF
  18315. /* end confdefs.h. */
  18316. #include <sys/types.h>
  18317. int
  18318. main ()
  18319. {
  18320. return makedev(0, 0);
  18321. ;
  18322. return 0;
  18323. }
  18324. _ACEOF
  18325. rm -f conftest.$ac_objext conftest$ac_exeext
  18326. if { (ac_try="$ac_link"
  18327. case "(($ac_try" in
  18328. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18329. *) ac_try_echo=$ac_try;;
  18330. esac
  18331. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18332. (eval "$ac_link") 2>conftest.er1
  18333. ac_status=$?
  18334. grep -v '^ *+' conftest.er1 >conftest.err
  18335. rm -f conftest.er1
  18336. cat conftest.err >&5
  18337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18338. (exit $ac_status); } && {
  18339. test -z "$ac_c_werror_flag" ||
  18340. test ! -s conftest.err
  18341. } && test -s conftest$ac_exeext &&
  18342. $as_test_x conftest$ac_exeext; then
  18343. ac_cv_header_sys_types_h_makedev=yes
  18344. else
  18345. echo "$as_me: failed program was:" >&5
  18346. sed 's/^/| /' conftest.$ac_ext >&5
  18347. ac_cv_header_sys_types_h_makedev=no
  18348. fi
  18349. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18350. conftest$ac_exeext conftest.$ac_ext
  18351. fi
  18352. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
  18353. echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
  18354. if test $ac_cv_header_sys_types_h_makedev = no; then
  18355. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  18356. { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  18357. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
  18358. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  18359. echo $ECHO_N "(cached) $ECHO_C" >&6
  18360. fi
  18361. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  18362. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
  18363. else
  18364. # Is the header compilable?
  18365. { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
  18366. echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
  18367. cat >conftest.$ac_ext <<_ACEOF
  18368. /* confdefs.h. */
  18369. _ACEOF
  18370. cat confdefs.h >>conftest.$ac_ext
  18371. cat >>conftest.$ac_ext <<_ACEOF
  18372. /* end confdefs.h. */
  18373. $ac_includes_default
  18374. #include <sys/mkdev.h>
  18375. _ACEOF
  18376. rm -f conftest.$ac_objext
  18377. if { (ac_try="$ac_compile"
  18378. case "(($ac_try" in
  18379. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18380. *) ac_try_echo=$ac_try;;
  18381. esac
  18382. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18383. (eval "$ac_compile") 2>conftest.er1
  18384. ac_status=$?
  18385. grep -v '^ *+' conftest.er1 >conftest.err
  18386. rm -f conftest.er1
  18387. cat conftest.err >&5
  18388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18389. (exit $ac_status); } && {
  18390. test -z "$ac_c_werror_flag" ||
  18391. test ! -s conftest.err
  18392. } && test -s conftest.$ac_objext; then
  18393. ac_header_compiler=yes
  18394. else
  18395. echo "$as_me: failed program was:" >&5
  18396. sed 's/^/| /' conftest.$ac_ext >&5
  18397. ac_header_compiler=no
  18398. fi
  18399. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18400. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18401. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18402. # Is the header present?
  18403. { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
  18404. echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
  18405. cat >conftest.$ac_ext <<_ACEOF
  18406. /* confdefs.h. */
  18407. _ACEOF
  18408. cat confdefs.h >>conftest.$ac_ext
  18409. cat >>conftest.$ac_ext <<_ACEOF
  18410. /* end confdefs.h. */
  18411. #include <sys/mkdev.h>
  18412. _ACEOF
  18413. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18414. case "(($ac_try" in
  18415. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18416. *) ac_try_echo=$ac_try;;
  18417. esac
  18418. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18419. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18420. ac_status=$?
  18421. grep -v '^ *+' conftest.er1 >conftest.err
  18422. rm -f conftest.er1
  18423. cat conftest.err >&5
  18424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18425. (exit $ac_status); } >/dev/null && {
  18426. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18427. test ! -s conftest.err
  18428. }; then
  18429. ac_header_preproc=yes
  18430. else
  18431. echo "$as_me: failed program was:" >&5
  18432. sed 's/^/| /' conftest.$ac_ext >&5
  18433. ac_header_preproc=no
  18434. fi
  18435. rm -f conftest.err conftest.$ac_ext
  18436. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18437. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18438. # So? What about this header?
  18439. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18440. yes:no: )
  18441. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
  18442. echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18443. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
  18444. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
  18445. ac_header_preproc=yes
  18446. ;;
  18447. no:yes:* )
  18448. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
  18449. echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
  18450. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
  18451. echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
  18452. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
  18453. echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
  18454. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
  18455. echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
  18456. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
  18457. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
  18458. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
  18459. echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
  18460. ( cat <<\_ASBOX
  18461. ## ---------------------------------- ##
  18462. ## Report this to christos@astron.com ##
  18463. ## ---------------------------------- ##
  18464. _ASBOX
  18465. ) | sed "s/^/$as_me: WARNING: /" >&2
  18466. ;;
  18467. esac
  18468. { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  18469. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
  18470. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  18471. echo $ECHO_N "(cached) $ECHO_C" >&6
  18472. else
  18473. ac_cv_header_sys_mkdev_h=$ac_header_preproc
  18474. fi
  18475. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  18476. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
  18477. fi
  18478. if test $ac_cv_header_sys_mkdev_h = yes; then
  18479. cat >>confdefs.h <<\_ACEOF
  18480. #define MAJOR_IN_MKDEV 1
  18481. _ACEOF
  18482. fi
  18483. if test $ac_cv_header_sys_mkdev_h = no; then
  18484. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  18485. { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  18486. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
  18487. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  18488. echo $ECHO_N "(cached) $ECHO_C" >&6
  18489. fi
  18490. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  18491. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
  18492. else
  18493. # Is the header compilable?
  18494. { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
  18495. echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
  18496. cat >conftest.$ac_ext <<_ACEOF
  18497. /* confdefs.h. */
  18498. _ACEOF
  18499. cat confdefs.h >>conftest.$ac_ext
  18500. cat >>conftest.$ac_ext <<_ACEOF
  18501. /* end confdefs.h. */
  18502. $ac_includes_default
  18503. #include <sys/sysmacros.h>
  18504. _ACEOF
  18505. rm -f conftest.$ac_objext
  18506. if { (ac_try="$ac_compile"
  18507. case "(($ac_try" in
  18508. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18509. *) ac_try_echo=$ac_try;;
  18510. esac
  18511. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18512. (eval "$ac_compile") 2>conftest.er1
  18513. ac_status=$?
  18514. grep -v '^ *+' conftest.er1 >conftest.err
  18515. rm -f conftest.er1
  18516. cat conftest.err >&5
  18517. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18518. (exit $ac_status); } && {
  18519. test -z "$ac_c_werror_flag" ||
  18520. test ! -s conftest.err
  18521. } && test -s conftest.$ac_objext; then
  18522. ac_header_compiler=yes
  18523. else
  18524. echo "$as_me: failed program was:" >&5
  18525. sed 's/^/| /' conftest.$ac_ext >&5
  18526. ac_header_compiler=no
  18527. fi
  18528. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18529. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18530. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18531. # Is the header present?
  18532. { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
  18533. echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
  18534. cat >conftest.$ac_ext <<_ACEOF
  18535. /* confdefs.h. */
  18536. _ACEOF
  18537. cat confdefs.h >>conftest.$ac_ext
  18538. cat >>conftest.$ac_ext <<_ACEOF
  18539. /* end confdefs.h. */
  18540. #include <sys/sysmacros.h>
  18541. _ACEOF
  18542. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18543. case "(($ac_try" in
  18544. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18545. *) ac_try_echo=$ac_try;;
  18546. esac
  18547. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18548. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18549. ac_status=$?
  18550. grep -v '^ *+' conftest.er1 >conftest.err
  18551. rm -f conftest.er1
  18552. cat conftest.err >&5
  18553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18554. (exit $ac_status); } >/dev/null && {
  18555. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18556. test ! -s conftest.err
  18557. }; then
  18558. ac_header_preproc=yes
  18559. else
  18560. echo "$as_me: failed program was:" >&5
  18561. sed 's/^/| /' conftest.$ac_ext >&5
  18562. ac_header_preproc=no
  18563. fi
  18564. rm -f conftest.err conftest.$ac_ext
  18565. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18566. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18567. # So? What about this header?
  18568. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18569. yes:no: )
  18570. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
  18571. echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18572. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
  18573. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
  18574. ac_header_preproc=yes
  18575. ;;
  18576. no:yes:* )
  18577. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
  18578. echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
  18579. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
  18580. echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
  18581. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
  18582. echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
  18583. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
  18584. echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
  18585. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
  18586. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
  18587. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
  18588. echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
  18589. ( cat <<\_ASBOX
  18590. ## ---------------------------------- ##
  18591. ## Report this to christos@astron.com ##
  18592. ## ---------------------------------- ##
  18593. _ASBOX
  18594. ) | sed "s/^/$as_me: WARNING: /" >&2
  18595. ;;
  18596. esac
  18597. { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  18598. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
  18599. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  18600. echo $ECHO_N "(cached) $ECHO_C" >&6
  18601. else
  18602. ac_cv_header_sys_sysmacros_h=$ac_header_preproc
  18603. fi
  18604. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  18605. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
  18606. fi
  18607. if test $ac_cv_header_sys_sysmacros_h = yes; then
  18608. cat >>confdefs.h <<\_ACEOF
  18609. #define MAJOR_IN_SYSMACROS 1
  18610. _ACEOF
  18611. fi
  18612. fi
  18613. fi
  18614. { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  18615. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
  18616. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  18617. echo $ECHO_N "(cached) $ECHO_C" >&6
  18618. else
  18619. cat >conftest.$ac_ext <<_ACEOF
  18620. /* confdefs.h. */
  18621. _ACEOF
  18622. cat confdefs.h >>conftest.$ac_ext
  18623. cat >>conftest.$ac_ext <<_ACEOF
  18624. /* end confdefs.h. */
  18625. #include <sys/types.h>
  18626. #include <sys/wait.h>
  18627. #ifndef WEXITSTATUS
  18628. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  18629. #endif
  18630. #ifndef WIFEXITED
  18631. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  18632. #endif
  18633. int
  18634. main ()
  18635. {
  18636. int s;
  18637. wait (&s);
  18638. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  18639. ;
  18640. return 0;
  18641. }
  18642. _ACEOF
  18643. rm -f conftest.$ac_objext
  18644. if { (ac_try="$ac_compile"
  18645. case "(($ac_try" in
  18646. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18647. *) ac_try_echo=$ac_try;;
  18648. esac
  18649. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18650. (eval "$ac_compile") 2>conftest.er1
  18651. ac_status=$?
  18652. grep -v '^ *+' conftest.er1 >conftest.err
  18653. rm -f conftest.er1
  18654. cat conftest.err >&5
  18655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18656. (exit $ac_status); } && {
  18657. test -z "$ac_c_werror_flag" ||
  18658. test ! -s conftest.err
  18659. } && test -s conftest.$ac_objext; then
  18660. ac_cv_header_sys_wait_h=yes
  18661. else
  18662. echo "$as_me: failed program was:" >&5
  18663. sed 's/^/| /' conftest.$ac_ext >&5
  18664. ac_cv_header_sys_wait_h=no
  18665. fi
  18666. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18667. fi
  18668. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  18669. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
  18670. if test $ac_cv_header_sys_wait_h = yes; then
  18671. cat >>confdefs.h <<\_ACEOF
  18672. #define HAVE_SYS_WAIT_H 1
  18673. _ACEOF
  18674. fi
  18675. for ac_header in stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h
  18676. do
  18677. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18678. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18679. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18680. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18681. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18682. echo $ECHO_N "(cached) $ECHO_C" >&6
  18683. fi
  18684. ac_res=`eval echo '${'$as_ac_Header'}'`
  18685. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18686. echo "${ECHO_T}$ac_res" >&6; }
  18687. else
  18688. # Is the header compilable?
  18689. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18690. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  18691. cat >conftest.$ac_ext <<_ACEOF
  18692. /* confdefs.h. */
  18693. _ACEOF
  18694. cat confdefs.h >>conftest.$ac_ext
  18695. cat >>conftest.$ac_ext <<_ACEOF
  18696. /* end confdefs.h. */
  18697. $ac_includes_default
  18698. #include <$ac_header>
  18699. _ACEOF
  18700. rm -f conftest.$ac_objext
  18701. if { (ac_try="$ac_compile"
  18702. case "(($ac_try" in
  18703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18704. *) ac_try_echo=$ac_try;;
  18705. esac
  18706. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18707. (eval "$ac_compile") 2>conftest.er1
  18708. ac_status=$?
  18709. grep -v '^ *+' conftest.er1 >conftest.err
  18710. rm -f conftest.er1
  18711. cat conftest.err >&5
  18712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18713. (exit $ac_status); } && {
  18714. test -z "$ac_c_werror_flag" ||
  18715. test ! -s conftest.err
  18716. } && test -s conftest.$ac_objext; then
  18717. ac_header_compiler=yes
  18718. else
  18719. echo "$as_me: failed program was:" >&5
  18720. sed 's/^/| /' conftest.$ac_ext >&5
  18721. ac_header_compiler=no
  18722. fi
  18723. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18724. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18725. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18726. # Is the header present?
  18727. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18728. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  18729. cat >conftest.$ac_ext <<_ACEOF
  18730. /* confdefs.h. */
  18731. _ACEOF
  18732. cat confdefs.h >>conftest.$ac_ext
  18733. cat >>conftest.$ac_ext <<_ACEOF
  18734. /* end confdefs.h. */
  18735. #include <$ac_header>
  18736. _ACEOF
  18737. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18738. case "(($ac_try" in
  18739. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18740. *) ac_try_echo=$ac_try;;
  18741. esac
  18742. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18743. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18744. ac_status=$?
  18745. grep -v '^ *+' conftest.er1 >conftest.err
  18746. rm -f conftest.er1
  18747. cat conftest.err >&5
  18748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18749. (exit $ac_status); } >/dev/null && {
  18750. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18751. test ! -s conftest.err
  18752. }; then
  18753. ac_header_preproc=yes
  18754. else
  18755. echo "$as_me: failed program was:" >&5
  18756. sed 's/^/| /' conftest.$ac_ext >&5
  18757. ac_header_preproc=no
  18758. fi
  18759. rm -f conftest.err conftest.$ac_ext
  18760. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18761. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18762. # So? What about this header?
  18763. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18764. yes:no: )
  18765. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18766. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18767. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18768. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18769. ac_header_preproc=yes
  18770. ;;
  18771. no:yes:* )
  18772. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18773. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18774. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18775. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18776. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18777. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18778. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18779. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18780. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18781. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18782. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18783. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18784. ( cat <<\_ASBOX
  18785. ## ---------------------------------- ##
  18786. ## Report this to christos@astron.com ##
  18787. ## ---------------------------------- ##
  18788. _ASBOX
  18789. ) | sed "s/^/$as_me: WARNING: /" >&2
  18790. ;;
  18791. esac
  18792. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18793. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18794. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18795. echo $ECHO_N "(cached) $ECHO_C" >&6
  18796. else
  18797. eval "$as_ac_Header=\$ac_header_preproc"
  18798. fi
  18799. ac_res=`eval echo '${'$as_ac_Header'}'`
  18800. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18801. echo "${ECHO_T}$ac_res" >&6; }
  18802. fi
  18803. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18804. cat >>confdefs.h <<_ACEOF
  18805. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18806. _ACEOF
  18807. fi
  18808. done
  18809. for ac_header in utime.h wchar.h wctype.h limits.h
  18810. do
  18811. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18812. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18813. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18814. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18815. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18816. echo $ECHO_N "(cached) $ECHO_C" >&6
  18817. fi
  18818. ac_res=`eval echo '${'$as_ac_Header'}'`
  18819. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18820. echo "${ECHO_T}$ac_res" >&6; }
  18821. else
  18822. # Is the header compilable?
  18823. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18824. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  18825. cat >conftest.$ac_ext <<_ACEOF
  18826. /* confdefs.h. */
  18827. _ACEOF
  18828. cat confdefs.h >>conftest.$ac_ext
  18829. cat >>conftest.$ac_ext <<_ACEOF
  18830. /* end confdefs.h. */
  18831. $ac_includes_default
  18832. #include <$ac_header>
  18833. _ACEOF
  18834. rm -f conftest.$ac_objext
  18835. if { (ac_try="$ac_compile"
  18836. case "(($ac_try" in
  18837. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18838. *) ac_try_echo=$ac_try;;
  18839. esac
  18840. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18841. (eval "$ac_compile") 2>conftest.er1
  18842. ac_status=$?
  18843. grep -v '^ *+' conftest.er1 >conftest.err
  18844. rm -f conftest.er1
  18845. cat conftest.err >&5
  18846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18847. (exit $ac_status); } && {
  18848. test -z "$ac_c_werror_flag" ||
  18849. test ! -s conftest.err
  18850. } && test -s conftest.$ac_objext; then
  18851. ac_header_compiler=yes
  18852. else
  18853. echo "$as_me: failed program was:" >&5
  18854. sed 's/^/| /' conftest.$ac_ext >&5
  18855. ac_header_compiler=no
  18856. fi
  18857. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18858. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18859. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18860. # Is the header present?
  18861. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18862. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  18863. cat >conftest.$ac_ext <<_ACEOF
  18864. /* confdefs.h. */
  18865. _ACEOF
  18866. cat confdefs.h >>conftest.$ac_ext
  18867. cat >>conftest.$ac_ext <<_ACEOF
  18868. /* end confdefs.h. */
  18869. #include <$ac_header>
  18870. _ACEOF
  18871. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18872. case "(($ac_try" in
  18873. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18874. *) ac_try_echo=$ac_try;;
  18875. esac
  18876. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18877. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18878. ac_status=$?
  18879. grep -v '^ *+' conftest.er1 >conftest.err
  18880. rm -f conftest.er1
  18881. cat conftest.err >&5
  18882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18883. (exit $ac_status); } >/dev/null && {
  18884. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18885. test ! -s conftest.err
  18886. }; then
  18887. ac_header_preproc=yes
  18888. else
  18889. echo "$as_me: failed program was:" >&5
  18890. sed 's/^/| /' conftest.$ac_ext >&5
  18891. ac_header_preproc=no
  18892. fi
  18893. rm -f conftest.err conftest.$ac_ext
  18894. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18895. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18896. # So? What about this header?
  18897. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18898. yes:no: )
  18899. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18900. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18901. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18902. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18903. ac_header_preproc=yes
  18904. ;;
  18905. no:yes:* )
  18906. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18907. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18908. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18909. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18910. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18911. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18912. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18913. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18914. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18915. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18916. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18917. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18918. ( cat <<\_ASBOX
  18919. ## ---------------------------------- ##
  18920. ## Report this to christos@astron.com ##
  18921. ## ---------------------------------- ##
  18922. _ASBOX
  18923. ) | sed "s/^/$as_me: WARNING: /" >&2
  18924. ;;
  18925. esac
  18926. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18927. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18928. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18929. echo $ECHO_N "(cached) $ECHO_C" >&6
  18930. else
  18931. eval "$as_ac_Header=\$ac_header_preproc"
  18932. fi
  18933. ac_res=`eval echo '${'$as_ac_Header'}'`
  18934. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18935. echo "${ECHO_T}$ac_res" >&6; }
  18936. fi
  18937. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18938. cat >>confdefs.h <<_ACEOF
  18939. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18940. _ACEOF
  18941. fi
  18942. done
  18943. for ac_header in getopt.h err.h
  18944. do
  18945. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18946. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18947. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18948. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18949. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18950. echo $ECHO_N "(cached) $ECHO_C" >&6
  18951. fi
  18952. ac_res=`eval echo '${'$as_ac_Header'}'`
  18953. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18954. echo "${ECHO_T}$ac_res" >&6; }
  18955. else
  18956. # Is the header compilable?
  18957. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18958. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  18959. cat >conftest.$ac_ext <<_ACEOF
  18960. /* confdefs.h. */
  18961. _ACEOF
  18962. cat confdefs.h >>conftest.$ac_ext
  18963. cat >>conftest.$ac_ext <<_ACEOF
  18964. /* end confdefs.h. */
  18965. $ac_includes_default
  18966. #include <$ac_header>
  18967. _ACEOF
  18968. rm -f conftest.$ac_objext
  18969. if { (ac_try="$ac_compile"
  18970. case "(($ac_try" in
  18971. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18972. *) ac_try_echo=$ac_try;;
  18973. esac
  18974. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18975. (eval "$ac_compile") 2>conftest.er1
  18976. ac_status=$?
  18977. grep -v '^ *+' conftest.er1 >conftest.err
  18978. rm -f conftest.er1
  18979. cat conftest.err >&5
  18980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18981. (exit $ac_status); } && {
  18982. test -z "$ac_c_werror_flag" ||
  18983. test ! -s conftest.err
  18984. } && test -s conftest.$ac_objext; then
  18985. ac_header_compiler=yes
  18986. else
  18987. echo "$as_me: failed program was:" >&5
  18988. sed 's/^/| /' conftest.$ac_ext >&5
  18989. ac_header_compiler=no
  18990. fi
  18991. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18992. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18993. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18994. # Is the header present?
  18995. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18996. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  18997. cat >conftest.$ac_ext <<_ACEOF
  18998. /* confdefs.h. */
  18999. _ACEOF
  19000. cat confdefs.h >>conftest.$ac_ext
  19001. cat >>conftest.$ac_ext <<_ACEOF
  19002. /* end confdefs.h. */
  19003. #include <$ac_header>
  19004. _ACEOF
  19005. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19006. case "(($ac_try" in
  19007. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19008. *) ac_try_echo=$ac_try;;
  19009. esac
  19010. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19011. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19012. ac_status=$?
  19013. grep -v '^ *+' conftest.er1 >conftest.err
  19014. rm -f conftest.er1
  19015. cat conftest.err >&5
  19016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19017. (exit $ac_status); } >/dev/null && {
  19018. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19019. test ! -s conftest.err
  19020. }; then
  19021. ac_header_preproc=yes
  19022. else
  19023. echo "$as_me: failed program was:" >&5
  19024. sed 's/^/| /' conftest.$ac_ext >&5
  19025. ac_header_preproc=no
  19026. fi
  19027. rm -f conftest.err conftest.$ac_ext
  19028. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19029. echo "${ECHO_T}$ac_header_preproc" >&6; }
  19030. # So? What about this header?
  19031. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19032. yes:no: )
  19033. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19034. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19035. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19036. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19037. ac_header_preproc=yes
  19038. ;;
  19039. no:yes:* )
  19040. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19041. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19042. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19043. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19044. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19045. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19046. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19047. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19048. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19049. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19050. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19051. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19052. ( cat <<\_ASBOX
  19053. ## ---------------------------------- ##
  19054. ## Report this to christos@astron.com ##
  19055. ## ---------------------------------- ##
  19056. _ASBOX
  19057. ) | sed "s/^/$as_me: WARNING: /" >&2
  19058. ;;
  19059. esac
  19060. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  19061. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  19062. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19063. echo $ECHO_N "(cached) $ECHO_C" >&6
  19064. else
  19065. eval "$as_ac_Header=\$ac_header_preproc"
  19066. fi
  19067. ac_res=`eval echo '${'$as_ac_Header'}'`
  19068. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19069. echo "${ECHO_T}$ac_res" >&6; }
  19070. fi
  19071. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19072. cat >>confdefs.h <<_ACEOF
  19073. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19074. _ACEOF
  19075. fi
  19076. done
  19077. for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h
  19078. do
  19079. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19080. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19081. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  19082. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  19083. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19084. echo $ECHO_N "(cached) $ECHO_C" >&6
  19085. fi
  19086. ac_res=`eval echo '${'$as_ac_Header'}'`
  19087. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19088. echo "${ECHO_T}$ac_res" >&6; }
  19089. else
  19090. # Is the header compilable?
  19091. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19092. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  19093. cat >conftest.$ac_ext <<_ACEOF
  19094. /* confdefs.h. */
  19095. _ACEOF
  19096. cat confdefs.h >>conftest.$ac_ext
  19097. cat >>conftest.$ac_ext <<_ACEOF
  19098. /* end confdefs.h. */
  19099. $ac_includes_default
  19100. #include <$ac_header>
  19101. _ACEOF
  19102. rm -f conftest.$ac_objext
  19103. if { (ac_try="$ac_compile"
  19104. case "(($ac_try" in
  19105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19106. *) ac_try_echo=$ac_try;;
  19107. esac
  19108. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19109. (eval "$ac_compile") 2>conftest.er1
  19110. ac_status=$?
  19111. grep -v '^ *+' conftest.er1 >conftest.err
  19112. rm -f conftest.er1
  19113. cat conftest.err >&5
  19114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19115. (exit $ac_status); } && {
  19116. test -z "$ac_c_werror_flag" ||
  19117. test ! -s conftest.err
  19118. } && test -s conftest.$ac_objext; then
  19119. ac_header_compiler=yes
  19120. else
  19121. echo "$as_me: failed program was:" >&5
  19122. sed 's/^/| /' conftest.$ac_ext >&5
  19123. ac_header_compiler=no
  19124. fi
  19125. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19126. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19127. echo "${ECHO_T}$ac_header_compiler" >&6; }
  19128. # Is the header present?
  19129. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19130. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  19131. cat >conftest.$ac_ext <<_ACEOF
  19132. /* confdefs.h. */
  19133. _ACEOF
  19134. cat confdefs.h >>conftest.$ac_ext
  19135. cat >>conftest.$ac_ext <<_ACEOF
  19136. /* end confdefs.h. */
  19137. #include <$ac_header>
  19138. _ACEOF
  19139. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19140. case "(($ac_try" in
  19141. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19142. *) ac_try_echo=$ac_try;;
  19143. esac
  19144. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19145. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19146. ac_status=$?
  19147. grep -v '^ *+' conftest.er1 >conftest.err
  19148. rm -f conftest.er1
  19149. cat conftest.err >&5
  19150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19151. (exit $ac_status); } >/dev/null && {
  19152. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19153. test ! -s conftest.err
  19154. }; then
  19155. ac_header_preproc=yes
  19156. else
  19157. echo "$as_me: failed program was:" >&5
  19158. sed 's/^/| /' conftest.$ac_ext >&5
  19159. ac_header_preproc=no
  19160. fi
  19161. rm -f conftest.err conftest.$ac_ext
  19162. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19163. echo "${ECHO_T}$ac_header_preproc" >&6; }
  19164. # So? What about this header?
  19165. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19166. yes:no: )
  19167. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19168. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19169. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19170. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19171. ac_header_preproc=yes
  19172. ;;
  19173. no:yes:* )
  19174. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19175. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19176. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19177. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19178. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19179. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19180. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19181. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19182. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19183. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19184. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19185. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19186. ( cat <<\_ASBOX
  19187. ## ---------------------------------- ##
  19188. ## Report this to christos@astron.com ##
  19189. ## ---------------------------------- ##
  19190. _ASBOX
  19191. ) | sed "s/^/$as_me: WARNING: /" >&2
  19192. ;;
  19193. esac
  19194. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  19195. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  19196. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19197. echo $ECHO_N "(cached) $ECHO_C" >&6
  19198. else
  19199. eval "$as_ac_Header=\$ac_header_preproc"
  19200. fi
  19201. ac_res=`eval echo '${'$as_ac_Header'}'`
  19202. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19203. echo "${ECHO_T}$ac_res" >&6; }
  19204. fi
  19205. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19206. cat >>confdefs.h <<_ACEOF
  19207. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19208. _ACEOF
  19209. fi
  19210. done
  19211. for ac_header in zlib.h
  19212. do
  19213. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19214. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19215. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  19216. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  19217. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19218. echo $ECHO_N "(cached) $ECHO_C" >&6
  19219. fi
  19220. ac_res=`eval echo '${'$as_ac_Header'}'`
  19221. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19222. echo "${ECHO_T}$ac_res" >&6; }
  19223. else
  19224. # Is the header compilable?
  19225. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19226. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  19227. cat >conftest.$ac_ext <<_ACEOF
  19228. /* confdefs.h. */
  19229. _ACEOF
  19230. cat confdefs.h >>conftest.$ac_ext
  19231. cat >>conftest.$ac_ext <<_ACEOF
  19232. /* end confdefs.h. */
  19233. $ac_includes_default
  19234. #include <$ac_header>
  19235. _ACEOF
  19236. rm -f conftest.$ac_objext
  19237. if { (ac_try="$ac_compile"
  19238. case "(($ac_try" in
  19239. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19240. *) ac_try_echo=$ac_try;;
  19241. esac
  19242. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19243. (eval "$ac_compile") 2>conftest.er1
  19244. ac_status=$?
  19245. grep -v '^ *+' conftest.er1 >conftest.err
  19246. rm -f conftest.er1
  19247. cat conftest.err >&5
  19248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19249. (exit $ac_status); } && {
  19250. test -z "$ac_c_werror_flag" ||
  19251. test ! -s conftest.err
  19252. } && test -s conftest.$ac_objext; then
  19253. ac_header_compiler=yes
  19254. else
  19255. echo "$as_me: failed program was:" >&5
  19256. sed 's/^/| /' conftest.$ac_ext >&5
  19257. ac_header_compiler=no
  19258. fi
  19259. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19260. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19261. echo "${ECHO_T}$ac_header_compiler" >&6; }
  19262. # Is the header present?
  19263. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19264. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  19265. cat >conftest.$ac_ext <<_ACEOF
  19266. /* confdefs.h. */
  19267. _ACEOF
  19268. cat confdefs.h >>conftest.$ac_ext
  19269. cat >>conftest.$ac_ext <<_ACEOF
  19270. /* end confdefs.h. */
  19271. #include <$ac_header>
  19272. _ACEOF
  19273. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19274. case "(($ac_try" in
  19275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19276. *) ac_try_echo=$ac_try;;
  19277. esac
  19278. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19279. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19280. ac_status=$?
  19281. grep -v '^ *+' conftest.er1 >conftest.err
  19282. rm -f conftest.er1
  19283. cat conftest.err >&5
  19284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19285. (exit $ac_status); } >/dev/null && {
  19286. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19287. test ! -s conftest.err
  19288. }; then
  19289. ac_header_preproc=yes
  19290. else
  19291. echo "$as_me: failed program was:" >&5
  19292. sed 's/^/| /' conftest.$ac_ext >&5
  19293. ac_header_preproc=no
  19294. fi
  19295. rm -f conftest.err conftest.$ac_ext
  19296. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19297. echo "${ECHO_T}$ac_header_preproc" >&6; }
  19298. # So? What about this header?
  19299. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19300. yes:no: )
  19301. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19302. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19303. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19304. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19305. ac_header_preproc=yes
  19306. ;;
  19307. no:yes:* )
  19308. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19309. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19310. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19311. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19312. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19313. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19314. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19315. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19316. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19317. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19318. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19319. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19320. ( cat <<\_ASBOX
  19321. ## ---------------------------------- ##
  19322. ## Report this to christos@astron.com ##
  19323. ## ---------------------------------- ##
  19324. _ASBOX
  19325. ) | sed "s/^/$as_me: WARNING: /" >&2
  19326. ;;
  19327. esac
  19328. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  19329. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  19330. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19331. echo $ECHO_N "(cached) $ECHO_C" >&6
  19332. else
  19333. eval "$as_ac_Header=\$ac_header_preproc"
  19334. fi
  19335. ac_res=`eval echo '${'$as_ac_Header'}'`
  19336. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19337. echo "${ECHO_T}$ac_res" >&6; }
  19338. fi
  19339. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19340. cat >>confdefs.h <<_ACEOF
  19341. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19342. _ACEOF
  19343. fi
  19344. done
  19345. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  19346. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  19347. if test "${ac_cv_c_const+set}" = set; then
  19348. echo $ECHO_N "(cached) $ECHO_C" >&6
  19349. else
  19350. cat >conftest.$ac_ext <<_ACEOF
  19351. /* confdefs.h. */
  19352. _ACEOF
  19353. cat confdefs.h >>conftest.$ac_ext
  19354. cat >>conftest.$ac_ext <<_ACEOF
  19355. /* end confdefs.h. */
  19356. int
  19357. main ()
  19358. {
  19359. /* FIXME: Include the comments suggested by Paul. */
  19360. #ifndef __cplusplus
  19361. /* Ultrix mips cc rejects this. */
  19362. typedef int charset[2];
  19363. const charset cs;
  19364. /* SunOS 4.1.1 cc rejects this. */
  19365. char const *const *pcpcc;
  19366. char **ppc;
  19367. /* NEC SVR4.0.2 mips cc rejects this. */
  19368. struct point {int x, y;};
  19369. static struct point const zero = {0,0};
  19370. /* AIX XL C 1.02.0.0 rejects this.
  19371. It does not let you subtract one const X* pointer from another in
  19372. an arm of an if-expression whose if-part is not a constant
  19373. expression */
  19374. const char *g = "string";
  19375. pcpcc = &g + (g ? g-g : 0);
  19376. /* HPUX 7.0 cc rejects these. */
  19377. ++pcpcc;
  19378. ppc = (char**) pcpcc;
  19379. pcpcc = (char const *const *) ppc;
  19380. { /* SCO 3.2v4 cc rejects this. */
  19381. char *t;
  19382. char const *s = 0 ? (char *) 0 : (char const *) 0;
  19383. *t++ = 0;
  19384. if (s) return 0;
  19385. }
  19386. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  19387. int x[] = {25, 17};
  19388. const int *foo = &x[0];
  19389. ++foo;
  19390. }
  19391. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  19392. typedef const int *iptr;
  19393. iptr p = 0;
  19394. ++p;
  19395. }
  19396. { /* AIX XL C 1.02.0.0 rejects this saying
  19397. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  19398. struct s { int j; const int *ap[3]; };
  19399. struct s *b; b->j = 5;
  19400. }
  19401. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  19402. const int foo = 10;
  19403. if (!foo) return 0;
  19404. }
  19405. return !cs[0] && !zero.x;
  19406. #endif
  19407. ;
  19408. return 0;
  19409. }
  19410. _ACEOF
  19411. rm -f conftest.$ac_objext
  19412. if { (ac_try="$ac_compile"
  19413. case "(($ac_try" in
  19414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19415. *) ac_try_echo=$ac_try;;
  19416. esac
  19417. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19418. (eval "$ac_compile") 2>conftest.er1
  19419. ac_status=$?
  19420. grep -v '^ *+' conftest.er1 >conftest.err
  19421. rm -f conftest.er1
  19422. cat conftest.err >&5
  19423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19424. (exit $ac_status); } && {
  19425. test -z "$ac_c_werror_flag" ||
  19426. test ! -s conftest.err
  19427. } && test -s conftest.$ac_objext; then
  19428. ac_cv_c_const=yes
  19429. else
  19430. echo "$as_me: failed program was:" >&5
  19431. sed 's/^/| /' conftest.$ac_ext >&5
  19432. ac_cv_c_const=no
  19433. fi
  19434. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19435. fi
  19436. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  19437. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  19438. if test $ac_cv_c_const = no; then
  19439. cat >>confdefs.h <<\_ACEOF
  19440. #define const
  19441. _ACEOF
  19442. fi
  19443. { echo "$as_me:$LINENO: checking for off_t" >&5
  19444. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  19445. if test "${ac_cv_type_off_t+set}" = set; then
  19446. echo $ECHO_N "(cached) $ECHO_C" >&6
  19447. else
  19448. cat >conftest.$ac_ext <<_ACEOF
  19449. /* confdefs.h. */
  19450. _ACEOF
  19451. cat confdefs.h >>conftest.$ac_ext
  19452. cat >>conftest.$ac_ext <<_ACEOF
  19453. /* end confdefs.h. */
  19454. $ac_includes_default
  19455. typedef off_t ac__type_new_;
  19456. int
  19457. main ()
  19458. {
  19459. if ((ac__type_new_ *) 0)
  19460. return 0;
  19461. if (sizeof (ac__type_new_))
  19462. return 0;
  19463. ;
  19464. return 0;
  19465. }
  19466. _ACEOF
  19467. rm -f conftest.$ac_objext
  19468. if { (ac_try="$ac_compile"
  19469. case "(($ac_try" in
  19470. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19471. *) ac_try_echo=$ac_try;;
  19472. esac
  19473. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19474. (eval "$ac_compile") 2>conftest.er1
  19475. ac_status=$?
  19476. grep -v '^ *+' conftest.er1 >conftest.err
  19477. rm -f conftest.er1
  19478. cat conftest.err >&5
  19479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19480. (exit $ac_status); } && {
  19481. test -z "$ac_c_werror_flag" ||
  19482. test ! -s conftest.err
  19483. } && test -s conftest.$ac_objext; then
  19484. ac_cv_type_off_t=yes
  19485. else
  19486. echo "$as_me: failed program was:" >&5
  19487. sed 's/^/| /' conftest.$ac_ext >&5
  19488. ac_cv_type_off_t=no
  19489. fi
  19490. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19491. fi
  19492. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  19493. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  19494. if test $ac_cv_type_off_t = yes; then
  19495. :
  19496. else
  19497. cat >>confdefs.h <<_ACEOF
  19498. #define off_t long int
  19499. _ACEOF
  19500. fi
  19501. { echo "$as_me:$LINENO: checking for size_t" >&5
  19502. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  19503. if test "${ac_cv_type_size_t+set}" = set; then
  19504. echo $ECHO_N "(cached) $ECHO_C" >&6
  19505. else
  19506. cat >conftest.$ac_ext <<_ACEOF
  19507. /* confdefs.h. */
  19508. _ACEOF
  19509. cat confdefs.h >>conftest.$ac_ext
  19510. cat >>conftest.$ac_ext <<_ACEOF
  19511. /* end confdefs.h. */
  19512. $ac_includes_default
  19513. typedef size_t ac__type_new_;
  19514. int
  19515. main ()
  19516. {
  19517. if ((ac__type_new_ *) 0)
  19518. return 0;
  19519. if (sizeof (ac__type_new_))
  19520. return 0;
  19521. ;
  19522. return 0;
  19523. }
  19524. _ACEOF
  19525. rm -f conftest.$ac_objext
  19526. if { (ac_try="$ac_compile"
  19527. case "(($ac_try" in
  19528. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19529. *) ac_try_echo=$ac_try;;
  19530. esac
  19531. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19532. (eval "$ac_compile") 2>conftest.er1
  19533. ac_status=$?
  19534. grep -v '^ *+' conftest.er1 >conftest.err
  19535. rm -f conftest.er1
  19536. cat conftest.err >&5
  19537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19538. (exit $ac_status); } && {
  19539. test -z "$ac_c_werror_flag" ||
  19540. test ! -s conftest.err
  19541. } && test -s conftest.$ac_objext; then
  19542. ac_cv_type_size_t=yes
  19543. else
  19544. echo "$as_me: failed program was:" >&5
  19545. sed 's/^/| /' conftest.$ac_ext >&5
  19546. ac_cv_type_size_t=no
  19547. fi
  19548. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19549. fi
  19550. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  19551. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  19552. if test $ac_cv_type_size_t = yes; then
  19553. :
  19554. else
  19555. cat >>confdefs.h <<_ACEOF
  19556. #define size_t unsigned int
  19557. _ACEOF
  19558. fi
  19559. { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
  19560. echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
  19561. if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
  19562. echo $ECHO_N "(cached) $ECHO_C" >&6
  19563. else
  19564. cat >conftest.$ac_ext <<_ACEOF
  19565. /* confdefs.h. */
  19566. _ACEOF
  19567. cat confdefs.h >>conftest.$ac_ext
  19568. cat >>conftest.$ac_ext <<_ACEOF
  19569. /* end confdefs.h. */
  19570. $ac_includes_default
  19571. int
  19572. main ()
  19573. {
  19574. static struct stat ac_aggr;
  19575. if (ac_aggr.st_rdev)
  19576. return 0;
  19577. ;
  19578. return 0;
  19579. }
  19580. _ACEOF
  19581. rm -f conftest.$ac_objext
  19582. if { (ac_try="$ac_compile"
  19583. case "(($ac_try" in
  19584. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19585. *) ac_try_echo=$ac_try;;
  19586. esac
  19587. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19588. (eval "$ac_compile") 2>conftest.er1
  19589. ac_status=$?
  19590. grep -v '^ *+' conftest.er1 >conftest.err
  19591. rm -f conftest.er1
  19592. cat conftest.err >&5
  19593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19594. (exit $ac_status); } && {
  19595. test -z "$ac_c_werror_flag" ||
  19596. test ! -s conftest.err
  19597. } && test -s conftest.$ac_objext; then
  19598. ac_cv_member_struct_stat_st_rdev=yes
  19599. else
  19600. echo "$as_me: failed program was:" >&5
  19601. sed 's/^/| /' conftest.$ac_ext >&5
  19602. cat >conftest.$ac_ext <<_ACEOF
  19603. /* confdefs.h. */
  19604. _ACEOF
  19605. cat confdefs.h >>conftest.$ac_ext
  19606. cat >>conftest.$ac_ext <<_ACEOF
  19607. /* end confdefs.h. */
  19608. $ac_includes_default
  19609. int
  19610. main ()
  19611. {
  19612. static struct stat ac_aggr;
  19613. if (sizeof ac_aggr.st_rdev)
  19614. return 0;
  19615. ;
  19616. return 0;
  19617. }
  19618. _ACEOF
  19619. rm -f conftest.$ac_objext
  19620. if { (ac_try="$ac_compile"
  19621. case "(($ac_try" in
  19622. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19623. *) ac_try_echo=$ac_try;;
  19624. esac
  19625. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19626. (eval "$ac_compile") 2>conftest.er1
  19627. ac_status=$?
  19628. grep -v '^ *+' conftest.er1 >conftest.err
  19629. rm -f conftest.er1
  19630. cat conftest.err >&5
  19631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19632. (exit $ac_status); } && {
  19633. test -z "$ac_c_werror_flag" ||
  19634. test ! -s conftest.err
  19635. } && test -s conftest.$ac_objext; then
  19636. ac_cv_member_struct_stat_st_rdev=yes
  19637. else
  19638. echo "$as_me: failed program was:" >&5
  19639. sed 's/^/| /' conftest.$ac_ext >&5
  19640. ac_cv_member_struct_stat_st_rdev=no
  19641. fi
  19642. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19643. fi
  19644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19645. fi
  19646. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
  19647. echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
  19648. if test $ac_cv_member_struct_stat_st_rdev = yes; then
  19649. cat >>confdefs.h <<_ACEOF
  19650. #define HAVE_STRUCT_STAT_ST_RDEV 1
  19651. _ACEOF
  19652. fi
  19653. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  19654. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  19655. if test "${ac_cv_struct_tm+set}" = set; then
  19656. echo $ECHO_N "(cached) $ECHO_C" >&6
  19657. else
  19658. cat >conftest.$ac_ext <<_ACEOF
  19659. /* confdefs.h. */
  19660. _ACEOF
  19661. cat confdefs.h >>conftest.$ac_ext
  19662. cat >>conftest.$ac_ext <<_ACEOF
  19663. /* end confdefs.h. */
  19664. #include <sys/types.h>
  19665. #include <time.h>
  19666. int
  19667. main ()
  19668. {
  19669. struct tm tm;
  19670. int *p = &tm.tm_sec;
  19671. return !p;
  19672. ;
  19673. return 0;
  19674. }
  19675. _ACEOF
  19676. rm -f conftest.$ac_objext
  19677. if { (ac_try="$ac_compile"
  19678. case "(($ac_try" in
  19679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19680. *) ac_try_echo=$ac_try;;
  19681. esac
  19682. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19683. (eval "$ac_compile") 2>conftest.er1
  19684. ac_status=$?
  19685. grep -v '^ *+' conftest.er1 >conftest.err
  19686. rm -f conftest.er1
  19687. cat conftest.err >&5
  19688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19689. (exit $ac_status); } && {
  19690. test -z "$ac_c_werror_flag" ||
  19691. test ! -s conftest.err
  19692. } && test -s conftest.$ac_objext; then
  19693. ac_cv_struct_tm=time.h
  19694. else
  19695. echo "$as_me: failed program was:" >&5
  19696. sed 's/^/| /' conftest.$ac_ext >&5
  19697. ac_cv_struct_tm=sys/time.h
  19698. fi
  19699. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19700. fi
  19701. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  19702. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  19703. if test $ac_cv_struct_tm = sys/time.h; then
  19704. cat >>confdefs.h <<\_ACEOF
  19705. #define TM_IN_SYS_TIME 1
  19706. _ACEOF
  19707. fi
  19708. { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
  19709. echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
  19710. if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
  19711. echo $ECHO_N "(cached) $ECHO_C" >&6
  19712. else
  19713. cat >conftest.$ac_ext <<_ACEOF
  19714. /* confdefs.h. */
  19715. _ACEOF
  19716. cat confdefs.h >>conftest.$ac_ext
  19717. cat >>conftest.$ac_ext <<_ACEOF
  19718. /* end confdefs.h. */
  19719. $ac_includes_default
  19720. int
  19721. main ()
  19722. {
  19723. static struct tm ac_aggr;
  19724. if (ac_aggr.tm_gmtoff)
  19725. return 0;
  19726. ;
  19727. return 0;
  19728. }
  19729. _ACEOF
  19730. rm -f conftest.$ac_objext
  19731. if { (ac_try="$ac_compile"
  19732. case "(($ac_try" in
  19733. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19734. *) ac_try_echo=$ac_try;;
  19735. esac
  19736. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19737. (eval "$ac_compile") 2>conftest.er1
  19738. ac_status=$?
  19739. grep -v '^ *+' conftest.er1 >conftest.err
  19740. rm -f conftest.er1
  19741. cat conftest.err >&5
  19742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19743. (exit $ac_status); } && {
  19744. test -z "$ac_c_werror_flag" ||
  19745. test ! -s conftest.err
  19746. } && test -s conftest.$ac_objext; then
  19747. ac_cv_member_struct_tm_tm_gmtoff=yes
  19748. else
  19749. echo "$as_me: failed program was:" >&5
  19750. sed 's/^/| /' conftest.$ac_ext >&5
  19751. cat >conftest.$ac_ext <<_ACEOF
  19752. /* confdefs.h. */
  19753. _ACEOF
  19754. cat confdefs.h >>conftest.$ac_ext
  19755. cat >>conftest.$ac_ext <<_ACEOF
  19756. /* end confdefs.h. */
  19757. $ac_includes_default
  19758. int
  19759. main ()
  19760. {
  19761. static struct tm ac_aggr;
  19762. if (sizeof ac_aggr.tm_gmtoff)
  19763. return 0;
  19764. ;
  19765. return 0;
  19766. }
  19767. _ACEOF
  19768. rm -f conftest.$ac_objext
  19769. if { (ac_try="$ac_compile"
  19770. case "(($ac_try" in
  19771. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19772. *) ac_try_echo=$ac_try;;
  19773. esac
  19774. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19775. (eval "$ac_compile") 2>conftest.er1
  19776. ac_status=$?
  19777. grep -v '^ *+' conftest.er1 >conftest.err
  19778. rm -f conftest.er1
  19779. cat conftest.err >&5
  19780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19781. (exit $ac_status); } && {
  19782. test -z "$ac_c_werror_flag" ||
  19783. test ! -s conftest.err
  19784. } && test -s conftest.$ac_objext; then
  19785. ac_cv_member_struct_tm_tm_gmtoff=yes
  19786. else
  19787. echo "$as_me: failed program was:" >&5
  19788. sed 's/^/| /' conftest.$ac_ext >&5
  19789. ac_cv_member_struct_tm_tm_gmtoff=no
  19790. fi
  19791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19792. fi
  19793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19794. fi
  19795. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
  19796. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
  19797. if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
  19798. cat >>confdefs.h <<_ACEOF
  19799. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  19800. _ACEOF
  19801. fi
  19802. { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  19803. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
  19804. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  19805. echo $ECHO_N "(cached) $ECHO_C" >&6
  19806. else
  19807. cat >conftest.$ac_ext <<_ACEOF
  19808. /* confdefs.h. */
  19809. _ACEOF
  19810. cat confdefs.h >>conftest.$ac_ext
  19811. cat >>conftest.$ac_ext <<_ACEOF
  19812. /* end confdefs.h. */
  19813. $ac_includes_default
  19814. int
  19815. main ()
  19816. {
  19817. static struct tm ac_aggr;
  19818. if (ac_aggr.tm_zone)
  19819. return 0;
  19820. ;
  19821. return 0;
  19822. }
  19823. _ACEOF
  19824. rm -f conftest.$ac_objext
  19825. if { (ac_try="$ac_compile"
  19826. case "(($ac_try" in
  19827. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19828. *) ac_try_echo=$ac_try;;
  19829. esac
  19830. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19831. (eval "$ac_compile") 2>conftest.er1
  19832. ac_status=$?
  19833. grep -v '^ *+' conftest.er1 >conftest.err
  19834. rm -f conftest.er1
  19835. cat conftest.err >&5
  19836. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19837. (exit $ac_status); } && {
  19838. test -z "$ac_c_werror_flag" ||
  19839. test ! -s conftest.err
  19840. } && test -s conftest.$ac_objext; then
  19841. ac_cv_member_struct_tm_tm_zone=yes
  19842. else
  19843. echo "$as_me: failed program was:" >&5
  19844. sed 's/^/| /' conftest.$ac_ext >&5
  19845. cat >conftest.$ac_ext <<_ACEOF
  19846. /* confdefs.h. */
  19847. _ACEOF
  19848. cat confdefs.h >>conftest.$ac_ext
  19849. cat >>conftest.$ac_ext <<_ACEOF
  19850. /* end confdefs.h. */
  19851. $ac_includes_default
  19852. int
  19853. main ()
  19854. {
  19855. static struct tm ac_aggr;
  19856. if (sizeof ac_aggr.tm_zone)
  19857. return 0;
  19858. ;
  19859. return 0;
  19860. }
  19861. _ACEOF
  19862. rm -f conftest.$ac_objext
  19863. if { (ac_try="$ac_compile"
  19864. case "(($ac_try" in
  19865. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19866. *) ac_try_echo=$ac_try;;
  19867. esac
  19868. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19869. (eval "$ac_compile") 2>conftest.er1
  19870. ac_status=$?
  19871. grep -v '^ *+' conftest.er1 >conftest.err
  19872. rm -f conftest.er1
  19873. cat conftest.err >&5
  19874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19875. (exit $ac_status); } && {
  19876. test -z "$ac_c_werror_flag" ||
  19877. test ! -s conftest.err
  19878. } && test -s conftest.$ac_objext; then
  19879. ac_cv_member_struct_tm_tm_zone=yes
  19880. else
  19881. echo "$as_me: failed program was:" >&5
  19882. sed 's/^/| /' conftest.$ac_ext >&5
  19883. ac_cv_member_struct_tm_tm_zone=no
  19884. fi
  19885. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19886. fi
  19887. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19888. fi
  19889. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  19890. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
  19891. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  19892. cat >>confdefs.h <<_ACEOF
  19893. #define HAVE_STRUCT_TM_TM_ZONE 1
  19894. _ACEOF
  19895. fi
  19896. { echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
  19897. echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6; }
  19898. if test "${ac_cv_struct_tm_zone+set}" = set; then
  19899. echo $ECHO_N "(cached) $ECHO_C" >&6
  19900. else
  19901. cat >conftest.$ac_ext <<_ACEOF
  19902. /* confdefs.h. */
  19903. _ACEOF
  19904. cat confdefs.h >>conftest.$ac_ext
  19905. cat >>conftest.$ac_ext <<_ACEOF
  19906. /* end confdefs.h. */
  19907. #include <sys/types.h>
  19908. #include <$ac_cv_struct_tm>
  19909. int
  19910. main ()
  19911. {
  19912. struct tm tm; tm.tm_zone;
  19913. ;
  19914. return 0;
  19915. }
  19916. _ACEOF
  19917. rm -f conftest.$ac_objext
  19918. if { (ac_try="$ac_compile"
  19919. case "(($ac_try" in
  19920. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19921. *) ac_try_echo=$ac_try;;
  19922. esac
  19923. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19924. (eval "$ac_compile") 2>conftest.er1
  19925. ac_status=$?
  19926. grep -v '^ *+' conftest.er1 >conftest.err
  19927. rm -f conftest.er1
  19928. cat conftest.err >&5
  19929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19930. (exit $ac_status); } && {
  19931. test -z "$ac_c_werror_flag" ||
  19932. test ! -s conftest.err
  19933. } && test -s conftest.$ac_objext; then
  19934. ac_cv_struct_tm_zone=yes
  19935. else
  19936. echo "$as_me: failed program was:" >&5
  19937. sed 's/^/| /' conftest.$ac_ext >&5
  19938. ac_cv_struct_tm_zone=no
  19939. fi
  19940. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19941. fi
  19942. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm_zone" >&5
  19943. echo "${ECHO_T}$ac_cv_struct_tm_zone" >&6; }
  19944. if test "$ac_cv_struct_tm_zone" = yes; then
  19945. cat >>confdefs.h <<\_ACEOF
  19946. #define HAVE_TM_ZONE 1
  19947. _ACEOF
  19948. fi
  19949. { echo "$as_me:$LINENO: checking for tzname" >&5
  19950. echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
  19951. if test "${ac_cv_var_tzname+set}" = set; then
  19952. echo $ECHO_N "(cached) $ECHO_C" >&6
  19953. else
  19954. cat >conftest.$ac_ext <<_ACEOF
  19955. /* confdefs.h. */
  19956. _ACEOF
  19957. cat confdefs.h >>conftest.$ac_ext
  19958. cat >>conftest.$ac_ext <<_ACEOF
  19959. /* end confdefs.h. */
  19960. #include <time.h>
  19961. #ifndef tzname /* For SGI. */
  19962. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  19963. #endif
  19964. int
  19965. main ()
  19966. {
  19967. atoi(*tzname);
  19968. ;
  19969. return 0;
  19970. }
  19971. _ACEOF
  19972. rm -f conftest.$ac_objext conftest$ac_exeext
  19973. if { (ac_try="$ac_link"
  19974. case "(($ac_try" in
  19975. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19976. *) ac_try_echo=$ac_try;;
  19977. esac
  19978. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19979. (eval "$ac_link") 2>conftest.er1
  19980. ac_status=$?
  19981. grep -v '^ *+' conftest.er1 >conftest.err
  19982. rm -f conftest.er1
  19983. cat conftest.err >&5
  19984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19985. (exit $ac_status); } && {
  19986. test -z "$ac_c_werror_flag" ||
  19987. test ! -s conftest.err
  19988. } && test -s conftest$ac_exeext &&
  19989. $as_test_x conftest$ac_exeext; then
  19990. ac_cv_var_tzname=yes
  19991. else
  19992. echo "$as_me: failed program was:" >&5
  19993. sed 's/^/| /' conftest.$ac_ext >&5
  19994. ac_cv_var_tzname=no
  19995. fi
  19996. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19997. conftest$ac_exeext conftest.$ac_ext
  19998. fi
  19999. { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  20000. echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
  20001. if test $ac_cv_var_tzname = yes; then
  20002. cat >>confdefs.h <<\_ACEOF
  20003. #define HAVE_TZNAME 1
  20004. _ACEOF
  20005. fi
  20006. { echo "$as_me:$LINENO: checking for tm_isdst in struct tm" >&5
  20007. echo $ECHO_N "checking for tm_isdst in struct tm... $ECHO_C" >&6; }
  20008. if test "${ac_cv_struct_tm_isdst+set}" = set; then
  20009. echo $ECHO_N "(cached) $ECHO_C" >&6
  20010. else
  20011. cat >conftest.$ac_ext <<_ACEOF
  20012. /* confdefs.h. */
  20013. _ACEOF
  20014. cat confdefs.h >>conftest.$ac_ext
  20015. cat >>conftest.$ac_ext <<_ACEOF
  20016. /* end confdefs.h. */
  20017. #include <sys/types.h>
  20018. #include <$ac_cv_struct_tm>
  20019. int
  20020. main ()
  20021. {
  20022. struct tm tm; tm.tm_isdst;
  20023. ;
  20024. return 0;
  20025. }
  20026. _ACEOF
  20027. rm -f conftest.$ac_objext
  20028. if { (ac_try="$ac_compile"
  20029. case "(($ac_try" in
  20030. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20031. *) ac_try_echo=$ac_try;;
  20032. esac
  20033. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20034. (eval "$ac_compile") 2>conftest.er1
  20035. ac_status=$?
  20036. grep -v '^ *+' conftest.er1 >conftest.err
  20037. rm -f conftest.er1
  20038. cat conftest.err >&5
  20039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20040. (exit $ac_status); } && {
  20041. test -z "$ac_c_werror_flag" ||
  20042. test ! -s conftest.err
  20043. } && test -s conftest.$ac_objext; then
  20044. ac_cv_struct_tm_isdst=yes
  20045. else
  20046. echo "$as_me: failed program was:" >&5
  20047. sed 's/^/| /' conftest.$ac_ext >&5
  20048. ac_cv_struct_tm_isdst=no
  20049. fi
  20050. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20051. fi
  20052. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm_isdst" >&5
  20053. echo "${ECHO_T}$ac_cv_struct_tm_isdst" >&6; }
  20054. if test "$ac_cv_struct_tm_isdst" = yes; then
  20055. cat >>confdefs.h <<\_ACEOF
  20056. #define HAVE_TM_ISDST 1
  20057. _ACEOF
  20058. fi
  20059. { echo "$as_me:$LINENO: checking for daylight" >&5
  20060. echo $ECHO_N "checking for daylight... $ECHO_C" >&6; }
  20061. if test "${ac_cv_var_daylight+set}" = set; then
  20062. echo $ECHO_N "(cached) $ECHO_C" >&6
  20063. else
  20064. cat >conftest.$ac_ext <<_ACEOF
  20065. /* confdefs.h. */
  20066. _ACEOF
  20067. cat confdefs.h >>conftest.$ac_ext
  20068. cat >>conftest.$ac_ext <<_ACEOF
  20069. /* end confdefs.h. */
  20070. #include <time.h>
  20071. #ifndef daylight /* In case IRIX #defines this, too */
  20072. extern int daylight;
  20073. #endif
  20074. int
  20075. main ()
  20076. {
  20077. atoi(daylight);
  20078. ;
  20079. return 0;
  20080. }
  20081. _ACEOF
  20082. rm -f conftest.$ac_objext conftest$ac_exeext
  20083. if { (ac_try="$ac_link"
  20084. case "(($ac_try" in
  20085. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20086. *) ac_try_echo=$ac_try;;
  20087. esac
  20088. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20089. (eval "$ac_link") 2>conftest.er1
  20090. ac_status=$?
  20091. grep -v '^ *+' conftest.er1 >conftest.err
  20092. rm -f conftest.er1
  20093. cat conftest.err >&5
  20094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20095. (exit $ac_status); } && {
  20096. test -z "$ac_c_werror_flag" ||
  20097. test ! -s conftest.err
  20098. } && test -s conftest$ac_exeext &&
  20099. $as_test_x conftest$ac_exeext; then
  20100. ac_cv_var_daylight=yes
  20101. else
  20102. echo "$as_me: failed program was:" >&5
  20103. sed 's/^/| /' conftest.$ac_ext >&5
  20104. ac_cv_var_daylight=no
  20105. fi
  20106. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20107. conftest$ac_exeext conftest.$ac_ext
  20108. fi
  20109. { echo "$as_me:$LINENO: result: $ac_cv_var_daylight" >&5
  20110. echo "${ECHO_T}$ac_cv_var_daylight" >&6; }
  20111. if test $ac_cv_var_daylight = yes; then
  20112. cat >>confdefs.h <<\_ACEOF
  20113. #define HAVE_DAYLIGHT 1
  20114. _ACEOF
  20115. fi
  20116. # Check whether --enable-largefile was given.
  20117. if test "${enable_largefile+set}" = set; then
  20118. enableval=$enable_largefile;
  20119. fi
  20120. if test "$enable_largefile" != no; then
  20121. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  20122. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  20123. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  20124. echo $ECHO_N "(cached) $ECHO_C" >&6
  20125. else
  20126. ac_cv_sys_largefile_CC=no
  20127. if test "$GCC" != yes; then
  20128. ac_save_CC=$CC
  20129. while :; do
  20130. # IRIX 6.2 and later do not support large files by default,
  20131. # so use the C compiler's -n32 option if that helps.
  20132. cat >conftest.$ac_ext <<_ACEOF
  20133. /* confdefs.h. */
  20134. _ACEOF
  20135. cat confdefs.h >>conftest.$ac_ext
  20136. cat >>conftest.$ac_ext <<_ACEOF
  20137. /* end confdefs.h. */
  20138. #include <sys/types.h>
  20139. /* Check that off_t can represent 2**63 - 1 correctly.
  20140. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20141. since some C++ compilers masquerading as C compilers
  20142. incorrectly reject 9223372036854775807. */
  20143. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20144. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20145. && LARGE_OFF_T % 2147483647 == 1)
  20146. ? 1 : -1];
  20147. int
  20148. main ()
  20149. {
  20150. ;
  20151. return 0;
  20152. }
  20153. _ACEOF
  20154. rm -f conftest.$ac_objext
  20155. if { (ac_try="$ac_compile"
  20156. case "(($ac_try" in
  20157. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20158. *) ac_try_echo=$ac_try;;
  20159. esac
  20160. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20161. (eval "$ac_compile") 2>conftest.er1
  20162. ac_status=$?
  20163. grep -v '^ *+' conftest.er1 >conftest.err
  20164. rm -f conftest.er1
  20165. cat conftest.err >&5
  20166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20167. (exit $ac_status); } && {
  20168. test -z "$ac_c_werror_flag" ||
  20169. test ! -s conftest.err
  20170. } && test -s conftest.$ac_objext; then
  20171. break
  20172. else
  20173. echo "$as_me: failed program was:" >&5
  20174. sed 's/^/| /' conftest.$ac_ext >&5
  20175. fi
  20176. rm -f core conftest.err conftest.$ac_objext
  20177. CC="$CC -n32"
  20178. rm -f conftest.$ac_objext
  20179. if { (ac_try="$ac_compile"
  20180. case "(($ac_try" in
  20181. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20182. *) ac_try_echo=$ac_try;;
  20183. esac
  20184. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20185. (eval "$ac_compile") 2>conftest.er1
  20186. ac_status=$?
  20187. grep -v '^ *+' conftest.er1 >conftest.err
  20188. rm -f conftest.er1
  20189. cat conftest.err >&5
  20190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20191. (exit $ac_status); } && {
  20192. test -z "$ac_c_werror_flag" ||
  20193. test ! -s conftest.err
  20194. } && test -s conftest.$ac_objext; then
  20195. ac_cv_sys_largefile_CC=' -n32'; 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
  20201. break
  20202. done
  20203. CC=$ac_save_CC
  20204. rm -f conftest.$ac_ext
  20205. fi
  20206. fi
  20207. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  20208. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  20209. if test "$ac_cv_sys_largefile_CC" != no; then
  20210. CC=$CC$ac_cv_sys_largefile_CC
  20211. fi
  20212. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  20213. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  20214. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  20215. echo $ECHO_N "(cached) $ECHO_C" >&6
  20216. else
  20217. while :; do
  20218. cat >conftest.$ac_ext <<_ACEOF
  20219. /* confdefs.h. */
  20220. _ACEOF
  20221. cat confdefs.h >>conftest.$ac_ext
  20222. cat >>conftest.$ac_ext <<_ACEOF
  20223. /* end confdefs.h. */
  20224. #include <sys/types.h>
  20225. /* Check that off_t can represent 2**63 - 1 correctly.
  20226. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20227. since some C++ compilers masquerading as C compilers
  20228. incorrectly reject 9223372036854775807. */
  20229. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20230. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20231. && LARGE_OFF_T % 2147483647 == 1)
  20232. ? 1 : -1];
  20233. int
  20234. main ()
  20235. {
  20236. ;
  20237. return 0;
  20238. }
  20239. _ACEOF
  20240. rm -f conftest.$ac_objext
  20241. if { (ac_try="$ac_compile"
  20242. case "(($ac_try" in
  20243. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20244. *) ac_try_echo=$ac_try;;
  20245. esac
  20246. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20247. (eval "$ac_compile") 2>conftest.er1
  20248. ac_status=$?
  20249. grep -v '^ *+' conftest.er1 >conftest.err
  20250. rm -f conftest.er1
  20251. cat conftest.err >&5
  20252. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20253. (exit $ac_status); } && {
  20254. test -z "$ac_c_werror_flag" ||
  20255. test ! -s conftest.err
  20256. } && test -s conftest.$ac_objext; then
  20257. ac_cv_sys_file_offset_bits=no; break
  20258. else
  20259. echo "$as_me: failed program was:" >&5
  20260. sed 's/^/| /' conftest.$ac_ext >&5
  20261. fi
  20262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20263. cat >conftest.$ac_ext <<_ACEOF
  20264. /* confdefs.h. */
  20265. _ACEOF
  20266. cat confdefs.h >>conftest.$ac_ext
  20267. cat >>conftest.$ac_ext <<_ACEOF
  20268. /* end confdefs.h. */
  20269. #define _FILE_OFFSET_BITS 64
  20270. #include <sys/types.h>
  20271. /* Check that off_t can represent 2**63 - 1 correctly.
  20272. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20273. since some C++ compilers masquerading as C compilers
  20274. incorrectly reject 9223372036854775807. */
  20275. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20276. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20277. && LARGE_OFF_T % 2147483647 == 1)
  20278. ? 1 : -1];
  20279. int
  20280. main ()
  20281. {
  20282. ;
  20283. return 0;
  20284. }
  20285. _ACEOF
  20286. rm -f conftest.$ac_objext
  20287. if { (ac_try="$ac_compile"
  20288. case "(($ac_try" in
  20289. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20290. *) ac_try_echo=$ac_try;;
  20291. esac
  20292. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20293. (eval "$ac_compile") 2>conftest.er1
  20294. ac_status=$?
  20295. grep -v '^ *+' conftest.er1 >conftest.err
  20296. rm -f conftest.er1
  20297. cat conftest.err >&5
  20298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20299. (exit $ac_status); } && {
  20300. test -z "$ac_c_werror_flag" ||
  20301. test ! -s conftest.err
  20302. } && test -s conftest.$ac_objext; then
  20303. ac_cv_sys_file_offset_bits=64; break
  20304. else
  20305. echo "$as_me: failed program was:" >&5
  20306. sed 's/^/| /' conftest.$ac_ext >&5
  20307. fi
  20308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20309. ac_cv_sys_file_offset_bits=unknown
  20310. break
  20311. done
  20312. fi
  20313. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  20314. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  20315. case $ac_cv_sys_file_offset_bits in #(
  20316. no | unknown) ;;
  20317. *)
  20318. cat >>confdefs.h <<_ACEOF
  20319. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  20320. _ACEOF
  20321. ;;
  20322. esac
  20323. rm -f conftest*
  20324. if test $ac_cv_sys_file_offset_bits = unknown; then
  20325. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  20326. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  20327. if test "${ac_cv_sys_large_files+set}" = set; then
  20328. echo $ECHO_N "(cached) $ECHO_C" >&6
  20329. else
  20330. while :; do
  20331. cat >conftest.$ac_ext <<_ACEOF
  20332. /* confdefs.h. */
  20333. _ACEOF
  20334. cat confdefs.h >>conftest.$ac_ext
  20335. cat >>conftest.$ac_ext <<_ACEOF
  20336. /* end confdefs.h. */
  20337. #include <sys/types.h>
  20338. /* Check that off_t can represent 2**63 - 1 correctly.
  20339. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20340. since some C++ compilers masquerading as C compilers
  20341. incorrectly reject 9223372036854775807. */
  20342. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20343. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20344. && LARGE_OFF_T % 2147483647 == 1)
  20345. ? 1 : -1];
  20346. int
  20347. main ()
  20348. {
  20349. ;
  20350. return 0;
  20351. }
  20352. _ACEOF
  20353. rm -f conftest.$ac_objext
  20354. if { (ac_try="$ac_compile"
  20355. case "(($ac_try" in
  20356. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20357. *) ac_try_echo=$ac_try;;
  20358. esac
  20359. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20360. (eval "$ac_compile") 2>conftest.er1
  20361. ac_status=$?
  20362. grep -v '^ *+' conftest.er1 >conftest.err
  20363. rm -f conftest.er1
  20364. cat conftest.err >&5
  20365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20366. (exit $ac_status); } && {
  20367. test -z "$ac_c_werror_flag" ||
  20368. test ! -s conftest.err
  20369. } && test -s conftest.$ac_objext; then
  20370. ac_cv_sys_large_files=no; break
  20371. else
  20372. echo "$as_me: failed program was:" >&5
  20373. sed 's/^/| /' conftest.$ac_ext >&5
  20374. fi
  20375. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20376. cat >conftest.$ac_ext <<_ACEOF
  20377. /* confdefs.h. */
  20378. _ACEOF
  20379. cat confdefs.h >>conftest.$ac_ext
  20380. cat >>conftest.$ac_ext <<_ACEOF
  20381. /* end confdefs.h. */
  20382. #define _LARGE_FILES 1
  20383. #include <sys/types.h>
  20384. /* Check that off_t can represent 2**63 - 1 correctly.
  20385. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20386. since some C++ compilers masquerading as C compilers
  20387. incorrectly reject 9223372036854775807. */
  20388. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20389. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20390. && LARGE_OFF_T % 2147483647 == 1)
  20391. ? 1 : -1];
  20392. int
  20393. main ()
  20394. {
  20395. ;
  20396. return 0;
  20397. }
  20398. _ACEOF
  20399. rm -f conftest.$ac_objext
  20400. if { (ac_try="$ac_compile"
  20401. case "(($ac_try" in
  20402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20403. *) ac_try_echo=$ac_try;;
  20404. esac
  20405. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20406. (eval "$ac_compile") 2>conftest.er1
  20407. ac_status=$?
  20408. grep -v '^ *+' conftest.er1 >conftest.err
  20409. rm -f conftest.er1
  20410. cat conftest.err >&5
  20411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20412. (exit $ac_status); } && {
  20413. test -z "$ac_c_werror_flag" ||
  20414. test ! -s conftest.err
  20415. } && test -s conftest.$ac_objext; then
  20416. ac_cv_sys_large_files=1; break
  20417. else
  20418. echo "$as_me: failed program was:" >&5
  20419. sed 's/^/| /' conftest.$ac_ext >&5
  20420. fi
  20421. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20422. ac_cv_sys_large_files=unknown
  20423. break
  20424. done
  20425. fi
  20426. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  20427. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  20428. case $ac_cv_sys_large_files in #(
  20429. no | unknown) ;;
  20430. *)
  20431. cat >>confdefs.h <<_ACEOF
  20432. #define _LARGE_FILES $ac_cv_sys_large_files
  20433. _ACEOF
  20434. ;;
  20435. esac
  20436. rm -f conftest*
  20437. fi
  20438. fi
  20439. { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  20440. echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
  20441. if test "${ac_cv_sys_largefile_source+set}" = set; then
  20442. echo $ECHO_N "(cached) $ECHO_C" >&6
  20443. else
  20444. while :; do
  20445. cat >conftest.$ac_ext <<_ACEOF
  20446. /* confdefs.h. */
  20447. _ACEOF
  20448. cat confdefs.h >>conftest.$ac_ext
  20449. cat >>conftest.$ac_ext <<_ACEOF
  20450. /* end confdefs.h. */
  20451. #include <stdio.h>
  20452. int
  20453. main ()
  20454. {
  20455. return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
  20456. ;
  20457. return 0;
  20458. }
  20459. _ACEOF
  20460. rm -f conftest.$ac_objext conftest$ac_exeext
  20461. if { (ac_try="$ac_link"
  20462. case "(($ac_try" in
  20463. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20464. *) ac_try_echo=$ac_try;;
  20465. esac
  20466. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20467. (eval "$ac_link") 2>conftest.er1
  20468. ac_status=$?
  20469. grep -v '^ *+' conftest.er1 >conftest.err
  20470. rm -f conftest.er1
  20471. cat conftest.err >&5
  20472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20473. (exit $ac_status); } && {
  20474. test -z "$ac_c_werror_flag" ||
  20475. test ! -s conftest.err
  20476. } && test -s conftest$ac_exeext &&
  20477. $as_test_x conftest$ac_exeext; then
  20478. ac_cv_sys_largefile_source=no; break
  20479. else
  20480. echo "$as_me: failed program was:" >&5
  20481. sed 's/^/| /' conftest.$ac_ext >&5
  20482. fi
  20483. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20484. conftest$ac_exeext conftest.$ac_ext
  20485. cat >conftest.$ac_ext <<_ACEOF
  20486. /* confdefs.h. */
  20487. _ACEOF
  20488. cat confdefs.h >>conftest.$ac_ext
  20489. cat >>conftest.$ac_ext <<_ACEOF
  20490. /* end confdefs.h. */
  20491. #define _LARGEFILE_SOURCE 1
  20492. #include <stdio.h>
  20493. int
  20494. main ()
  20495. {
  20496. return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
  20497. ;
  20498. return 0;
  20499. }
  20500. _ACEOF
  20501. rm -f conftest.$ac_objext conftest$ac_exeext
  20502. if { (ac_try="$ac_link"
  20503. case "(($ac_try" in
  20504. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20505. *) ac_try_echo=$ac_try;;
  20506. esac
  20507. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20508. (eval "$ac_link") 2>conftest.er1
  20509. ac_status=$?
  20510. grep -v '^ *+' conftest.er1 >conftest.err
  20511. rm -f conftest.er1
  20512. cat conftest.err >&5
  20513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20514. (exit $ac_status); } && {
  20515. test -z "$ac_c_werror_flag" ||
  20516. test ! -s conftest.err
  20517. } && test -s conftest$ac_exeext &&
  20518. $as_test_x conftest$ac_exeext; then
  20519. ac_cv_sys_largefile_source=1; break
  20520. else
  20521. echo "$as_me: failed program was:" >&5
  20522. sed 's/^/| /' conftest.$ac_ext >&5
  20523. fi
  20524. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20525. conftest$ac_exeext conftest.$ac_ext
  20526. ac_cv_sys_largefile_source=unknown
  20527. break
  20528. done
  20529. fi
  20530. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
  20531. echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
  20532. case $ac_cv_sys_largefile_source in #(
  20533. no | unknown) ;;
  20534. *)
  20535. cat >>confdefs.h <<_ACEOF
  20536. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  20537. _ACEOF
  20538. ;;
  20539. esac
  20540. rm -f conftest*
  20541. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  20542. # in glibc 2.1.3, but that breaks too many other things.
  20543. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  20544. if test $ac_cv_sys_largefile_source != unknown; then
  20545. cat >>confdefs.h <<\_ACEOF
  20546. #define HAVE_FSEEKO 1
  20547. _ACEOF
  20548. fi
  20549. { echo "$as_me:$LINENO: checking for mbstate_t" >&5
  20550. echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
  20551. if test "${ac_cv_type_mbstate_t+set}" = set; then
  20552. echo $ECHO_N "(cached) $ECHO_C" >&6
  20553. else
  20554. cat >conftest.$ac_ext <<_ACEOF
  20555. /* confdefs.h. */
  20556. _ACEOF
  20557. cat confdefs.h >>conftest.$ac_ext
  20558. cat >>conftest.$ac_ext <<_ACEOF
  20559. /* end confdefs.h. */
  20560. $ac_includes_default
  20561. # include <wchar.h>
  20562. int
  20563. main ()
  20564. {
  20565. mbstate_t x; return sizeof x;
  20566. ;
  20567. return 0;
  20568. }
  20569. _ACEOF
  20570. rm -f conftest.$ac_objext
  20571. if { (ac_try="$ac_compile"
  20572. case "(($ac_try" in
  20573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20574. *) ac_try_echo=$ac_try;;
  20575. esac
  20576. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20577. (eval "$ac_compile") 2>conftest.er1
  20578. ac_status=$?
  20579. grep -v '^ *+' conftest.er1 >conftest.err
  20580. rm -f conftest.er1
  20581. cat conftest.err >&5
  20582. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20583. (exit $ac_status); } && {
  20584. test -z "$ac_c_werror_flag" ||
  20585. test ! -s conftest.err
  20586. } && test -s conftest.$ac_objext; then
  20587. ac_cv_type_mbstate_t=yes
  20588. else
  20589. echo "$as_me: failed program was:" >&5
  20590. sed 's/^/| /' conftest.$ac_ext >&5
  20591. ac_cv_type_mbstate_t=no
  20592. fi
  20593. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20594. fi
  20595. { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
  20596. echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
  20597. if test $ac_cv_type_mbstate_t = yes; then
  20598. cat >>confdefs.h <<\_ACEOF
  20599. #define HAVE_MBSTATE_T 1
  20600. _ACEOF
  20601. else
  20602. cat >>confdefs.h <<\_ACEOF
  20603. #define mbstate_t int
  20604. _ACEOF
  20605. fi
  20606. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  20607. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  20608. if test "${ac_cv_type_uint8_t+set}" = set; then
  20609. echo $ECHO_N "(cached) $ECHO_C" >&6
  20610. else
  20611. cat >conftest.$ac_ext <<_ACEOF
  20612. /* confdefs.h. */
  20613. _ACEOF
  20614. cat confdefs.h >>conftest.$ac_ext
  20615. cat >>conftest.$ac_ext <<_ACEOF
  20616. /* end confdefs.h. */
  20617. $ac_includes_default
  20618. typedef uint8_t ac__type_new_;
  20619. int
  20620. main ()
  20621. {
  20622. if ((ac__type_new_ *) 0)
  20623. return 0;
  20624. if (sizeof (ac__type_new_))
  20625. return 0;
  20626. ;
  20627. return 0;
  20628. }
  20629. _ACEOF
  20630. rm -f conftest.$ac_objext
  20631. if { (ac_try="$ac_compile"
  20632. case "(($ac_try" in
  20633. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20634. *) ac_try_echo=$ac_try;;
  20635. esac
  20636. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20637. (eval "$ac_compile") 2>conftest.er1
  20638. ac_status=$?
  20639. grep -v '^ *+' conftest.er1 >conftest.err
  20640. rm -f conftest.er1
  20641. cat conftest.err >&5
  20642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20643. (exit $ac_status); } && {
  20644. test -z "$ac_c_werror_flag" ||
  20645. test ! -s conftest.err
  20646. } && test -s conftest.$ac_objext; then
  20647. ac_cv_type_uint8_t=yes
  20648. else
  20649. echo "$as_me: failed program was:" >&5
  20650. sed 's/^/| /' conftest.$ac_ext >&5
  20651. ac_cv_type_uint8_t=no
  20652. fi
  20653. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20654. fi
  20655. { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  20656. echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
  20657. if test $ac_cv_type_uint8_t = yes; then
  20658. cat >>confdefs.h <<_ACEOF
  20659. #define HAVE_UINT8_T 1
  20660. _ACEOF
  20661. fi
  20662. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  20663. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  20664. if test "${ac_cv_type_uint16_t+set}" = set; then
  20665. echo $ECHO_N "(cached) $ECHO_C" >&6
  20666. else
  20667. cat >conftest.$ac_ext <<_ACEOF
  20668. /* confdefs.h. */
  20669. _ACEOF
  20670. cat confdefs.h >>conftest.$ac_ext
  20671. cat >>conftest.$ac_ext <<_ACEOF
  20672. /* end confdefs.h. */
  20673. $ac_includes_default
  20674. typedef uint16_t ac__type_new_;
  20675. int
  20676. main ()
  20677. {
  20678. if ((ac__type_new_ *) 0)
  20679. return 0;
  20680. if (sizeof (ac__type_new_))
  20681. return 0;
  20682. ;
  20683. return 0;
  20684. }
  20685. _ACEOF
  20686. rm -f conftest.$ac_objext
  20687. if { (ac_try="$ac_compile"
  20688. case "(($ac_try" in
  20689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20690. *) ac_try_echo=$ac_try;;
  20691. esac
  20692. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20693. (eval "$ac_compile") 2>conftest.er1
  20694. ac_status=$?
  20695. grep -v '^ *+' conftest.er1 >conftest.err
  20696. rm -f conftest.er1
  20697. cat conftest.err >&5
  20698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20699. (exit $ac_status); } && {
  20700. test -z "$ac_c_werror_flag" ||
  20701. test ! -s conftest.err
  20702. } && test -s conftest.$ac_objext; then
  20703. ac_cv_type_uint16_t=yes
  20704. else
  20705. echo "$as_me: failed program was:" >&5
  20706. sed 's/^/| /' conftest.$ac_ext >&5
  20707. ac_cv_type_uint16_t=no
  20708. fi
  20709. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20710. fi
  20711. { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  20712. echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
  20713. if test $ac_cv_type_uint16_t = yes; then
  20714. cat >>confdefs.h <<_ACEOF
  20715. #define HAVE_UINT16_T 1
  20716. _ACEOF
  20717. fi
  20718. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  20719. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  20720. if test "${ac_cv_type_uint32_t+set}" = set; then
  20721. echo $ECHO_N "(cached) $ECHO_C" >&6
  20722. else
  20723. cat >conftest.$ac_ext <<_ACEOF
  20724. /* confdefs.h. */
  20725. _ACEOF
  20726. cat confdefs.h >>conftest.$ac_ext
  20727. cat >>conftest.$ac_ext <<_ACEOF
  20728. /* end confdefs.h. */
  20729. $ac_includes_default
  20730. typedef uint32_t ac__type_new_;
  20731. int
  20732. main ()
  20733. {
  20734. if ((ac__type_new_ *) 0)
  20735. return 0;
  20736. if (sizeof (ac__type_new_))
  20737. return 0;
  20738. ;
  20739. return 0;
  20740. }
  20741. _ACEOF
  20742. rm -f conftest.$ac_objext
  20743. if { (ac_try="$ac_compile"
  20744. case "(($ac_try" in
  20745. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20746. *) ac_try_echo=$ac_try;;
  20747. esac
  20748. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20749. (eval "$ac_compile") 2>conftest.er1
  20750. ac_status=$?
  20751. grep -v '^ *+' conftest.er1 >conftest.err
  20752. rm -f conftest.er1
  20753. cat conftest.err >&5
  20754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20755. (exit $ac_status); } && {
  20756. test -z "$ac_c_werror_flag" ||
  20757. test ! -s conftest.err
  20758. } && test -s conftest.$ac_objext; then
  20759. ac_cv_type_uint32_t=yes
  20760. else
  20761. echo "$as_me: failed program was:" >&5
  20762. sed 's/^/| /' conftest.$ac_ext >&5
  20763. ac_cv_type_uint32_t=no
  20764. fi
  20765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20766. fi
  20767. { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  20768. echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
  20769. if test $ac_cv_type_uint32_t = yes; then
  20770. cat >>confdefs.h <<_ACEOF
  20771. #define HAVE_UINT32_T 1
  20772. _ACEOF
  20773. fi
  20774. { echo "$as_me:$LINENO: checking for int32_t" >&5
  20775. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  20776. if test "${ac_cv_type_int32_t+set}" = set; then
  20777. echo $ECHO_N "(cached) $ECHO_C" >&6
  20778. else
  20779. cat >conftest.$ac_ext <<_ACEOF
  20780. /* confdefs.h. */
  20781. _ACEOF
  20782. cat confdefs.h >>conftest.$ac_ext
  20783. cat >>conftest.$ac_ext <<_ACEOF
  20784. /* end confdefs.h. */
  20785. $ac_includes_default
  20786. typedef int32_t ac__type_new_;
  20787. int
  20788. main ()
  20789. {
  20790. if ((ac__type_new_ *) 0)
  20791. return 0;
  20792. if (sizeof (ac__type_new_))
  20793. return 0;
  20794. ;
  20795. return 0;
  20796. }
  20797. _ACEOF
  20798. rm -f conftest.$ac_objext
  20799. if { (ac_try="$ac_compile"
  20800. case "(($ac_try" in
  20801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20802. *) ac_try_echo=$ac_try;;
  20803. esac
  20804. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20805. (eval "$ac_compile") 2>conftest.er1
  20806. ac_status=$?
  20807. grep -v '^ *+' conftest.er1 >conftest.err
  20808. rm -f conftest.er1
  20809. cat conftest.err >&5
  20810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20811. (exit $ac_status); } && {
  20812. test -z "$ac_c_werror_flag" ||
  20813. test ! -s conftest.err
  20814. } && test -s conftest.$ac_objext; then
  20815. ac_cv_type_int32_t=yes
  20816. else
  20817. echo "$as_me: failed program was:" >&5
  20818. sed 's/^/| /' conftest.$ac_ext >&5
  20819. ac_cv_type_int32_t=no
  20820. fi
  20821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20822. fi
  20823. { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  20824. echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
  20825. if test $ac_cv_type_int32_t = yes; then
  20826. cat >>confdefs.h <<_ACEOF
  20827. #define HAVE_INT32_T 1
  20828. _ACEOF
  20829. fi
  20830. { echo "$as_me:$LINENO: checking for uint64_t" >&5
  20831. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
  20832. if test "${ac_cv_type_uint64_t+set}" = set; then
  20833. echo $ECHO_N "(cached) $ECHO_C" >&6
  20834. else
  20835. cat >conftest.$ac_ext <<_ACEOF
  20836. /* confdefs.h. */
  20837. _ACEOF
  20838. cat confdefs.h >>conftest.$ac_ext
  20839. cat >>conftest.$ac_ext <<_ACEOF
  20840. /* end confdefs.h. */
  20841. $ac_includes_default
  20842. typedef uint64_t ac__type_new_;
  20843. int
  20844. main ()
  20845. {
  20846. if ((ac__type_new_ *) 0)
  20847. return 0;
  20848. if (sizeof (ac__type_new_))
  20849. return 0;
  20850. ;
  20851. return 0;
  20852. }
  20853. _ACEOF
  20854. rm -f conftest.$ac_objext
  20855. if { (ac_try="$ac_compile"
  20856. case "(($ac_try" in
  20857. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20858. *) ac_try_echo=$ac_try;;
  20859. esac
  20860. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20861. (eval "$ac_compile") 2>conftest.er1
  20862. ac_status=$?
  20863. grep -v '^ *+' conftest.er1 >conftest.err
  20864. rm -f conftest.er1
  20865. cat conftest.err >&5
  20866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20867. (exit $ac_status); } && {
  20868. test -z "$ac_c_werror_flag" ||
  20869. test ! -s conftest.err
  20870. } && test -s conftest.$ac_objext; then
  20871. ac_cv_type_uint64_t=yes
  20872. else
  20873. echo "$as_me: failed program was:" >&5
  20874. sed 's/^/| /' conftest.$ac_ext >&5
  20875. ac_cv_type_uint64_t=no
  20876. fi
  20877. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20878. fi
  20879. { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
  20880. echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
  20881. if test $ac_cv_type_uint64_t = yes; then
  20882. cat >>confdefs.h <<_ACEOF
  20883. #define HAVE_UINT64_T 1
  20884. _ACEOF
  20885. fi
  20886. { echo "$as_me:$LINENO: checking for int64_t" >&5
  20887. echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
  20888. if test "${ac_cv_type_int64_t+set}" = set; then
  20889. echo $ECHO_N "(cached) $ECHO_C" >&6
  20890. else
  20891. cat >conftest.$ac_ext <<_ACEOF
  20892. /* confdefs.h. */
  20893. _ACEOF
  20894. cat confdefs.h >>conftest.$ac_ext
  20895. cat >>conftest.$ac_ext <<_ACEOF
  20896. /* end confdefs.h. */
  20897. $ac_includes_default
  20898. typedef int64_t ac__type_new_;
  20899. int
  20900. main ()
  20901. {
  20902. if ((ac__type_new_ *) 0)
  20903. return 0;
  20904. if (sizeof (ac__type_new_))
  20905. return 0;
  20906. ;
  20907. return 0;
  20908. }
  20909. _ACEOF
  20910. rm -f conftest.$ac_objext
  20911. if { (ac_try="$ac_compile"
  20912. case "(($ac_try" in
  20913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20914. *) ac_try_echo=$ac_try;;
  20915. esac
  20916. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20917. (eval "$ac_compile") 2>conftest.er1
  20918. ac_status=$?
  20919. grep -v '^ *+' conftest.er1 >conftest.err
  20920. rm -f conftest.er1
  20921. cat conftest.err >&5
  20922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20923. (exit $ac_status); } && {
  20924. test -z "$ac_c_werror_flag" ||
  20925. test ! -s conftest.err
  20926. } && test -s conftest.$ac_objext; then
  20927. ac_cv_type_int64_t=yes
  20928. else
  20929. echo "$as_me: failed program was:" >&5
  20930. sed 's/^/| /' conftest.$ac_ext >&5
  20931. ac_cv_type_int64_t=no
  20932. fi
  20933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20934. fi
  20935. { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
  20936. echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
  20937. if test $ac_cv_type_int64_t = yes; then
  20938. cat >>confdefs.h <<_ACEOF
  20939. #define HAVE_INT64_T 1
  20940. _ACEOF
  20941. fi
  20942. { echo "$as_me:$LINENO: checking for long long" >&5
  20943. echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
  20944. if test "${ac_cv_type_long_long+set}" = set; then
  20945. echo $ECHO_N "(cached) $ECHO_C" >&6
  20946. else
  20947. cat >conftest.$ac_ext <<_ACEOF
  20948. /* confdefs.h. */
  20949. _ACEOF
  20950. cat confdefs.h >>conftest.$ac_ext
  20951. cat >>conftest.$ac_ext <<_ACEOF
  20952. /* end confdefs.h. */
  20953. $ac_includes_default
  20954. typedef long long ac__type_new_;
  20955. int
  20956. main ()
  20957. {
  20958. if ((ac__type_new_ *) 0)
  20959. return 0;
  20960. if (sizeof (ac__type_new_))
  20961. return 0;
  20962. ;
  20963. return 0;
  20964. }
  20965. _ACEOF
  20966. rm -f conftest.$ac_objext
  20967. if { (ac_try="$ac_compile"
  20968. case "(($ac_try" in
  20969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20970. *) ac_try_echo=$ac_try;;
  20971. esac
  20972. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20973. (eval "$ac_compile") 2>conftest.er1
  20974. ac_status=$?
  20975. grep -v '^ *+' conftest.er1 >conftest.err
  20976. rm -f conftest.er1
  20977. cat conftest.err >&5
  20978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20979. (exit $ac_status); } && {
  20980. test -z "$ac_c_werror_flag" ||
  20981. test ! -s conftest.err
  20982. } && test -s conftest.$ac_objext; then
  20983. ac_cv_type_long_long=yes
  20984. else
  20985. echo "$as_me: failed program was:" >&5
  20986. sed 's/^/| /' conftest.$ac_ext >&5
  20987. ac_cv_type_long_long=no
  20988. fi
  20989. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20990. fi
  20991. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  20992. echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
  20993. # The cast to long int works around a bug in the HP C Compiler
  20994. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  20995. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  20996. # This bug is HP SR number 8606223364.
  20997. { echo "$as_me:$LINENO: checking size of long long" >&5
  20998. echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
  20999. if test "${ac_cv_sizeof_long_long+set}" = set; then
  21000. echo $ECHO_N "(cached) $ECHO_C" >&6
  21001. else
  21002. if test "$cross_compiling" = yes; then
  21003. # Depending upon the size, compute the lo and hi bounds.
  21004. cat >conftest.$ac_ext <<_ACEOF
  21005. /* confdefs.h. */
  21006. _ACEOF
  21007. cat confdefs.h >>conftest.$ac_ext
  21008. cat >>conftest.$ac_ext <<_ACEOF
  21009. /* end confdefs.h. */
  21010. $ac_includes_default
  21011. typedef long long ac__type_sizeof_;
  21012. int
  21013. main ()
  21014. {
  21015. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  21016. test_array [0] = 0
  21017. ;
  21018. return 0;
  21019. }
  21020. _ACEOF
  21021. rm -f conftest.$ac_objext
  21022. if { (ac_try="$ac_compile"
  21023. case "(($ac_try" in
  21024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21025. *) ac_try_echo=$ac_try;;
  21026. esac
  21027. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21028. (eval "$ac_compile") 2>conftest.er1
  21029. ac_status=$?
  21030. grep -v '^ *+' conftest.er1 >conftest.err
  21031. rm -f conftest.er1
  21032. cat conftest.err >&5
  21033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21034. (exit $ac_status); } && {
  21035. test -z "$ac_c_werror_flag" ||
  21036. test ! -s conftest.err
  21037. } && test -s conftest.$ac_objext; then
  21038. ac_lo=0 ac_mid=0
  21039. while :; do
  21040. cat >conftest.$ac_ext <<_ACEOF
  21041. /* confdefs.h. */
  21042. _ACEOF
  21043. cat confdefs.h >>conftest.$ac_ext
  21044. cat >>conftest.$ac_ext <<_ACEOF
  21045. /* end confdefs.h. */
  21046. $ac_includes_default
  21047. typedef long long ac__type_sizeof_;
  21048. int
  21049. main ()
  21050. {
  21051. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  21052. test_array [0] = 0
  21053. ;
  21054. return 0;
  21055. }
  21056. _ACEOF
  21057. rm -f conftest.$ac_objext
  21058. if { (ac_try="$ac_compile"
  21059. case "(($ac_try" in
  21060. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21061. *) ac_try_echo=$ac_try;;
  21062. esac
  21063. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21064. (eval "$ac_compile") 2>conftest.er1
  21065. ac_status=$?
  21066. grep -v '^ *+' conftest.er1 >conftest.err
  21067. rm -f conftest.er1
  21068. cat conftest.err >&5
  21069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21070. (exit $ac_status); } && {
  21071. test -z "$ac_c_werror_flag" ||
  21072. test ! -s conftest.err
  21073. } && test -s conftest.$ac_objext; then
  21074. ac_hi=$ac_mid; break
  21075. else
  21076. echo "$as_me: failed program was:" >&5
  21077. sed 's/^/| /' conftest.$ac_ext >&5
  21078. ac_lo=`expr $ac_mid + 1`
  21079. if test $ac_lo -le $ac_mid; then
  21080. ac_lo= ac_hi=
  21081. break
  21082. fi
  21083. ac_mid=`expr 2 '*' $ac_mid + 1`
  21084. fi
  21085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21086. done
  21087. else
  21088. echo "$as_me: failed program was:" >&5
  21089. sed 's/^/| /' conftest.$ac_ext >&5
  21090. cat >conftest.$ac_ext <<_ACEOF
  21091. /* confdefs.h. */
  21092. _ACEOF
  21093. cat confdefs.h >>conftest.$ac_ext
  21094. cat >>conftest.$ac_ext <<_ACEOF
  21095. /* end confdefs.h. */
  21096. $ac_includes_default
  21097. typedef long long ac__type_sizeof_;
  21098. int
  21099. main ()
  21100. {
  21101. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  21102. test_array [0] = 0
  21103. ;
  21104. return 0;
  21105. }
  21106. _ACEOF
  21107. rm -f conftest.$ac_objext
  21108. if { (ac_try="$ac_compile"
  21109. case "(($ac_try" in
  21110. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21111. *) ac_try_echo=$ac_try;;
  21112. esac
  21113. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21114. (eval "$ac_compile") 2>conftest.er1
  21115. ac_status=$?
  21116. grep -v '^ *+' conftest.er1 >conftest.err
  21117. rm -f conftest.er1
  21118. cat conftest.err >&5
  21119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21120. (exit $ac_status); } && {
  21121. test -z "$ac_c_werror_flag" ||
  21122. test ! -s conftest.err
  21123. } && test -s conftest.$ac_objext; then
  21124. ac_hi=-1 ac_mid=-1
  21125. while :; do
  21126. cat >conftest.$ac_ext <<_ACEOF
  21127. /* confdefs.h. */
  21128. _ACEOF
  21129. cat confdefs.h >>conftest.$ac_ext
  21130. cat >>conftest.$ac_ext <<_ACEOF
  21131. /* end confdefs.h. */
  21132. $ac_includes_default
  21133. typedef long long ac__type_sizeof_;
  21134. int
  21135. main ()
  21136. {
  21137. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  21138. test_array [0] = 0
  21139. ;
  21140. return 0;
  21141. }
  21142. _ACEOF
  21143. rm -f conftest.$ac_objext
  21144. if { (ac_try="$ac_compile"
  21145. case "(($ac_try" in
  21146. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21147. *) ac_try_echo=$ac_try;;
  21148. esac
  21149. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21150. (eval "$ac_compile") 2>conftest.er1
  21151. ac_status=$?
  21152. grep -v '^ *+' conftest.er1 >conftest.err
  21153. rm -f conftest.er1
  21154. cat conftest.err >&5
  21155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21156. (exit $ac_status); } && {
  21157. test -z "$ac_c_werror_flag" ||
  21158. test ! -s conftest.err
  21159. } && test -s conftest.$ac_objext; then
  21160. ac_lo=$ac_mid; break
  21161. else
  21162. echo "$as_me: failed program was:" >&5
  21163. sed 's/^/| /' conftest.$ac_ext >&5
  21164. ac_hi=`expr '(' $ac_mid ')' - 1`
  21165. if test $ac_mid -le $ac_hi; then
  21166. ac_lo= ac_hi=
  21167. break
  21168. fi
  21169. ac_mid=`expr 2 '*' $ac_mid`
  21170. fi
  21171. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21172. done
  21173. else
  21174. echo "$as_me: failed program was:" >&5
  21175. sed 's/^/| /' conftest.$ac_ext >&5
  21176. ac_lo= ac_hi=
  21177. fi
  21178. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21179. fi
  21180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21181. # Binary search between lo and hi bounds.
  21182. while test "x$ac_lo" != "x$ac_hi"; do
  21183. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  21184. cat >conftest.$ac_ext <<_ACEOF
  21185. /* confdefs.h. */
  21186. _ACEOF
  21187. cat confdefs.h >>conftest.$ac_ext
  21188. cat >>conftest.$ac_ext <<_ACEOF
  21189. /* end confdefs.h. */
  21190. $ac_includes_default
  21191. typedef long long ac__type_sizeof_;
  21192. int
  21193. main ()
  21194. {
  21195. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  21196. test_array [0] = 0
  21197. ;
  21198. return 0;
  21199. }
  21200. _ACEOF
  21201. rm -f conftest.$ac_objext
  21202. if { (ac_try="$ac_compile"
  21203. case "(($ac_try" in
  21204. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21205. *) ac_try_echo=$ac_try;;
  21206. esac
  21207. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21208. (eval "$ac_compile") 2>conftest.er1
  21209. ac_status=$?
  21210. grep -v '^ *+' conftest.er1 >conftest.err
  21211. rm -f conftest.er1
  21212. cat conftest.err >&5
  21213. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21214. (exit $ac_status); } && {
  21215. test -z "$ac_c_werror_flag" ||
  21216. test ! -s conftest.err
  21217. } && test -s conftest.$ac_objext; then
  21218. ac_hi=$ac_mid
  21219. else
  21220. echo "$as_me: failed program was:" >&5
  21221. sed 's/^/| /' conftest.$ac_ext >&5
  21222. ac_lo=`expr '(' $ac_mid ')' + 1`
  21223. fi
  21224. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21225. done
  21226. case $ac_lo in
  21227. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  21228. '') if test "$ac_cv_type_long_long" = yes; then
  21229. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  21230. See \`config.log' for more details." >&5
  21231. echo "$as_me: error: cannot compute sizeof (long long)
  21232. See \`config.log' for more details." >&2;}
  21233. { (exit 77); exit 77; }; }
  21234. else
  21235. ac_cv_sizeof_long_long=0
  21236. fi ;;
  21237. esac
  21238. else
  21239. cat >conftest.$ac_ext <<_ACEOF
  21240. /* confdefs.h. */
  21241. _ACEOF
  21242. cat confdefs.h >>conftest.$ac_ext
  21243. cat >>conftest.$ac_ext <<_ACEOF
  21244. /* end confdefs.h. */
  21245. $ac_includes_default
  21246. typedef long long ac__type_sizeof_;
  21247. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  21248. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  21249. #include <stdio.h>
  21250. #include <stdlib.h>
  21251. int
  21252. main ()
  21253. {
  21254. FILE *f = fopen ("conftest.val", "w");
  21255. if (! f)
  21256. return 1;
  21257. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  21258. {
  21259. long int i = longval ();
  21260. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  21261. return 1;
  21262. fprintf (f, "%ld\n", i);
  21263. }
  21264. else
  21265. {
  21266. unsigned long int i = ulongval ();
  21267. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  21268. return 1;
  21269. fprintf (f, "%lu\n", i);
  21270. }
  21271. return ferror (f) || fclose (f) != 0;
  21272. ;
  21273. return 0;
  21274. }
  21275. _ACEOF
  21276. rm -f conftest$ac_exeext
  21277. if { (ac_try="$ac_link"
  21278. case "(($ac_try" in
  21279. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21280. *) ac_try_echo=$ac_try;;
  21281. esac
  21282. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21283. (eval "$ac_link") 2>&5
  21284. ac_status=$?
  21285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21286. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21287. { (case "(($ac_try" in
  21288. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21289. *) ac_try_echo=$ac_try;;
  21290. esac
  21291. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21292. (eval "$ac_try") 2>&5
  21293. ac_status=$?
  21294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21295. (exit $ac_status); }; }; then
  21296. ac_cv_sizeof_long_long=`cat conftest.val`
  21297. else
  21298. echo "$as_me: program exited with status $ac_status" >&5
  21299. echo "$as_me: failed program was:" >&5
  21300. sed 's/^/| /' conftest.$ac_ext >&5
  21301. ( exit $ac_status )
  21302. if test "$ac_cv_type_long_long" = yes; then
  21303. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  21304. See \`config.log' for more details." >&5
  21305. echo "$as_me: error: cannot compute sizeof (long long)
  21306. See \`config.log' for more details." >&2;}
  21307. { (exit 77); exit 77; }; }
  21308. else
  21309. ac_cv_sizeof_long_long=0
  21310. fi
  21311. fi
  21312. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21313. fi
  21314. rm -f conftest.val
  21315. fi
  21316. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  21317. echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
  21318. cat >>confdefs.h <<_ACEOF
  21319. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  21320. _ACEOF
  21321. { echo "$as_me:$LINENO: checking for gcc compiler warnings" >&5
  21322. echo $ECHO_N "checking for gcc compiler warnings... $ECHO_C" >&6; }
  21323. # Check whether --enable-warnings was given.
  21324. if test "${enable_warnings+set}" = set; then
  21325. enableval=$enable_warnings; if test "${enableval}" = no -o $GCC = no; then
  21326. { echo "$as_me:$LINENO: result: no" >&5
  21327. echo "${ECHO_T}no" >&6; }
  21328. WARNINGS=
  21329. else
  21330. { echo "$as_me:$LINENO: result: yes" >&5
  21331. echo "${ECHO_T}yes" >&6; }
  21332. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  21333. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  21334. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  21335. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter"
  21336. fi
  21337. else
  21338. if test $GCC = no; then
  21339. WARNINGS=
  21340. { echo "$as_me:$LINENO: result: no" >&5
  21341. echo "${ECHO_T}no" >&6; }
  21342. else
  21343. { echo "$as_me:$LINENO: result: yes" >&5
  21344. echo "${ECHO_T}yes" >&6; }
  21345. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  21346. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  21347. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  21348. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter"
  21349. fi
  21350. fi
  21351. for ac_func in mmap strerror strndup strtoul mbrtowc mkstemp utimes utime wcwidth strtof
  21352. do
  21353. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21354. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  21355. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  21356. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  21357. echo $ECHO_N "(cached) $ECHO_C" >&6
  21358. else
  21359. cat >conftest.$ac_ext <<_ACEOF
  21360. /* confdefs.h. */
  21361. _ACEOF
  21362. cat confdefs.h >>conftest.$ac_ext
  21363. cat >>conftest.$ac_ext <<_ACEOF
  21364. /* end confdefs.h. */
  21365. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21366. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21367. #define $ac_func innocuous_$ac_func
  21368. /* System header to define __stub macros and hopefully few prototypes,
  21369. which can conflict with char $ac_func (); below.
  21370. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21371. <limits.h> exists even on freestanding compilers. */
  21372. #ifdef __STDC__
  21373. # include <limits.h>
  21374. #else
  21375. # include <assert.h>
  21376. #endif
  21377. #undef $ac_func
  21378. /* Override any GCC internal prototype to avoid an error.
  21379. Use char because int might match the return type of a GCC
  21380. builtin and then its argument prototype would still apply. */
  21381. #ifdef __cplusplus
  21382. extern "C"
  21383. #endif
  21384. char $ac_func ();
  21385. /* The GNU C library defines this for functions which it implements
  21386. to always fail with ENOSYS. Some functions are actually named
  21387. something starting with __ and the normal name is an alias. */
  21388. #if defined __stub_$ac_func || defined __stub___$ac_func
  21389. choke me
  21390. #endif
  21391. int
  21392. main ()
  21393. {
  21394. return $ac_func ();
  21395. ;
  21396. return 0;
  21397. }
  21398. _ACEOF
  21399. rm -f conftest.$ac_objext conftest$ac_exeext
  21400. if { (ac_try="$ac_link"
  21401. case "(($ac_try" in
  21402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21403. *) ac_try_echo=$ac_try;;
  21404. esac
  21405. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21406. (eval "$ac_link") 2>conftest.er1
  21407. ac_status=$?
  21408. grep -v '^ *+' conftest.er1 >conftest.err
  21409. rm -f conftest.er1
  21410. cat conftest.err >&5
  21411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21412. (exit $ac_status); } && {
  21413. test -z "$ac_c_werror_flag" ||
  21414. test ! -s conftest.err
  21415. } && test -s conftest$ac_exeext &&
  21416. $as_test_x conftest$ac_exeext; then
  21417. eval "$as_ac_var=yes"
  21418. else
  21419. echo "$as_me: failed program was:" >&5
  21420. sed 's/^/| /' conftest.$ac_ext >&5
  21421. eval "$as_ac_var=no"
  21422. fi
  21423. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21424. conftest$ac_exeext conftest.$ac_ext
  21425. fi
  21426. ac_res=`eval echo '${'$as_ac_var'}'`
  21427. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21428. echo "${ECHO_T}$ac_res" >&6; }
  21429. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21430. cat >>confdefs.h <<_ACEOF
  21431. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21432. _ACEOF
  21433. fi
  21434. done
  21435. for ac_func in getopt_long asprintf vasprintf strlcpy strlcat
  21436. do
  21437. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21438. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  21439. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  21440. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  21441. echo $ECHO_N "(cached) $ECHO_C" >&6
  21442. else
  21443. cat >conftest.$ac_ext <<_ACEOF
  21444. /* confdefs.h. */
  21445. _ACEOF
  21446. cat confdefs.h >>conftest.$ac_ext
  21447. cat >>conftest.$ac_ext <<_ACEOF
  21448. /* end confdefs.h. */
  21449. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21450. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21451. #define $ac_func innocuous_$ac_func
  21452. /* System header to define __stub macros and hopefully few prototypes,
  21453. which can conflict with char $ac_func (); below.
  21454. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21455. <limits.h> exists even on freestanding compilers. */
  21456. #ifdef __STDC__
  21457. # include <limits.h>
  21458. #else
  21459. # include <assert.h>
  21460. #endif
  21461. #undef $ac_func
  21462. /* Override any GCC internal prototype to avoid an error.
  21463. Use char because int might match the return type of a GCC
  21464. builtin and then its argument prototype would still apply. */
  21465. #ifdef __cplusplus
  21466. extern "C"
  21467. #endif
  21468. char $ac_func ();
  21469. /* The GNU C library defines this for functions which it implements
  21470. to always fail with ENOSYS. Some functions are actually named
  21471. something starting with __ and the normal name is an alias. */
  21472. #if defined __stub_$ac_func || defined __stub___$ac_func
  21473. choke me
  21474. #endif
  21475. int
  21476. main ()
  21477. {
  21478. return $ac_func ();
  21479. ;
  21480. return 0;
  21481. }
  21482. _ACEOF
  21483. rm -f conftest.$ac_objext conftest$ac_exeext
  21484. if { (ac_try="$ac_link"
  21485. case "(($ac_try" in
  21486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21487. *) ac_try_echo=$ac_try;;
  21488. esac
  21489. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21490. (eval "$ac_link") 2>conftest.er1
  21491. ac_status=$?
  21492. grep -v '^ *+' conftest.er1 >conftest.err
  21493. rm -f conftest.er1
  21494. cat conftest.err >&5
  21495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21496. (exit $ac_status); } && {
  21497. test -z "$ac_c_werror_flag" ||
  21498. test ! -s conftest.err
  21499. } && test -s conftest$ac_exeext &&
  21500. $as_test_x conftest$ac_exeext; then
  21501. eval "$as_ac_var=yes"
  21502. else
  21503. echo "$as_me: failed program was:" >&5
  21504. sed 's/^/| /' conftest.$ac_ext >&5
  21505. eval "$as_ac_var=no"
  21506. fi
  21507. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21508. conftest$ac_exeext conftest.$ac_ext
  21509. fi
  21510. ac_res=`eval echo '${'$as_ac_var'}'`
  21511. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21512. echo "${ECHO_T}$ac_res" >&6; }
  21513. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21514. cat >>confdefs.h <<_ACEOF
  21515. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21516. _ACEOF
  21517. else
  21518. case " $LIBOBJS " in
  21519. *" $ac_func.$ac_objext "* ) ;;
  21520. *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
  21521. ;;
  21522. esac
  21523. fi
  21524. done
  21525. { echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
  21526. echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
  21527. if test "${ac_cv_lib_z_gzopen+set}" = set; then
  21528. echo $ECHO_N "(cached) $ECHO_C" >&6
  21529. else
  21530. ac_check_lib_save_LIBS=$LIBS
  21531. LIBS="-lz $LIBS"
  21532. cat >conftest.$ac_ext <<_ACEOF
  21533. /* confdefs.h. */
  21534. _ACEOF
  21535. cat confdefs.h >>conftest.$ac_ext
  21536. cat >>conftest.$ac_ext <<_ACEOF
  21537. /* end confdefs.h. */
  21538. /* Override any GCC internal prototype to avoid an error.
  21539. Use char because int might match the return type of a GCC
  21540. builtin and then its argument prototype would still apply. */
  21541. #ifdef __cplusplus
  21542. extern "C"
  21543. #endif
  21544. char gzopen ();
  21545. int
  21546. main ()
  21547. {
  21548. return gzopen ();
  21549. ;
  21550. return 0;
  21551. }
  21552. _ACEOF
  21553. rm -f conftest.$ac_objext conftest$ac_exeext
  21554. if { (ac_try="$ac_link"
  21555. case "(($ac_try" in
  21556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21557. *) ac_try_echo=$ac_try;;
  21558. esac
  21559. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21560. (eval "$ac_link") 2>conftest.er1
  21561. ac_status=$?
  21562. grep -v '^ *+' conftest.er1 >conftest.err
  21563. rm -f conftest.er1
  21564. cat conftest.err >&5
  21565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21566. (exit $ac_status); } && {
  21567. test -z "$ac_c_werror_flag" ||
  21568. test ! -s conftest.err
  21569. } && test -s conftest$ac_exeext &&
  21570. $as_test_x conftest$ac_exeext; then
  21571. ac_cv_lib_z_gzopen=yes
  21572. else
  21573. echo "$as_me: failed program was:" >&5
  21574. sed 's/^/| /' conftest.$ac_ext >&5
  21575. ac_cv_lib_z_gzopen=no
  21576. fi
  21577. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21578. conftest$ac_exeext conftest.$ac_ext
  21579. LIBS=$ac_check_lib_save_LIBS
  21580. fi
  21581. { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
  21582. echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
  21583. if test $ac_cv_lib_z_gzopen = yes; then
  21584. cat >>confdefs.h <<_ACEOF
  21585. #define HAVE_LIBZ 1
  21586. _ACEOF
  21587. LIBS="-lz $LIBS"
  21588. fi
  21589. if test "$cross_compiling" = yes; then
  21590. IS_CROSS_COMPILE_TRUE=
  21591. IS_CROSS_COMPILE_FALSE='#'
  21592. else
  21593. IS_CROSS_COMPILE_TRUE='#'
  21594. IS_CROSS_COMPILE_FALSE=
  21595. fi
  21596. ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile"
  21597. cat >confcache <<\_ACEOF
  21598. # This file is a shell script that caches the results of configure
  21599. # tests run on this system so they can be shared between configure
  21600. # scripts and configure runs, see configure's option --config-cache.
  21601. # It is not useful on other systems. If it contains results you don't
  21602. # want to keep, you may remove or edit it.
  21603. #
  21604. # config.status only pays attention to the cache file if you give it
  21605. # the --recheck option to rerun configure.
  21606. #
  21607. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21608. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21609. # following values.
  21610. _ACEOF
  21611. # The following way of writing the cache mishandles newlines in values,
  21612. # but we know of no workaround that is simple, portable, and efficient.
  21613. # So, we kill variables containing newlines.
  21614. # Ultrix sh set writes to stderr and can't be redirected directly,
  21615. # and sets the high bit in the cache file unless we assign to the vars.
  21616. (
  21617. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21618. eval ac_val=\$$ac_var
  21619. case $ac_val in #(
  21620. *${as_nl}*)
  21621. case $ac_var in #(
  21622. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  21623. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  21624. esac
  21625. case $ac_var in #(
  21626. _ | IFS | as_nl) ;; #(
  21627. *) $as_unset $ac_var ;;
  21628. esac ;;
  21629. esac
  21630. done
  21631. (set) 2>&1 |
  21632. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21633. *${as_nl}ac_space=\ *)
  21634. # `set' does not quote correctly, so add quotes (double-quote
  21635. # substitution turns \\\\ into \\, and sed turns \\ into \).
  21636. sed -n \
  21637. "s/'/'\\\\''/g;
  21638. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21639. ;; #(
  21640. *)
  21641. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21642. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21643. ;;
  21644. esac |
  21645. sort
  21646. ) |
  21647. sed '
  21648. /^ac_cv_env_/b end
  21649. t clear
  21650. :clear
  21651. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21652. t end
  21653. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21654. :end' >>confcache
  21655. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21656. if test -w "$cache_file"; then
  21657. test "x$cache_file" != "x/dev/null" &&
  21658. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  21659. echo "$as_me: updating cache $cache_file" >&6;}
  21660. cat confcache >$cache_file
  21661. else
  21662. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  21663. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21664. fi
  21665. fi
  21666. rm -f confcache
  21667. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21668. # Let make expand exec_prefix.
  21669. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21670. DEFS=-DHAVE_CONFIG_H
  21671. ac_libobjs=
  21672. ac_ltlibobjs=
  21673. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21674. # 1. Remove the extension, and $U if already installed.
  21675. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21676. ac_i=`echo "$ac_i" | sed "$ac_script"`
  21677. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21678. # will be set to the directory where LIBOBJS objects are built.
  21679. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21680. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  21681. done
  21682. LIBOBJS=$ac_libobjs
  21683. LTLIBOBJS=$ac_ltlibobjs
  21684. if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
  21685. { { echo "$as_me:$LINENO: error: conditional \"FSECT5\" was never defined.
  21686. Usually this means the macro was only invoked conditionally." >&5
  21687. echo "$as_me: error: conditional \"FSECT5\" was never defined.
  21688. Usually this means the macro was only invoked conditionally." >&2;}
  21689. { (exit 1); exit 1; }; }
  21690. fi
  21691. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  21692. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  21693. Usually this means the macro was only invoked conditionally." >&5
  21694. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  21695. Usually this means the macro was only invoked conditionally." >&2;}
  21696. { (exit 1); exit 1; }; }
  21697. fi
  21698. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  21699. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  21700. Usually this means the macro was only invoked conditionally." >&5
  21701. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  21702. Usually this means the macro was only invoked conditionally." >&2;}
  21703. { (exit 1); exit 1; }; }
  21704. fi
  21705. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  21706. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  21707. Usually this means the macro was only invoked conditionally." >&5
  21708. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  21709. Usually this means the macro was only invoked conditionally." >&2;}
  21710. { (exit 1); exit 1; }; }
  21711. fi
  21712. if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
  21713. { { echo "$as_me:$LINENO: error: conditional \"IS_CROSS_COMPILE\" was never defined.
  21714. Usually this means the macro was only invoked conditionally." >&5
  21715. echo "$as_me: error: conditional \"IS_CROSS_COMPILE\" was never defined.
  21716. Usually this means the macro was only invoked conditionally." >&2;}
  21717. { (exit 1); exit 1; }; }
  21718. fi
  21719. : ${CONFIG_STATUS=./config.status}
  21720. ac_clean_files_save=$ac_clean_files
  21721. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21722. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  21723. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21724. cat >$CONFIG_STATUS <<_ACEOF
  21725. #! $SHELL
  21726. # Generated by $as_me.
  21727. # Run this file to recreate the current configuration.
  21728. # Compiler output produced by configure, useful for debugging
  21729. # configure, is in config.log if it exists.
  21730. debug=false
  21731. ac_cs_recheck=false
  21732. ac_cs_silent=false
  21733. SHELL=\${CONFIG_SHELL-$SHELL}
  21734. _ACEOF
  21735. cat >>$CONFIG_STATUS <<\_ACEOF
  21736. ## --------------------- ##
  21737. ## M4sh Initialization. ##
  21738. ## --------------------- ##
  21739. # Be more Bourne compatible
  21740. DUALCASE=1; export DUALCASE # for MKS sh
  21741. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  21742. emulate sh
  21743. NULLCMD=:
  21744. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  21745. # is contrary to our usage. Disable this feature.
  21746. alias -g '${1+"$@"}'='"$@"'
  21747. setopt NO_GLOB_SUBST
  21748. else
  21749. case `(set -o) 2>/dev/null` in
  21750. *posix*) set -o posix ;;
  21751. esac
  21752. fi
  21753. # PATH needs CR
  21754. # Avoid depending upon Character Ranges.
  21755. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21756. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21757. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21758. as_cr_digits='0123456789'
  21759. as_cr_alnum=$as_cr_Letters$as_cr_digits
  21760. # The user is always right.
  21761. if test "${PATH_SEPARATOR+set}" != set; then
  21762. echo "#! /bin/sh" >conf$$.sh
  21763. echo "exit 0" >>conf$$.sh
  21764. chmod +x conf$$.sh
  21765. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  21766. PATH_SEPARATOR=';'
  21767. else
  21768. PATH_SEPARATOR=:
  21769. fi
  21770. rm -f conf$$.sh
  21771. fi
  21772. # Support unset when possible.
  21773. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  21774. as_unset=unset
  21775. else
  21776. as_unset=false
  21777. fi
  21778. # IFS
  21779. # We need space, tab and new line, in precisely that order. Quoting is
  21780. # there to prevent editors from complaining about space-tab.
  21781. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21782. # splitting by setting IFS to empty value.)
  21783. as_nl='
  21784. '
  21785. IFS=" "" $as_nl"
  21786. # Find who we are. Look in the path if we contain no directory separator.
  21787. case $0 in
  21788. *[\\/]* ) as_myself=$0 ;;
  21789. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21790. for as_dir in $PATH
  21791. do
  21792. IFS=$as_save_IFS
  21793. test -z "$as_dir" && as_dir=.
  21794. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21795. done
  21796. IFS=$as_save_IFS
  21797. ;;
  21798. esac
  21799. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21800. # in which case we are not to be found in the path.
  21801. if test "x$as_myself" = x; then
  21802. as_myself=$0
  21803. fi
  21804. if test ! -f "$as_myself"; then
  21805. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21806. { (exit 1); exit 1; }
  21807. fi
  21808. # Work around bugs in pre-3.0 UWIN ksh.
  21809. for as_var in ENV MAIL MAILPATH
  21810. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  21811. done
  21812. PS1='$ '
  21813. PS2='> '
  21814. PS4='+ '
  21815. # NLS nuisances.
  21816. for as_var in \
  21817. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  21818. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  21819. LC_TELEPHONE LC_TIME
  21820. do
  21821. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  21822. eval $as_var=C; export $as_var
  21823. else
  21824. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  21825. fi
  21826. done
  21827. # Required to use basename.
  21828. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21829. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21830. as_expr=expr
  21831. else
  21832. as_expr=false
  21833. fi
  21834. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21835. as_basename=basename
  21836. else
  21837. as_basename=false
  21838. fi
  21839. # Name of the executable.
  21840. as_me=`$as_basename -- "$0" ||
  21841. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21842. X"$0" : 'X\(//\)$' \| \
  21843. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21844. echo X/"$0" |
  21845. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21846. s//\1/
  21847. q
  21848. }
  21849. /^X\/\(\/\/\)$/{
  21850. s//\1/
  21851. q
  21852. }
  21853. /^X\/\(\/\).*/{
  21854. s//\1/
  21855. q
  21856. }
  21857. s/.*/./; q'`
  21858. # CDPATH.
  21859. $as_unset CDPATH
  21860. as_lineno_1=$LINENO
  21861. as_lineno_2=$LINENO
  21862. test "x$as_lineno_1" != "x$as_lineno_2" &&
  21863. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  21864. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  21865. # uniformly replaced by the line number. The first 'sed' inserts a
  21866. # line-number line after each line using $LINENO; the second 'sed'
  21867. # does the real work. The second script uses 'N' to pair each
  21868. # line-number line with the line containing $LINENO, and appends
  21869. # trailing '-' during substitution so that $LINENO is not a special
  21870. # case at line end.
  21871. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  21872. # scripts with optimization help from Paolo Bonzini. Blame Lee
  21873. # E. McMahon (1931-1989) for sed's syntax. :-)
  21874. sed -n '
  21875. p
  21876. /[$]LINENO/=
  21877. ' <$as_myself |
  21878. sed '
  21879. s/[$]LINENO.*/&-/
  21880. t lineno
  21881. b
  21882. :lineno
  21883. N
  21884. :loop
  21885. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  21886. t loop
  21887. s/-\n.*//
  21888. ' >$as_me.lineno &&
  21889. chmod +x "$as_me.lineno" ||
  21890. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  21891. { (exit 1); exit 1; }; }
  21892. # Don't try to exec as it changes $[0], causing all sort of problems
  21893. # (the dirname of $[0] is not the place where we might find the
  21894. # original and so on. Autoconf is especially sensitive to this).
  21895. . "./$as_me.lineno"
  21896. # Exit status is that of the last command.
  21897. exit
  21898. }
  21899. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21900. as_dirname=dirname
  21901. else
  21902. as_dirname=false
  21903. fi
  21904. ECHO_C= ECHO_N= ECHO_T=
  21905. case `echo -n x` in
  21906. -n*)
  21907. case `echo 'x\c'` in
  21908. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21909. *) ECHO_C='\c';;
  21910. esac;;
  21911. *)
  21912. ECHO_N='-n';;
  21913. esac
  21914. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21915. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21916. as_expr=expr
  21917. else
  21918. as_expr=false
  21919. fi
  21920. rm -f conf$$ conf$$.exe conf$$.file
  21921. if test -d conf$$.dir; then
  21922. rm -f conf$$.dir/conf$$.file
  21923. else
  21924. rm -f conf$$.dir
  21925. mkdir conf$$.dir
  21926. fi
  21927. echo >conf$$.file
  21928. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21929. as_ln_s='ln -s'
  21930. # ... but there are two gotchas:
  21931. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21932. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21933. # In both cases, we have to default to `cp -p'.
  21934. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21935. as_ln_s='cp -p'
  21936. elif ln conf$$.file conf$$ 2>/dev/null; then
  21937. as_ln_s=ln
  21938. else
  21939. as_ln_s='cp -p'
  21940. fi
  21941. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21942. rmdir conf$$.dir 2>/dev/null
  21943. if mkdir -p . 2>/dev/null; then
  21944. as_mkdir_p=:
  21945. else
  21946. test -d ./-p && rmdir ./-p
  21947. as_mkdir_p=false
  21948. fi
  21949. if test -x / >/dev/null 2>&1; then
  21950. as_test_x='test -x'
  21951. else
  21952. if ls -dL / >/dev/null 2>&1; then
  21953. as_ls_L_option=L
  21954. else
  21955. as_ls_L_option=
  21956. fi
  21957. as_test_x='
  21958. eval sh -c '\''
  21959. if test -d "$1"; then
  21960. test -d "$1/.";
  21961. else
  21962. case $1 in
  21963. -*)set "./$1";;
  21964. esac;
  21965. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  21966. ???[sx]*):;;*)false;;esac;fi
  21967. '\'' sh
  21968. '
  21969. fi
  21970. as_executable_p=$as_test_x
  21971. # Sed expression to map a string onto a valid CPP name.
  21972. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21973. # Sed expression to map a string onto a valid variable name.
  21974. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21975. exec 6>&1
  21976. # Save the log message, to keep $[0] and so on meaningful, and to
  21977. # report actual input values of CONFIG_FILES etc. instead of their
  21978. # values after options handling.
  21979. ac_log="
  21980. This file was extended by file $as_me 5.00, which was
  21981. generated by GNU Autoconf 2.61. Invocation command line was
  21982. CONFIG_FILES = $CONFIG_FILES
  21983. CONFIG_HEADERS = $CONFIG_HEADERS
  21984. CONFIG_LINKS = $CONFIG_LINKS
  21985. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21986. $ $0 $@
  21987. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21988. "
  21989. _ACEOF
  21990. cat >>$CONFIG_STATUS <<_ACEOF
  21991. # Files that config.status was made for.
  21992. config_files="$ac_config_files"
  21993. config_headers="$ac_config_headers"
  21994. config_commands="$ac_config_commands"
  21995. _ACEOF
  21996. cat >>$CONFIG_STATUS <<\_ACEOF
  21997. ac_cs_usage="\
  21998. \`$as_me' instantiates files from templates according to the
  21999. current configuration.
  22000. Usage: $0 [OPTIONS] [FILE]...
  22001. -h, --help print this help, then exit
  22002. -V, --version print version number and configuration settings, then exit
  22003. -q, --quiet do not print progress messages
  22004. -d, --debug don't remove temporary files
  22005. --recheck update $as_me by reconfiguring in the same conditions
  22006. --file=FILE[:TEMPLATE]
  22007. instantiate the configuration file FILE
  22008. --header=FILE[:TEMPLATE]
  22009. instantiate the configuration header FILE
  22010. Configuration files:
  22011. $config_files
  22012. Configuration headers:
  22013. $config_headers
  22014. Configuration commands:
  22015. $config_commands
  22016. Report bugs to <bug-autoconf@gnu.org>."
  22017. _ACEOF
  22018. cat >>$CONFIG_STATUS <<_ACEOF
  22019. ac_cs_version="\\
  22020. file config.status 5.00
  22021. configured by $0, generated by GNU Autoconf 2.61,
  22022. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  22023. Copyright (C) 2006 Free Software Foundation, Inc.
  22024. This config.status script is free software; the Free Software Foundation
  22025. gives unlimited permission to copy, distribute and modify it."
  22026. ac_pwd='$ac_pwd'
  22027. srcdir='$srcdir'
  22028. INSTALL='$INSTALL'
  22029. MKDIR_P='$MKDIR_P'
  22030. _ACEOF
  22031. cat >>$CONFIG_STATUS <<\_ACEOF
  22032. # If no file are specified by the user, then we need to provide default
  22033. # value. By we need to know if files were specified by the user.
  22034. ac_need_defaults=:
  22035. while test $# != 0
  22036. do
  22037. case $1 in
  22038. --*=*)
  22039. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22040. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22041. ac_shift=:
  22042. ;;
  22043. *)
  22044. ac_option=$1
  22045. ac_optarg=$2
  22046. ac_shift=shift
  22047. ;;
  22048. esac
  22049. case $ac_option in
  22050. # Handling of the options.
  22051. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22052. ac_cs_recheck=: ;;
  22053. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22054. echo "$ac_cs_version"; exit ;;
  22055. --debug | --debu | --deb | --de | --d | -d )
  22056. debug=: ;;
  22057. --file | --fil | --fi | --f )
  22058. $ac_shift
  22059. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  22060. ac_need_defaults=false;;
  22061. --header | --heade | --head | --hea )
  22062. $ac_shift
  22063. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  22064. ac_need_defaults=false;;
  22065. --he | --h)
  22066. # Conflict between --help and --header
  22067. { echo "$as_me: error: ambiguous option: $1
  22068. Try \`$0 --help' for more information." >&2
  22069. { (exit 1); exit 1; }; };;
  22070. --help | --hel | -h )
  22071. echo "$ac_cs_usage"; exit ;;
  22072. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22073. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22074. ac_cs_silent=: ;;
  22075. # This is an error.
  22076. -*) { echo "$as_me: error: unrecognized option: $1
  22077. Try \`$0 --help' for more information." >&2
  22078. { (exit 1); exit 1; }; } ;;
  22079. *) ac_config_targets="$ac_config_targets $1"
  22080. ac_need_defaults=false ;;
  22081. esac
  22082. shift
  22083. done
  22084. ac_configure_extra_args=
  22085. if $ac_cs_silent; then
  22086. exec 6>/dev/null
  22087. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22088. fi
  22089. _ACEOF
  22090. cat >>$CONFIG_STATUS <<_ACEOF
  22091. if \$ac_cs_recheck; then
  22092. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  22093. CONFIG_SHELL=$SHELL
  22094. export CONFIG_SHELL
  22095. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22096. fi
  22097. _ACEOF
  22098. cat >>$CONFIG_STATUS <<\_ACEOF
  22099. exec 5>>config.log
  22100. {
  22101. echo
  22102. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22103. ## Running $as_me. ##
  22104. _ASBOX
  22105. echo "$ac_log"
  22106. } >&5
  22107. _ACEOF
  22108. cat >>$CONFIG_STATUS <<_ACEOF
  22109. #
  22110. # INIT-COMMANDS
  22111. #
  22112. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  22113. _ACEOF
  22114. cat >>$CONFIG_STATUS <<\_ACEOF
  22115. # Handling of arguments.
  22116. for ac_config_target in $ac_config_targets
  22117. do
  22118. case $ac_config_target in
  22119. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  22120. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  22121. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  22122. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  22123. "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
  22124. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  22125. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  22126. "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
  22127. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  22128. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  22129. { (exit 1); exit 1; }; };;
  22130. esac
  22131. done
  22132. # If the user did not use the arguments to specify the items to instantiate,
  22133. # then the envvar interface is used. Set only those that are not.
  22134. # We use the long form for the default assignment because of an extremely
  22135. # bizarre bug on SunOS 4.1.3.
  22136. if $ac_need_defaults; then
  22137. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22138. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22139. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22140. fi
  22141. # Have a temporary directory for convenience. Make it in the build tree
  22142. # simply because there is no reason against having it here, and in addition,
  22143. # creating and moving files from /tmp can sometimes cause problems.
  22144. # Hook for its removal unless debugging.
  22145. # Note that there is a small window in which the directory will not be cleaned:
  22146. # after its creation but before its name has been assigned to `$tmp'.
  22147. $debug ||
  22148. {
  22149. tmp=
  22150. trap 'exit_status=$?
  22151. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  22152. ' 0
  22153. trap '{ (exit 1); exit 1; }' 1 2 13 15
  22154. }
  22155. # Create a (secure) tmp directory for tmp files.
  22156. {
  22157. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22158. test -n "$tmp" && test -d "$tmp"
  22159. } ||
  22160. {
  22161. tmp=./conf$$-$RANDOM
  22162. (umask 077 && mkdir "$tmp")
  22163. } ||
  22164. {
  22165. echo "$me: cannot create a temporary directory in ." >&2
  22166. { (exit 1); exit 1; }
  22167. }
  22168. #
  22169. # Set up the sed scripts for CONFIG_FILES section.
  22170. #
  22171. # No need to generate the scripts if there are no CONFIG_FILES.
  22172. # This happens for instance when ./config.status config.h
  22173. if test -n "$CONFIG_FILES"; then
  22174. _ACEOF
  22175. ac_delim='%!_!# '
  22176. for ac_last_try in false false false false false :; do
  22177. cat >conf$$subs.sed <<_ACEOF
  22178. SHELL!$SHELL$ac_delim
  22179. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  22180. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  22181. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  22182. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  22183. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  22184. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  22185. exec_prefix!$exec_prefix$ac_delim
  22186. prefix!$prefix$ac_delim
  22187. program_transform_name!$program_transform_name$ac_delim
  22188. bindir!$bindir$ac_delim
  22189. sbindir!$sbindir$ac_delim
  22190. libexecdir!$libexecdir$ac_delim
  22191. datarootdir!$datarootdir$ac_delim
  22192. datadir!$datadir$ac_delim
  22193. sysconfdir!$sysconfdir$ac_delim
  22194. sharedstatedir!$sharedstatedir$ac_delim
  22195. localstatedir!$localstatedir$ac_delim
  22196. includedir!$includedir$ac_delim
  22197. oldincludedir!$oldincludedir$ac_delim
  22198. docdir!$docdir$ac_delim
  22199. infodir!$infodir$ac_delim
  22200. htmldir!$htmldir$ac_delim
  22201. dvidir!$dvidir$ac_delim
  22202. pdfdir!$pdfdir$ac_delim
  22203. psdir!$psdir$ac_delim
  22204. libdir!$libdir$ac_delim
  22205. localedir!$localedir$ac_delim
  22206. mandir!$mandir$ac_delim
  22207. DEFS!$DEFS$ac_delim
  22208. ECHO_C!$ECHO_C$ac_delim
  22209. ECHO_N!$ECHO_N$ac_delim
  22210. ECHO_T!$ECHO_T$ac_delim
  22211. LIBS!$LIBS$ac_delim
  22212. build_alias!$build_alias$ac_delim
  22213. host_alias!$host_alias$ac_delim
  22214. target_alias!$target_alias$ac_delim
  22215. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  22216. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  22217. INSTALL_DATA!$INSTALL_DATA$ac_delim
  22218. am__isrc!$am__isrc$ac_delim
  22219. CYGPATH_W!$CYGPATH_W$ac_delim
  22220. PACKAGE!$PACKAGE$ac_delim
  22221. VERSION!$VERSION$ac_delim
  22222. ACLOCAL!$ACLOCAL$ac_delim
  22223. AUTOCONF!$AUTOCONF$ac_delim
  22224. AUTOMAKE!$AUTOMAKE$ac_delim
  22225. AUTOHEADER!$AUTOHEADER$ac_delim
  22226. MAKEINFO!$MAKEINFO$ac_delim
  22227. install_sh!$install_sh$ac_delim
  22228. STRIP!$STRIP$ac_delim
  22229. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  22230. mkdir_p!$mkdir_p$ac_delim
  22231. AWK!$AWK$ac_delim
  22232. SET_MAKE!$SET_MAKE$ac_delim
  22233. am__leading_dot!$am__leading_dot$ac_delim
  22234. AMTAR!$AMTAR$ac_delim
  22235. am__tar!$am__tar$ac_delim
  22236. am__untar!$am__untar$ac_delim
  22237. fsect!$fsect$ac_delim
  22238. FSECT5_TRUE!$FSECT5_TRUE$ac_delim
  22239. FSECT5_FALSE!$FSECT5_FALSE$ac_delim
  22240. WARNINGS!$WARNINGS$ac_delim
  22241. CC!$CC$ac_delim
  22242. CFLAGS!$CFLAGS$ac_delim
  22243. LDFLAGS!$LDFLAGS$ac_delim
  22244. CPPFLAGS!$CPPFLAGS$ac_delim
  22245. ac_ct_CC!$ac_ct_CC$ac_delim
  22246. EXEEXT!$EXEEXT$ac_delim
  22247. OBJEXT!$OBJEXT$ac_delim
  22248. DEPDIR!$DEPDIR$ac_delim
  22249. am__include!$am__include$ac_delim
  22250. am__quote!$am__quote$ac_delim
  22251. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  22252. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  22253. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  22254. CCDEPMODE!$CCDEPMODE$ac_delim
  22255. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  22256. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  22257. LN_S!$LN_S$ac_delim
  22258. build!$build$ac_delim
  22259. build_cpu!$build_cpu$ac_delim
  22260. build_vendor!$build_vendor$ac_delim
  22261. build_os!$build_os$ac_delim
  22262. host!$host$ac_delim
  22263. host_cpu!$host_cpu$ac_delim
  22264. host_vendor!$host_vendor$ac_delim
  22265. host_os!$host_os$ac_delim
  22266. GREP!$GREP$ac_delim
  22267. EGREP!$EGREP$ac_delim
  22268. ECHO!$ECHO$ac_delim
  22269. AR!$AR$ac_delim
  22270. RANLIB!$RANLIB$ac_delim
  22271. CPP!$CPP$ac_delim
  22272. CXX!$CXX$ac_delim
  22273. CXXFLAGS!$CXXFLAGS$ac_delim
  22274. ac_ct_CXX!$ac_ct_CXX$ac_delim
  22275. _ACEOF
  22276. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  22277. break
  22278. elif $ac_last_try; then
  22279. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  22280. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  22281. { (exit 1); exit 1; }; }
  22282. else
  22283. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22284. fi
  22285. done
  22286. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  22287. if test -n "$ac_eof"; then
  22288. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  22289. ac_eof=`expr $ac_eof + 1`
  22290. fi
  22291. cat >>$CONFIG_STATUS <<_ACEOF
  22292. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  22293. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22294. _ACEOF
  22295. sed '
  22296. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  22297. s/^/s,@/; s/!/@,|#_!!_#|/
  22298. :n
  22299. t n
  22300. s/'"$ac_delim"'$/,g/; t
  22301. s/$/\\/; p
  22302. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  22303. ' >>$CONFIG_STATUS <conf$$subs.sed
  22304. rm -f conf$$subs.sed
  22305. cat >>$CONFIG_STATUS <<_ACEOF
  22306. CEOF$ac_eof
  22307. _ACEOF
  22308. ac_delim='%!_!# '
  22309. for ac_last_try in false false false false false :; do
  22310. cat >conf$$subs.sed <<_ACEOF
  22311. CXXDEPMODE!$CXXDEPMODE$ac_delim
  22312. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  22313. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  22314. CXXCPP!$CXXCPP$ac_delim
  22315. F77!$F77$ac_delim
  22316. FFLAGS!$FFLAGS$ac_delim
  22317. ac_ct_F77!$ac_ct_F77$ac_delim
  22318. LIBTOOL!$LIBTOOL$ac_delim
  22319. LIBOBJS!$LIBOBJS$ac_delim
  22320. IS_CROSS_COMPILE_TRUE!$IS_CROSS_COMPILE_TRUE$ac_delim
  22321. IS_CROSS_COMPILE_FALSE!$IS_CROSS_COMPILE_FALSE$ac_delim
  22322. LTLIBOBJS!$LTLIBOBJS$ac_delim
  22323. _ACEOF
  22324. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
  22325. break
  22326. elif $ac_last_try; then
  22327. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  22328. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  22329. { (exit 1); exit 1; }; }
  22330. else
  22331. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22332. fi
  22333. done
  22334. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  22335. if test -n "$ac_eof"; then
  22336. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  22337. ac_eof=`expr $ac_eof + 1`
  22338. fi
  22339. cat >>$CONFIG_STATUS <<_ACEOF
  22340. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  22341. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  22342. _ACEOF
  22343. sed '
  22344. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  22345. s/^/s,@/; s/!/@,|#_!!_#|/
  22346. :n
  22347. t n
  22348. s/'"$ac_delim"'$/,g/; t
  22349. s/$/\\/; p
  22350. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  22351. ' >>$CONFIG_STATUS <conf$$subs.sed
  22352. rm -f conf$$subs.sed
  22353. cat >>$CONFIG_STATUS <<_ACEOF
  22354. :end
  22355. s/|#_!!_#|//g
  22356. CEOF$ac_eof
  22357. _ACEOF
  22358. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  22359. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  22360. # trailing colons and then remove the whole line if VPATH becomes empty
  22361. # (actually we leave an empty line to preserve line numbers).
  22362. if test "x$srcdir" = x.; then
  22363. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  22364. s/:*\$(srcdir):*/:/
  22365. s/:*\${srcdir}:*/:/
  22366. s/:*@srcdir@:*/:/
  22367. s/^\([^=]*=[ ]*\):*/\1/
  22368. s/:*$//
  22369. s/^[^=]*=[ ]*$//
  22370. }'
  22371. fi
  22372. cat >>$CONFIG_STATUS <<\_ACEOF
  22373. fi # test -n "$CONFIG_FILES"
  22374. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  22375. do
  22376. case $ac_tag in
  22377. :[FHLC]) ac_mode=$ac_tag; continue;;
  22378. esac
  22379. case $ac_mode$ac_tag in
  22380. :[FHL]*:*);;
  22381. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  22382. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  22383. { (exit 1); exit 1; }; };;
  22384. :[FH]-) ac_tag=-:-;;
  22385. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  22386. esac
  22387. ac_save_IFS=$IFS
  22388. IFS=:
  22389. set x $ac_tag
  22390. IFS=$ac_save_IFS
  22391. shift
  22392. ac_file=$1
  22393. shift
  22394. case $ac_mode in
  22395. :L) ac_source=$1;;
  22396. :[FH])
  22397. ac_file_inputs=
  22398. for ac_f
  22399. do
  22400. case $ac_f in
  22401. -) ac_f="$tmp/stdin";;
  22402. *) # Look for the file first in the build tree, then in the source tree
  22403. # (if the path is not absolute). The absolute path cannot be DOS-style,
  22404. # because $ac_f cannot contain `:'.
  22405. test -f "$ac_f" ||
  22406. case $ac_f in
  22407. [\\/$]*) false;;
  22408. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  22409. esac ||
  22410. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  22411. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  22412. { (exit 1); exit 1; }; };;
  22413. esac
  22414. ac_file_inputs="$ac_file_inputs $ac_f"
  22415. done
  22416. # Let's still pretend it is `configure' which instantiates (i.e., don't
  22417. # use $as_me), people would be surprised to read:
  22418. # /* config.h. Generated by config.status. */
  22419. configure_input="Generated from "`IFS=:
  22420. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  22421. if test x"$ac_file" != x-; then
  22422. configure_input="$ac_file. $configure_input"
  22423. { echo "$as_me:$LINENO: creating $ac_file" >&5
  22424. echo "$as_me: creating $ac_file" >&6;}
  22425. fi
  22426. case $ac_tag in
  22427. *:-:* | *:-) cat >"$tmp/stdin";;
  22428. esac
  22429. ;;
  22430. esac
  22431. ac_dir=`$as_dirname -- "$ac_file" ||
  22432. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22433. X"$ac_file" : 'X\(//\)[^/]' \| \
  22434. X"$ac_file" : 'X\(//\)$' \| \
  22435. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  22436. echo X"$ac_file" |
  22437. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22438. s//\1/
  22439. q
  22440. }
  22441. /^X\(\/\/\)[^/].*/{
  22442. s//\1/
  22443. q
  22444. }
  22445. /^X\(\/\/\)$/{
  22446. s//\1/
  22447. q
  22448. }
  22449. /^X\(\/\).*/{
  22450. s//\1/
  22451. q
  22452. }
  22453. s/.*/./; q'`
  22454. { as_dir="$ac_dir"
  22455. case $as_dir in #(
  22456. -*) as_dir=./$as_dir;;
  22457. esac
  22458. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  22459. as_dirs=
  22460. while :; do
  22461. case $as_dir in #(
  22462. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  22463. *) as_qdir=$as_dir;;
  22464. esac
  22465. as_dirs="'$as_qdir' $as_dirs"
  22466. as_dir=`$as_dirname -- "$as_dir" ||
  22467. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22468. X"$as_dir" : 'X\(//\)[^/]' \| \
  22469. X"$as_dir" : 'X\(//\)$' \| \
  22470. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22471. echo X"$as_dir" |
  22472. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22473. s//\1/
  22474. q
  22475. }
  22476. /^X\(\/\/\)[^/].*/{
  22477. s//\1/
  22478. q
  22479. }
  22480. /^X\(\/\/\)$/{
  22481. s//\1/
  22482. q
  22483. }
  22484. /^X\(\/\).*/{
  22485. s//\1/
  22486. q
  22487. }
  22488. s/.*/./; q'`
  22489. test -d "$as_dir" && break
  22490. done
  22491. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22492. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  22493. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  22494. { (exit 1); exit 1; }; }; }
  22495. ac_builddir=.
  22496. case "$ac_dir" in
  22497. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22498. *)
  22499. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  22500. # A ".." for each directory in $ac_dir_suffix.
  22501. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  22502. case $ac_top_builddir_sub in
  22503. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22504. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  22505. esac ;;
  22506. esac
  22507. ac_abs_top_builddir=$ac_pwd
  22508. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  22509. # for backward compatibility:
  22510. ac_top_builddir=$ac_top_build_prefix
  22511. case $srcdir in
  22512. .) # We are building in place.
  22513. ac_srcdir=.
  22514. ac_top_srcdir=$ac_top_builddir_sub
  22515. ac_abs_top_srcdir=$ac_pwd ;;
  22516. [\\/]* | ?:[\\/]* ) # Absolute name.
  22517. ac_srcdir=$srcdir$ac_dir_suffix;
  22518. ac_top_srcdir=$srcdir
  22519. ac_abs_top_srcdir=$srcdir ;;
  22520. *) # Relative name.
  22521. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  22522. ac_top_srcdir=$ac_top_build_prefix$srcdir
  22523. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  22524. esac
  22525. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  22526. case $ac_mode in
  22527. :F)
  22528. #
  22529. # CONFIG_FILE
  22530. #
  22531. case $INSTALL in
  22532. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  22533. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  22534. esac
  22535. ac_MKDIR_P=$MKDIR_P
  22536. case $MKDIR_P in
  22537. [\\/$]* | ?:[\\/]* ) ;;
  22538. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  22539. esac
  22540. _ACEOF
  22541. cat >>$CONFIG_STATUS <<\_ACEOF
  22542. # If the template does not know about datarootdir, expand it.
  22543. # FIXME: This hack should be removed a few years after 2.60.
  22544. ac_datarootdir_hack=; ac_datarootdir_seen=
  22545. case `sed -n '/datarootdir/ {
  22546. p
  22547. q
  22548. }
  22549. /@datadir@/p
  22550. /@docdir@/p
  22551. /@infodir@/p
  22552. /@localedir@/p
  22553. /@mandir@/p
  22554. ' $ac_file_inputs` in
  22555. *datarootdir*) ac_datarootdir_seen=yes;;
  22556. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  22557. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  22558. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  22559. _ACEOF
  22560. cat >>$CONFIG_STATUS <<_ACEOF
  22561. ac_datarootdir_hack='
  22562. s&@datadir@&$datadir&g
  22563. s&@docdir@&$docdir&g
  22564. s&@infodir@&$infodir&g
  22565. s&@localedir@&$localedir&g
  22566. s&@mandir@&$mandir&g
  22567. s&\\\${datarootdir}&$datarootdir&g' ;;
  22568. esac
  22569. _ACEOF
  22570. # Neutralize VPATH when `$srcdir' = `.'.
  22571. # Shell code in configure.ac might set extrasub.
  22572. # FIXME: do we really want to maintain this feature?
  22573. cat >>$CONFIG_STATUS <<_ACEOF
  22574. sed "$ac_vpsub
  22575. $extrasub
  22576. _ACEOF
  22577. cat >>$CONFIG_STATUS <<\_ACEOF
  22578. :t
  22579. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22580. s&@configure_input@&$configure_input&;t t
  22581. s&@top_builddir@&$ac_top_builddir_sub&;t t
  22582. s&@srcdir@&$ac_srcdir&;t t
  22583. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  22584. s&@top_srcdir@&$ac_top_srcdir&;t t
  22585. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  22586. s&@builddir@&$ac_builddir&;t t
  22587. s&@abs_builddir@&$ac_abs_builddir&;t t
  22588. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  22589. s&@INSTALL@&$ac_INSTALL&;t t
  22590. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  22591. $ac_datarootdir_hack
  22592. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  22593. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  22594. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  22595. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  22596. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22597. which seems to be undefined. Please make sure it is defined." >&5
  22598. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22599. which seems to be undefined. Please make sure it is defined." >&2;}
  22600. rm -f "$tmp/stdin"
  22601. case $ac_file in
  22602. -) cat "$tmp/out"; rm -f "$tmp/out";;
  22603. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  22604. esac
  22605. ;;
  22606. :H)
  22607. #
  22608. # CONFIG_HEADER
  22609. #
  22610. _ACEOF
  22611. # Transform confdefs.h into a sed script `conftest.defines', that
  22612. # substitutes the proper values into config.h.in to produce config.h.
  22613. rm -f conftest.defines conftest.tail
  22614. # First, append a space to every undef/define line, to ease matching.
  22615. echo 's/$/ /' >conftest.defines
  22616. # Then, protect against being on the right side of a sed subst, or in
  22617. # an unquoted here document, in config.status. If some macros were
  22618. # called several times there might be several #defines for the same
  22619. # symbol, which is useless. But do not sort them, since the last
  22620. # AC_DEFINE must be honored.
  22621. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22622. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  22623. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  22624. # PARAMS is the parameter list in the macro definition--in most cases, it's
  22625. # just an empty string.
  22626. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  22627. ac_dB='\\)[ (].*,\\1define\\2'
  22628. ac_dC=' '
  22629. ac_dD=' ,'
  22630. uniq confdefs.h |
  22631. sed -n '
  22632. t rset
  22633. :rset
  22634. s/^[ ]*#[ ]*define[ ][ ]*//
  22635. t ok
  22636. d
  22637. :ok
  22638. s/[\\&,]/\\&/g
  22639. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  22640. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  22641. ' >>conftest.defines
  22642. # Remove the space that was appended to ease matching.
  22643. # Then replace #undef with comments. This is necessary, for
  22644. # example, in the case of _POSIX_SOURCE, which is predefined and required
  22645. # on some systems where configure will not decide to define it.
  22646. # (The regexp can be short, since the line contains either #define or #undef.)
  22647. echo 's/ $//
  22648. s,^[ #]*u.*,/* & */,' >>conftest.defines
  22649. # Break up conftest.defines:
  22650. ac_max_sed_lines=50
  22651. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  22652. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  22653. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  22654. # et cetera.
  22655. ac_in='$ac_file_inputs'
  22656. ac_out='"$tmp/out1"'
  22657. ac_nxt='"$tmp/out2"'
  22658. while :
  22659. do
  22660. # Write a here document:
  22661. cat >>$CONFIG_STATUS <<_ACEOF
  22662. # First, check the format of the line:
  22663. cat >"\$tmp/defines.sed" <<\\CEOF
  22664. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  22665. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  22666. b
  22667. :def
  22668. _ACEOF
  22669. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  22670. echo 'CEOF
  22671. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  22672. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  22673. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  22674. grep . conftest.tail >/dev/null || break
  22675. rm -f conftest.defines
  22676. mv conftest.tail conftest.defines
  22677. done
  22678. rm -f conftest.defines conftest.tail
  22679. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  22680. cat >>$CONFIG_STATUS <<\_ACEOF
  22681. if test x"$ac_file" != x-; then
  22682. echo "/* $configure_input */" >"$tmp/config.h"
  22683. cat "$ac_result" >>"$tmp/config.h"
  22684. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  22685. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  22686. echo "$as_me: $ac_file is unchanged" >&6;}
  22687. else
  22688. rm -f $ac_file
  22689. mv "$tmp/config.h" $ac_file
  22690. fi
  22691. else
  22692. echo "/* $configure_input */"
  22693. cat "$ac_result"
  22694. fi
  22695. rm -f "$tmp/out12"
  22696. # Compute $ac_file's index in $config_headers.
  22697. _am_stamp_count=1
  22698. for _am_header in $config_headers :; do
  22699. case $_am_header in
  22700. $ac_file | $ac_file:* )
  22701. break ;;
  22702. * )
  22703. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  22704. esac
  22705. done
  22706. echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  22707. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22708. X$ac_file : 'X\(//\)[^/]' \| \
  22709. X$ac_file : 'X\(//\)$' \| \
  22710. X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  22711. echo X$ac_file |
  22712. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22713. s//\1/
  22714. q
  22715. }
  22716. /^X\(\/\/\)[^/].*/{
  22717. s//\1/
  22718. q
  22719. }
  22720. /^X\(\/\/\)$/{
  22721. s//\1/
  22722. q
  22723. }
  22724. /^X\(\/\).*/{
  22725. s//\1/
  22726. q
  22727. }
  22728. s/.*/./; q'`/stamp-h$_am_stamp_count
  22729. ;;
  22730. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  22731. echo "$as_me: executing $ac_file commands" >&6;}
  22732. ;;
  22733. esac
  22734. case $ac_file$ac_mode in
  22735. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  22736. # Strip MF so we end up with the name of the file.
  22737. mf=`echo "$mf" | sed -e 's/:.*$//'`
  22738. # Check whether this is an Automake generated Makefile or not.
  22739. # We used to match only the files named `Makefile.in', but
  22740. # some people rename them; so instead we look at the file content.
  22741. # Grep'ing the first line is not enough: some people post-process
  22742. # each Makefile.in and add a new line on top of each file to say so.
  22743. # Grep'ing the whole file is not good either: AIX grep has a line
  22744. # limit of 2048, but all sed's we know have understand at least 4000.
  22745. if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
  22746. dirpart=`$as_dirname -- "$mf" ||
  22747. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22748. X"$mf" : 'X\(//\)[^/]' \| \
  22749. X"$mf" : 'X\(//\)$' \| \
  22750. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  22751. echo X"$mf" |
  22752. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22753. s//\1/
  22754. q
  22755. }
  22756. /^X\(\/\/\)[^/].*/{
  22757. s//\1/
  22758. q
  22759. }
  22760. /^X\(\/\/\)$/{
  22761. s//\1/
  22762. q
  22763. }
  22764. /^X\(\/\).*/{
  22765. s//\1/
  22766. q
  22767. }
  22768. s/.*/./; q'`
  22769. else
  22770. continue
  22771. fi
  22772. # Extract the definition of DEPDIR, am__include, and am__quote
  22773. # from the Makefile without running `make'.
  22774. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  22775. test -z "$DEPDIR" && continue
  22776. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  22777. test -z "am__include" && continue
  22778. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  22779. # When using ansi2knr, U may be empty or an underscore; expand it
  22780. U=`sed -n 's/^U = //p' < "$mf"`
  22781. # Find all dependency output files, they are included files with
  22782. # $(DEPDIR) in their names. We invoke sed twice because it is the
  22783. # simplest approach to changing $(DEPDIR) to its actual value in the
  22784. # expansion.
  22785. for file in `sed -n "
  22786. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  22787. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  22788. # Make sure the directory exists.
  22789. test -f "$dirpart/$file" && continue
  22790. fdir=`$as_dirname -- "$file" ||
  22791. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22792. X"$file" : 'X\(//\)[^/]' \| \
  22793. X"$file" : 'X\(//\)$' \| \
  22794. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  22795. echo X"$file" |
  22796. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22797. s//\1/
  22798. q
  22799. }
  22800. /^X\(\/\/\)[^/].*/{
  22801. s//\1/
  22802. q
  22803. }
  22804. /^X\(\/\/\)$/{
  22805. s//\1/
  22806. q
  22807. }
  22808. /^X\(\/\).*/{
  22809. s//\1/
  22810. q
  22811. }
  22812. s/.*/./; q'`
  22813. { as_dir=$dirpart/$fdir
  22814. case $as_dir in #(
  22815. -*) as_dir=./$as_dir;;
  22816. esac
  22817. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  22818. as_dirs=
  22819. while :; do
  22820. case $as_dir in #(
  22821. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  22822. *) as_qdir=$as_dir;;
  22823. esac
  22824. as_dirs="'$as_qdir' $as_dirs"
  22825. as_dir=`$as_dirname -- "$as_dir" ||
  22826. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22827. X"$as_dir" : 'X\(//\)[^/]' \| \
  22828. X"$as_dir" : 'X\(//\)$' \| \
  22829. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22830. echo X"$as_dir" |
  22831. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22832. s//\1/
  22833. q
  22834. }
  22835. /^X\(\/\/\)[^/].*/{
  22836. s//\1/
  22837. q
  22838. }
  22839. /^X\(\/\/\)$/{
  22840. s//\1/
  22841. q
  22842. }
  22843. /^X\(\/\).*/{
  22844. s//\1/
  22845. q
  22846. }
  22847. s/.*/./; q'`
  22848. test -d "$as_dir" && break
  22849. done
  22850. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22851. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  22852. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  22853. { (exit 1); exit 1; }; }; }
  22854. # echo "creating $dirpart/$file"
  22855. echo '# dummy' > "$dirpart/$file"
  22856. done
  22857. done
  22858. ;;
  22859. esac
  22860. done # for ac_tag
  22861. { (exit 0); exit 0; }
  22862. _ACEOF
  22863. chmod +x $CONFIG_STATUS
  22864. ac_clean_files=$ac_clean_files_save
  22865. # configure is writing to config.log, and then calls config.status.
  22866. # config.status does its own redirection, appending to config.log.
  22867. # Unfortunately, on DOS this fails, as config.log is still kept open
  22868. # by configure, so config.status won't be able to write to it; its
  22869. # output is simply discarded. So we exec the FD to /dev/null,
  22870. # effectively closing config.log, so it can be properly (re)opened and
  22871. # appended to by config.status. When coming back to configure, we
  22872. # need to make the FD available again.
  22873. if test "$no_create" != yes; then
  22874. ac_cs_success=:
  22875. ac_config_status_args=
  22876. test "$silent" = yes &&
  22877. ac_config_status_args="$ac_config_status_args --quiet"
  22878. exec 5>/dev/null
  22879. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  22880. exec 5>>config.log
  22881. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  22882. # would make configure fail if this is the last instruction.
  22883. $ac_cs_success || { (exit 1); exit 1; }
  22884. fi